:root {
  --bg: #fdfbf7;
  /* Warm paper/cream background */
  --card: #ffffff;
  /* Clean white for cards */
  --text: #2c2724;
  /* Dark charcoal/brown for text */
  --muted: #5e5754;
  /* Soft brownish grey */
  --accent: #0d9488;
  /* Deep teal/turquoise - Islamic art inspired */
  --border: #e6e1d6;
  /* Soft border color */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Merriweather', 'Georgia', serif;
  background: #ffffff;
  color: var(--text);
  line-height: 1.7;
  overflow-x: clip;
}

h1,
h2,
h3,
h4,
.logo,
.nav-link {
  font-family: 'Inter', system-ui, sans-serif;
  /* Keep headings modern or mix? Let's use Serif for headings for authority. */
  font-family: 'Playfair Display', 'Merriweather', serif;
}

.container {
  width: calc(100% - 6rem);
  max-width: none;
  margin: auto;
  padding: 1rem 0;
}

.navbar {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(95% - 6rem);
  max-width: none;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  /* visually balanced vertical spacing */
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* Floating Pill Look */
  border-radius: 50px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Gradient hint on top */
.navbar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50px;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.1) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Scrolled State - Slightly more solid/compact */
.navbar-scrolled {
  background: rgba(253, 251, 247, 0.95);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  top: 1rem;
  /* Move up slightly */
  width: calc(100% - 4rem);
  max-width: none;
  /* Expand slightly */
  border-color: rgba(255, 255, 255, 0.2);
  padding: 0.8rem 2rem;
  /* Compress slightly on scroll */
}

/* Homepage Initial Transparency - but still Glassy */
.navbar-transparent {
  background: rgba(255, 255, 255, 0.15);
  /* Glassy dark/light */
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.logo {
  font-weight: 700;
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.5rem);
  line-height: 1.2;
  /* Fix vertical alignment */
  font-family: 'Playfair Display', serif;
  color: var(--accent);
  z-index: 1;
}

.navbar-transparent .logo {
  color: #fff;
}



.navbar nav {
  display: flex;
  flex: 1;
  justify-content: space-evenly;
  margin: 0 1vw;
  z-index: 1;
  margin-right: auto;
  /* Push nav and search to the right */
}

.navbar nav a {
  margin-left: 0;
  /* Reset margins */
  text-decoration: none;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.75rem, 0.7rem + 0.05vw, .9rem);
  padding: 0.5rem 0.4vw;
  border-radius: 30px;
  transition: all 0.3s ease;
  color: var(--muted);
  position: relative;
}



/* Floating Link Hover Effect */
.navbar nav a:hover {
  background: rgba(13, 148, 136, 0.1);
  /* Light accent tint */
  color: var(--accent);
  transform: translateY(-1px);
}

/* =========================================
   MEGA-MENU / DROPDOWN NAV STYLES
   ========================================= */

/* Dropdown Container */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

/* Dropdown Content Frame */
.dropdown-menu {
  display: block;
  /* Important for visible/opacity transition */
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: white;
  min-width: 220px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 0.5rem 0;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  /* Soft transition without jitter */
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.3s;
  pointer-events: none;
}

/* The Hover Bridge is exactly the width of the link */
.nav-dropdown>a::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 25px;
  /* Bridge to the dropdown */
  background: transparent;
}

/* Dropdown Links */
.dropdown-menu a {
  display: block;
  padding: 0.6rem 1.2rem !important;
  color: var(--text) !important;
  font-size: 0.9rem !important;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  font-weight: 500 !important;
  white-space: nowrap;
  text-align: left !important;
  border-radius: 8px !important;
  margin: 0.2rem 0.5rem !important;
  transition: all 0.2s ease !important;
  border: none !important;
}

/* Dropdown link hover */
.dropdown-menu a:hover {
  background: rgba(13, 148, 136, 0.05) !important;
  color: var(--accent) !important;
  padding-left: 1.5rem !important;
  transform: none !important;
}

/* Show Dropdown on Navbar Sub-item Hover */
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0s;
}

.nav-dropdown:hover>a {
  color: var(--accent);
  /* keep nav link colored */
}

/* --- Mega Menu --- */
.mega-dropdown {
  position: static;
}

.mega-menu {
  width: 100%;
  max-width: none;
  left: 0;
  /* Override translateX completely */
  transform: translateY(10px);
  padding: 2rem;
  border-radius: 20px;
}

.navbar nav .nav-dropdown.mega-dropdown:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.mega-column h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.4rem;
  text-align: left;
}

