
@media (max-width: 500px) {
  .header-content p {
    display: none !important;
  }
  .header-content h1, .header-content h2 {
    font-size: 1.4em !important;
    line-height: 1.2 !important;
  }
}
/* --- Responsive header and navigation --- */
@media (max-width: 1263px) {
  .admin-nav, .nav-links {
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
    overflow-x: auto !important;
    white-space: normal !important;
  }
  .admin-nav .nav-logo {
    font-size: 1.5em !important;
    padding: 0.7em 1em !important;
    display: block !important;
    width: 100% !important;
    text-align: left !important;
  }
  .nav-links {
    gap: 0.5em !important;
    padding: 0.5em 1em !important;
    width: 100% !important;
  }
  .nav-link {
    font-size: 1em !important;
    padding: 0.7em 0.5em !important;
    width: 100% !important;
    text-align: left !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }
  .admin-container h1, .admin-container h2, .admin-container h4 {
    font-size: 1.1em !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
  }
  .stats-grid, .card-header, .ebook-section {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
  }
  .ebook-grid, .row {
    flex-direction: column !important;
    width: 100% !important;
  }
  .card {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-wrap: break-word !important;
  }
}

@media (max-width: 480px) {
  .admin-nav, .nav-links {
    font-size: 0.95em !important;
    padding: 0.3em 0.5em !important;
  }
  .admin-container h1, .admin-container h2, .admin-container h4 {
    font-size: 1em !important;
  }
  .nav-link {
    font-size: 0.95em !important;
    padding: 0.5em 0.2em !important;
  }
}
/* --- End responsive header/nav styles --- */


/* --- Mobile Responsive Styles --- */
@media (max-width: 900px) {
  .container {
    grid-template-columns: 1fr;
    padding: 12px 6px 0 6px;
    gap: 0;
    max-width: 100vw;
  }
  .main-content {
    gap: 18px;
  }
  .features {
    flex-direction: column;
    gap: 18px;
  }
}

@media (max-width: 1263px) {
  nav {
    flex-direction: row;
    height: auto;
    padding: 0 10px;
  }
  .nav-logo {
    font-size: 1.15rem;
    padding: 10px 0;
  }
  .nav-links {
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--primary);
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    display: flex;
    z-index: 9999;
    box-shadow: 0 2px 12px rgba(36, 97, 59, 0.11);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
  }
  .nav-links.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links > a, .dropdown-toggle {
    transition: max-height 0.3s ease;
    width: 100%;
    padding: 18px 22px;
    font-size: 1.08rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    line-height: 1.3;
    text-align: left;
  }
  /* .nav-toggle {
    display: block;
    position: absolute;
    right: 18px;
    top: 18px;
    z-index: 10001;
  } */
  .nav-dropdown {
    width: 100%;
  }
  .dropdown-menu {
    position: static;
    min-width: 100%;
    box-shadow: none;
    border-radius: 0;
    background: var(--primary-dark);
    border-top: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    overflow: hidden;
    transition: transform .25s ease;
  }
  .nav-dropdown.mobile-open .dropdown-menu {
    display: block;
  }
}

@media (max-width: 600px) {
  .header-content {
    padding: 0 10px;
  }
  .header-content h1 {
    margin-bottom: 40px;
    font-size: 2.1rem;
    line-height: 1.15;
    word-break: break-word;
    white-space: normal;
  }
  .header-content h2 {
    font-size: 1.3rem;
    line-height: 1.18;
    word-break: break-word;
    white-space: normal;
  }
  .header-content p {
    font-size: 1rem;
    max-width: 98vw;
    display: none;
  }
  .slider-dots {
    bottom: 12px;
    gap: 5px;
  }
}
/* CadetGuide.Pk - Main Styles */
/* Author: CadetGuide.Pk Development Team */
/* Version: 1.0 */

:root {
  --primary: #24613b;
  --primary-dark: #194929;
  --accent: #faaf40;
  --bg: #f6faf7;
  --white: #fff;
  --glass: rgba(255,255,255,0.65);
  --border-radius: 24px;
  --shadow: 0 8px 36px 0 rgba(36, 97, 59, 0.13), 0 2px 8px 0 rgba(36, 97, 59, 0.10);
}

html { 
  scroll-behavior: smooth; 
  overflow-x: hidden; 
}

body {
  font-family: 'Poppins', 'Montserrat', Arial, sans-serif;
  background: linear-gradient(120deg, #f6faf7 60%, #eaf5ec 100%);
  margin: 0;
  color: #243A28;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Prevent accidental horizontal overflow on small screens */
*, *::before, *::after { box-sizing: border-box; }
.container, .header-container, nav, .main-content, .features, .card, .colleges-grid { max-width: 100%; }

/* ============================================
   FIXED MODERN RESPONSIVE NAVIGATION
   ============================================ */

/* Base Navigation */
nav {
  transition: max-height 0.3s ease;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 70px;
  box-shadow: 0 2px 12px rgba(36, 97, 59, 0.11);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  box-sizing: border-box;
}

.nav-close { display: none; }

body.nav-open { overflow: hidden; touch-action: none; }
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease;
  z-index: 999;
}
body.nav-open .nav-overlay {
  opacity: 1;
  visibility: visible;
}

/* Links */
a:-webkit-any-link {
  color: var(--accent);
  cursor: pointer;
  text-decoration: none;
}

.nav-logo {
  text-decoration: none;
  color: var(--accent);
  font-size: 1.6rem;
  font-family: 'Montserrat', 'Poppins', sans-serif;
  font-weight: 900;
  letter-spacing: -1px;
  text-shadow: 1px 1px 2px rgba(0,0,0,.13);
}

.nav-links {
  display: flex;
  align-items: center;
  margin-left: auto;
  justify-content: flex-end;
}

.nav-toggle { display: none; }

.nav-links > a {
  color: var(--white);
  text-decoration: none;
  padding: 0 22px;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.04em;
  transition: color 0.16s;
  position: relative;
  line-height: 70px;
  border-bottom: 2px solid transparent;
  font-family: 'Montserrat', 'Poppins', sans-serif;
}

.nav-links > a.active,
.nav-links > a:hover {
  color: var(--accent);
  border-bottom: none;
}

/* Special AI link */
.nav-links > a.ai-link {
  background: linear-gradient(45deg, var(--accent), #ffd700);
  color: var(--primary-dark) !important;
  border-radius: 20px;
  padding: 8px 16px !important;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

/* Dropdown menu styles */
.nav-dropdown {
  position: relative;
}
.dropdown-toggle {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.08rem;
  padding: 0 22px;
  line-height: 70px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.16s ease;
  font-family: 'Montserrat', 'Poppins', sans-serif;
}
.dropdown-toggle:hover {
  color: var(--accent);
}

.dropdown-toggle i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}
.nav-dropdown:hover .dropdown-toggle i {
  transform: rotate(180deg);
}

/* Dropdown menu container */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--primary-dark);
  min-width: 220px;
  box-shadow: 0 8px 32px rgba(36, 97, 59, 0.2);
  border-radius: 0 0 12px 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  border-top: 3px solid var(--accent);
}

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

/* Dropdown links */
.dropdown-menu a {
  display: block;
  padding: 15px 20px;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(250, 175, 64, 0.1);
  font-family: 'Montserrat', 'Poppins', sans-serif;
}
.dropdown-menu a:hover {
  background: var(--accent);
  color: var(--primary-dark);
  padding-left: 25px;
  font-weight: 700;
}
.dropdown-menu a:last-child { border-bottom: none; }

/* Underline hover animation */
.nav-links > a::after,
.nav-dropdown > .dropdown-toggle::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 22px;
  bottom: 0px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 50% 50%;
  transition: transform .25s ease;
  opacity: 0.95;
}
.nav-links > a:hover::after,
.nav-links > a.active::after,
.nav-dropdown:hover > .dropdown-toggle::after {
  transform: scaleX(1);
}

/* ======================================
   CLEAN & ANIMATED RESPONSIVE NAVIGATION
   ====================================== */
