
:root {
  --ink: #1a1a1a;
  --paper: #faf8f5;
  --cream: #f3efe8;
  --warm: #e8e0d4;
  --accent: #8b7355;
  --accent-light: #b8a68e;
  --accent-dark: #5e4d38;
  --gold: #c9a84c;
  --muted: #6b6560;
  --border: #d4cec5;
  --serif-en: 'Playfair Display', 'Georgia', serif;
  --serif-body: 'Cormorant Garamond', 'Georgia', serif;
  --serif-bn: 'Noto Serif Bengali', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--serif-bn);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.8;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--paper); }

/* ─── GRAIN OVERLAY ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--accent-light); border-radius: 3px; }

/* ─── NAVIGATION ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.4s ease;
}
.nav.scrolled { box-shadow: 0 2px 30px rgba(0,0,0,0.06); }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  font-family: var(--serif-en);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

/* ─── DROPDOWN MENU ─── */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex !important;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

.dropdown-arrow {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 8px 8px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  z-index: 1001;
  margin: 0;
  padding: 8px 0;
  backdrop-filter: blur(10px);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
}

.dropdown-menu a:hover {
  background: var(--cream);
  color: var(--ink);
  padding-left: 1.75rem;
  box-shadow: inset 3px 0 0 var(--accent);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}
.hamburger span {
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.3s;
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(139,115,85,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(201,168,76,0.04) 0%, transparent 50%),
    var(--paper);
}

.hero-decoration {
  position: absolute;
  right: -5%;
  top: 10%;
  width: 500px;
  height: 500px;
  border: 1px solid var(--border);
  border-radius: 50%;
  opacity: 0.4;
  animation: float 20s ease-in-out infinite;
}
.hero-decoration::after {
  content: '';
  position: absolute;
  inset: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(5deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text { animation: fadeInUp 1s ease 0.3s both; }

.hero-label {
  font-family: var(--serif-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hero-label::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.hero-name {
  font-family: var(--serif-en);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.hero-name-bn {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.hero-quote {
  font-family: var(--serif-body);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 2rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--gold);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: all 0.4s ease;
  border: 1px solid var(--ink);
}
.hero-cta:hover {
  background: transparent;
  color: var(--ink);
}
.hero-cta svg { width: 16px; height: 16px; transition: transform 0.3s; }
.hero-cta:hover svg { transform: translateX(4px); }

.hero-image {
  position: relative;
  animation: fadeInUp 1s ease 0.6s both;
}

.hero-img-wrapper {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--warm);
}
.hero-img-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--warm) 50%, var(--cream) 100%);
  z-index: 1;
}

.hero-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  color: var(--accent-dark);
  font-size: 1rem;
  opacity: 2;
}
.hero-img-placeholder svg { width: 60px; height: 60px; margin-bottom: 0.5rem; opacity: 0.4; }

.hero-img-frame {
  position: absolute;
  top: -15px;
  left: -15px;
  right: 15px;
  bottom: 15px;
  border: 1px solid var(--accent-light);
  z-index: 0;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.hero-stat-num {
  font-family: var(--serif-en);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-dark);
}
.hero-stat-label {
  font-size: 0.8rem;
  color: var(--muted);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── SECTION COMMONS ─── */
.section {
  padding: 6rem 2rem;
}
.section-alt { background: var(--cream); }

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 4rem;
}

.header-with-image {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: start;
}

.header-image {
  position: relative;

}

.header-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.header-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-btn {
  align-self: flex-start;
  padding: 0.2rem 1.5rem;
  background: var(--accent);
  color: var(--paper);
  text-decoration: none;
  font-weight: 500;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.3s;
  margin-top: 1rem;
}

.news-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139,115,85,0.3);
}

@media (max-width: 900px) {
  .header-with-image {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .header-image {
    height: 200px;
  }
}

@media (max-width: 650px) {
  .header-with-image {
    grid-template-columns: 1fr;
  }

  .header-image {
    height: 180px;
  }
}

.section-label {
  font-family: var(--serif-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--serif-en);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}
.section-title-bn {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 500;
  color: var(--muted);
  margin-top: 0.25rem;
}

.section-line {
  width: 50px;
  height: 1.5px;
  background: var(--gold);
  margin: 1.5rem auto 0;
}

/* ─── ABOUT ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: start;
}

.about-image {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--warm);
  overflow: hidden;
}
.about-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--cream) 0%, var(--warm) 100%);
}
.about-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--accent);
  opacity: 3;
}

.about-text h3 {
  font-family: var(--serif-en);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.about-subtitle {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1rem;
  line-height: 2;
}

.about-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.about-detail-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
}
.about-detail-value {
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 500;
}

/* ─── BOOKS ─── */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2.5rem;
}