.dropdown-menu.mega-menu .mega-column a {
  padding: 0.4rem 0.6rem !important;
  margin: 0 !important;
  color: var(--muted) !important;
  font-size: 0.85rem !important;
  white-space: normal;
  display: block;
  line-height: 1.4;
  border-radius: 6px !important;
  transition: all 0.2s ease !important;
  text-align: left !important;
}

.dropdown-menu.mega-menu .mega-column a:hover {
  background: rgba(13, 148, 136, 0.05) !important;
  color: var(--accent) !important;
  padding-left: 0.9rem !important;
}

.dropdown-menu.mega-menu .mega-column a.mega-heading-link {
  font-weight: 700 !important;
  color: var(--accent) !important;
  text-transform: uppercase;
  font-size: 0.85rem !important;
  border-bottom: 2px solid var(--border) !important;
  padding-bottom: 0.4rem !important;
  padding-left: 0 !important;
  margin-bottom: 0.5rem !important;
  border-radius: 0 !important;
  text-align: left !important;
  background: transparent !important;
}

.dropdown-menu.mega-menu .mega-column a.mega-heading-link:hover {
  transform: translateY(-1px) !important;
}

/* Mobile Menu Button - Hidden by default */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
  padding: 0.5rem;
}

/* Responsive Header */
@media (max-width: 1050px) {
  .navbar {
    width: calc(95% - 2rem);
    max-width: none;
    padding: 0.8rem 1.2rem;
    top: 1rem;
    justify-content: space-between;
  }

  /* Group Search and Menu on the right */
  .mobile-menu-btn {
    display: block;
    margin-left: 0.5rem;
    order: 3;
    /* Ensure it's last */
  }

  .search-wrapper {
    margin-left: auto !important;
    /* Push to right if logo is on left */
    order: 2;
    margin-right: 0;
  }

  .logo {
    order: 1;
    font-size: 1.2rem;
  }

  .navbar nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    border-radius: 20px;
    margin-top: 10px;
    display: none;
    border: 1px solid var(--border);
    z-index: 999;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }

  .navbar nav.active {
    display: flex;
  }

  .navbar nav a {
    width: 100%;
    text-align: center;
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
  }

  /* Fix dropdown on mobile */
  .nav-dropdown {
    width: 100%;
    flex-direction: column;
  }

  .dropdown-menu {
    position: static;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    display: none;
    box-shadow: none;
    border: none;
    padding: 0;
    margin-top: 0.5rem;
    background: transparent;
  }

  .nav-dropdown:hover .dropdown-menu,
  .nav-dropdown:focus-within .dropdown-menu,
  .nav-dropdown:active .dropdown-menu,
  .nav-dropdown.mobile-expanded .dropdown-menu {
    display: block;
    transform: none;
  }

  .dropdown-menu.mega-menu {
    padding: 0;
  }

  .mega-menu-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .mega-column h4 {
    text-align: center;
    margin-top: 0.5rem;
  }

  .dropdown-menu a,
  .dropdown-menu.mega-menu .mega-column a {
    text-align: center !important;
    padding: 0.4rem 0.6rem !important;
  }

  .dropdown-menu.mega-menu .mega-column a.mega-heading-link {
    text-align: center !important;
    padding-left: 0 !important;
    text-transform: uppercase;
    /* Ensure consistency */
    border-bottom: 2px solid var(--border) !important;
    margin-bottom: 0.5rem !important;
  }
}

.navbar-transparent nav a {
  color: rgba(255, 255, 255, 0.9);
}

.navbar-transparent nav a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.navbar-scrolled nav a {
  color: var(--muted);
}

.navbar-scrolled nav a:hover {
  background: rgba(13, 148, 136, 0.1);
  color: var(--accent);
}


.hero-article-style {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  padding: 3rem;
  text-align: left;
  /* Reset centering */
  background: var(--card);
  /* Solid card background */
  border: 1px solid var(--border);
  min-height: auto;
  /* Allow content to dictate height */
  overflow: hidden;

  /* Keep floating rounded look */
  margin-top: 125px;
  width: calc(100% - 6rem);
  max-width: none;
  /* Slightly tighter for reading */
  margin-left: auto;
  margin-right: auto;
  border-radius: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  /* Softer shadow for card */
}

/* ---------- HERO SLIDER ENHANCEMENTS ---------- */
.hero-slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* Hide overflow from slider */
  border-radius: 40px;
  /* Match the article style margins */
  margin-top: 125px;
  width: calc(100% - 6rem);
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.hero-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  /* Hide scrollbar IE/Edge */
  scrollbar-width: none;
  /* Hide scrollbar Firefox */
}

.hero-slider::-webkit-scrollbar {
  display: none;
  /* Hide scrollbar Chrome/Safari/Webkit */
}

