/* St. John's World School - Main Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Open+Sans:wght@400;500;600&display=swap');

:root {
  --primary: #1a365d;
  --primary-light: #2c5282;
  --secondary: #c53030;
  --accent: #d69e2e;
  --light: #f7fafc;
  --dark: #1a202c;
  --gray: #718096;
  --success: #38a169;
  --white: #ffffff;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 8px;
  --radius-lg: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--dark);
  background: var(--light);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow);
}

.top-bar {
  background: var(--primary);
  color: var(--white);
  padding: 8px 0;
  font-size: 13px;
}

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

.top-bar a {
  color: var(--white);
  text-decoration: none;
  margin-left: 20px;
  transition: opacity 0.3s;
}

.top-bar a:hover {
  opacity: 0.8;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 50%;
}

.logo-text h1 {
  font-size: 20px;
  color: var(--primary);
  line-height: 1.2;
}

.logo-text span {
  font-size: 12px;
  color: var(--gray);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  font-size: 14px;
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--secondary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.3s;
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--primary);
}

/* Notice Ticker */
.notice-ticker {
  background: linear-gradient(90deg, var(--secondary), #e53e3e);
  color: var(--white);
  padding: 12px 0;
  overflow: hidden;
  margin-top: 108px;
}

.ticker-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
}

.ticker-label {
  background: var(--white);
  color: var(--secondary);
  padding: 4px 12px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 12px;
  margin-right: 15px;
  flex-shrink: 0;
}

.ticker-content {
  overflow: hidden;
  flex: 1;
}

.ticker-track {
  display: flex;
  animation: ticker 30s linear infinite;
}

.ticker-item {
  white-space: nowrap;
  padding-right: 50px;
  font-size: 14px;
}

.ticker-item a {
  color: var(--white);
  text-decoration: underline;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Hero Slider */
.hero-slider {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
}

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

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(26, 54, 93, 0.9), rgba(26, 54, 93, 0.4));
  display: flex;
  align-items: center;
}

.slide-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  color: var(--white);
}

.slide-content h2 {
  font-size: 48px;
  margin-bottom: 20px;
  animation: slideUp 0.8s ease;
}

.slide-content p {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 600px;
  animation: slideUp 0.8s ease 0.2s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

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

.btn-primary:hover {
  background: #9b2c2c;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  margin-left: 15px;
}

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

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

.slider-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.slider-dot.active {
  background: var(--white);
  width: 30px;
  border-radius: 6px;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  transition: all 0.3s;
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.4);
}

.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

/* Section Styles */
.section {
  padding: 80px 20px;
}

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

.section-header h2 {
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 15px;
}