.book-card {
  text-align: center;
  cursor: pointer;
  transition: transform 0.4s ease;
}
.book-card:hover { transform: translateY(-8px); }

.book-cover {
  aspect-ratio: 2/3;
  background: linear-gradient(145deg, var(--accent-dark), var(--accent));
  margin-bottom: 1.2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 4px 6px 20px rgba(0,0,0,0.15);
  transition: box-shadow 0.4s;
}
.book-card:hover .book-cover {
  box-shadow: 6px 10px 30px rgba(0,0,0,0.2);
}

.book-cover-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  color: var(--paper);
}

.book-cover-inner .book-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.book-cover-title {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.book-cover-year {
  position: absolute;
  bottom: 1rem;
  font-family: var(--serif-body);
  font-size: 0.85rem;
  opacity: 0.6;
}

.book-spine {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 12px;
  background: rgba(0,0,0,0.15);
}

.book-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.book-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.book-card:nth-child(2) .book-cover { background: linear-gradient(145deg, #3d3d3d, #6b6560); }
.book-card:nth-child(3) .book-cover { background: linear-gradient(145deg, #5e4d38, #8b7355); }
.book-card:nth-child(4) .book-cover { background: linear-gradient(145deg, #2c3e50, #4a6741); }
.book-card:nth-child(5) .book-cover { background: linear-gradient(145deg, #704214, #a0522d); }

/* ─── BOOK MODAL ─── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,26,26,0.9);
  backdrop-filter: blur(8px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}
.modal-content {
  background: var(--paper);
  max-width: 1000px;
  max-height: 90vh;
  width: 100%;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
  transform: scale(0.8) translateY(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal.active .modal-content {
  transform: scale(1) translateY(0);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--cream);
}
.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.modal-close:hover {
  background: var(--accent-light);
  color: var(--accent-dark);
}
.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem;
  max-height: 70vh;
  overflow-y: auto;
  min-height: 500px;
}

.modal-image {
  aspect-ratio: 2/3;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.modal-info h3 {
  font-family: var(--serif-en);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.modal-meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.modal-price {
  font-family: var(--serif-en);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin: 1rem 0;
}
.modal-desc {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}
.modal-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}
.btn-buy {
  flex: 1;
  padding: 1rem 2rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s;
}
.btn-buy:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139,115,85,0.3);
}
.btn-download {
  padding: 1rem 2rem;
  background: var(--accent);
  color: var(--paper);
  text-decoration: none;
  text-align: center;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.3s;
}
.btn-download:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}
.modal-reviews h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.review {
  border-left: 3px solid var(--gold);
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.review-author {
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.25rem;
  font-size: 0.9rem;
}
.modal-designer {
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 2rem;
}
@media (max-width: 768px) {
  .modal-body {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
  }
  .modal-buttons {
    flex-direction: column;
  }
}

/* ─── POEMS ─── */
.poems-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.poem-card {
  background: var(--paper);
  padding: 2.5rem;
  border: 1px solid var(--border);
  position: relative;
  transition: all 0.4s ease;
}
.section-alt .poem-card { background: white; }

.poem-card::before {
  content: '"';
  font-family: var(--serif-en);
  font-size: 5rem;
  color: var(--accent-light);
  position: absolute;
  top: -0.5rem;
  left: 1.5rem;
  line-height: 1;
  opacity: 0.3;
}

.poem-card:hover {
  border-color: var(--accent-light);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.poem-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--ink);
}

.poem-excerpt {
  font-size: 1rem;
  color: var(--muted);
  line-height: 2.2;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.poem-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--cream);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}

/* ─── AWARDS TIMELINE ─── */
.awards-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.awards-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
  transform: translateX(-50%);
}

.award-item {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: center;
  margin-bottom: 3rem;
  gap: 1rem;
}

.award-content {
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: var(--paper);
  transition: all 0.3s;
  border-radius: 8px;
}
.award-content:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.award-item:nth-child(odd) .award-content { text-align: right; }
.award-item:nth-child(even) .award-content {
  grid-column: 3;
  text-align: left;
}
.award-item:nth-child(even) .award-year-col {
  grid-column: 2;
  grid-row: 1;
}

.award-year-col {
  text-align: center;
  position: relative;
  padding: 0 0.5rem;
}

.award-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--paper);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.award-year {
  font-family: var(--serif-en);
  font-size: clamp(0.75rem, 2.5vw, 1rem);
  font-weight: 700;
  color: var(--accent);
  margin-top: 0.3rem;
  line-height: 1.3;
}

.award-name {
  font-size: clamp(0.95rem, 3vw, 1.1rem);
  font-weight: 600;
  margin-bottom: 0.25rem;
  line-height: 1.4;
  color: var(--ink);
}

.award-org {
  font-size: clamp(0.8rem, 2.5vw, 0.85rem);
  color: var(--muted);
  line-height: 1.4;
}

/* ─── GALLERY ─── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 1rem;
}

.gallery-item {
  background: var(--warm);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all 0.4s;
}
.gallery-item:hover { transform: scale(1.02); z-index: 2; }

.gallery-item:nth-child(1) { grid-row: span 2; }
.gallery-item:nth-child(4) { grid-column: span 2; }

.gallery-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.8rem;
  opacity: 0.4;
  background: linear-gradient(135deg, var(--cream), var(--warm));
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,26,26,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s;
  color: white;
  font-size: 0.9rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ─── BLOG ─── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-card {
  border: 1px solid var(--border);
  background: var(--paper);
  transition: all 0.4s;
  overflow: hidden;
}
.blog-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.blog-thumb {
  aspect-ratio: 16/9;
  background: var(--warm);
  position: relative;
}
.blog-thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.8rem;
  opacity: 0.4;
}

.blog-body { padding: 1.5rem; }

.blog-date {
  font-family: var(--serif-body);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0.5rem 0;
  line-height: 1.5;
}

.blog-excerpt {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: gap 0.3s;
}
.blog-read-more:hover { gap: 0.8rem; }

/* ─── EVENTS ─── */
.events-list {
  max-width: 800px;
  margin: 0 auto;
}

.event-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: all 0.3s;
}
.event-item:hover { padding-left: 1rem; }

.event-date-box {
  text-align: center;
  padding: 1rem;
  background: var(--ink);
  color: var(--paper);
}

.event-day {
  font-family: var(--serif-en);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}
.event-month {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

.event-info h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.event-info p {
  font-size: 0.9rem;
  color: var(--muted);
}

.event-badge {
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid var(--accent);
  color: var(--accent);
  white-space: nowrap;
}
.event-badge.upcoming {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ─── CONTACT ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h3 {
  font-family: var(--serif-en);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 18px; height: 18px; color: var(--accent); }

.contact-detail-text { font-size: 0.95rem; }
.contact-detail-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }

.form-group { position: relative; }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border);
  background: var(--paper);
  font-family: var(--serif-bn);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.3s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }

.form-group textarea { resize: vertical; min-height: 140px; }

.form-submit {
  padding: 1rem 2.5rem;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  font-family: var(--serif-bn);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.4s;
  align-self: flex-start;
}
.form-submit:hover {
  background: transparent;
  color: var(--ink);
}

/* ─── FOOTER ─── */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 4rem 2rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand {
  font-family: var(--serif-en);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  max-width: 350px;
}

.footer h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.5rem;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}
.footer-links a:hover { color: white; }

.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

.social-links {
  display: flex;
  gap: 1rem;
}
.social-links a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: all 0.3s;
  font-size: 0.85rem;
}
.social-links a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ─── SCROLL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── GALLERY MODAL ─── */
.gallery-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,26,26,0.95);
  backdrop-filter: blur(12px);
  z-index: 10001;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-modal.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}