.hero-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  /* Reset margins since the container handles it now */
  margin-top: 0;
  width: 100%;
  border-radius: 0;
  /* Let container clip it */
  box-shadow: none;
  /* Let container provide shadow */
  border: none;
}

/* Slider Overlays & Controls */

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 10;
}

.hero-arrow:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.hero-prev {
  left: 5px;
}

.hero-next {
  right: 5px;
}

.hero-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hero-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dots .dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  transition: all 0.3s ease;
}

.hero-image-container:hover .play-overlay {
  background: var(--accent);
  transform: translate(-50%, -50%) scale(1.1);
}

/* Remove old pseudo-elements for bg image */
.hero-article-style::before,
.hero-article-style::after {
  display: none;
}

.hero-image-container {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.hero-article-style:hover .hero-image-container img {
  transform: scale(1.05);
}

.hero-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}



.hero-content h1 {
  color: var(--text);
  /* Dark text on light card */
  font-size: clamp(2rem, 1.5rem + 1.5vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: none;
  /* Clean text */
}

.hero-content p {
  color: var(--muted);
  font-size: clamp(1rem, 0.9rem + 0.3vw, 1.25rem);
  text-shadow: none;
  margin-bottom: 2rem;
  max-width: 100%;
}

.hero-content .read-more {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--accent);
  border-radius: 30px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  width: max-content;
  background: transparent;
}

.hero-content .read-more:hover {
  background-color: var(--accent);
  color: white;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-slider-container {
    width: calc(100% - 2rem);
    margin: 110px auto 1rem;
  }

  .hero-modern {
    height: calc(100vh - 120px) !important;
    padding: 0.5rem !important;
  }

  .hero-article-style {
    grid-template-columns: 1fr;
    grid-template-rows: 40% 60%;
    text-align: left;
    padding: 0.5rem !important;
    gap: 0.5rem;
    /* Reduce gap between photo and text */
    width: 100%;
    height: 100%;
  }

  .hero-content {
    padding: 0.5rem;
  }



  .hero-content h1 {
    font-size: 1.4rem !important;
    /* Hard limit for mobile to ensure consistency */
    margin-bottom: 1rem;
  }

  .hero-content p {
    font-size: 0.95rem !important;
    margin-bottom: 1rem;
    line-height: 1.4;
    text-align: left;
  }

  .hero-arrow {
    display: none !important;
  }

  .container {
    width: calc(100% - 2rem) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-top: 1rem !important;
  }

  .page-header,
  .post-page,
  .about-section {
    width: calc(100% - 2rem) !important;
    margin-top: 110px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .category-slider-section {
    margin-top: 1rem !important;
    /* Reduce the 4rem desktop margin */
  }

  .post-page {
    margin-bottom: 110px !important;
  }

  .page-header {
    margin-bottom: 0 !important;
  }

  .about-section {
    margin-bottom: 110px !important;
  }

  .hero-image-container {
    min-height: unset;
    height: 100%;
    order: -1;
    border-radius: 40px;
    /* Image first */
  }

  .post-article {
    padding: 1.2rem !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border-radius: 20px !important;
  }


  .posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
    gap: 1.5rem !important;
  }

  iframe,
  object,
  embed {
    max-width: 100% !important;
    height: auto;
  }
}

@keyframes heroZoom {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.1);
  }
}

.hero h1 {
  font-size: clamp(2.5rem, 2rem + 2vw, 4rem);
  color: #fdfbf7;
  /* Cream/White text */
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.hero p {
  color: #e2e8f0;
  /* Light grey text */
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.5rem);
  margin-top: 1rem;
  font-family: 'Inter', sans-serif;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  max-width: 700px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem;
}

.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  /* Sharper corners for academic look */
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.30);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  /* Softer shadow */
  border-color: var(--accent);
}

.post-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: sepia(0.1);
  /* Slight vintage feel */
}

.post-content {
  padding: 1.5rem;
}

.tag {
  display: inline-block;
  font-size: 1rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  margin-bottom: .5rem;
}

.post-content h3 {
  margin: 0.6rem 0;
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.4rem);
  line-height: 1.3;
}

.post-content p {
  color: var(--muted);
  font-size: clamp(0.9rem, 0.8rem + 0.2vw, 1.1rem);
  font-family: 'Inter', sans-serif;
}

.footer {
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  margin-top: 5rem;
  background: transparent;
  /* Slightly darker bottom */
}

/* Page Header (Featured, Articles, etc.) */
.page-header {
  margin-top: 125px;
  /* Reduced header gap */
  width: calc(100% - 6rem);
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  text-align: center;

  /* White Card Style */
  background: white;
  padding: 2rem 2rem;
  border-radius: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.5);
  margin-bottom: 0;
}

