/* ==========================================================================
   Chandrani Sinha - Investigative Multimedia Journalist Portfolio
   High-Fidelity Stylesheet with Refined Gentle Typography & HD Editorial Cards
   ========================================================================== */

:root {
  --primary-blue: #0c549c;
  --primary-blue-hover: #09427b;
  --primary-dark: #050d18;
  --footer-dark: #040a12;
  --hero-navy: #061224;
  --accent-cyan: #22d3ee;
  --accent-blue: #38bdf8;
  --newsletter-blue: #0b4a8b;
  --newsletter-dark-btn: #061c36;
  --card-grey: #6b7280;
  --card-grey-dark: #4b5563;
  --text-dark: #0f172a;
  --text-body: #334155;
  --text-light: #94a3b8;
  --bg-light: #ffffff;
  --bg-slate: #f8fafc;
  --border-light: #e2e8f0;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 25px rgba(34, 211, 238, 0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Sticky Top Navigation Bar (Gentle & Refined Typography)
   ========================================================================== */
.top-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  padding: 16px 0;
  transition: all var(--transition-normal);
  background: transparent;
}

.top-navbar.scrolled {
  background: rgba(4, 11, 21, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 8px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-brand-logo {
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
  transition: transform var(--transition-fast);
}

.nav-brand-logo:hover {
  transform: scale(1.03);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

/* Gentle, refined header menu link styling */
.nav-links a {
  color: rgba(226, 232, 240, 0.82);
  font-size: 0.92rem;
  font-weight: 450;
  letter-spacing: 0.025em;
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: 9999px;
  transition: width 0.25s ease, left 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
  left: 0;
}

/* Admin Elements - HIDDEN BY DEFAULT (Only visible when admin is logged in) */
.nav-admin-item {
  display: none !important;
}

body.admin-authenticated .nav-admin-item {
  display: inline-flex !important;
}

.nav-admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: rgba(34, 211, 238, 0.16);
  border: 1px solid rgba(34, 211, 238, 0.45);
  color: var(--accent-cyan) !important;
  border-radius: 9999px;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  transition: all var(--transition-fast);
}

.nav-admin-btn:hover {
  background: var(--accent-cyan);
  color: var(--primary-dark) !important;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.4);
  transform: translateY(-1px);
}

.nav-admin-btn::after {
  display: none !important;
}

.nav-logout-btn {
  background: transparent;
  border: none;
  color: #f87171 !important;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  transition: opacity 0.2s ease;
}

.nav-logout-btn:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.4rem;
  cursor: pointer;
}

/* ==========================================================================
   Floating Social Icons (Left Sidebar)
   ========================================================================== */
.floating-social-bar {
  position: fixed;
  left: 20px;
  top: 35%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 100;
}

.social-circle-link {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  position: relative;
}

.social-circle-link:hover {
  transform: scale(1.15) translateX(4px);
}

.social-circle-link.fb {
  background: #1877f2;
}
.social-circle-link.tw {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.social-circle-link.yt {
  background: #ff0000;
}

.social-circle-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(180deg, #030811 0%, #061324 70%, #071a30 100%);
  color: #ffffff;
  padding-top: 115px;
  padding-bottom: 70px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 64px);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -10%;
  right: 10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(12, 84, 156, 0.3) 0%, rgba(34, 211, 238, 0.07) 50%, transparent 70%);
  filter: blur(55px);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  max-width: 650px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-bio-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-bio-p {
  font-size: 0.98rem;
  line-height: 1.75;
  color: rgba(241, 245, 249, 0.92);
  text-align: justify;
}

.hero-bio-p strong {
  color: #ffffff;
  font-weight: 600;
}

.hero-bio-p a {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Portrait Column (Enlarged + Signature Placed Right Below Image) */
.hero-portrait-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-portrait-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
}

.portrait-frame {
  position: relative;
  width: 350px;
  height: 425px;
  max-width: 90vw;
  border-radius: 50% / 50%;
  padding: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38) 0%, rgba(34, 211, 238, 0.5) 50%, rgba(12, 84, 156, 0.75) 100%);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.6), 0 0 35px rgba(34, 211, 238, 0.28);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.portrait-frame:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), 0 0 45px rgba(34, 211, 238, 0.45);
}