.gallery-modal-content {
  background: rgba(250,248,245,0.98);
  max-width: 95vw;
  max-height: 95vh;
  width: auto;
  height: auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  transform: scale(0.85) translateY(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
}
.gallery-modal.active .gallery-modal-content {
  transform: scale(1) translateY(0);
}
.gallery-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.75rem;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.gallery-modal-header h3 {
  margin: 0;
  font-family: var(--serif-bn);
  font-size: 1.1rem;
  color: var(--ink);
  font-weight: 500;
}
.gallery-modal-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  max-height: 80vh;
  overflow: auto;
}
.gallery-modal-image {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
  background: var(--paper);
}

/* ─── TABLET (max 900px) ─── */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-label { justify-content: center; margin-top: 40px;}
  .hero-image { max-width: 350px; margin: 0 auto; }
  .hero-stats { justify-content: center; }
  .hero-cta { margin: 0 auto; }

  .about-grid { grid-template-columns: 1fr; }
  .about-image { max-width: 300px; }

  .poems-container { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }

  .awards-timeline::before { left: 35px; }
  .award-item {
    grid-template-columns: 70px 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    align-items: start;
  }
  .award-year-col { grid-row: 1; order: 1; }
  .award-item:nth-child(odd) .award-content { text-align: left; order: 2; }
  .award-item:nth-child(even) .award-content { grid-column: 2; order: 2; }

  .gallery-modal { padding: 1rem; }
  .gallery-modal-content { max-width: 98vw; max-height: 98vh; border-radius: 12px; }
  .gallery-modal-header { padding: 1rem; }
  .gallery-modal-body { padding: 1.5rem 1rem; }
  .gallery-modal-image { max-height: 70vh; }
}

