/* --- Variables --- */
:root {
  --color1: #52a675ff;
  --color2: #b2c8e7ff;
  --color3: #1c53a5ff;
  --color4: #ffffffff;
  --color5: #000000ff;
  --nav-hover: rgba(82, 166, 117, 0.15);
  --accent: #ff6b6b;
  --accent-light: #ff9e9e;
  --secondary: #4ecdc4;
  --light-bg: #f8f9fa;
  --dark-bg: #121212;
  --text-light: #f8f9fa;
  --text-dark: #212529;
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --surface-color: #ffffff;
  --text-color: #2c3e50;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 6px 25px rgba(0, 0, 0, 0.15);
}

/* Dark theme variables */
[data-theme="dark"] {
  --bg-color: var(--dark-bg);
  --text-color: var(--text-light);
  --card-bg: #2d2d2d;
  --footer-bg: #0d2a5c;
  --footer-text: var(--text-light);
  --section-bg: #2d2d2d;
  --news-bg: #2d2d2d;
  --feature-bg: #2d2d2d;
  --color3: #3a7be0;
  --nav-hover: rgba(82, 166, 117, 0.3);
  --primary-color: #4a9de3;
  --secondary-color: #34495e;
  --surface-color: #16213e;
  --text-color: #e6e6e6;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* --- Background with solid white --- */
body {
  background: #ffffff;
  position: relative;
  font-family: 'Poppins', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] body {
  background: var(--dark-bg);
  color: var(--text-light);
}

/* Content wrapper */
.content-wrapper {
  background: #ffffff;
  min-height: 100vh;
}

[data-theme="dark"] .content-wrapper {
  background: var(--dark-bg);
}

/* Section backgrounds */
.section, .stats-section, .facebook-feed-section {
  background: #ffffff;
  border-radius: 16px;
  padding: 2.5rem;
  margin: 2rem auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  max-width: 1200px;
}

[data-theme="dark"] .section, 
[data-theme="dark"] .stats-section, 
[data-theme="dark"] .facebook-feed-section {
  background: var(--card-bg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Cards and features */
.card, .feature, .news-article, .news-highlight {
  background: #ffffff;
}

[data-theme="dark"] .card,
[data-theme="dark"] .feature,
[data-theme="dark"] .news-article,
[data-theme="dark"] .news-highlight {
  background: var(--card-bg);
}

/* Rest of your CSS remains the same */
* { margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

/* Navbar - Updated with transparency */
.navbar {
  position: sticky;
  top: 1.2rem;
  width: 90%;
  max-width: 1250px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 2rem;
  background: rgba(255, 255, 255, 0.7); /* Semi-transparent white */
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  z-index: 2000;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px); /* Glass effect */
  -webkit-backdrop-filter: blur(10px); /* Safari support */
}

[data-theme="dark"] .navbar {
  background: rgba(45, 45, 45, 0.7); /* Semi-transparent dark */
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.navbar.shrink { 
  padding: 0.5rem 2rem; 
  top: 0.5rem;
  background: rgba(255, 255, 255, 0.75); /* Less transparent when shrunk */
}

[data-theme="dark"] .navbar.shrink {
  background: rgba(45, 45, 45, 0.75); /* Less transparent when shrunk */
}

.logo-container { 
  display: flex; 
  align-items: center; 
  gap: 1rem; 
}

.logo img { 
  height: 60px; 
  transition: all 0.3s ease; 
  max-width: 100%; 
}

.navbar.shrink .logo img { 
  height: 45px; 
}

.slogan {
  font-style: italic;
  color: var(--color3);
  font-weight: 500;
  padding-left: 1rem;
  border-left: 2px solid var(--color1);
  transition: all 0.3s ease;
}

.navbar.shrink .slogan { 
  opacity: 0; 
  visibility: hidden; 
}

.nav-links { 
  display: flex; 
  gap: 1.5rem; 
  align-items: center; 
}

/* UPDATED: Nav links with animated borders */
.nav-links a {
  position: relative;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color3);
  padding: 0.5rem 0.8rem;
  transition: all 0.4s ease;
  border-radius: 6px;
  overflow: hidden;
  z-index: 1;
}

.nav-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(82, 166, 117, 0.3); /* Green shade with 30% opacity */
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.nav-links a:hover::before {
  opacity: 1; /* Full opacity on hover */
}

/* Creative two-line animation that meets on the sides */
.nav-links a .line-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color4); /* White lines */
  transition: width 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.nav-links a .line-bottom {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--color4); /* White lines */
  transition: width 0.4s cubic-bezier(0.65, 0, 0.35, 1) 0.2s;
}

.nav-links a .line-vertical-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 0;
  background: var(--color4); /* White lines */
  transition: height 0.4s cubic-bezier(0.65, 0, 0.35, 1) 0.4s;
}