@media (max-width: 1263px) {
  nav {
    flex-direction: row;
    height: 64px;
    padding: 0 14px;
    position: relative;
    z-index: 1003;
  }

  .nav-logo {
    font-size: 1.1rem;
    transition: opacity .3s ease, transform .3s ease;
  }

  /* Full top dropdown nav (slide-down animation) */
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background: linear-gradient(165deg, var(--primary-dark) 0%, var(--primary) 55%);
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    transition: max-height .55s cubic-bezier(.65,.05,.36,1),
                opacity .45s ease;
    z-index: 1000;
  }

  .nav-links.show,
  body.nav-open #navLinks {
    max-height: 100vh;
    opacity: 1;
    pointer-events: auto;
    padding: 60px 0 12px;
    overflow-y: auto;
  }

  body.nav-open .nav-logo {
    opacity: 0;
    transform: scale(0.9);
  }

  .nav-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.25);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1002;
  }

  /* Compact links */
  .nav-links > a,
  .dropdown-toggle {
    width: 100%;
    padding: 10px 16px 12px; /* Added bottom padding for underline gap */
    font-size: 0.9rem;
    line-height: 1.2;
    text-align: left;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
    transition: background .25s ease;
  }

  /* Underline animation under text (with spacing) */
  .nav-links > a::after,
  .dropdown-toggle::after {
    content: "";
    position: absolute;
    bottom: 4px; /* space below text */
    left: 16px;
    height: 2px;
    width: 0%;
    background: var(--accent);
    border-radius: 2px;
    transition: width .3s ease;
  }

  .nav-links > a:hover::after,
  .dropdown-toggle:hover::after {
    width: calc(100% - 32px);
  }

  /* Dropdown container */
  .nav-dropdown {
    position: static;
    width: 100%;
    overflow: visible;
  }

  .dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #124d28;
    color: #fff;
    cursor: pointer;
  }

  .dropdown-toggle:hover {
    background: #166333;
  }

  /* Custom arrow icon separate from ::after underline */
  .dropdown-toggle span.arrow {
    display: inline-block;
    margin-left: 6px;
    font-size: 0.8rem;
    transition: transform .25s ease;
  }

  /* Rotate only the arrow, not the text */
  .nav-dropdown.mobile-open .dropdown-toggle span.arrow {
    transform: rotate(180deg);
  }

  /* Dropdown menu (slide-down) */
  .dropdown-menu {
    position: static;
    width: 100%;
    background: #0f3319;
    border-top: 1px solid rgba(250,175,64,0.1);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all .3s ease;
  }

  .nav-dropdown.mobile-open .dropdown-menu {
    opacity: 1;
    max-height: 500px;
    transform: translateY(0);
    overflow-y: auto;
  }

  .dropdown-menu::-webkit-scrollbar {
    width: 5px;
  }
  .dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.25);
    border-radius: 3px;
  }

  .dropdown-menu a {
    display: block;
    padding: 8px 16px 8px 24px;
    font-size: 0.84rem;
    color: #f8f8f8;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background .25s ease, padding-left .2s ease;
  }

  .dropdown-menu a:hover {
    background: rgba(250,175,64,0.1);
    padding-left: 28px;
  }

  .nav-toggle {
    display: inline-flex !important;
    background: transparent;
    border: none;
    padding: 8px;
    align-items: center;
    justify-content: center;
  }

  .nav-toggle-box {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
  }

  .nav-toggle-line {
    width: 26px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    transition: transform .45s cubic-bezier(.65,.05,.36,1), opacity .3s ease;
  }

  body.nav-open .nav-toggle-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  body.nav-open .nav-toggle-line:nth-child(2) {
    opacity: 0;
  }
  body.nav-open .nav-toggle-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  body.nav-open #navLinks > * {
    animation: navItemIn .35s ease-out both;
  }
}

/* ===== Smaller Breakpoints ===== */
@media (max-width: 768px) {
  .nav-links { padding: 56px 0 10px; }
  nav { height: 56px; }
  .nav-links > a, .dropdown-toggle { padding: 9px 14px 11px; font-size: 0.88rem; }
  .dropdown-menu a { padding: 7px 14px 7px 22px; font-size: 0.82rem; }
}

@media (max-width: 520px) {
  .nav-links { padding: 50px 0 8px; }
  nav { height: 52px; padding: 0 10px; }
  .nav-logo { font-size: 1rem; }
  .nav-toggle-line { width: 22px; }
  .nav-close { width: 30px; height: 30px; font-size: 1.1rem; top: 8px; right: 8px; }
}

@media (max-width: 380px) {
  .nav-links { padding: 46px 0 6px; }
  nav { height: 50px; }
  .nav-links > a, .dropdown-toggle { padding: 7px 10px 10px; font-size: 0.84rem; }
  .dropdown-menu a { padding: 6px 10px 6px 18px; font-size: 0.78rem; }
}

/* Fade-in animation */
@keyframes navItemIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ============================================
   HEADER STYLES WITH HERO IMAGE SLIDER
   ============================================ */

/* Header Styles */
.header-container {
  position: relative;
  height: 420px;
  background: linear-gradient(120deg, #194929 0%, #24613b 100%);
  border-bottom-left-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
  overflow: hidden;
  animation: gradientBG 7s ease-in-out infinite alternate;
  width: 100%;
  box-sizing: border-box;
}

/* Optimize images for better loading and display */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: optimize-quality;
}

/* Gallery image optimization */
#slideshowImage {
  image-rendering: auto;
  backface-visibility: hidden;
  transform: translateZ(0);
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.hero-slider {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%; z-index: 0;
  transition: transform 0.4s;
  background: linear-gradient(120deg, #194929 0%, #24613b 100%); /* Fallback background */
}

.hero-slide {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 2s cubic-bezier(.4,0,.2,1);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide.fade-out {
  opacity: 0;
  z-index: 0;
}

#sliderLoader {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  color: var(--accent);
  z-index: 5;
  background: rgba(255,255,255,0.16);
  padding: 1em 1.7em;
  border-radius: 100px;
  display: none; /* Hidden by default for faster load */
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 3;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

.slider-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: rgba(255,255,255,0.63);
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: background 0.2s, border 0.2s;
  box-shadow: 0 1px 3px rgba(36,97,59,0.12);
}

.slider-dot.active {
  background: var(--accent);
  border: 2px solid #fff7e1;
  transform: scale(1.17);
}

.header-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  color: var(--white); text-align: center; padding: 0 44px;
  background: linear-gradient(0deg, rgba(36,97,59,0.83) 0%, rgba(36,97,59,0.08) 100%);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  box-shadow: 0 1.5px 9px rgba(36,97,59,0.09);
}

.header-content h1 {
  font-size: 3.1rem; margin-bottom: 0.3rem; font-weight: 900;
  font-family: 'Montserrat', 'Poppins', sans-serif;
  text-shadow: 3px 3px 8px rgba(0,0,0,0.18);
  letter-spacing: -1px;
  line-height: 1.05;
  background: linear-gradient(90deg, #faaf40 10%, #fff7e1 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-content h2 {
  font-size: 2rem; margin-bottom: 1.1rem; font-weight: 800;
  font-family: 'Montserrat', 'Poppins', sans-serif;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.11);
  color: var(--accent);
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #faaf40 10%, #fff7e1 85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-content p {
  font-size: 1.14rem; max-width: 650px; margin: 0 auto;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.09);
}

/* Utility Styles */
.section-sep {
  width: 100%;
  display: block;
  margin-bottom: -1.5em;
  line-height: 0;
}

.reveal { 
  opacity: 0; 
  transform: translateY(48px); 
  transition: all 0.85s cubic-bezier(.49,.03,.26,1.08); 
}

.reveal.visible { 
  opacity: 1; 
  transform: none; 
}

.scroll-text {
  width: 100%; background: var(--accent);
   color: #2e2e2e;
  text-align: center; font-weight: 700; font-size: 1.11rem;
  padding: 10px 0; letter-spacing: 0.02em;
  box-shadow: 0 1px 4px rgba(250,175,64,0.08);
  margin-bottom: 19px;
  font-family: 'Montserrat', 'Poppins', sans-serif;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  color: white !important;
}

.scroll-text span {
  display: inline-block;
  animation: scroll-left 15s linear infinite;
}

@keyframes scroll-left {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}
@media (max-width: 600px) {
  .scroll-text span{
    font-size: 13px !important;
    height: 32px;
    line-height: 32px;
  }
}
/* Animation speed variations for scroll text */
.scroll-text.reveal-slow span {
  animation: scroll-left 25s linear infinite;
}

.scroll-text.reveal-fast span {
  animation: scroll-left 8s linear infinite;
}

/* Reveal animation speed variations */
.reveal-slow {
  transition: all 1.5s cubic-bezier(.49,.03,.26,1.08);
}

.reveal-fast {
  transition: all 0.4s cubic-bezier(.49,.03,.26,1.08);
}

