/* style.css – Radiant School Clean Styles */

:root {
  --primary: #4CAF50;
  --primary-dark: #388E3C;
  --accent: #F9A825;
  --text: #333;
  --light-bg: #f9fafb;
}

/* Global Reset & Box Model */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background: var(--light-bg);
  color: var(--text);
  line-height: 1.4;
  font-size: 1rem;
}
/* Popup styles */
.popup {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.popup-content {
  background-color: #e0f7fa;
  margin: auto;
  padding: 30px;
  border: 2px solid #00acc1;
  width: 80%;
  max-width: 500px;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.popup-content h2 {
  color: #00796b;
}
popup-content {
  animation: popupFade 0.4s ease-in-out;
}

@keyframes popupFade {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.close-btn {
  color: #888;
  float: right;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
}

.close-btn:hover {
  color: red;
}
.close-btn:focus {
  outline: 2px dashed #00acc1;
}

/* Typography Reset */
p {
  margin-bottom: 0.75rem;
}
h2, h3 {
  margin-bottom: 0.6rem;
  margin-top: 0.5rem;
}

/* Header - Do Not Touch */
.logo {
  display: block;
  max-width: 1000px;
  width: 100%;
  height: auto;
  margin: 0 auto 15px;
}

header.header {
  background: #ffffff;
  padding: 25px 15px 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: center;
}

.header-content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.school-name {
  font-size: 2.2rem;
  margin: 8px 0 5px;
  font-weight: 900;
  color: #2E7D32;
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.tagline {
  font-size: 1.5rem;
  color: #555;
  margin: 0;
  font-style: italic;
  letter-spacing: 0.03em;
}

/* Navbar */
.navbar {
  background: var(--primary);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 8px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: relative; /* or fixed/sticky */
  z-index: 10;
}

.navbar a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
  font-weight: 600;
  padding: 6px 10px;
  font-size: 0.95rem;
  border-radius: 6px;
}

.navbar a:hover {
  background-color: var(--primary-dark);
}

/* Breaking News */
.breaking-news-banner {
  background: var(--accent);
  color: var(--text);
  font-weight: 700;
  padding: 6px 0;
  font-size: 1rem;
  box-shadow: inset 0 0 8px #fbc02d;
}

marquee {
  display: block;
  white-space: nowrap;
  overflow: hidden;
}

/* Section Styling */
.section {
  background: linear-gradient(135deg, #E8F5E9, #F1F8E9);
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  perspective: 600px;
}

.section:hover {
  transform: perspective(600px) rotateX(2deg) rotateY(-2deg);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

.section:nth-child(even) {
  background: linear-gradient(135deg, #E3F2FD, #E8F5E9);
}

/* Image Styling */
.result-images,
.images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.result-images img,
.images a img {
  width: 110px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

/* CEO Photos */
.ceo-photo {
  width: 100%;
  max-width: 240px;
  height: auto;
  float: left;
  margin: 0 20px 15px 0;
  display: block;
  border-radius: 8px;
}

/* Others Media Section */
.others-media {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.others-media img,
.others-media video {
  width: 160px;
  max-height: 140px;
  border-radius: 8px;
  margin: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  object-fit: cover;
}

/* Cards - Reasons, Stats, Creative */
.reasons,
.stats-box,
.creative-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 10px;
}

.reason-box,
.stats-box > div,
.creative-card {
  padding: 16px 12px;
  border-radius: 12px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.05);
  background: white;
  text-align: center;
  flex: 1 1 230px;
  max-width: 280px;
}
.card {
  width: 300px;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Card Headings */
.reason-box h3,
.stats-box > div h3,
.creative-card h3 {
  font-size: 1.2rem;
  text-align: center;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #2E7D32;
}

/* Card Paragraphs */
.reason-box p,
.stats-box > div p,
.creative-card p {
  font-size: 0.95rem;
  text-align: center;
  color: #444;
}

/* Creative Thumbnails */
.creative-thumb {
  width: 100%;
  max-width: 260px;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 12px;
}
.at-a-glance {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 30px;
  margin: 40px 0;
}
.at-a-glance-item {
  flex: 1;
  text-align: center;
}
.gallery img {
  width: 100%;
  max-width: 300px; /* or increase from 250px to 300px */
  height: auto;
  margin: 10px;
  transition: transform 0.3s ease;
}
.gallery img:hover {
  transform: scale(1.05);
}
.why-choose {
  padding: 50px 40px;
  background-color: #f9f9f9;
  text-align: center;
}
.why-choose h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
.why-choose-features {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}
.why-choose-feature {
  flex: 1 1 250px;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}
#result9, #result10 {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  .school-name {
    font-size: 1.8rem;
  }

  .tagline {
    font-size: 0.9rem;
  }

  .ceo-photo {
    float: none;
    margin: 0 auto 15px;
    display: block;
  }

  .creative-grid {
    flex-direction: column;
    align-items: center;
  }

  .result-images img,
  .images a img,
  .others-media img,
  .others-media video {
    width: 120px;
    max-height: 100px;
  }
}
footer {
  background: #2E7D32;
  color: white;
  text-align: center;
  padding: 12px;
  font-size: 0.9rem;
  margin-top: 20px;
}
* ===== ABOUT PAGE SECTION STYLES ===== */

html {
  scroll-behavior: smooth;
}

/* --- About Section --- */
#about {
  max-width: 850px;
  margin: 0 auto;
  padding: 20px;
  background: #f5fff7;
  border-left: 6px solid #4CAF50;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

#about h2 {
  color: #2E7D32;
  font-size: 1.8rem;
  margin-bottom: 18px;
  text-align: center;
}

#about p {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* --- Team Section --- */
#team h2 {
  text-align: center;
  font-size: 1.8rem;
  color: #1B5E20;
  margin-bottom: 20px;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.team-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  max-width: 220px;
  flex: 1 1 200px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.team-card:hover {
  transform: scale(1.03);
}

.team-card img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.team-card h3 {
  font-size: 1.1rem;
  margin: 8px 0 4px;
  color: #2E7D32;
}

.team-card p {
  font-size: 0.95rem;
  color: #555;
  margin: 0;
}

/* --- Journey Timeline Section --- */
#journey h2 {
  text-align: center;
  font-size: 1.8rem;
  color: #1565C0;
  margin-bottom: 20px;
}

.timeline-container {
  position: relative;
  margin: 30px auto;
  padding-left: 30px;
  border-left: 3px solid #66BB6A;
  max-width: 600px;
}

.timeline-item {
  position: relative;
  padding: 12px 0 12px 20px;
  font-size: 1rem;
  color: #333;
}

.timeline-item span {
  font-weight: bold;
  color: #388E3C;
  display: block;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 18px;
  width: 10px;
  height: 10px;
  background-color: #66BB6A;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #E8F5E9;
}

/* --- Mini Gallery Section --- */
#gallery h2 {
  text-align: center;
  font-size: 1.8rem;
  color: #6A1B9A;
  margin-bottom: 18px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  max-width: 850px;
  margin: 0 auto;
}

.gallery-grid img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
}

/* --- Sticky Navbar --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
}

/* --- Back to Top Button --- */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 14px;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  cursor: pointer;
  font-size: 16px;
  display: none;
}

.back-to-top.show {
  display: block;
}
✅ Optional JS for "Back to Top" Button
Add this before the closing </body>:

html
Copy
Edit
<button class="back-to-top" onclick="window.scrollTo({ top: 0, behavior: 'smooth' })">
  ↑ Top
</button>

<script>
  const btn = document.querySelector('.back-to-top');
  window.addEventListener('scroll', () => {
    if (window.scrollY > 300) {
      btn.classList.add('show');
    } else {
      btn.classList.remove('show');
    }
  });
</script>