.page-header h1 {
  font-size: clamp(1.8rem, 1.5rem + 1vw, 2.5rem);
  margin-bottom: 0.5rem;
  color: var(--text);
}

.page-header p {
  color: var(--muted);
  font-size: clamp(1rem, 0.9rem + 0.3vw, 1.2rem);
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
  font-family: 'Inter', sans-serif;
}

.breadcrumb-link {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.breadcrumb-current {
  color: var(--text);
  font-weight: 500;
}

/* ---------- Post Page ---------- */

.post-page {
  width: calc(100% - 6rem);
  max-width: none;
  margin: 0 auto;
}

.post-article {
  margin-top: 125px;
  background: white;
  padding: 3rem 4rem;
  border-radius: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.5);
  margin-bottom: 5rem;
  overflow: visible;
}

.post-body-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.post-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.post-tag {
  color: var(--accent);
  font-weight: 600;
}

.post-title {
  font-size: clamp(1.8rem, 1.5rem + 1vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.post-excerpt {
  font-size: clamp(1rem, 0.9rem + 0.3vw, 1.2rem);
  color: var(--muted);
  margin-bottom: 2rem;
}

.post-hero {
  width: 100%;
  border-radius: 16px;
  margin: 0;
  position: sticky;
  top: 140px;
  align-self: start;
  height: fit-content;
  object-fit: cover;
}

@media (max-width: 900px) {
  .post-body-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .post-hero {
    position: static;
    margin-bottom: 1rem;
  }
}

.category-slider-section {
  margin-top: 1rem;
}

.category-slider-section:first-child {
  margin-top: 0;
}

.post-content-full {
  font-size: 1.05rem;
  line-height: 1.8;
}

.post-content-full h2,
.post-content-full h3 {
  margin: 2rem 0 1rem;
}

.post-content-full p {
  margin-bottom: 1.2rem;
}

.post-content-full ul {
  padding-left: 1.4rem;
  margin-bottom: 1.5rem;
}

.post-content-full li {
  margin-bottom: 0.5rem;
}

.post-content-full blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
  margin: 2rem 0;
  color: var(--muted);
  font-style: italic;
}

.hero-modern {
  height: calc(100vh - 130px);
  padding: 2rem 3rem;
}

.featured-post {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem !important;
  /* Increased margin for separation */
  align-items: center;

  /* Card Look */
  background: white;
  padding: 3rem;
  border-radius: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  /* Premium soft shadow */
  border: 1px solid rgba(255, 255, 255, 0.5);
  /* Subtle highlight */
}

.featured-post img {
  width: 100%;
  border-radius: 20px;
}



.featured-content h2 {
  font-size: clamp(1.6rem, 1.3rem + 0.8vw, 2.2rem);
  margin: 1rem 0;
}

.featured-content p {
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.read-more {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.section-title {
  font-size: clamp(1.4rem, 1.1rem + 0.6vw, 1.8rem);
  margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 900px) {
  .featured-post {
    grid-template-columns: 1fr;
    border-radius: 40px;
    padding: 1.5rem !important;
  }
}

/* ---------- About Page ---------- */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 140px;
  width: calc(95% - 6rem);
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.about-image img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.about-text h1 {
  font-size: clamp(2rem, 1.5rem + 1.2vw, 3rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.about-text p {
  color: var(--muted);
  font-size: clamp(1rem, 0.9rem + 0.3vw, 1.2rem);
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-btn {
  background: #f4f1ea;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: all 0.2s;
  border: 1px solid var(--border);
}

.social-btn:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
  border-color: var(--accent);
}

@media (max-width: 900px) {
  .about-section {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: justify;
  }

  .about-image {
    order: -1;
    padding: 0 1rem;
    /* Added left/right margin padding for image */
  }

  .about-text {
    padding: 0 1rem;
    /* Added left/right padding for text */
  }

  .about-text h1 {
    text-align: center;
    /* Keep the title centered */
    font-size: 1.6rem !important;
    /* Smaller title for mobile */
    margin-bottom: 1rem;
  }

  .about-text p {
    font-size: 0.95rem !important;
    /* Smaller paragraph text for mobile */
    line-height: 1.5;
  }

  .social-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* ---------- Admin Panel (Visual Only) ---------- */
.admin-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-right: 1px solid var(--border);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.admin-sidebar h2 {
  font-size: clamp(1.4rem, 1.1rem + 0.6vw, 1.8rem);
  margin-bottom: 3rem;
  color: var(--accent);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-nav a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  border-bottom: none;
}

.admin-nav a:hover,
.admin-nav a.active {
  color: var(--accent);
  background: rgba(13, 148, 136, 0.1);
  padding-left: 1.2rem;
  /* Reset padding shift */
}

.admin-content {
  padding: 3rem 4rem;
  background: transparent;
  /* Show body gradient */
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.admin-header h1 {
  font-size: 2.5rem;
  font-family: 'Playfair Display', serif;
  color: var(--text);
}

.btn-primary {
  background: var(--accent);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  /* Pillow shape like navbar links */
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(13, 148, 136, 0.2);
}

.btn-primary:hover {
  background: #0f766e;
}

.admin-alert {
  position: relative;
  margin-bottom: 1.75rem;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  border: 1px solid transparent;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.35s ease, transform 0.35s ease, max-height 0.35s ease, margin 0.35s ease, padding 0.35s ease;
  max-height: 120px;
  overflow: hidden;
}

.admin-alert::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: 16px 0 0 16px;
  background: currentColor;
  opacity: 0.75;
}

.admin-alert-success {
  color: #0f766e;
  background: rgba(204, 251, 241, 0.92);
  border-color: rgba(20, 184, 166, 0.35);
}

.admin-alert-error {
  color: #b91c1c;
  background: rgba(254, 226, 226, 0.94);
  border-color: rgba(239, 68, 68, 0.35);
}

.admin-alert.is-hiding {
  opacity: 0;
  transform: translateY(-8px);
  max-height: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
}

/* Dashboard Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: var(--card);
  padding: 1.5rem 2rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  /* Soft premium shadow */
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-card h3 {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.stat-card .value {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text);
  font-family: 'Playfair Display', serif;
}

/* Admin Table */
.data-table-container {
  background: var(--card);
  border-radius: 24px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background: rgba(0, 0, 0, 0.02);
  font-weight: 600;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.status-badge {
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-published {
  background: #dcfce7;
  color: #166534;
}

.status-draft {
  background: #f3f4f6;
  color: #4b5563;
}

.action-btn {
  color: var(--muted);
  text-decoration: none;
  margin-right: 0.8rem;
  font-size: 0.9rem;
}

.action-btn:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ---------- Comment Section ---------- */
.comments-section {
  margin-top: 5rem;
  border-top: 1px solid var(--border);
  padding-top: 3rem;
  /* max-width removed */
}

.comments-section h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  font-family: 'Playfair Display', serif;
}

.comment-form {
  background: #f5f5f5;
  /* User preferred green */
  color: white;
  padding: 2rem;
  border-radius: 12px;
  border: none;
  margin-bottom: 3rem;
}

.comment-form h4 {
  color: rgb(0, 0, 0);
  /* Ensure heading is white */
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.comment-form h4 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.comment-item {
  display: flex;
  gap: 1.5rem;
}

.comment-avatar {
  width: 50px;
  height: 50px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.comment-content {
  flex: 1;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-family: 'Inter', sans-serif;
}

.comment-date {
  color: var(--muted);
  font-size: 0.85rem;
}

.comment-content p {
  color: var(--muted);
  line-height: 1.6;
}

/* Articles Slider */
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0rem;
  padding: 0 1rem;
}

.section-title {
  margin-bottom: 0;
  /* Override default */
}

.slider-controls {
  display: flex;
  gap: 1rem;
}

.slider-arrow {
  background: white;
  border: 1px solid var(--border);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: var(--text);
  font-size: 1.2rem;
}

.slider-arrow:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.posts-slider {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  /* Enable Snapping */
  padding: 1rem 0.5rem 2rem 0.5rem;
  /* Bottom padding for shadow */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Firefox */
}

.posts-slider::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.post-card {
  flex: 0 0 calc(25% - 1.5rem);
  /* 4 columns on desktop with gap factored in */
  scroll-snap-align: start;
  /* Snap to this element */
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.30);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.post-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.post-content {
  padding: 1.5rem;
}

@media (max-width: 900px) {
  .post-card {
    flex: 0 0 calc(75% - 1.5rem);
    /* 4 columns on desktop with gap factored in */
    scroll-snap-align: start;
    /* Snap to this element */
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.30);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
  }
}

/* ---------- Admin Panel (Visual Only) ---------- */
.admin-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-right: 1px solid var(--border);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.admin-sidebar h2 {
  font-size: clamp(1.4rem, 1.2rem + 1vw, 1.8rem);
  margin-bottom: 3rem;
  color: var(--accent);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-nav a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  border-bottom: none;
}

.admin-nav a:hover,
.admin-nav a.active {
  color: var(--accent);
  background: rgba(13, 148, 136, 0.1);
  padding-left: 1.2rem;
  /* Reset padding shift */
}

.admin-content {
  padding: 3rem 4rem;
  background: transparent;
  /* Show body gradient */
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.admin-header h1 {
  font-size: 2.5rem;
  font-family: 'Playfair Display', serif;
  color: var(--text);
}

.btn-primary {
  background: var(--accent);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  /* Pillow shape like navbar links */
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(13, 148, 136, 0.2);
}

.btn-primary:hover {
  background: #0f766e;
}

/* Dashboard Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: var(--card);
  padding: 1.5rem 2rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  /* Soft premium shadow */
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-card h3 {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.stat-card .value {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text);
  font-family: 'Playfair Display', serif;
}

/* Admin Table */
.data-table-container {
  background: var(--card);
  border-radius: 24px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background: rgba(0, 0, 0, 0.02);
  font-weight: 600;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.status-badge {
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-published {
  background: #dcfce7;
  color: #166534;
}

.status-draft {
  background: #f3f4f6;
  color: #4b5563;
}

.action-btn {
  color: var(--muted);
  text-decoration: none;
  margin-right: 0.8rem;
  font-size: 0.9rem;
}

.action-btn:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ---------- Comment Section ---------- */
.comments-section {
  margin-top: 5rem;
  border-top: 1px solid var(--border);
  padding-top: 3rem;
  /* max-width removed */
}

.comments-section h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  font-family: 'Playfair Display', serif;
}

.comment-form {
  background: #f5f5f5;
  /* User preferred green */
  color: white;
  padding: 2rem;
  border-radius: 12px;
  border: none;
  margin-bottom: 3rem;
}

.comment-form h4 {
  color: rgb(0, 0, 0);
  /* Ensure heading is white */
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.comment-form h4 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.comment-item {
  display: flex;
  gap: 1.5rem;
}

.comment-avatar {
  width: 50px;
  height: 50px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.comment-content {
  flex: 1;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-family: 'Inter', sans-serif;
}

.comment-date {
  color: var(--muted);
  font-size: 0.85rem;
}

.comment-content p {
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- About Page ---------- */

.about-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  align-items: start;

  /* Clear header */
  margin-top: 125px;
  /* Reduced from potential default */
  width: calc(100% - 6rem);
  margin-left: auto;
  margin-right: auto;

  /* White Card Style */
  background: white;
  padding: 2.5rem;
  border-radius: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.5);
  margin-bottom: 5rem;
}

.about-image img {
  width: 100%;
  border-radius: 20px;
  height: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.about-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-family: 'Playfair Display', serif;
  color: var(--text);
}

.about-text p {
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

.social-links {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-btn {
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.social-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .about-section {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
    margin-top: 110px;
    width: calc(100% - 2rem);
  }
}

/* SEARCH FEATURE (DROPDOWN STYLE) */
.search-wrapper {
  display: flex;
  align-items: center;
}

.search-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--muted);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.search-toggle:hover {
  background: rgba(13, 148, 136, 0.1);
  color: var(--accent);
}

.search-dropdown {
  position: absolute;
  top: 150%;
  right: 0;
  width: 320px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1100;
}

.search-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Arrow tip for dropdown */
.search-dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 14px;
  width: 12px;
  height: 12px;
  background: white;
  transform: rotate(45deg);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

#search-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  background: #fafafa;
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 0.5rem;
}

#search-input:focus {
  border-color: var(--accent);
  background: white;
}

.search-results {
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Custom Scrollbar for results */
.search-results::-webkit-scrollbar {
  width: 6px;
}

.search-results::-webkit-scrollbar-track {
  background: transparent;
}

.search-results::-webkit-scrollbar-thumb {
  background: #e5e5e5;
  border-radius: 10px;
}

.search-result-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.6rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s;
}

.search-result-item:hover {
  background: #fdfbf7;
}

.search-result-type {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  margin-top: 3px;
  white-space: nowrap;
}

.type-article {
  background: #e0f2fe;
  color: #0284c7;
}

.type-video {
  background: #fce7f3;
  color: #be185d;
}

.search-result-info h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}

.search-result-info p {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================================
   ADMIN PANEL STYLES
   ========================================= */

/* Desktop Layout */
.admin-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
  /* Use global body background instead of grey */
  background: transparent;
}

.admin-sidebar {
  /* Glassy Effect matching Navbar */
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-right: 1px solid rgba(255, 255, 255, 0.4);
  padding: 2rem;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
}

.admin-sidebar h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text);
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-nav a {
  padding: 0.8rem 1rem;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
}

.admin-nav a:hover,
.admin-nav a.active {
  background: rgba(13, 148, 136, 0.1);
  color: var(--accent);
}

.admin-content {
  padding: 3rem;
  overflow-x: hidden;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.admin-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--text);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.stat-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-card h3 {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.stat-card .value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  font-family: 'Playfair Display', serif;
}

/* Default Mobile Toggle */
#admin-mobile-toggle {
  display: none;
}

.admin-overlay {
  display: none;
}

/* MOBILE RESPONSIVE ADMIN */
@media (max-width: 900px) {
  .admin-layout {
    grid-template-columns: 1fr;
    /* Stack layout */
    display: block;
  }

  /* Mobile Header / Toggle */
  #admin-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.4);
    z-index: 1200;
    transition: transform 0.2s;
  }

  #admin-mobile-toggle:active {
    transform: scale(0.95);
  }

  /* Off-canvas Sidebar */
  .admin-sidebar {
    background: #ffffff;
    /* Solid white to avoid grey overlay mix */
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    z-index: 1300;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
  }

  .admin-sidebar.active {
    transform: translateX(0);
  }

  /* Overlay */
  .admin-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1250;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    display: block;
    /* but hidden */
  }

  .admin-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Content Adjustments */
  .admin-content {
    padding: 1.5rem;
    padding-bottom: 100px;
    /* Space for fab */
  }

  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .admin-header h1 {
    font-size: 1.8rem;
  }

  /* Table responsive */
  .data-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border);
  }

  .data-table {
    min-width: 600px;
    /* Force scroll */
  }

  /* Form Grids to Stack */
  .admin-content .admin-view>div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================
   POST & VIDEO PAGE MOBILE OPTIMIZATION
   ========================================= */
@media (max-width: 768px) {
  .post-article {
    padding: 2rem 1.5rem;
    /* Reduced from 3rem 4rem */
    margin-top: 1.5rem;
    margin-bottom: 3rem;
    border-radius: 20px;
    /* Reduced radius */
  }

  .post-title {
    font-size: 1.8rem;
    /* Reduced from 2.6rem */
    line-height: 1.3;
  }

  .post-content-full {
    font-size: 1rem;
    /* Reduced from 1.05rem */
  }

  .post-meta {
    margin-bottom: 0.5rem;
  }

  /* Video wrapper adjustments if needed */
  .video-wrapper {
    margin-bottom: 1.5rem !important;
  }
}

/* =========================================
   ADMIN PANEL STYLES
   ========================================= */

.admin-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

/* --- Admin Sidebar --- */
.admin-sidebar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid var(--border);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.03);
}