/* Layout Styles */
.container {
  display: grid;
  
  grid-template-columns: 1fr 340px;
  gap: 28px;
  max-width: 1270px;
  margin: 0 auto;
  padding: 28px 18px 0 18px;
  border-radius: var(--border-radius);
  background: var(--white);
  box-shadow: 0 12px 50px rgba(36,97,59,0.10);
  position: relative;
  z-index: 1;
}

.main-content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Glass Effect for Components */
.features, .card, .feature-card, .stat-item, aside .card {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Features Section */
.features {
  display: flex;
  gap: 20px;
  margin-bottom: 10px;
}

.feature-card {
  flex: 1;
  background: var(--glass);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center;
  padding: 22px 18px 18px 18px;
  min-width: 0;
  transition: box-shadow 0.25s, transform 0.16s;
  cursor: pointer;
  border: 1.5px solid #e7f8ec;
  font-family: 'Poppins', Arial, sans-serif;
}

.feature-card i {
  font-size: 2.6rem;
  color: var(--primary);
  margin-bottom: 11px;
  transition: color 0.2s, transform 0.18s;
}

.feature-card:hover, 
.feature-card:focus {
  box-shadow: 0 12px 44px 0 rgba(36, 97, 59, 0.17);
  transform: translateY(-6px) scale(1.025);
  border-color: var(--accent);
  background: rgba(250,175,64,0.06);
}

.feature-card:hover i { 
  color: var(--accent); 
  transform: scale(1.15) rotate(-7deg);
}

.feature-card h3 {
  margin: 0 0 7px 0;
  color: var(--primary-dark);
  font-weight: 800;
  font-family: 'Montserrat', 'Poppins', sans-serif;
  font-size: 1.22rem;
}

.feature-card p {
  font-size: 1.07rem;
  color: #444;
  margin: 0;
}

/* Card Styles */
.card {
  background: var(--glass);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 22px 18px 18px 18px;
  margin-bottom: 0;
  transition: box-shadow 0.25s, transform 0.16s;
  border: 1.5px solid #f1f1f1;
}

.card:hover {
  box-shadow: 0 12px 44px 0 rgba(36, 97, 59, 0.16);
  transform: translateY(-5px) scale(1.012);
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.card img {
  width: 100%; border-radius: var(--border-radius);
  margin-bottom: 14px;
  box-shadow: 0 1.5px 8px rgba(36,97,59,0.09);
  object-fit: cover;
  max-height: 210px;
  transition: box-shadow 0.22s;
}

.card h2, .card h3 {
  color: var(--primary-dark);
  font-family: 'Montserrat', 'Poppins', sans-serif;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 12px;
}

/* Button Styles */
.btn-primary {
  background: linear-gradient(90deg, var(--accent) 10%, var(--primary) 100%);
  color: var(--primary-dark);
  padding: 13px 36px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1.16rem;
  text-decoration: none;
  display: inline-block;
  margin-top: 18px;
  transition: background 0.23s, color 0.18s, box-shadow 0.18s, transform 0.14s;
  box-shadow: 0 4px 14px rgba(36,97,59,0.16);
  border: none;
  cursor: pointer;
  letter-spacing: 0.07em;
  font-family: 'Montserrat', 'Poppins', sans-serif;
}

.btn-primary:hover, 
.btn-primary:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  transform: scale(1.055);
}

/* Stats Section */
.stats {
  display: flex; gap: 29px; justify-content: space-between;
  margin-top: 8px;
}

.stat-item {
  background: var(--glass);
  color: var(--primary-dark);
  border-radius: var(--border-radius);
  padding: 28px 0;
  flex: 1; display: flex; flex-direction: column; align-items: center;
  box-shadow: 0 2px 12px rgba(36,97,59,0.09);
  min-width: 0;
  font-size: 1.07rem;
  font-weight: 700;
  transition: box-shadow 0.2s, transform 0.15s;
  border: 1.5px solid #e7f8ec;
  backdrop-filter: blur(8px);
}

.stat-item:hover {
  box-shadow: 0 10px 28px 0 rgba(36,97,59,0.13);
  transform: translateY(-4px) scale(1.017);
  border-color: var(--accent);
}

.stat-number {
  font-size: 2.45rem; font-weight: 900; color: var(--accent);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  font-family: 'Montserrat', 'Poppins', sans-serif;
}

.stat-label { 
  font-size: 1.13rem; 
  font-weight: 700; 
  letter-spacing: 0.01em; 
}

/* Sidebar Styles */
aside.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

aside .card ul { 
  padding-left: 0; 
  margin: 0; 
  list-style: none; 
}

aside .card li { 
  padding: 6px 0; 
  font-size: 1.07rem;
}

aside .card h3 { 
  margin-bottom: 12px; 
  font-size: 1.15rem; 
}

aside .card {
  background: var(--glass);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 22px 18px 16px 18px;
  margin-bottom: 0;
  border: 1.5px solid #f1f1f1;
  transition: box-shadow 0.21s, transform 0.13s;
  font-family: 'Poppins', Arial, sans-serif;
}

aside .card:hover {
  box-shadow: 0 9px 26px 0 rgba(36,97,59,0.13);
  transform: translateY(-3px) scale(1.01);
  border-color: var(--accent);
  background: rgba(250,175,64,0.08);
}

aside .card ul li i {
  color: var(--accent);
  margin-right: 7px;
}

aside .card a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.18s;
}

aside .card a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Footer Styles */
footer {
  background: linear-gradient(90deg, #194929 40%, #24613b 100%);
  color: var(--white);
  margin-top: 70px;
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);
  box-shadow: 0 -2px 12px rgba(36,97,59,0.09);
  padding-top: 5px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 38px;
  max-width: 1270px;
  margin: 0 auto;
  padding: 38px 22px 17px 22px;
}

.footer-section h3 {
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 13px;
  font-size: 1.13rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  font-family: 'Montserrat', 'Poppins', sans-serif;
}

.footer-section ul {
  list-style: none;
  padding: 0; margin: 0;
}

.footer-section ul li {
  padding-bottom: 7px;
  font-size: 1.04rem;
  color: #f3e6c5;
}

.footer-section a {
  color: #ffe4b3;
  text-decoration: none;
  transition: color 0.15s;
  font-weight: 700;
}

.footer-section a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Enhanced Military Recruitment Links in Footer */
.footer-section ul li a i {
  margin-right: 8px;
  width: 16px;
  text-align: center;
  transition: all 0.3s ease;
}

.footer-section ul li a:hover i {
  transform: scale(1.2);
  color: var(--accent);
}

/* Specific military branch icons */
.footer-section ul li a[href*="joinpakarmy"] i:before {
  content: "\f0fb"; /* fas fa-shield-alt for Army */
}

.footer-section ul li a[href*="joinpaknavy"] i:before {
  content: "\f21a"; /* fas fa-anchor for Navy */
}

.footer-section ul li a[href*="joinpaf"] i:before {
  content: "\f072"; /* fas fa-plane for Air Force */
}

.footer-section ul li a[href*="issbpreparation"] i:before {
  content: "\f19d"; /* fas fa-graduation-cap for ISSB Prep */
}

.footer-section ul li a[href*="issb.gov.pk"] i:before {
  content: "\f0c0"; /* fas fa-users for ISSB Official */
}

.footer-section .social-media-links {
  margin-top: 5px;
}

.footer-section .social-media-links a {
  margin-right: 13px;
  font-size: 1.47rem;
  color: #ffe4b3;
  transition: color 0.18s, transform 0.21s;
  display: inline-block;
}

.footer-section .social-media-links a:hover {
  color: var(--accent);
  transform: scale(1.18);
}

.footer-bottom {
  border-top: 1px solid #295c3c;
  padding: 15px 0 13px 0;
  text-align: center;
  color: #cabea2;
  font-size: 1rem;
  margin-top: 20px;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.14s;
  font-weight: 700;
}

.footer-bottom a:hover {
  color: var(--white);
  text-decoration: underline;
}

.copyright {
  border-top: 1px solid #295c3c;
  padding: 15px 0 13px 0;
  text-align: center;
  color: #cabea2;
  font-size: 1rem;
}

.copyright a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.14s;
  font-weight: 700;
}

.copyright a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* Back to Top Button */
#backToTop {
  position: fixed;
  bottom: 90px;
  right: 30px;
  background: var(--accent);
  color: var(--primary-dark);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(36,97,59,0.17);
  border: none;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, background 0.2s, color 0.2s;
}

#backToTop.visible {
  opacity: 1;
  pointer-events: all;
}