.portrait-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50% / 50%;
  display: block;
}

/* Hero Portrait Change Button - Admin Only (Hidden from Normal Users) */
.portrait-edit-trigger {
  display: none !important; /* STRICTLY HIDDEN ON NORMAL WEBSITE */
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(4, 11, 21, 0.92);
  border: 1px solid rgba(34, 211, 238, 0.65);
  color: #ffffff;
  padding: 7px 16px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  opacity: 0;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

/* Revealed ONLY when logged in as admin */
body.admin-authenticated .portrait-edit-trigger {
  display: inline-flex !important;
  opacity: 0.85;
}

body.admin-authenticated .portrait-frame:hover .portrait-edit-trigger,
body.admin-authenticated .portrait-edit-trigger:hover {
  opacity: 1;
  background: var(--accent-cyan);
  color: var(--primary-dark);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.5);
  transform: translateX(-50%) translateY(-2px);
}

/* Signature Placed Directly Below the Hero Right Image (Small, Thin, Professional) */
.portrait-signature-box {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
  opacity: 0.9;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.portrait-signature-box:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.portrait-signature-img {
  max-width: 145px;
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Section Common Styles
   ========================================================================== */
.section {
  padding: 75px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  color: var(--primary-blue);
  font-size: 2.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 8px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Publications Section (HD Magazine Cards with Images)
   ========================================================================== */
.publications-section {
  background-color: var(--bg-slate);
}

.publications-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.publication-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.publication-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 36px rgba(12, 84, 156, 0.14);
  border-color: #93c5fd;
}

/* Cover Image Container */
.pub-card-thumb-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f172a;
}

.pub-card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.publication-card:hover .pub-card-thumb-img {
  transform: scale(1.08);
}

/* Floating Badges */
.pub-card-outlet-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(4, 11, 21, 0.88);
  color: #38bdf8;
  backdrop-filter: blur(8px);
  padding: 4px 11px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid rgba(56, 189, 248, 0.3);
  z-index: 2;
}

.pub-card-readtime {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  z-index: 2;
}

/* Card Body */
.pub-card-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pub-card-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pub-card-title {
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--text-dark);
  line-height: 1.45;
  margin-bottom: 10px;
  transition: color var(--transition-fast);
}

.publication-card:hover .pub-card-title {
  color: var(--primary-blue);
}

.pub-card-excerpt {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pub-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.pub-card-author {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.pub-card-author span {
  color: var(--text-dark);
  font-weight: 600;
}

.pub-card-read-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.publication-card:hover .pub-card-read-link {
  gap: 7px;
  color: #0284c7;
}

/* ==========================================================================
   Documentaries Section (Interactive Video Theater)
   ========================================================================== */
.documentaries-section {
  background-color: #ffffff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.documentaries-theater {
  display: grid;
  grid-template-columns: 1.75fr 1fr;
  gap: 28px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.video-screen-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.video-screen-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.video-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.video-screen-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: opacity 0.3s ease;
}

.video-screen-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.video-big-play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(12, 84, 156, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.video-big-play-btn svg {
  width: 26px;
  height: 26px;
  margin-left: 4px;
  fill: currentColor;
}

.video-screen-overlay:hover .video-big-play-btn {
  transform: scale(1.1);
  background: var(--primary-blue);
}

.video-meta-box {
  padding: 4px 2px;
}

.video-active-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.video-active-desc {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.55;
}

/* Video Playlist Sidebar */
.playlist-container {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.playlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 14px;
}

.playlist-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
}

.playlist-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: #e2e8f0;
  padding: 2px 8px;
  border-radius: 9999px;
}

.playlist-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  max-height: 380px;
  padding-right: 4px;
}

.playlist-item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 12px;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.playlist-item:hover {
  border-color: var(--primary-blue);
  background: #f0f7ff;
  transform: translateX(3px);
}

.playlist-item.active {
  border-color: var(--primary-blue);
  background: #e9f2fd;
  box-shadow: 0 2px 8px rgba(12, 84, 156, 0.12);
}

.playlist-thumb-box {
  position: relative;
  width: 88px;
  height: 52px;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
}