.section-header p {
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* About Section */
.about-section {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-content h3 {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 20px;
}

.about-content p {
  color: var(--gray);
  margin-bottom: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

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

.stat-item h4 {
  font-size: 32px;
  color: var(--secondary);
}

.stat-item span {
  font-size: 13px;
  color: var(--gray);
}

/* Facilities Section */
.facilities-section {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.facility-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.facility-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.facility-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
}

.facility-card h3 {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 10px;
}

.facility-card p {
  font-size: 14px;
  color: var(--gray);
}

/* Gallery Preview */
.gallery-section {
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 54, 93, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

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

.gallery-overlay i {
  color: var(--white);
  font-size: 24px;
}

/* Achievements Section */
.achievements-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
}

.achievements-section .section-header h2 {
  color: var(--white);
}

.achievements-section .section-header p {
  color: rgba(255, 255, 255, 0.8);
}

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

.achievement-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.achievement-card i {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--accent);
}

.achievement-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.achievement-card p {
  font-size: 14px;
  opacity: 0.9;
}

/* Contact Section */
.contact-section {
  background: var(--light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h3 {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 25px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-item i {
  width: 45px;
  height: 45px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 5px;
}

.contact-item p {
  color: var(--gray);
  font-size: 14px;
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
  color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  font-size: 14px;
  transition: border-color 0.3s;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

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

/* Footer */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 60px 20px 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-about .logo {
  margin-bottom: 20px;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.8;
}

.footer h4 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s;
}

.social-links a:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

/* Page Banner */
.page-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: 160px 20px 80px;
  text-align: center;
  color: var(--white);
}

.page-banner h1 {
  font-size: 42px;
  margin-bottom: 15px;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--white);
}

/* Gallery Page */
.gallery-filter {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 25px;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  border-radius: 30px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: var(--white);
}

.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.gallery-masonry .gallery-item:nth-child(3n+1) {
  grid-row: span 2;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 30px;
  cursor: pointer;
}

/* Admissions Page */
.admission-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.admission-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.admission-card h3 {
  color: var(--primary);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admission-card h3 i {
  color: var(--secondary);
}

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

.admission-card li {
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admission-card li::before {
  content: '✓';
  color: var(--success);
  font-weight: bold;
}

/* Table Styles */
.table-container {
  overflow-x: auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

th {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
}

tr:hover {
  background: var(--light);
}

/* Responsive */
@media (max-width: 992px) {
  .navbar {
    position: relative;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 12px;
    right: 12px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
    border: 1px solid #e2e8f0;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px;
    z-index: 1200;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 10px 2px;
  }

  .nav-links a::after {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .facilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .slide-content h2 {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .hero-slider {
    height: 500px;
  }
  
  .facilities-grid,
  .gallery-grid,
  .gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .achievements-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .admission-info {
    grid-template-columns: 1fr;
  }
  
  .top-bar-content {
    flex-direction: column;
    gap: 5px;
  }
  
  .notice-ticker,
  .notice-bar {
    margin-top: var(--sjws-header-offset, 108px);
  }
}

@media (max-width: 480px) {
  .section {
    padding: 50px 15px;
  }
  
  .section-header h2 {
    font-size: 28px;
  }
  
  .facilities-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .slide-content h2 {
    font-size: 24px;
  }
  
  .btn {
    padding: 12px 20px;
    font-size: 13px;
  }
}

/* Animations */
.fade-in {
  animation: fadeIn 0.6s ease;
}

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

/* Loading */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Alert Messages */
.alert {
  padding: 15px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.alert-success {
  background: #c6f6d5;
  color: #22543d;
  border: 1px solid #9ae6b4;
}

.alert-error {
  background: #fed7d7;
  color: #742a2a;
  border: 1px solid #fc8181;
}


/* Enterprise upgrade additions */
.notice-ticker,

/* Sticky notice bar (latest notices) */
.notice-bar {
  position: sticky;
  top: var(--sjws-header-offset, 108px);
  margin-top: var(--sjws-header-offset, 108px);
  z-index: 998;
  width: 100%;
  background: linear-gradient(90deg, #c53030, #e53e3e);
  color: #fff;
  padding: 10px 0;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}


.notice-ticker .ticker-wrap,
.notice-bar .ticker-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: flex-end;
  gap: 14px;
}

.notice-ticker .ticker-label,
.notice-bar .ticker-label {
  flex-shrink: 0;
  background: #fff;
  color: #c53030;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
}

.notice-ticker .ticker-content,
.notice-bar .ticker-content {
  overflow: hidden;
  flex: 1;
  display: flex;
  align-items: flex-end;
  min-height: 24px;
}

.notice-ticker .ticker-track,
.notice-bar .ticker-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: enterpriseTicker 28s linear infinite;
  align-items: flex-end;
}

.notice-ticker .ticker-item,
.notice-bar .ticker-item {
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.15;
  padding-top: 4px;
}

.notice-ticker .ticker-item a,
.notice-bar .ticker-item a {
  color: #fff;
  text-decoration: none;
}

.notice-ticker .ticker-item a:hover,
.notice-bar .ticker-item a:hover {
  text-decoration: underline;
}

@keyframes enterpriseTicker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.table-container {
  overflow-x: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.table-container table {
  width: 100%;
  border-collapse: collapse;
}

.table-container th,
.table-container td {
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.table-container th {
  background: #1a365d;
  color: #fff;
}

.download-list-card {
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.job-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 16px;
}

.job-meta span {
  background: #edf2f7;
  color: #2d3748;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}

@media (max-width: 768px) {
  .notice-ticker,
  
/* Sticky notice bar (latest notices) */
.notice-bar {
  position: sticky;
  top: var(--sjws-header-offset, 108px);
  margin-top: var(--sjws-header-offset, 108px);
  z-index: 998;
  width: 100%;
  background: linear-gradient(90deg, #c53030, #e53e3e);
  color: #fff;
  padding: 10px 0;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}


  .notice-ticker .ticker-track,
  .notice-bar .ticker-track {
    gap: 26px;
    animation-duration: 20s;
  }

  .notice-ticker .ticker-item,
  .notice-bar .ticker-item {
    font-size: 12px;
  }

  .jobs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 700px) and (max-width: 768px) {
  .top-bar {
    display: none;
  }
}


/* Cleaner homepage redesign */
.hero-clean {
  position: relative;
  min-height: 720px;
  background:
    linear-gradient(90deg, rgba(15, 33, 58, 0.88), rgba(15, 33, 58, 0.50)),
    url('../images/assembly_01.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  margin-top: 0;
}

.hero-clean__overlay {
  position: absolute;
  inset: 0;
}

.hero-clean__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 40px;
  align-items: center;
  padding: 120px 20px 90px;
}

.hero-kicker {
  color: #f6ad55;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-size: 13px;
}

.hero-clean__content h1 {
  color: #fff;
  font-size: 54px;
  line-height: 1.08;
  margin-bottom: 18px;
  max-width: 760px;
}

.hero-subtext {
  color: rgba(255,255,255,0.90);
  font-size: 18px;
  max-width: 680px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 8px;
  background: #fff;
  color: #1a365d;
  text-decoration: none;
  font-weight: 700;
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(0,0,0,.12);
}

.hero-clean__card {
  display: flex;
  justify-content: flex-end;
}

.hero-info-card {
  background: rgba(255,255,255,0.95);
  border-radius: 22px;
  padding: 28px;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 16px 40px rgba(0,0,0,.16);
}

.hero-info-card h3 {
  color: #1a365d;
  margin-bottom: 18px;
  font-size: 24px;
}

.hero-info-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}

.hero-info-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: #2d3748;
}

.hero-info-card li i {
  color: #c53030;
  margin-top: 3px;
}

.hero-mini-link {
  color: #c53030;
  font-weight: 700;
  text-decoration: none;
}

.quick-links-band {
  position: relative;
  margin-top: -48px;
  z-index: 3;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.quick-link-card {
  background: #fff;
  border-radius: 18px;
  padding: 24px 20px;
  box-shadow: 0 12px 24px rgba(0,0,0,.08);
  text-decoration: none;
  color: #1a202c;
  transition: 0.25s ease;
}

.quick-link-card:hover {
  transform: translateY(-6px);
}

.quick-link-card i {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #edf2f7;
  color: #c53030;
  font-size: 22px;
  margin-bottom: 16px;
}

.quick-link-card h3 {
  margin-bottom: 8px;
  color: #1a365d;
}

.quick-link-card p {
  color: #718096;
  font-size: 14px;
}

.section-tag {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: #edf2f7;
  color: #c53030;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-tag--light {
  background: rgba(255,255,255,.18);
  color: #fff;
}

.home-about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 46px;
  align-items: center;
}

.home-about-image img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(0,0,0,.10);
}

.home-about-content h2 {
  font-size: 40px;
  color: #1a365d;
  margin-bottom: 18px;
}

.home-about-content p {
  color: #4a5568;
  margin-bottom: 18px;
}

.home-about-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 18px;
  margin-bottom: 28px;
}

.home-about-points div {
  color: #2d3748;
  font-weight: 600;
}

.home-about-points i {
  color: #c53030;
  margin-right: 8px;
}

.stats-strip-section {
  background: linear-gradient(135deg, #1a365d, #244878);
  padding-top: 34px;
  padding-bottom: 34px;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stats-box {
  text-align: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 24px 18px;
}

.stats-box h3 {
  color: #fff;
  font-size: 38px;
  margin-bottom: 8px;
}

.stats-box p {
  color: rgba(255,255,255,.84);
  font-size: 14px;
}

.highlights-section-clean {
  background: #f8fafc;
}

.highlights-grid-clean {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.highlight-clean-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 22px;
  box-shadow: 0 12px 24px rgba(0,0,0,.06);
  transition: 0.25s ease;
}

.highlight-clean-card:hover {
  transform: translateY(-6px);
}

.highlight-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1a365d, #2c5282);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}

.highlight-clean-card h3 {
  margin-bottom: 10px;
  color: #1a365d;
}

.highlight-clean-card p {
  color: #718096;
  font-size: 14px;
}

.events-clean-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.home-events-section {
  background: #fff;
}

.home-gallery-clean {
  background: #f8fafc;
}

.admission-cta-clean {
  background: linear-gradient(135deg, #1a365d, #2c5282);
}

.admission-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  padding: 34px 32px;
}

.admission-cta-card h2 {
  color: #fff;
  margin-bottom: 12px;
  font-size: 34px;
}

.admission-cta-card p {
  color: rgba(255,255,255,.84);
  max-width: 700px;
}

.admission-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 1100px) {
  .hero-clean__inner,
  .home-about-grid {
    grid-template-columns: 1fr;
  }

  .hero-clean__card {
    justify-content: flex-start;
  }

  .quick-links-grid,
  .stats-strip,
  .highlights-grid-clean,
  .events-clean-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admission-cta-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .hero-clean {
    min-height: auto;
  }

  .hero-clean__inner {
    padding: 90px 20px 60px;
    gap: 24px;
  }

  .hero-clean__content h1 {
    font-size: 34px;
  }

  .hero-subtext {
    font-size: 15px;
  }

  .quick-links-band {
    margin-top: 0;
    padding-top: 24px;
  }

  .quick-links-grid,
  .stats-strip,
  .highlights-grid-clean,
  .events-clean-grid,
  .home-about-points {
    grid-template-columns: 1fr;
  }

  .hero-info-card {
    max-width: 100%;
  }

  .admission-cta-card {
    padding: 26px 20px;
  }

  .admission-cta-card h2 {
    font-size: 28px;
  }
}



/* Premium floating buttons and social feed */
.floating-admission-btn {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #c53030, #e53e3e);
  color: #fff;
  text-decoration: none;
  padding: 14px 18px;
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(197,48,48,.30);
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease;
}

.floating-admission-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(197,48,48,.36);
}

.floating-admission-btn i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.floating-social-bar {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1190;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.floating-social-bar a {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  color: #1a365d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(0,0,0,.12);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.floating-social-bar a:hover {
  transform: translateX(-4px);
  background: #1a365d;
  color: #fff;
}

.social-feed-section {
  background: #fff;
}

.social-feed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.social-feed-card,
.social-feed-video-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 14px 30px rgba(0,0,0,.08);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border: 1px solid #edf2f7;
}

.social-feed-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.social-feed-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0,0,0,.12);
}

.social-feed-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
  margin-bottom: 18px;
}

.social-feed-icon.instagram {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.social-feed-icon.youtube {
  background: linear-gradient(135deg, #ff0000, #cc0000);
}

.social-feed-content h3 {
  color: #1a365d;
  margin-bottom: 12px;
}

.social-feed-content p {
  color: #718096;
  margin-bottom: 16px;
}

.social-feed-content span {
  color: #c53030;
  font-weight: 700;
}

.social-feed-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.social-feed-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.social-feed-video-text {
  padding: 20px 22px 24px;
}

.social-feed-video-text h3 {
  color: #1a365d;
  margin-bottom: 10px;
}

.social-feed-video-text p {
  color: #718096;
}

@media (max-width: 991px) {
  .social-feed-grid {
    grid-template-columns: 1fr;
  }

  .floating-social-bar {
    right: 14px;
  }

  .floating-admission-btn {
    right: 14px;
    bottom: 18px;
  }
}

@media (max-width: 768px) {
  .floating-social-bar {
    bottom: 84px;
    top: auto;
    transform: none;
    right: 14px;
  }

  .floating-social-bar a {
    width: 42px;
    height: 42px;
  }

  .floating-admission-btn {
    padding: 12px 16px;
  }

  .floating-admission-btn span {
    font-size: 13px;
  }
}