#backToTop:hover {
  background: var(--primary); 
  color: var(--accent);
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* External Links Styling */
.external-links-card {
  background: linear-gradient(135deg, var(--glass) 0%, rgba(255,255,255,0.85) 100%) !important;
}

.external-links-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--primary-dark);
  margin-bottom: 24px;
  font-size: 1.35rem;
}

.external-links-card h3 i {
  color: var(--accent);
  font-size: 1.2rem;
}

.external-links-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.external-link-item {
  display: flex;
  align-items: center;
  padding: 18px 20px;
  background: linear-gradient(135deg, #f8fffe 0%, #f0f9f4 100%);
  border-radius: 16px;
  border: 2px solid #e7f8ec;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(36, 97, 59, 0.08);
}

.external-link-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(250, 175, 64, 0.1), transparent);
  transition: left 0.5s ease;
}

.external-link-item:hover::before {
  left: 100%;
}

.external-link-item:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(36, 97, 59, 0.15);
  background: linear-gradient(135deg, #fff 0%, #f8fffe 100%);
}

/* Enhanced Military Recruitment Link Icons */
.link-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  font-size: 1.4rem;
  color: var(--white);
  background-color: var(--primary-dark);
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.link-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.external-link-item:hover .link-icon::before {
  animation: shine 0.6s ease-in-out;
}

@keyframes shine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); opacity: 0; }
}