.playlist-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.playlist-thumb-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.playlist-thumb-play svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
  margin-left: 1px;
}

.playlist-item.active .playlist-thumb-play {
  background: var(--primary-blue);
}

.playlist-info-box {
  overflow: hidden;
}

.playlist-item-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}

.playlist-item.active .playlist-item-title {
  color: var(--primary-blue);
}

.playlist-item-duration {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   Photo Gallery Section (Attractive Dynamic Editorial Collage)
   ========================================================================== */
.gallery-section {
  background-color: var(--bg-light);
}

/* Filter controls */
.gallery-filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}

.gallery-filter-btn {
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  color: var(--text-body);
  padding: 8px 20px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 550;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gallery-filter-btn:hover {
  background: #e2e8f0;
  color: var(--primary-blue);
}

.gallery-filter-btn.active {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(12, 84, 156, 0.25);
}

/* Attractive Editorial Mosaic Grid */
.gallery-collage-frame {
  background: transparent;
  padding: 0;
}

.gallery-mosaic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 235px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  background: #0f172a;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(12, 84, 156, 0.2);
}

/* Varied spans for editorial collage pattern */
.gallery-item.span-feature {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item.span-tall {
  grid-row: span 2;
}

.gallery-item.span-wide {
  grid-column: span 2;
}

.gallery-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover .gallery-item-img {
  transform: scale(1.08);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(4, 11, 21, 0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-cat {
  display: inline-block;
  background: rgba(34, 211, 238, 0.2);
  color: #22d3ee;
  border: 1px solid rgba(34, 211, 238, 0.4);
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
  margin-bottom: 6px;
  backdrop-filter: blur(4px);
}

.gallery-item-title {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  transform: translateY(8px);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item-title {
  transform: translateY(0);
}

/* ==========================================================================
   Newsletter Section
   ========================================================================== */
.newsletter-section {
  background-color: var(--newsletter-blue);
  color: #ffffff;
  padding: 38px 0;
}

.newsletter-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.newsletter-heading {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
  max-width: 460px;
  line-height: 1.35;
}

.newsletter-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  max-width: 580px;
  justify-content: flex-end;
}

.newsletter-input {
  flex: 1;
  min-width: 130px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: #ffffff;
  color: var(--text-dark);
  font-size: 0.92rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.newsletter-input:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.newsletter-submit-btn {
  background-color: var(--newsletter-dark-btn);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.newsletter-submit-btn:hover {
  background-color: #031021;
  border-color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.footer-section {
  background-color: var(--footer-dark);
  color: #ffffff;
  padding-top: 55px;
}

.footer-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-bottom: 45px;
}

.footer-brand-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo-img {
  max-width: 240px;
  height: auto;
  margin-bottom: 12px;
}

.footer-brand-name {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-brand-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  max-width: 420px;
  line-height: 1.6;
}

.footer-contact-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 14px;
}

.footer-contact-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-light);
  font-size: 0.9rem;
}

.footer-contact-item a:hover {
  color: var(--accent-cyan);
}

.footer-contact-icon {
  width: 18px;
  height: 18px;
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-social-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.footer-social-btn {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: #0a3d75;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.footer-social-btn:hover {
  background: var(--primary-blue);
  transform: translateY(-2px);
}

.footer-social-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.footer-bottom-bar {
  background-color: #083464;
  padding: 14px 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-bar a {
  color: #ffffff;
  font-weight: 600;
}

/* ==========================================================================
   Embossed 3D Admin Access Button in Footer
   ========================================================================== */
.footer-admin-link {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  outline: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  cursor: pointer;
  border-radius: 8px;
  background: linear-gradient(180deg, #1d4ed8 0%, #0c3d75 55%, #08284e 100%);
  border-top: 1.5px solid rgba(255, 255, 255, 0.55);
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  border-right: 1px solid rgba(0, 0, 0, 0.45);
  border-bottom: 2.5px solid #031428;
  box-shadow: 
    0 4px 10px rgba(0, 0, 0, 0.45),
    inset 0 1px 1px rgba(255, 255, 255, 0.5),
    inset 0 -1px 2px rgba(0, 0, 0, 0.4);
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-admin-link svg {
  color: #38bdf8;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
  transition: transform 0.2s ease;
}

.footer-admin-link:hover {
  background: linear-gradient(180deg, #2563eb 0%, #114c8f 55%, #092e59 100%);
  border-top-color: rgba(255, 255, 255, 0.8);
  box-shadow: 
    0 6px 14px rgba(0, 0, 0, 0.5),
    0 0 15px rgba(56, 189, 248, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.7),
    inset 0 -1px 2px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

.footer-admin-link:hover svg {
  transform: scale(1.1);
}

.footer-admin-link:active {
  background: linear-gradient(180deg, #08284e 0%, #0c3d75 55%, #184b85 100%);
  border-top-color: rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    inset 0 3px 6px rgba(0, 0, 0, 0.6),
    inset 0 -1px 1px rgba(255, 255, 255, 0.15),
    0 1px 2px rgba(0, 0, 0, 0.3);
  transform: translateY(2px);
}

/* ==========================================================================
   Modals (Article Reader, Lightbox, Hero Photo Upload & Admin Login)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 10, 18, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.article-modal-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  padding: 36px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .article-modal-card {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-dark);
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: #dc2626;
  transform: rotate(90deg);
}

.article-modal-tag {
  display: inline-block;
  padding: 4px 10px;
  background: #e0f2fe;
  color: var(--primary-blue);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
  margin-bottom: 12px;
}

.article-modal-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.35;
  margin-bottom: 12px;
}

.article-modal-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.article-modal-body {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-body);
}

.article-modal-body p {
  margin-bottom: 16px;
}

.article-modal-footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-blue);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  background: var(--primary-blue-hover);
  box-shadow: 0 4px 12px rgba(12, 84, 156, 0.3);
  transform: translateY(-1px);
}

/* Lightbox Modal */
.lightbox-card {
  max-width: 920px;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img-wrapper {
  max-height: 75vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-img {
  max-height: 75vh;
  max-width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lightbox-info {
  margin-top: 16px;
  text-align: center;
  color: #ffffff;
  max-width: 700px;
}

.lightbox-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.lightbox-caption {
  font-size: 0.9rem;
  color: var(--text-light);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(4px);
}

.lightbox-nav-btn:hover {
  background: rgba(34, 211, 238, 0.85);
  color: var(--primary-dark);
  border-color: var(--accent-cyan);
}

.lightbox-prev-btn {
  left: -60px;
}

.lightbox-next-btn {
  right: -60px;
}

/* Small dialog modals (Login & Hero Change Photo) */
.dialog-modal-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  max-width: 440px;
  width: 100%;
  padding: 30px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.dialog-modal-header {
  margin-bottom: 18px;
}

.dialog-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.dialog-modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #0f172a;
  color: #ffffff;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  border-left: 4px solid var(--accent-cyan);
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

/* ==========================================================================
   Scroll Animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-logo-wrapper {
    display: flex;
    justify-content: center;
  }
  .hero-bio-p {
    text-align: left;
  }
  .publications-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .documentaries-theater {
    grid-template-columns: 1fr;
  }
  .gallery-mosaic-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }
  .gallery-item.span-feature,
  .gallery-item.span-wide {
    grid-column: span 2;
  }
  .footer-main-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }
  .footer-contact-box {
    align-items: center;
    text-align: center;
  }
  .floating-social-bar {
    display: none;
  }
  .lightbox-prev-btn {
    left: 10px;
  }
  .lightbox-next-btn {
    right: 10px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .publications-grid {
    grid-template-columns: 1fr;
  }
  .gallery-mosaic-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }
  .gallery-item.span-feature,
  .gallery-item.span-wide,
  .gallery-item.span-tall {
    grid-column: span 1;
    grid-row: span 1;
  }
  .newsletter-grid {
    flex-direction: column;
    text-align: center;
  }
  .newsletter-form {
    flex-direction: column;
    width: 100%;
  }
  .newsletter-input, .newsletter-submit-btn {
    width: 100%;
  }
  .hero-section {
    padding-top: 90px;
  }
  .footer-bottom-flex {
    flex-direction: column;
    text-align: center;
  }
}
