@import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,100..900;1,100..900&family=Montserrat+Alternates:wght@400;600;700&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* --- Base and Mobile-First Styles --- */
:root {
  --body-font: "Roboto", sans-serif;
  --z-fixed: 100;
  --font-light: 300;
  --font-regular: 400;
  --font-semi-bold: 600;
   --header-height: 5rem;
}
.fixed-sidebar .project-list li {
    white-space: pre-line;
    line-height: 1.6;
}
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
html{
  height: 100%;
}

body {
  font-family: var(--body-font);
  line-height: 1.6;
  background-color: #f0eeeb;
  font-family:"Roboto", sans-serif ;
  display:flex;
  flex-direction:column;
  min-height: 100vh;
  margin: 0;
}

main{
  flex:1;
}


ul {
  list-style: none;
}

a {
  text-decoration: none;
}






/* Two-Column Layout (Mobile-First: Stacked) */
.main-content-section {
  padding: 2rem 1rem;
  margin-top: 6rem;
  background-color: #f0eeeb;
}

.content-wrapper {
  display: flex;
  flex-direction: column; /* Stacks columns on mobile */
  gap: 2rem;
  max-width: 100%;
  margin: 0 auto;
}

/* Left Articles Container (Full Width on Mobile) */
.scrollable-articles-container {
  padding: 0;
  min-width: unset; /* Reset min-width for mobile */
  order: 0;
}