.nav-links a .line-vertical-right {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 2px;
  height: 0;
  background: var(--color4); /* White lines */
  transition: height 0.4s cubic-bezier(0.65, 0, 0.35, 1) 0.6s;
}

.nav-links a:hover .line-top {
  width: 100%;
}

.nav-links a:hover .line-bottom {
  width: 100%;
}

.nav-links a:hover .line-vertical-left {
  height: 100%;
}

.nav-links a:hover .line-vertical-right {
  height: 100%;
}

/* Text color change on hover for better contrast */
.nav-links a:hover {
  color: var(--color4); /* White text on hover */
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  margin-left: 1rem;
}

.toggle-label {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 28px;
}

.toggle-label input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

input:checked + .slider {
  background-color: var(--color1);
}

input:checked + .slider:before {
  transform: translateX(32px);
  content: "🌙";
}

input:not(:checked) + .slider:before {
  content: "☀️";
}

/* Hamburger */
.hamburger { 
  display: none; 
  flex-direction: column; 
  justify-content: space-between; 
  width: 30px; 
  height: 21px; 
  cursor: pointer; 
}

.hamburger span { 
  height: 3px; 
  width: 100%; 
  background-color: var(--color3); 
  border-radius: 3px; 
  transition: all 0.3s ease; 
}

.mobile-menu { 
  display: none; 
  position: absolute; 
  top: 100%; 
  right: 2rem; 
  background: #fff; 
  border-radius: 8px; 
  box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
  z-index: 1900; 
  padding: 1rem; 
}

[data-theme="dark"] .mobile-menu {
  background: #2d2d2d;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.mobile-menu.active { 
  display: block; 
}

.mobile-nav-links { 
  display: flex; 
  flex-direction: column; 
  gap: 0.8rem; 
}

.mobile-nav-links a { 
  text-decoration: none; 
  font-size: 1rem; 
  font-weight: 500; 
  color: var(--color3); 
  padding: 0.5rem 1rem; 
  border-radius: 6px; 
  transition: all 0.3s ease; 
}

.mobile-nav-links a:hover { 
  background: var(--nav-hover); 
  color: var(--color1); 
}

/* Hero */
.hero {
  width: 100%;
  height: 85vh;
  position: relative;
  overflow: hidden;
  margin-top: -90px;
}

.carousel {
  width: 100%;
  height: 100%;
  position: relative;
}

.slides {
  display: flex;
  width: 300%; /* This should be 100% * number of slides (3) */
  height: 100%;
  transition: transform 0.8s ease-in-out;
}

.slide {
  position: relative;
  width: 33.3333%; /* Each slide takes 1/3 of the container (100%/3) */
  height: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0; /* Prevents slides from shrinking */
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;           /* makes image cover the hero */
  object-position: center;     /* keeps it centered */
  display: block;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.0), rgba(0,0,0,0.0));
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-content {
  text-align: center;
  color: white;
  max-width: 20px;
  width: 20px;
  padding: 0.1rem;
}