.admin-sidebar h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
  letter-spacing: 0.5px;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.2rem;
  border-radius: 12px;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.admin-nav a:hover {
  background: rgba(13, 148, 136, 0.08);
  color: var(--accent);
  transform: translateX(4px);
}

.admin-nav a.active {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.12), rgba(13, 148, 136, 0.06));
  color: var(--accent);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.1);
}

.admin-nav a.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--accent);
  border-radius: 0 4px 4px 0;
}

.admin-nav .nav-icon {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.admin-nav .nav-back {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

.admin-nav .nav-back:hover {
  color: var(--text);
}

/* --- Admin Main Content --- */
.admin-content {
  padding: 2.5rem 3rem;
  overflow-y: auto;
  min-height: 100vh;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--text);
  font-weight: 700;
}

/* --- Stats Grid --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.stat-card {
  background: var(--card);
  padding: 1.8rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.stat-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-card .value {
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
}

.stat-card .stat-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* --- Category Tabs / Filters --- */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 0.5rem;
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--border);
}

.category-tab {
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  border: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.category-tab:hover {
  background: rgba(13, 148, 136, 0.06);
  color: var(--accent);
}

.category-tab.active {
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
}

.category-tab-group {
  position: relative;
}

.category-tab-group .sub-tabs {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 0.5rem;
  z-index: 20;
  min-width: 220px;
}

.category-tab-group:hover .sub-tabs,
.category-tab-group.expanded .sub-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sub-tab {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  white-space: nowrap;
}

.sub-tab:hover {
  background: rgba(13, 148, 136, 0.06);
  color: var(--accent);
}

.sub-tab.active {
  background: rgba(13, 148, 136, 0.1);
  color: var(--accent);
  font-weight: 600;
}

/* --- Data Table Container --- */
.data-table-container {
  background: var(--card);
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.table-search {
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  background: transparent;
  color: var(--text);
  width: 280px;
  transition: border-color 0.3s ease;
  outline: none;
}

.table-search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead {
  background: rgba(13, 148, 136, 0.04);
}

.data-table th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 1rem 1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  border-bottom: 1px solid rgba(230, 225, 214, 0.5);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background 0.2s ease;
}

.data-table tbody tr:hover {
  background: rgba(13, 148, 136, 0.03);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* --- Status Badges --- */
.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  display: inline-block;
}

.status-published {
  background: rgba(13, 148, 136, 0.12);
  color: #0d9488;
}

.status-draft {
  background: rgba(234, 179, 8, 0.12);
  color: #b45309;
}

/* --- Type Badges --- */
.type-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  display: inline-block;
}