.external-link-item:hover .link-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.link-icon.army {
  background: linear-gradient(135deg, #2d5f3f 0%, #1e4a2d 100%);
  border: 2px solid #4a7c5d;
}

.link-icon.army:hover {
  background: linear-gradient(135deg, #357a4a 0%, #256538 100%);
}

.link-icon.navy {
  background: linear-gradient(135deg, #1e3a5f 0%, #152a42 100%);
  border: 2px solid #4a6a8a;
}

.link-icon.navy:hover {
  background: linear-gradient(135deg, #264875 0%, #1a3552 100%);
}

.link-icon.airforce {
  background: linear-gradient(135deg, #4a5f2d 0%, #3a4a22 100%);
  border: 2px solid #6d7a5d;
}

.link-icon.airforce:hover {
  background: linear-gradient(135deg, #5a7238 0%, #4a5a2d 100%);
}

.link-icon.issb {
  background: linear-gradient(135deg, #5f3a2d 0%, #4a2e22 100%);
  border: 2px solid #8a6a5d;
}

.link-icon.issb:hover {
  background: linear-gradient(135deg, #724738 0%, #5a382d 100%);
}

.link-icon.issb-official {
  background: linear-gradient(135deg, #5f2d5f 0%, #4a2242 100%);
  border: 2px solid #8a5d8a;
}

.link-icon.issb-official:hover {
  background: linear-gradient(135deg, #723872 0%, #5a2d52 100%);
}

.link-content {
  flex: 1;
  min-width: 0;
}

.link-content h4 {
  margin: 0 0 4px 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  font-family: 'Montserrat', 'Poppins', sans-serif;
}

.link-content p {
  margin: 0;
  font-size: 0.95rem;
  color: #666;
  line-height: 1.4;
}

.link-arrow {
  color: var(--accent);
  font-size: 1.1rem;
  transition: transform 0.3s ease;
  margin-left: 12px;
}

.external-link-item:hover .link-arrow {
  transform: translateX(4px);
  color: var(--primary);
}

/* Inline Styles for Gallery Components */
.gallery-card {
  background: linear-gradient(104deg, #e8f5e9 60%, #fff 100%) !important;
  box-shadow: 0 4px 36px 0 rgba(36, 97, 59, 0.09) !important;
  margin-bottom: 30px !important;
}

.gallery-heading {
  color: var(--primary) !important;
  margin-bottom: 18px !important;
}

.slideshow-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
}

.slideshow-image {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 250px !important;
  max-height: 320px !important;
  border-radius: 12px !important;
  border: 2px solid #e7f8ec !important;
  box-shadow: 0 4px 24px rgba(36,97,59,0.10) !important;
  margin-bottom: 12px !important;
  background: #e8f5e9 !important;
  object-fit: cover !important;
  transition: opacity 0.3s ease !important;
}

.slideshow-controls {
  margin-bottom: 8px !important;
}

.slideshow-btn {
  margin: 0 7px !important;
  padding: 8px 22px !important;
  border-radius: 22px !important;
  border: none !important;
  background: var(--accent) !important;
  color: var(--primary-dark) !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.slideshow-caption {
  font-size: 1.02rem !important;
  color: #444 !important;
}

.content-section {
  margin-bottom: 15px !important;
}

.no-bullets {
  list-style: none !important;
  padding-left: 0 !important;
}

.journey-card {
  background: linear-gradient(104deg, #e8f5e9 60%, #fff 100%) !important;
  box-shadow: 0 4px 36px 0 rgba(36, 97, 59, 0.09) !important;
}

.journey-heading {
  color: var(--primary) !important;
}

.journey-text {
  font-size: 1.09rem !important;
}

/* Responsive Design */
@media (max-width: 1150px) {
  .container { 
    grid-template-columns: 1fr; 
  }
  aside.sidebar { 
    margin-top: 34px; 
  }
}

@media (max-width: 800px) {
  .container { 
    padding: 14px 4px 0 4px; 
  }
  
  .main-content, 
  aside.sidebar, 
  .features, 
  .stats, 
  .footer-content { 
    flex-direction: column !important; 
    gap: 19px !important; 
  }
  
  .features { 
    flex-direction: column; 
  }
  
  .stats { 
    flex-direction: column; 
  }
  
  .footer-content { 
    grid-template-columns: 1fr; 
    gap: 17px; 
    padding: 20px 4px 10px 4px; 
  }
  
  .header-content h1 { 
    /* margin-bottom: none; */
    font-size: 2.1rem; 
  }
  
  .header-content h2 { 
    font-size: 1.2rem; 
  }
  
  .header-content p { 
    font-size: 1.04rem; 
  }
  
  .header-container { 
    height: 230px; 
  }
  
  nav { 
    padding: 0 12px; 
  }
  
  /* External links mobile styles */
  .external-link-item {
    padding: 14px 16px;
  }
  
  .link-icon {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    font-size: 1.2rem;
  }
  
  .link-content h4 {
    font-size: 1.1rem;
  }
  
  .link-content p {
    font-size: 0.9rem;
  }
}

@media (max-width: 600px) {
  .header-content {
    padding: 0 12px;
  }
  
  .slider-dot { 
    width: 9px; 
    height: 9px; 
  }
  
  .slider-dots { 
    bottom: 7px; 
  }
  
  .header-content-index h1, 
  .header-content-index h2 { 
    margin-bottom: 17px;
    /* font-size: 1.11rem;  */
  }
  
  .header-container { 
    height: 130px; 
  }
}

@media (max-width: 1263px) {
  /* Use the unified off-canvas mobile nav defined earlier; only tweak minor bits here */
  .nav-toggle { display: inline-flex; }
  .nav-logo  { font-size: 1.5rem; text-decoration: none; }
}

/* Admission Page Specific Styles */
.page-header {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
  color: white;
  padding: 120px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('assets/images/admission-bg.jpg') center/cover;
  opacity: 0.1;
  z-index: 0;
}

.page-header .header-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-header h1 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-header p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  opacity: 0.95;
}

.breadcrumb {
  font-size: 1rem;
  opacity: 0.8;
}

.breadcrumb a {
  color: white;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.admission-content {
  flex: 1;
  margin-right: 30px;
}

/* Notice Card */
.notice-card {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border: 2px solid #ffc107;
  border-radius: 15px;
  margin-bottom: 30px;
}

.notice-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  color: #856404;
}

.notice-header i {
  font-size: 2rem;
  color: #ffc107;
}

.notice-header h2 {
  margin: 0;
  font-size: 1.8rem;
}

.notice-content p {
  margin: 10px 0;
  font-weight: 600;
  color: #856404;
}

/* Eligibility Grid */
.eligibility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.eligibility-item {
  background: var(--light-gray);
  padding: 25px;
  border-radius: 12px;
  border-left: 5px solid var(--primary-green);
}

.eligibility-item h3 {
  color: var(--primary-green);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.eligibility-item ul {
  list-style: none;
  padding: 0;
}

.eligibility-item li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.eligibility-item li:last-child {
  border-bottom: none;
}

.eligibility-item li strong {
  color: var(--dark-green);
}

/* Test Information */
.test-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 30px;
}

.test-subjects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.subject-card {
  background: var(--light-gray);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.subject-card:hover {
  border-color: var(--primary-green);
  transform: translateY(-5px);
}

.subject-card h4 {
  color: var(--primary-green);
  margin-bottom: 10px;
}

.test-centers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.center-group h4 {
  color: var(--primary-green);
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--accent-green);
}

.center-group ul {
  list-style: none;
  padding: 0;
}

.center-group li {
  padding: 5px 0;
  color: #666;
}

/* Admission Overview */
.admission-overview {
  background: linear-gradient(135deg, #f8fffe 0%, #f0f9f4 100%);
  border: 2px solid var(--accent-green);
}

.journey-timeline {
  margin-top: 30px;
}

.timeline-step {
  display: flex;
  gap: 20px;
  margin-bottom: 35px;
  padding: 25px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  position: relative;
}

.timeline-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.timeline-step::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--primary-green), var(--accent-green));
  border-radius: 2px;
}

.step-icon {
  background: var(--primary-dark);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(36, 97, 59, 0.3);
}

.step-details {
  flex: 1;
}

.step-details h3 {
  color: var(--primary-green);
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.step-details p {
  color: #666;
  margin-bottom: 15px;
  line-height: 1.6;
}

.step-highlight {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.step-highlight span {
  background: var(--accent-green);
  color: var(--primary-green);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.step-highlight span i {
  font-size: 0.8rem;
}

.view-all-colleges {
  text-align: center;
  margin-top: 30px;
}

/* Process Steps */
.process-steps {
  margin-top: 30px;
}

.step {
  display: flex;
  gap: 25px;
  margin-bottom: 40px;
  align-items: flex-start;
}

.step-number {
  background: var(--primary-green);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-content h3 {
  color: var(--primary-green);
  margin-bottom: 15px;
}

.step-content ul {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}

.step-content li {
  padding: 5px 0;
  color: #666;
  position: relative;
  padding-left: 20px;
}

.step-content li::before {
  content: '•';
  color: var(--primary-green);
  position: absolute;
  left: 0;
}

/* Selection Breakdown */
.selection-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 30px;
}

.criteria-chart h3,
.quota-system h3 {
  color: var(--primary-green);
  margin-bottom: 20px;
}

.merit-item {
  margin-bottom: 20px;
}

.merit-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.merit-bar {
  background: #eee;
  height: 30px;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
}

.merit-fill {
  background: linear-gradient(90deg, var(--primary-green) 0%, var(--accent-green) 100%);
  height: 100%;
  border-radius: 15px;
  transition: width 1s ease;
}

.merit-percentage {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-weight: bold;
}

.quota-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.quota-item {
  background: var(--light-gray);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

.quota-item h4 {
  margin: 0 0 10px 0;
  color: #333;
}

.quota-percentage {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-green);
}

/* Tips Grid */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.tip-card {
  background: var(--light-gray);
  padding: 25px;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.tip-card:hover {
  border-color: var(--primary-green);
  transform: translateY(-5px);
}

.tip-card i {
  font-size: 3rem;
  color: var(--primary-green);
  margin-bottom: 20px;
}

.tip-card h3 {
  color: var(--primary-green);
  margin-bottom: 15px;
}

.tip-card ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.tip-card li {
  padding: 5px 0;
  color: #666;
  position: relative;
  padding-left: 20px;
}

.tip-card li::before {
  content: '✓';
  color: var(--primary-green);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* FAQ Section */
.faq-container {
  margin-top: 30px;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
}

.faq-question {
  background: var(--light-gray);
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: var(--accent-green);
}

.faq-question span {
  font-weight: 600;
  color: #333;
}

.faq-question i {
  color: var(--primary-green);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  background: white;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 20px;
  margin: 0;
  color: #666;
  line-height: 1.6;
}

/* CTA Card */
.cta-card {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
  color: white;
  text-align: center;
  margin-top: 40px;
}

.cta-content h2 {
  color: white;
  margin-bottom: 15px;
}

.cta-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-secondary {
  background: transparent;
  color: white;
  background-color: var(--primary);
  border: 2px solid white;
  padding: 12px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-secondary:hover {
  background: white;
  color: var(--primary-green);
}

/* Timeline Items */
.timeline-item {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.timeline-item:last-child {
  border-bottom: none;
}

.date {
  font-weight: bold;
  color: var(--primary-green);
  min-width: 120px;
}

.event {
  color: #666;
}

/* Responsive Design for Admission Page */
@media (max-width: 768px) {
  .page-header h1 {
    font-size: 2.5rem;
  }
  
  .page-header p {
    font-size: 1.1rem;
  }
  
  .admission-content {
    margin-right: 0;
  }
  
  .eligibility-grid,
  .tips-grid {
    grid-template-columns: 1fr;
  }
  
  .test-info-grid,
  .selection-breakdown {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .step {
    flex-direction: column;
    gap: 15px;
  }
  
  .step-number {
    align-self: flex-start;
  }
  
  .timeline-step {
    flex-direction: column;
    gap: 15px;
    padding: 20px;
  }
  
  .step-icon {
    align-self: center;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .step-details {
    text-align: center;
  }
  
  .step-highlight {
    justify-content: center;
    flex-direction: column;
    gap: 8px;
  }
  
  .step-highlight span {
    font-size: 0.8rem;
    padding: 3px 8px;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .quota-grid {
    grid-template-columns: 1fr;
  }
}

/* Test Pattern Overview Stats */
.overview-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-box {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(36, 97, 59, 0.1);
  border: 2px solid var(--bg);
  transition: all 0.3s ease;
}

.stat-box:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  background: var(--white);
}

.stat-box .stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  display: block;
  margin-bottom: 0.5rem;
}

.stat-box .stat-label {
  font-size: 0.9rem;
  color: var(--primary-dark);
  font-weight: 600;
}

/* Subject Grid */
.subject-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Syllabus Grid */
.syllabus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

.syllabus-section {
  background: var(--bg);
  border-radius: 12px;
  padding: 1.5rem;
  border-left: 4px solid var(--accent);
}

.syllabus-section h4 {
  color: var(--primary);
  font-size: 1.1rem;
  margin: 0 0 1rem 0;
  font-weight: 700;
}

.syllabus-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.syllabus-section ul li {
  padding: 0.3rem 0;
  position: relative;
  padding-left: 1.2rem;
  color: var(--primary-dark);
  font-size: 0.9rem;
}

.syllabus-section ul li:before {
  content: "•";
  color: var(--accent);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Additional Styles for 8th and 11th Class Admission Pages */

/* Program Cards for 11th Class */
.programs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

/* Colleges Page Styles */

/* Filter Section */
.filter-section {
  margin-bottom: 2rem;
}

.province-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.filter-btn {
  background: var(--bg);
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-btn:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(36, 97, 59, 0.2);
}

.filter-btn.active {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(36, 97, 59, 0.3);
}

/* Province Sections */
.province-section {
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.province-section.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.province-title {
  color: var(--primary);
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 2rem 0;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--accent);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.province-title i {
  color: var(--accent);
}
/* College Type Filter Section */
.type-filters {
  display: flex;        /* Arrange buttons in a row */
  justify-content: flex-start;
  flex-wrap: wrap;      /* Wrap to next line if too many buttons */
  gap: 1rem;            /* Space between buttons */
  margin-top: 1rem;     /* Space above the filter section */
}

/* Buttons inside type filter */
.type-filters .filter-btn {
  background: var(--bg);           /* Button background */
  border: 2px solid var(--primary); /* Button border color */
  color: var(--primary);           /* Text color */
  padding: 0.8rem 1.5rem;          /* Padding inside button */
  border-radius: 8px;              /* Rounded corners */
  cursor: pointer;                 /* Pointer cursor on hover */
  transition: all 0.3s ease;       /* Smooth hover effect */
  font-weight: 600;                /* Bold text */
  font-size: 0.9rem;               /* Text size */
  display: flex;                   /* Align icon and text */
  align-items: center;             
  gap: 0.5rem;                     /* Space between icon and text */
}

/* Hover effect for buttons */
.type-filters .filter-btn:hover {
  background: var(--primary);      /* Background changes on hover */
  color: var(--white);             /* Text color changes on hover */
  transform: translateY(-2px);     /* Button lifts slightly */
  box-shadow: 0 4px 16px rgba(36, 97, 59, 0.2); /* Shadow effect */
}

/* Active button style */
.type-filters .filter-btn.active {
  background: var(--primary);      /* Active button background */
  color: var(--white);             /* Active button text */
  box-shadow: 0 4px 16px rgba(36, 97, 59, 0.3); /* Active shadow */
}

/* Colleges Grid */
.colleges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

/* College Cards */
.college-card {
  background: var(--white) !important;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(36, 97, 59, 0.1);
  border: 1px solid var(--bg);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.college-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

.college-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(36, 97, 59, 0.15);
  border-color: var(--accent);
  background: var(--white) !important;
}

.premier-card {
  background: linear-gradient(135deg, #f8fffe 0%, #f0f9f4 100%) !important;
  border: 2px solid var(--accent);
}

.premier-card::before {
  background: linear-gradient(90deg, var(--accent) 0%, #ffd700 100%);
  height: 6px;
}

/* College Header */
.college-header {
  margin-bottom: 1.5rem;
}

.college-header h3 {
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 1rem 0;
  line-height: 1.3;
}

.college-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge.premier {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #1a1a1a;
}

.badge.boys {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
}

.badge.coed {
  background: linear-gradient(135deg, var(--accent) 0%, #34d399 100%);
  color: var(--white);
}

.badge.paf {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: var(--white);
}

/* College Info */
.college-info {
  margin-bottom: 1.5rem;
}

.college-info p {
  margin: 0.5rem 0;
  color: var(--primary-dark);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.college-info i {
  color: var(--accent);
  width: 16px;
  text-align: center;
}

/* College Contact */
.college-contact {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--bg);
  border-radius: 8px;
}

.college-contact p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.college-contact i {
  color: var(--accent);
  width: 16px;
  text-align: center;
}

.college-contact a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.college-contact a:hover {
  color: var(--accent);
}

/* College Actions */
.college-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.college-actions .btn-primary,
.college-actions .btn-secondary {
  flex: 1;
  min-width: 140px;
  text-align: center;
  padding: 0.8rem 1rem !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  border-radius: 25px !important;
  letter-spacing: normal !important;
  margin: 0 !important;
  line-height: 1.5 !important;
}

/* Ensure all properties are exactly the same for both buttons */
.college-actions .btn-primary {
  padding: 0.8rem 1rem !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  border-radius: 25px !important;
  letter-spacing: normal !important;
  margin: 0 !important;
  line-height: 1.5 !important;
}

.college-actions .btn-secondary {
  padding: 0.8rem 1rem !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  border-radius: 25px !important;
  letter-spacing: normal !important;
  margin: 0 !important;
  line-height: 1.5 !important;
}

/* Fix secondary button visibility on college cards */
.college-actions .btn-secondary {
  background: var(--primary);
  color: white;
  border: 2px solid var(--primary);
  transition: all 0.3s ease;
}

.college-actions .btn-secondary:hover {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

/* Info Section */
.info-section {
  margin-top: 3rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.info-item {
  padding: 1.5rem;
  background: var(--bg);
  border-radius: 12px;
  border-left: 4px solid var(--accent);
}

.info-item h4 {
  color: var(--primary);
  font-size: 1.1rem;
  margin: 0 0 0.8rem 0;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.info-item h4 i {
  color: var(--accent);
}

.info-item p {
  color: var(--primary-dark);
  margin: 0;
  line-height: 1.6;
}

/* Quick Stats in Sidebar */
.quick-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.quick-stat {
  text-align: center;
  padding: 1rem;
  background: var(--bg);
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.quick-stat:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.quick-stat .stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.quick-stat .stat-label {
  font-size: 0.8rem;
  color: var(--primary-dark);
  font-weight: 600;
}

/* Popular List */
.popular-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
}

.popular-list li {
  margin-bottom: 0.8rem;
}

.popular-list a {
  color: var(--primary-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.popular-list a:hover {
  background: var(--bg);
  color: var(--primary);
  transform: translateX(5px);
}

.popular-list i {
  color: var(--accent);
}

/* Timeline Items */
.timeline-item {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--bg);
  color: var(--primary-dark);
  font-size: 0.9rem;
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-item strong {
  color: var(--primary);
}

/* Responsive Design for Colleges Page */
@media (max-width: 768px) {
  .page-header h1 {
    font-size: 2.2rem;
  }
  
  .header-subtitle {
    font-size: 1rem;
  }
  
  .province-filters {
    justify-content: center;
  }
  
  .filter-btn {
    flex: 1;
    min-width: 120px;
    justify-content: center;
  }
  
  .colleges-grid {
    grid-template-columns: 1fr;
  }
  
  .college-actions {
    flex-direction: column;
  }
  
  .college-actions .btn-primary,
  .college-actions .btn-secondary {
    flex: none;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .quick-stats {
    grid-template-columns: 1fr;
  }
  
  .province-title {
    font-size: 1.6rem;
  }
}

/* Model Papers Page Styles */

/* Quick Access Section */
.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.access-btn {
  background: var(--bg);
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 1.5rem 1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.access-btn:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(36, 97, 59, 0.2);
}

.access-btn i {
  font-size: 1.5rem;
}

/* Papers Section */
.papers-section {
  margin-bottom: 3rem;
}

.section-title {
  color: var(--primary);
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 2rem 0;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--accent);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-title i {
  color: var(--accent);
}

/* Papers Grid */
.papers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

/* Paper Cards */
.paper-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(36, 97, 59, 0.1);
  border: 1px solid var(--bg);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.paper-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

.paper-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(36, 97, 59, 0.15);
  border-color: var(--accent);
}

.premium-card {
  background: linear-gradient(135deg, #f8fffe 0%, #f0f9f4 100%);
  border: 2px solid var(--accent);
}

.premium-card::before {
  background: linear-gradient(90deg, var(--accent) 0%, #ffd700 100%);
  height: 6px;
}

/* Paper Header */
.paper-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.paper-header h3 {
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0;
  flex: 1;
}

.paper-count {
  background: var(--accent);
  color: var(--white);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Paper Info */
.paper-info {
  margin-bottom: 1.5rem;
}

.paper-info p {
  margin: 0.5rem 0;
  color: var(--primary-dark);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.paper-info i {
  color: var(--accent);
  width: 16px;
  text-align: center;
}

/* Paper Content */
.paper-content {
  margin-bottom: 1.5rem;
}

.paper-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.paper-content ul li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.2rem;
  color: var(--primary-dark);
  font-size: 0.9rem;
}

.paper-content ul li:before {
  content: "✓";
  color: var(--accent);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Paper Actions */
.paper-actions {
  display: flex;
  gap: 1rem;
}

.paper-actions .btn-primary,
.paper-actions .btn-secondary {
  flex: 1;
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Quick Tests Grid */
.quick-tests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.quick-test-card {
  background: var(--bg);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.quick-test-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(36, 97, 59, 0.1);
}

.quick-test-card h4 {
  color: var(--primary);
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.quick-test-card p {
  color: var(--primary-dark);
  margin: 0 0 1rem 0;
  font-size: 0.9rem;
}

.quick-test-card .btn-primary {
  width: 100%;
  padding: 0.8rem;
  font-size: 0.9rem;
}

/* Mock Tests Grid */
.mock-tests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.mock-test-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(36, 97, 59, 0.1);
  border: 1px solid var(--bg);
  transition: all 0.3s ease;
}

.mock-test-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(36, 97, 59, 0.15);
}

.mock-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.mock-header h3 {
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0;
  flex: 1;
}

.difficulty-badge {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--primary);
  color: var(--white);
}

.difficulty-badge.advanced {
  background: var(--accent);
}

.difficulty-badge.expert {
  background: #dc2626;
}

.mock-details {
  margin-bottom: 1rem;
}

.mock-details p {
  margin: 0.3rem 0;
  color: var(--primary-dark);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mock-subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.subject-tag {
  background: var(--bg);
  color: var(--primary);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--primary);
}

.mock-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Tips Section */
.tips-section {
  margin-top: 3rem;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.tip-item {
  padding: 1.5rem;
  background: var(--bg);
  border-radius: 12px;
  border-left: 4px solid var(--accent);
}

.tip-item h4 {
  color: var(--primary);
  font-size: 1.1rem;
  margin: 0 0 0.8rem 0;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.tip-item h4 i {
  color: var(--accent);
}

.tip-item p {
  color: var(--primary-dark);
  margin: 0;
  line-height: 1.6;
}

/* Sidebar Styles for Model Papers */
.download-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.stat-item-small {
  text-align: center;
  padding: 1rem;
  background: var(--bg);
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.stat-item-small:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.stat-item-small .stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.stat-item-small .stat-label {
  font-size: 0.8rem;
  color: var(--primary-dark);
  font-weight: 600;
}

.popular-papers {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
}

.popular-papers li {
  margin-bottom: 0.8rem;
}

.popular-papers a {
  color: var(--primary-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.9rem;
}

.popular-papers a:hover {
  background: var(--bg);
  color: var(--primary);
  transform: translateX(5px);
}

.popular-papers i {
  color: #f59e0b;
}

.schedule-item {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--bg);
  color: var(--primary-dark);
  font-size: 0.9rem;
}

.schedule-item:last-child {
  border-bottom: none;
}

.schedule-item strong {
  color: var(--primary);
}

/* Responsive Design for Model Papers */
@media (max-width: 768px) {
  .quick-access-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .papers-grid {
    grid-template-columns: 1fr;
  }
  
  .paper-actions {
    flex-direction: column;
  }
  
  .paper-actions .btn-primary,
  .paper-actions .btn-secondary {
    flex: none;
  }
  
  .quick-tests-grid {
    grid-template-columns: 1fr;
  }
  
  .mock-tests-grid {
    grid-template-columns: 1fr;
  }
  
  .tips-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .mock-header {
    flex-direction: column;
    gap: 1rem;
  }
  
  .download-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Enhanced Model Papers Page Styles - Security & Mobile First */

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #194929;
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 9999;
  border-radius: 4px;
  font-weight: 600;
}

.skip-link:focus {
  top: 6px;
}

/* Enhanced Navigation Hamburger */
.hamburger-line {
  width: 25px;
  height: 3px;
  background: #194929;
  margin: 2px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
  display: block;
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Enhanced Header CTA Buttons */
.header-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.header-cta .btn-primary,
.header-cta .btn-secondary {
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  min-width: 160px;
  justify-content: center;
}

.header-cta .btn-primary {
  background: rgba(255,255,255,0.2);
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
}

.header-cta .btn-primary:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.header-cta .btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
}

.header-cta .btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
}

/* Enhanced Loading Skeleton */
.loading-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Enhanced Quick Access - Mobile First */
.quick-access-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.access-btn {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid #dee2e6;
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.access-btn:hover {
  background: linear-gradient(135deg, #194929 0%, #24613b 100%);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(25, 73, 41, 0.3);
  border-color: #194929;
}

.access-btn i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
}

.access-btn:hover i {
  transform: scale(1.1);
}

.access-btn span {
  font-weight: 600;
  font-size: 1.1rem;
}

.access-btn small {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 0.25rem;
}

/* Enhanced Paper Cards - Mobile First */
.paper-card {
  background: #ffffff;
  border: 2px solid #e9ecef;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.paper-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(25, 73, 41, 0.15);
  border-color: #194929;
}

.paper-card:focus-within {
  outline: 3px solid #194929;
  outline-offset: 2px;
}

.featured-card {
  border-color: #ffc107;
  position: relative;
}

.featured-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #ffc107, #ff9800);
}

.featured-badge {
  background: #ffc107;
  color: #000;
  padding: 0.3rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

.paper-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.paper-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #194929;
  margin: 0;
  line-height: 1.3;
  flex: 1;
  min-width: 200px;
}

.difficulty-badge {
  padding: 0.3rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.5rem;
}

.difficulty-badge.beginner { background: #d4edda; color: #155724; }
.difficulty-badge.intermediate { background: #fff3cd; color: #856404; }
.difficulty-badge.advanced { background: #f8d7da; color: #721c24; }

.paper-content h4 {
  color: #194929;
  font-size: 1rem;
  margin: 0 0 1rem 0;
  font-weight: 600;
}

.paper-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.paper-content li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f8f9fa;
  position: relative;
  padding-left: 1.5rem;
  color: #495057;
  font-size: 0.9rem;
  line-height: 1.4;
}

.paper-content li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #28a745;
  font-weight: bold;
}

.paper-content li:last-child {
  border-bottom: none;
}

/* Enhanced Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
  backdrop-filter: blur(5px);
}

.modal-content {
  background: white;
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  animation: modalAppear 0.3s ease forwards;
}

@keyframes modalAppear {
  to {
    transform: scale(1);
  }
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  color: #194929;
  font-size: 1.3rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6c757d;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #f8f9fa;
  color: #194929;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e9ecef;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.modal-footer button {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 100px;
}

.download-info {
  text-align: center;
  padding: 1rem 0;
}

.success-icon {
  font-size: 3rem;
  color: #28a745;
  margin-bottom: 1rem;
}

.download-note {
  background: #e7f3ff;
  border: 1px solid #b3d9ff;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

.preview-content {
  padding: 1rem 0;
}

.preview-content ol {
  padding-left: 1.5rem;
}

.preview-content li {
  margin: 0.8rem 0;
  line-height: 1.5;
}

.preview-note {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
  color: #495057;
}

.coming-soon-content {
  text-align: center;
  padding: 2rem 0;
}

.coming-soon-icon {
  font-size: 4rem;
  color: #17a2b8;
  margin-bottom: 1rem;
}

/* Error Toast */
.error-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #dc3545;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
  z-index: 10001;
  max-width: 400px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.error-toast button {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}

/* Enhanced Focus Indicators for Keyboard Navigation */
.keyboard-navigation *:focus {
  outline: 3px solid #194929 !important;
  outline-offset: 2px !important;
}

/* Section Description */
.section-description {
  color: #6c757d;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Enhanced Responsive Design */
@media (min-width: 576px) {
  .quick-access-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .papers-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  
  .overview-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .quick-access-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .overview-stats {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .header-cta {
    flex-wrap: nowrap;
  }
  
 
}

@media (min-width: 992px) {
  .papers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .paper-actions {
    flex-wrap: nowrap;
  }
}

/* Print Styles */
@media print {
  .nav-toggle,
  .modal-overlay,
  .error-toast,
  .header-cta,
  .paper-actions {
    display: none !important;
  }
  
  .paper-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .loading-skeleton {
    animation: none;
    background: #f0f0f0;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .paper-card {
    border-width: 3px;
  }
  
  .btn-primary,
  .download-btn {
    border: 2px solid currentColor;
  }
  
  .difficulty-badge {
    border: 1px solid currentColor;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .paper-card {
    background: #2d2d2d;
    border-color: #404040;
    color: #e0e0e0;
  }
  
  .paper-header {
    background: linear-gradient(135deg, #383838 0%, #2d2d2d 100%);
  }
  
  .paper-header h3 {
    color: #4CAF50;
  }
  
  .modal-content {
    background: #2d2d2d;
    color: #e0e0e0;
  }
  
  .stat-box {
    background: #2d2d2d;
    border-color: #404040;
    color: #e0e0e0;
  }
}

.program-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 48px rgba(36, 97, 59, 0.15);
}

.program-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--bg);
}

.program-header i {
  font-size: 2rem;
  color: var(--primary);
}

.program-header h3 {
  color: var(--primary);
  font-size: 1.4rem;
  margin: 0;
  font-weight: 700;
}

.program-content h4 {
  color: var(--primary-dark);
  font-size: 1.1rem;
  margin: 1.5rem 0 0.8rem 0;
  font-weight: 600;
}

.program-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.program-content ul li {
  padding: 0.3rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.program-content ul li:before {
  content: "•";
  color: var(--accent);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Strategy Timeline */
.strategy-timeline {
  display: grid;
  gap: 2rem;
  margin-top: 1.5rem;
}

.strategy-phase {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}

.phase-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.phase-header i {
  font-size: 1.5rem;
  color: var(--primary);
}

.phase-header h3 {
  color: var(--primary);
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
}

.phase-content h4 {
  color: var(--primary-dark);
  font-size: 1.1rem;
  margin: 0 0 1rem 0;
  font-weight: 600;
}

.phase-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.phase-content ul li {
  padding: 0.4rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.phase-content ul li:before {
  content: "→";
  color: var(--accent);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Tab System for Syllabus */
.syllabus-tabs {
  margin-top: 1.5rem;
}

.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--bg);
  padding-bottom: 1rem;
}

.tab-btn {
  background: var(--bg);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.tab-btn:hover {
  background: var(--primary);
  color: var(--white);
}

.tab-btn.active {
  background: var(--primary);
  color: var(--white);
}

.tab-content {
  display: none;
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.tab-content h3 {
  color: var(--primary);
  margin: 0 0 1.5rem 0;
  font-size: 1.4rem;
  font-weight: 700;
}

/* Sample Questions */
.sample-questions {
  display: grid;
  gap: 2rem;
  margin-top: 1.5rem;
}

.question-set {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.question-set h3 {
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 1.5rem 0;
  font-size: 1.3rem;
  font-weight: 700;
}

.question-set h3 i {
  color: var(--accent);
}

.question-list {
  display: grid;
  gap: 1.5rem;
}

.question-item {
  background: var(--bg);
  border-radius: 12px;
  padding: 1.5rem;
  border-left: 4px solid var(--accent);
}

.question-item p {
  margin: 0 0 1rem 0;
  color: var(--primary-dark);
  font-weight: 500;
}

.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 1rem 0;
}

.options span {
  background: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(36, 97, 59, 0.1);
}

.answer {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white) !important;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  margin-top: 1rem !important;
  font-weight: 600 !important;
}

/* Tips Container */
.tips-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.tip-category {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.tip-category h3 {
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 1.5rem 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.tip-category h3 i {
  color: var(--accent);
}

.tip-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tip-category ul li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
  color: var(--primary-dark);
}

.tip-category ul li:before {
  content: "✓";
  color: var(--accent);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* College List in Sidebar */
.college-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.college-list li {
  padding: 0.8rem 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--primary-dark);
  border-bottom: 1px solid var(--bg);
}

.college-list li:last-child {
  border-bottom: none;
}

.college-list li i {
  color: var(--accent);
  font-size: 0.9rem;
}

/* Notice Card Enhancement */
.notice-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border: none;
}

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

.notice-header i {
  font-size: 2rem;
  color: var(--accent);
}

.notice-header h2 {
  color: var(--white);
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.notice-content p {
  color: var(--white);
  margin: 0.5rem 0;
  font-weight: 500;
}

.notice-content strong {
  color: var(--accent);
}

/* Responsive Design for New Components */
@media (max-width: 768px) {
  .programs-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .tips-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .tab-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .tab-btn {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    margin: 0.2rem;
  }
  
  .options {
    grid-template-columns: 1fr;
  }
  
  .strategy-phase {
    padding: 1.5rem;
  }
  
  .phase-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .phase-header h3 {
    font-size: 1.1rem;
  }
  
  .subject-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .overview-stats {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  .syllabus-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .program-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .program-header h3 {
    font-size: 1.2rem;
  }
  
  .tab-btn {
    font-size: 0.8rem;
    padding: 0.5rem 0.8rem;
  }
  
  .overview-stats {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  
  .stat-box {
    padding: 1rem;
  }
  
  .stat-box .stat-number {
    font-size: 1.5rem;
  }
  
  .phase-content ul {
    padding-left: 1rem;
  }
  
  .notice-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .notice-header h2 {
    font-size: 1.3rem;
  }
}

/* Contact Form Styles */
.contact-form {
  max-width: 100%;
  margin: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e8f0ea;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(36, 97, 59, 0.1);
  transform: translateY(-1px);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-help {
  display: block;
  font-size: 0.85rem;
  color: #6c757d;
  margin-top: 0.25rem;
  font-style: italic;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin: 0;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.checkbox-group label {
  margin: 0;
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.5;
  cursor: pointer;
}

.checkbox-group label a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.checkbox-group label a:hover {
  text-decoration: underline;
}

.contact-form .btn-primary {
  width: auto;
  min-width: 180px;
  padding: 14px 32px;
  font-size: 1.1rem;
  margin-top: 1rem;
  transition: all 0.3s ease;
}

.contact-form .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(36, 97, 59, 0.25);
}

/* Social Links in Sidebar */
.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(36, 97, 59, 0.2);
}

/* Ensure sidebar social links override any other styles */
.sidebar .social-links a {
  background: var(--primary) !important;
  color: var(--white) !important;
}

.sidebar .social-links a:hover {
  background: var(--accent) !important;
  color: var(--white) !important;
}

/* Contact Form Responsive Design */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px 14px;
    font-size: 0.95rem;
  }
  
  .contact-form .btn-primary {
    width: 100%;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .form-group {
    margin-bottom: 1rem;
  }
  
  .form-group label {
    font-size: 0.9rem;
  }
  
  .form-help {
    font-size: 0.8rem;
  }
  
  .checkbox-group {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .checkbox-group input[type="checkbox"] {
    margin-top: 0;
  }
  
  .social-links a {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

/* Contact Details Styling for Legal Pages */
.contact-details {
  background: #f8fdf9;
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary);
  margin-top: 1rem;
}

.contact-details p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

.contact-details strong {
  color: var(--primary);
  font-weight: 600;
}

.contact-details a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.contact-details a:hover {
  text-decoration: underline;
  color: var(--primary-dark);
}

/* College Page Background Fixes */
.overview-stats .stat-box,
.colleges-grid .college-card,
.filter-section,
.province-section .college-card {
  background: var(--white) !important;
}

/* Ensure no black backgrounds on college cards */
.college-card,
.college-card:hover,
.college-card:focus {
  background: var(--white) !important;
  color: inherit;
}

.stat-box,
.stat-box:hover,
.stat-box:focus {
  background: var(--white) !important;
  color: inherit;
}

/* Enhanced Download Button Styles */
.external-link-item .download-btn {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
  text-decoration: none;
  min-width: 120px;
  justify-content: center;
}

.external-link-item .download-btn:hover {
  background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

.external-link-item .download-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(40, 167, 69, 0.2);
}

.external-link-item .download-btn i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.external-link-item .download-btn:hover i {
  transform: translateY(-1px);
}

/* Disabled state for download button */
.external-link-item .download-btn:disabled {
  background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);
}

.external-link-item .download-btn:disabled:hover {
  transform: none;
  background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
}

/* Total Downloads Stats */
.total-downloads-stats {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid #dee2e6;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  text-align: center;
}

.total-downloads-stats h4 {
  margin: 0 0 15px 0;
  color: var(--primary-dark);
  font-size: 1.2rem;
}

.downloads-counter {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.download-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
}

.download-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 5px;
}

.download-label {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

@media (max-width: 768px) {
  .external-link-item .download-btn {
    padding: 10px 16px;
    font-size: 0.85rem;
    min-width: 100px;
  }
  
  .downloads-counter {
    gap: 20px;
  }
  
  .download-number {
    font-size: 1.5rem;
  }
}

/* Clickable Cards Enhancement */
.clickable-card {
  transition: all 0.3s ease;
}

.clickable-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(36, 97, 59, 0.15);
}

.clickable-card:active {
  transform: translateY(-2px);
}

/* Feature cards when clickable */
.feature-card.clickable-card:hover {
  background: var(--glass);
  backdrop-filter: blur(15px);
}

/* Journey card when clickable */
.journey-card.clickable-card:hover {
  background: linear-gradient(135deg, var(--glass), rgba(250, 175, 64, 0.1));
}

/* Notification Styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  animation: slideInRight 0.3s ease-out;
  backdrop-filter: blur(10px);
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 12px;
  font-weight: 500;
}

.notification-success .notification-content {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.9), rgba(22, 163, 74, 0.9));
  color: white;
  border-left: 4px solid #16a34a;
}

.notification-error .notification-content {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.9));
  color: white;
  border-left: 4px solid #dc2626;
}

.notification-info .notification-content {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(37, 99, 235, 0.9));
  color: white;
  border-left: 4px solid #2563eb;
}

.notification-close {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  opacity: 0.8;
  transition: all 0.2s ease;
  margin-left: auto;
}

.notification-close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .notification {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
}

/* Cookie Consent Banner */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(36, 97, 59, 0.95), rgba(25, 73, 41, 0.95));
  backdrop-filter: blur(10px);
  color: white;
  z-index: 10001;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.cookie-consent.show {
  transform: translateY(0);
}

.cookie-consent.hide {
  transform: translateY(100%);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.cookie-text {
  flex: 1;
}

.cookie-text p {
  margin: 0 0 8px 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

.cookie-text p:first-child {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.cookie-actions {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-shrink: 0;
}

.btn-accept, .btn-decline, .btn-learn-more {
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.btn-accept {
  background: var(--accent);
  color: var(--primary);
}

.btn-accept:hover {
  background: #f39800;
  transform: translateY(-1px);
}

.btn-decline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-decline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

.btn-learn-more {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-learn-more:hover {
  background: var(--accent);
  color: var(--primary);
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    text-align: center;
  }
  
  .cookie-actions {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  
  .btn-accept, .btn-decline, .btn-learn-more {
    padding: 12px 20px;
    min-width: 120px;
  }
  
  .cookie-text p {
    font-size: 0.9rem;
  }
}