/* ─── MOBILE (max 650px) ─── */
@media (max-width: 650px) {

  /* Hamburger visible */
  .hamburger { display: flex; }
  .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  /* Nav links - slide down panel */
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0 1rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
    display: flex !important;
    flex-direction: column;
    gap: 0;
  }
  .nav-links.active {
    max-height: 85vh;
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
  }

  /* Top-level nav items */
  .nav-links > li {
    width: 100%;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--cream);
  }
  .nav-links > li:last-child { border-bottom: none; }

  /* Top-level links */
  .nav-links > li > a,
  .nav-links > li > .dropdown-toggle {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    color: var(--ink);
    font-weight: 500;
    text-decoration: none;
    width: 100%;
  }
  .nav-links a::after { display: none; }

  /* Dropdown parent */
  .dropdown { width: 100%; }

  .dropdown-toggle .dropdown-arrow {
    display: inline-block !important;
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    margin-left: auto;
    flex-shrink: 0;
  }
  .dropdown.active .dropdown-arrow { transform: rotate(180deg); }

  /* ── DROPDOWN MENU (mobile) ── */
  .dropdown-menu {
    position: static !important;
    background: var(--cream);
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transform: none !important;
    transition: max-height 0.3s ease;
    margin: 0;
    padding: 0 !important;
    width: 100%;
    list-style: none;
  }
  .dropdown.active .dropdown-menu {
    max-height: 300px;
  }

  /* Dropdown sub-items — KEY FIX: override nav-links > li border */
  .dropdown-menu li {
    border: none !important;
    border-bottom: 1px solid rgba(212,206,197,0.4) !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
  }
  .dropdown-menu li:last-child { border-bottom: none !important; }

  /* Dropdown sub-links */
  .dropdown-menu a {
    display: block !important;
    padding: 0.6rem 1.25rem 0.6rem 2rem !important;
    font-size: 0.88rem !important;
    color: var(--muted) !important;
    font-weight: 400 !important;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
    line-height: 1.5;
    white-space: normal;
    text-decoration: none;
  }
  .dropdown-menu a::after { display: none !important; }
  .dropdown-menu a:hover,
  .dropdown-menu a:focus {
    background: var(--warm) !important;
    color: var(--ink) !important;
    border-left-color: var(--accent);
    padding-left: 2.25rem !important;
  }

  /* Other mobile layout fixes */
  .awards-timeline::before { left: 20px; opacity: 0.6; }
  .award-item {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
    text-align: center;
  }
  .award-year-col { order: 1; grid-column: 1; margin-bottom: 0.25rem; padding: 0; }
  .award-content {
    order: 2;
    padding: 1.25rem 1rem;
    border-left: 3px solid var(--gold);
    border-radius: 0 8px 8px 0;
    text-align: left;
    margin-left: 10px;
  }

  .books-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .gallery-grid { grid-auto-rows: 150px; }
  .event-item { grid-template-columns: 80px 1fr; gap: 1rem; }
  .event-badge { grid-column: 2; }
  .about-details { grid-template-columns: 1fr; }


}

/* ─── EXTRA SMALL (max 400px) ─── */
@media (max-width: 400px) {
  .section { padding: 4rem 1rem; }
  .awards-timeline { padding: 0; }
  .awards-timeline::before { left: 15px; }
  .award-item { margin-bottom: 1.5rem; }
  .award-content { padding: 1rem; margin-left: 5px; border-left-width: 2px; }
  .award-name { font-size: 0.9rem; }
  .award-org { font-size: 0.75rem; }
  .award-year { font-size: 0.8rem; }
  .award-dot { width: 10px; height: 10px; }
  .section-title { font-size: clamp(1.5rem, 6vw, 2rem); }
  .section-title-bn { font-size: clamp(1rem, 4vw, 1.3rem); }
}

/* ─── MODAL MOBILE ─── */
@media (max-width: 480px) {
  .modal { padding: 1rem; }
  .modal-content { margin: 1rem; max-height: 95vh; }
  .modal-header { padding: 1rem; flex-direction: column; gap: 1rem; text-align: center; }
  .modal-title { margin: 0; }
  .modal-body { padding: 1rem; grid-template-columns: 1fr; gap: 1rem; max-height: 70vh; overflow-y: auto; }
  .modal-image { aspect-ratio: 3/4; max-height: 50vh; }
}

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  .award-content { transition: none; }
  .award-content:hover { transform: none; box-shadow: none; }
}