.type-makale {
  background: #e0f2fe;
  color: #0284c7;
}

.type-video {
  background: #fce7f3;
  color: #be185d;
}

.type-sunum {
  background: #fef3c7;
  color: #92400e;
}

/* --- Action Buttons --- */
.action-btn {
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
}

.action-btn:hover {
  background: rgba(13, 148, 136, 0.08);
  border-color: var(--accent);
}

.delete-btn {
  color: #dc2626;
}

.delete-btn:hover {
  background: rgba(220, 38, 38, 0.08);
  border-color: #dc2626;
}

/* --- Primary Button --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--accent), #0f766e);
  color: white;
  border: none;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.35);
}

/* --- Admin Form Elements --- */
.admin-form-card {
  background: var(--card);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.admin-form-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
}

.form-control {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: transparent;
  transition: all 0.3s ease;
  outline: none;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.form-control-title {
  width: 100%;
  padding: 1rem;
  font-size: 1.5rem;
  font-family: 'Playfair Display', serif;
  border: none;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
  outline: none;
  background: transparent;
  color: var(--text);
  transition: border-color 0.3s ease;
}

.form-control-title:focus {
  border-color: var(--accent);
}

textarea.form-control {
  min-height: 200px;
  font-family: 'Merriweather', serif;
  line-height: 1.8;
  resize: vertical;
}

textarea.form-control-large {
  min-height: 400px;
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235e5754' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* --- Editor Grid Layout --- */
.editor-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

/* --- Image Upload Area --- */
.upload-area {
  border: 2px dashed var(--border);
  padding: 2.5rem;
  text-align: center;
  border-radius: 12px;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.upload-area:hover {
  border-color: var(--accent);
  background: rgba(13, 148, 136, 0.03);
  color: var(--accent);
}

.upload-area .upload-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.upload-area p {
  font-size: 0.9rem;
}

/* --- Post Type Selector --- */
.type-selector {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.type-option {
  flex: 1;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
  font-family: 'Inter', sans-serif;
}

.type-option:hover {
  border-color: var(--accent);
  background: rgba(13, 148, 136, 0.03);
}

.type-option.selected {
  border-color: var(--accent);
  background: rgba(13, 148, 136, 0.08);
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.15);
}

.type-option .type-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  display: block;
}

.type-option .type-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

/* --- Settings Social Media --- */
.social-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.social-link-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-link-item .social-icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(13, 148, 136, 0.08);
  flex-shrink: 0;
}

.social-link-item input {
  flex: 1;
}

/* --- Admin View Toggle (Show/Hide) --- */
.admin-view {
  animation: adminFadeIn 0.3s ease;
}

@keyframes adminFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Mobile Admin Toggle --- */
#admin-mobile-toggle {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1200;
  background: var(--accent);
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(13, 148, 136, 0.4);
  color: white;
  transition: all 0.3s ease;
}