.slide-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.btn-hero {
  display: inline-block;
  background: var(--color1);
  color: white;
  padding: 1rem 2rem;
  border-radius: 3rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-hero:hover {
  background: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* Arrows */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: var(--color4);
  background: rgba(0,0,0,0.3);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.arrow:hover { 
  background: rgba(0,0,0,0.5); 
  transform: translateY(-50%) scale(1.1);
}

.arrow-left { left: 20px; }
.arrow-right { right: 20px; }

/* Floating Cards - Made narrower */
.floating-cards { 
  position: relative; 
  margin-top: -100px; 
  z-index: 100; 
  padding: 0 2rem; 
}

.cards-container { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
  gap: 1.8rem; 
  max-width: 1200px; 
  margin: 0 auto; 
}

.card { 
  border-radius: 16px; 
  overflow: hidden; 
  text-decoration: none; 
  color: inherit; 
  box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
  transition: all 0.3s ease; 
}

[data-theme="dark"] .card {
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.card:hover { 
  transform: translateY(-8px); 
  box-shadow: 0 15px 35px rgba(0,0,0,0.15); 
}

.card-img { 
  height: 160px; 
  background-size: cover; 
  background-position: center; 
}

.card-text { 
  padding: 1.5rem; 
  text-align: center; 
  font-weight: 600; 
  color: var(--color3); 
}

/* Calendar design for the first floating card */
.calendar-design {
  width: 140px;
  height: 140px;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.calendar-header {
  background: var(--color3);
  color: white;
  text-align: center;
  padding: 8px 0;
}

.calendar-month {
  font-weight: bold;
  font-size: 14px;
  line-height: 1;
}

.calendar-year {
  font-size: 10px;
  opacity: 0.9;
}

.calendar-grid {
  padding: 8px;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 5px;
}

.calendar-weekdays div {
  text-align: center;
  font-size: 8px;
  font-weight: 600;
  color: var(--color3);
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.calendar-days div {
  text-align: center;
  font-size: 9px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
}

.event-day {
  background: var(--color1);
  color: white !important;
  border-radius: 50%;
  font-weight: bold;
}

/* Exam Timetable Card Styles */
.exam-timetable-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  text-align: center;
  padding: 1.2rem 1rem;
  background: linear-gradient(135deg, var(--color3) 0%, var(--color1) 100%);
  color: white;
  height: 100%;
  min-height: 160px;
  position: relative;
  overflow: hidden;
}

.exam-timetable-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.1' d='M0,128L48,117.3C96,107,192,85,288,112C384,139,480,213,576,218.7C672,224,768,160,864,138.7C960,117,1056,139,1152,149.3C1248,160,1344,160,1392,160L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
  background-size: cover;
  background-position: bottom;
  opacity: 0.3;
}

.exam-timetable-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  z-index: 2;
}

.exam-timetable-header i {
  font-size: 1.2rem;
  margin-right: 0.5rem;
  color: var(--color2);
}

.exam-timetable-header h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.exam-timetable-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}

.exam-section {
  display: none;
  margin-bottom: 0.5rem;
}

.exam-section.active {
  display: block;
}

.exam-section h4 {
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.exam-list {
  font-size: 0.75rem;
  line-height: 1.3;
}

.exam-item {
  margin-bottom: 0.3rem;
  padding: 0.2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.exam-subject {
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.exam-time {
  font-size: 0.7rem;
  opacity: 0.9;
}

.next-exam-info {
  font-size: 0.75rem;
  line-height: 1.3;
}

.next-exam-subject {
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

.next-exam-date {
  font-size: 0.7rem;
  opacity: 0.9;
}

#no-exams p {
  font-size: 0.8rem;
  font-style: italic;
  opacity: 0.8;
}

.exam-timetable-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
  font-size: 0.7rem;
  opacity: 0.8;
  z-index: 2;
}

.exam-timetable-footer i {
  margin-right: 0.3rem;
  font-size: 0.7rem;
}

/* Section */
.section { 
  max-width: 1200px;
  margin-top: -2rem;
  /* margin: 0 auto;  */
  margin-bottom: 3rem;
}

.section-heading {
  text-align: center; 
  color: var(--color3); 
  margin-bottom: 3rem; 
  font-size: 2.5rem; 
  position: relative;
  padding-bottom: 1rem;
  padding-top: 2rem;
}

.section-heading:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(to right, var(--color1), var(--secondary));
  border-radius: 2px;
}

.features-img { 
  display: block; 
  margin: 0 auto 2rem; 
  max-width: 220px; 
  border-radius: 12px; 
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Features - All content in consistent card style */
.features { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
  gap: 2.5rem; 
  margin-top: 3rem; 
}

.feature { 
  padding: 2.5rem 2rem; 
  border-radius: 16px; 
  box-shadow: 0 8px 25px rgba(0,0,0,0.08); 
  text-align: center; 
  transition: all 0.3s ease; 
  border-top: 5px solid var(--color1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

[data-theme="dark"] .feature {
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.feature:hover { 
  transform: translateY(-8px); 
  box-shadow: 0 15px 35px rgba(0,0,0,0.12); 
}

.feature i { 
  font-size: 3.5rem; 
  color: var(--color1); 
  margin-bottom: 1.5rem; 
}

.feature h3 { 
  margin-bottom: 1.2rem; 
  color: var(--color3); 
  font-size: 1.5rem;
}

.feature p {
  color: var(--text-dark);
  flex-grow: 1;
}

[data-theme="dark"] .feature p {
  color: var(--text-light);
}

/* News Section */
.news-container { 
  display: grid; 
  grid-template-columns: 2fr 1fr; 
  gap: 2.5rem; 
  align-items: flex-start; 
}

.news-article {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.18);
}

[data-theme="dark"] .news-article {
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.news-article-img {
  height: 400px;
  background-size: cover;
  background-position: center;
}

.news-article-content {
  padding: 2rem;
}

.news-article h3 { 
  color: var(--color1); 
  margin-bottom: 1.2rem; 
  font-size: 1.6rem;
}

  /* Style for icons within text */
.news-article-content i {
  margin-right: 8px;
  width: 20px;
  text-align: center;
}

/* Specific icon colors */
.news-article-content .fa-trophy {
  color: #FFD700; /* Gold for trophies */
}

.news-article-content .fa-chalkboard-teacher {
  color: #52a675; /* Green for teachers */
}

.news-article-content .fa-star {
  color: #1c53a5; /* Blue for special highlights */
}

.news-article-content .fa-handshake {
  color: #4ecdc4; /* Teal for community */
}

/* Highlight section icons */
.highlight-text .fa-calendar-alt,
.highlight-text .fa-user-plus {
  color: #52a675; /* Green to match your theme */
}

.news-article p { 
  margin-bottom: 1.2rem; 
  text-align: justify; 
  color: var(--text-dark);
}

[data-theme="dark"] .news-article p {
  color: var(--text-light);
}

.news-highlight { 
  border-radius: 16px; 
  box-shadow: 0 8px 25px rgba(0,0,0,0.08); 
  overflow: hidden; 
}

/* News image hover animation for desktop only */
@media (min-width: 993px) {
  .news-article-img {
    transition: all 0.5s ease;
    overflow: hidden;
  }
  
  .news-article:hover .news-article-img {
    height: 456px !important; /* 380px + 20% */
    transform: scale(1.05);
  }
  
  .highlight-img {
    transition: all 0.5s ease;
    overflow: hidden;
  }
  
  .news-highlight:hover .highlight-img {
    height: 288px !important; /* 240px + 20% */
    transform: scale(1.05);
  }
}

[data-theme="dark"] .news-highlight {
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.highlight-img { 
  height: 200px; 
  background-size: cover; 
  background-position: center; 
}

.highlight-text { 
  padding: 1.8rem; 
  text-align: center; 
  color: var(--text-dark); 
}

[data-theme="dark"] .highlight-text {
  color: var(--text-light);
}

.highlight-text h3 { 
  margin-bottom: 1rem; 
  color: var(--color1); 
}

/* Stats Section */
.stats-section {
  background: linear-gradient(135deg, var(--color3), var(--color1));
  color: var(--color4);
  text-align: center;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-item {
  padding: 1.5rem;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  display: block;
}

.stat-label {
  font-size: 1.3rem;
  opacity: 0.9;
}

/* NEW: Exam Support Section */
.exam-support-section {
  background: linear-gradient(135deg, var(--color1), var(--secondary));
  color: white;
  border-radius: 16px;
  padding: 2.5rem;
  margin: 2rem auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  max-width: 1200px;
}

.exam-support-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.exam-support-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.exam-support-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
}

.exam-support-card i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color2);
}

.exam-support-card h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.motivation-quote {
  font-style: italic;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.5;
}

.study-tip {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.progress-container {
  margin-top: 1rem;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.progress-bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--color2);
  border-radius: 5px;
  transition: width 0.5s ease;
}

.announcement-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  text-align: left;
}

.announcement-item:last-child {
  margin-bottom: 0;
}

.announcement-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.announcement-title i {
  margin-right: 0.5rem;
  font-size: 1rem;
}

.teacher-message {
  font-style: italic;
  line-height: 1.6;
  text-align: center;
}

.teacher-signature {
  margin-top: 1rem;
  font-weight: 600;
}

/* Footer */
footer {
  background: var(--color3);
  color: white;
  padding: 4rem 2rem 1.5rem;
  margin-top: 5rem;
}

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

.footer-logos {
  display: flex;
  flex-direction: column; /* stack vertically */
  align-items: flex-start; /* keep them to the left */
  gap: 4rem; /* small space between logos */
}

.school-logo {
  height: 108px;   /* 20% bigger than before */
  width: auto;
  object-fit: contain;
}

.cambridge-logo {
  height: 56px;    /* 40% smaller than before */
  width: auto;
  object-fit: contain;
  opacity: 0.9;
}

.footer-contact-map {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer-contact {
  margin-bottom: 1.5rem;
}

.footer-contact h3 {
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
  color: var(--color2);
}

.footer-contact p {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
}

.footer-contact i {
  margin-right: 12px;
  width: 20px;
  color: var(--color1);
}

.map-container {
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 2rem;
  width: 100%;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Exam Support Section - Fixed Styles with Dark Theme */
.exam-support-section {
  background: linear-gradient(135deg, var(--color1), var(--secondary));
  color: white;
  border-radius: 16px;
  padding: 2.5rem;
  margin: 2rem auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  max-width: 1200px;
}

[data-theme="dark"] .exam-support-section {
  background: linear-gradient(135deg, #2a5a44, #2a7a71);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.exam-support-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.exam-support-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .exam-support-card {
  background: rgba(45, 45, 45, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
}

.exam-support-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .exam-support-card:hover {
  background: rgba(60, 60, 60, 0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.exam-support-card i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color2);
  display: block;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .exam-support-card i {
  color: #8bb9ff;
  text-shadow: 0 2px 8px rgba(139, 185, 255, 0.3);
}

.exam-support-card h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  color: white;
  font-weight: 600;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .exam-support-card h3 {
  color: #f0f0f0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Motivation Quote Styles */
.motivation-quote {
  font-style: italic;
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.5rem 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .motivation-quote {
  color: #e8e8e8;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Study Tips Styles */
.study-tips-container {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex-grow: 1;
  justify-content: center;
}

.study-tip {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.8rem;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.95);
  border-left: 3px solid var(--color2);
  text-align: left;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .study-tip {
  background: rgba(255, 255, 255, 0.08);
  color: #f0f0f0;
  border-left: 3px solid #8bb9ff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.study-tip:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(5px);
}

[data-theme="dark"] .study-tip:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Progress Container Styles */
.progress-container {
  margin-top: auto;
  width: 100%;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .progress-label {
  color: #f0f0f0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.progress-bar {
  height: 12px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.5rem;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .progress-bar {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.progress-fill {
  height: 100%;
  background: var(--color2);
  border-radius: 6px;
  transition: width 0.5s ease;
  box-shadow: 0 2px 8px rgba(178, 200, 231, 0.3);
}

[data-theme="dark"] .progress-fill {
  background: linear-gradient(90deg, #8bb9ff, #6a9eff);
  box-shadow: 0 2px 8px rgba(139, 185, 255, 0.4);
}

/* Announcements Styles */
.announcements-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
  justify-content: center;
}

.announcement-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem;
  text-align: left;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .announcement-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.announcement-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .announcement-item:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.announcement-item:last-child {
  margin-bottom: 0;
}

.announcement-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  color: #e8f4ff; /* Much brighter color for better visibility */
  font-size: 0.95rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .announcement-title {
  color: #cce5ff; /* Even brighter for dark theme */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.announcement-title i {
  margin-right: 0.5rem;
  font-size: 1rem;
  color: #b2e2ff; /* Bright icon color */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .announcement-title i {
  color: #99d6ff; /* Brighter icon for dark theme */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.announcement-item p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .announcement-item p {
  color: #e8e8e8;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Teacher Message Styles */
.teacher-message-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.teacher-message {
  font-style: italic;
  line-height: 1.6;
  text-align: center;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  flex-grow: 1;
  display: flex;
  align-items: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .teacher-message {
  color: #f0f0f0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.teacher-signature {
  margin-top: auto;
  font-weight: 600;
  color: var(--color2);
  font-size: 0.9rem;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .teacher-signature {
  color: #8bb9ff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Ensure all cards have consistent height and spacing */
.exam-support-card > *:last-child {
  margin-top: auto;
}

/* Responsive adjustments for exam support section */
@media (max-width: 768px) {
  .exam-support-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .exam-support-card {
    min-height: auto;
    padding: 1.2rem;
  }
  
  .motivation-quote {
    font-size: 0.95rem;
  }
  
  .study-tip {
    font-size: 0.85rem;
    padding: 0.6rem;
  }
  
  .teacher-message {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .exam-support-section {
    padding: 1.5rem;
  }
  
  .exam-support-card {
    padding: 1rem;
  }
  
  .exam-support-card h3 {
    font-size: 1.1rem;
  }
  
  .progress-label {
    font-size: 0.8rem;
  }
  
  .announcement-title {
    font-size: 0.9rem;
  }
}


/* NEW: Overlay text styles */
.hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  width: 70%;
  max-width: 25rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.18);
  z-index: 5;
}

.hero-overlay h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-overlay .btn-hero {
  margin-top: 1rem;
  background: var(--color1);
  border: 2px solid white;
}

.hero-overlay .btn-hero:hover {
  background: white;
  color: var(--color1);
}

/* Responsive */
@media (max-width: 1100px) {
  .footer-contact-map {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 992px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  
  .news-container {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-logos {
    align-items: center;
    order: -1;
  }
  
  .map-container {
    height: 15rem;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 75vh;
  }
  
  .cards-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .features {
    grid-template-columns: 1fr;
  }
  
  .stats-container {
    grid-template-columns: 1fr 1fr;
  }
  
  .exam-support-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) { 
  .stats-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .stat-number {
    font-size: 3rem;
  }
  
  .stat-label {
    font-size: 1.1rem;
  }
  
  .section-heading {
    font-size: 2rem;
  }
  
  .floating-cards {
    margin-top: -80px;
  }
  
  .hero-overlay {
    width: 80%;
    padding: 1.5rem;
  }
  
  .hero-overlay h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .hero-overlay h2 {
    font-size: 1.4rem;
  }
  
  .hero-overlay .btn-hero {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Transport Card Styles */
.transport-card {
  cursor: default;
}

.transport-card-img {
  background: linear-gradient(135deg, #1c53a5 0%, #52a675 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  min-height: 160px;
  padding: 1.5rem 1rem 1rem 1rem;
}

.transport-card-content {
  text-align: center;
  color: white;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.transport-card-content i {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
  display: block;
}

.transport-card-content h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
  line-height: 1.3;
}

.route-indicators {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  z-index: 2;
  width: 100%;
  margin-top: auto;
}

.route-location {
  background: rgba(255, 255, 255, 0.25);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.65rem;
  color: white;
  font-weight: 500;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  white-space: nowrap;
}

/* Dark theme support for transport card */
[data-theme="dark"] .transport-card-img {
  background: linear-gradient(135deg, #2a4a8c 0%, #3a7a5f 100%);
}

[data-theme="dark"] .route-location {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Remove hover effects since it's not clickable */
.transport-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

[data-theme="dark"] .transport-card:hover {
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}