/* Individual Article (Image on Top) */
.scroll-article {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.scroll-article .article-image {
  flex-shrink: 0;
  width: 100%;
  height: 300px; /* Adjusted height for mobile */
  overflow: hidden;
  border-radius: 0;
  
}

.scroll-article .article-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.scroll-article .article-content {
  flex: 1;
  min-width: 0;
}

.scroll-article .article-content h3 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.scroll-article .article-content p {
  font-size: 0.9rem;
  color: #555;
}

.article-separator {
  border: none;
  border-top: 1px solid #eee;
  margin: 2rem 0;
  width: 100%;
}



/* Right Sidebar (Full Width on Mobile) */
.fixed-sidebar {
  flex: auto;
  min-width: unset;
  position: static; /* Disable sticky on mobile */
  top: var(--header-height);
  padding-left: 0;
  border-left: none;
  order: 0;               /* makes sidebar appear before articles */
  width: 100%;             /* full width on mobile */
  max-height: none;        /* allow full height */
  overflow: visible;       /* no internal scroll on mobile */
  padding-left: 0;
  margin-bottom: 1rem;   
  
}

.sidebar-content {
  text-align: left;
}

.sidebar-content h3 {
  font-size: 1.2rem;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-content p {
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

.project-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-list li {
  margin-bottom: 0.8rem;
}
/*
.sidebar-list-separator {
  border: none;
  border-top: 1px solid #eee;
  margin: 1rem ;
  width: 100%;
}

 Gallery Section (Mobile-First) */
.project-gallery-section {
  padding: 2rem 1rem;
  background-color: #f8f8f8;
  text-align: center;
}

.gallery-header {
  margin-bottom: 1.5rem;
}

.gallery-header h2 {
  font-size: 1.5rem;
  color: #333;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
  gap: 10px;
  max-width: 100%;
  margin: 0 auto;
}

.gallery-item {
  width: 100%;
  padding-bottom: 75%;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Modal (Mobile-First) */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 95%;
  max-height: 80vh;
  object-fit: contain;
}

.close-button,
.prev-button,
.next-button {
  position: absolute;
  z-index: 9999;
  cursor: pointer;
  border: none;
  border-radius: 50%;
  padding: 7px;
  font-size: 15px;
}

.close-button {
  top: 20px;
  right: 30px;
  color:white;
}

.prev-button {
  left: 30px;
  top: 50%;
}

.next-button {
  right: 30px;
  top: 50%;
}
.no_style{
 text-decoration: none !important; /* নিচের দাগ বা বর্ডার দূর করবে */
    color: inherit !important;        /* লেখার স্বাভাবিক রঙ (কালো/ধূসর) ধরে রাখবে, নীল হবে না */
    outline: none;
}
footer{
  text-align: center;
  background-color:  #cbcadc;
  color:rgb(0, 0, 0);
  margin: 0;
  margin-bottom: -2rem;
  font-size: 10px;
  padding: 10px;
}

/* --- Tablet & Desktop: Sidebar to Bottom Protocol --- */

@media only screen and (min-width: 768px) {
    /* ১. প্রতিটি আর্টিকেলকে পাশাপাশি সাজানোর জন্য */
  .scroll-article {
    display: flex;
    flex-direction: column; /* ইমেজ এবং লেখা পাশাপাশি আসবে */
    align-items: flex-start; /* উপর থেকে শুরু হবে */
    gap: 3rem; /* ইমেজ এবং লেখার মাঝে ফাঁকা জায়গা */
    margin-bottom: 4rem;
    width: 100%;
  }

  /* ২. ইমেজের সাইজ এবং পজিশন ঠিক করা */
  .scroll-article .article-image {
    flex: 0 0 10%; /* ইমেজ স্ক্রিনের ৫০% জায়গা নিবে */
    height: 200px; /* আপনার পছন্দমতো উচ্চতা দিন */
  }

  .scroll-article .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ইমেজ যাতে ফেটে না যায় বা চ্যাপ্টা না হয় */
    border-radius: 4px;
  }

  /* ৩. টেক্সট বা লেখার অংশটুকু সাজানো */
  .scroll-article .article-content {
    flex: 1; /* বাকি ৫০% জায়গা লেখার জন্য */
    display: flex;
    flex-direction: column;
    justify-content: center; /* লেখাকে ইমেজের মাঝ বরাবর বা উপরে রাখতে পারেন */
    padding: 0; /* আগের অতিরিক্ত প্যাডিং সরিয়ে দেওয়া হলো */
  }

  .scroll-article .article-content p {
    padding: 0 !important; /* আগের ১০ রেম প্যাডিং বাদ দিয়ে দিন */
    margin: 0;
    text-align: justify; /* লেখাগুলো দুই পাশে সমান দেখাবে */
    font-size: 1.1rem;
    line-height: 1.8;
  }

  /* ৪. কন্টেইনার এবং সাইডবার সেটিংস */
  .content-wrapper {
    flex-direction: column !important; /* গ্যালারি এবং সাইডবার নিচে রাখার জন্য */
    max-width: 1000px;
    margin: 0 auto;
  }

  .scrollable-articles-container {
    margin-right: 0 !important;
    width: 100% !important;
  }

 
  /* ৩. সাইডবারকে সাধারণ এলিমেন্টে রূপান্তর করা */
  .fixed-sidebar {
    position: static !important; /* স্ক্রিনে আটকে থাকা বন্ধ */
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    margin-top: 4rem; /* গ্যালারি থেকে দূরত্ব */
    border-top: 1px solid #ccc;
    padding: 1rem 0;
    padding-left: 0;
    order: 10; /* সব কন্টেন্টের নিচে পাঠানোর জন্য */
  }

  /* ৪. সাইডবারের ভিতরের কন্টেন্ট সাজানো */
  .sidebar-content {
    text-align: center; /* মিডল অ্যালাইনমেন্ট */
    max-width: 800px;
    margin: 0 auto;
  }

  .project-list {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* লিস্টটি ডেক্সটপে ২ কলামে দেখাবে */
    gap: 1rem;
    text-align: left;
    margin-top: 2rem;
  }

  /* ৫. গ্যালারি গ্রিড ঠিক করা */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    width: 100%;
    margin-bottom: 2rem;
  }
}

/* বড় স্ক্রিনের (1440px) জন্য বাড়তি মার্জিনগুলো রিসেট করা */
@media screen and (min-width: 1440px) {
  .scrollable-articles-container {
    margin-right: 0 !important;
  }

  
  .content-wrapper {
    max-width: 1000px;
  }

  .nav {
    padding: 0 5rem;
  }
}