#admin-mobile-toggle:active {
  transform: scale(0.95);
}

/* Admin Overlay for Mobile */
.admin-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1250;
  backdrop-filter: blur(4px);
}

.admin-overlay.active {
  display: block;
}

/* --- Admin Responsive --- */
@media (max-width: 900px) {
  .admin-layout {
    grid-template-columns: 1fr;
    display: block;
  }

  .admin-sidebar {
    background: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    z-index: 1300;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .admin-sidebar.active {
    transform: translateX(0);
  }

  #admin-mobile-toggle {
    display: flex;
  }

  .admin-content {
    padding: 1.5rem;
    padding-bottom: 100px;
  }

  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .admin-header h1 {
    font-size: 1.8rem;
  }

  .editor-grid {
    grid-template-columns: 1fr;
  }

  .category-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .category-tabs::-webkit-scrollbar {
    display: none;
  }

  .type-selector {
    flex-direction: column;
  }

  .social-links-grid {
    grid-template-columns: 1fr;
  }

  .data-table-container {
    overflow-x: auto;
  }
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.6rem;
  }

  .stat-card {
    padding: 0.8rem 0.9rem;
  }

  .stat-card h3 {
    font-size: 0.7rem;
  }

  .stat-card .value {
    font-size: 1.3rem;
  }

  .admin-content {
    padding: 1rem;
    padding-top: 2rem;
  }
}
