/* ============================================
   LOGAHS School Website Styles
   Professional High School Design
   ============================================ */

/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600;700&display=swap');

:root {
  --primary-color: #1a4d8c;
  --primary-dark: #0d3566;
  --primary-light: #2e6bb8;
  --secondary-color: #d4af37;
  --accent-color: #c41e3a;
  --text-dark: #2c3e50;
  --text-light: #6c757d;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #e0e0e0;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
}

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.2;
}

/* Top Bar */
.top-bar {
  background: var(--primary-dark);
  color: white;
  font-size: 0.875rem;
  border-bottom: 2px solid var(--primary-light);
}

.top-bar a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
}

.top-bar a:hover {
  opacity: 0.8;
}

.top-bar-left span {
  margin-right: 1.5rem;
}

.top-bar-emails {
  font-size: 0.8rem;
}

.top-bar-emails a {
  white-space: nowrap;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.portal-link {
  padding: 0.25rem 0.75rem;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  transition: background 0.3s;
}

.portal-link:hover {
  background: rgba(255,255,255,0.2);
}

/* Main Header */
.main-header {
  background: white;
  box-shadow: var(--shadow-md);
  z-index: 1000;
}

.main-header .navbar {
  padding: 1rem 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text-dark);
}

.school-logo {
  height: 60px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.school-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
}

.school-motto {
  font-size: 0.75rem;
  color: var(--text-light);
  font-style: italic;
}

.navbar-nav .nav-link {
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.3s;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--primary-color);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.navbar-nav .nav-link:hover::after {
  transform: scaleX(1);
}

.btn-portal {
  background: var(--primary-color);
  color: white !important;
  border-radius: 6px;
  padding: 0.5rem 1.25rem !important;
  margin-left: 0.5rem;
}

.btn-portal:hover {
  background: var(--primary-dark);
  color: white !important;
}

.btn-portal::after {
  display: none;
}

.dropdown-menu {
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: 8px;
  padding: 0.5rem 0;
}

.dropdown-item {
  padding: 0.5rem 1.5rem;
  transition: background 0.3s;
}

.dropdown-item:hover {
  background: var(--bg-light);
  color: var(--primary-color);
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--primary-light) 100%);
  color: white;
  padding: 4rem 0;
  overflow: hidden;
  min-height: 60vh;
}

/* Hero Background Slideshow */
.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
  z-index: 2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Dark overlay to make images faint and ensure text readability */
  background: linear-gradient(135deg, rgba(13, 53, 102, 0.85) 0%, rgba(26, 77, 140, 0.8) 50%, rgba(46, 107, 184, 0.75) 100%);
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 3;
}

.min-vh-50 {
  min-height: 50vh;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  font-weight: 300;
}

.hero-buttons .btn {
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 6px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.hero-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Announcements Bar */
.announcements-bar {
  background: var(--secondary-color);
  color: white;
  border-bottom: 3px solid var(--primary-color);
}

.announcement-label {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 1px;
}

.announcement-scroll {
  overflow: hidden;
}

/* Quick Links Section */
.quick-links-section {
  padding: 4rem 0;
}

.quick-link-card {
  display: block;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}

.quick-link-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  color: var(--text-dark);
  text-decoration: none;
}

.quick-link-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
}

.quick-link-card h5 {
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

.quick-link-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
}

/* About Section */
.about-section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 5px solid var(--secondary-color);
}

.values-box {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 12px;
  border: 2px solid var(--border-color);
}

.value-item {
  background: white;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  color: var(--primary-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s;
}

.value-item:hover {
  transform: translateY(-2px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.stat-card {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Academics Section */
.academics-section {
  padding: 5rem 0;
}

.academic-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
  border-top: 4px solid var(--primary-color);
}

.academic-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.academic-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: white;
  margin-bottom: 1.5rem;
}

.academic-card h5 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.academic-card p {
  color: var(--text-light);
  margin: 0;
}

/* Digital Section */
.digital-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--bg-light) 0%, white 100%);
}

.digital-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-item i {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-top: 0.25rem;
}

.feature-item h5 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.feature-item p {
  color: var(--text-light);
  margin: 0;
}

/* Events Section */
.events-section {
  padding: 5rem 0;
}

.event-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.event-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.event-card:hover .event-image img {
  transform: scale(1.1);
}

.event-date {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary-color);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.event-date .day {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.event-date .month {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  opacity: 0.9;
}

.event-content {
  padding: 1.5rem;
}

.event-title {
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.event-excerpt {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.empty-state {
  padding: 3rem;
}

/* Contact Section */
.contact-section {
  padding: 5rem 0;
}

.contact-card {
  background: white;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.contact-item {
  text-align: center;
  padding: 1.5rem;
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: white;
}

.contact-item h5 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.contact-item p {
  margin: 0;
}

.contact-emails p {
  margin-bottom: 0.5rem;
}

.contact-emails p:last-child {
  margin-bottom: 0;
}

.contact-item a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-message {
  text-align: center;
  color: var(--text-light);
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

/* Gallery Section */
.gallery-section {
  padding: 4rem 0;
  background: var(--bg-light);
}

/* Footer */
.school-footer {
  background: var(--primary-dark);
  color: white;
  margin-top: 4rem;
}

.footer-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
}

.footer-motto {
  font-style: italic;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.footer-description {
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}

.footer-heading {
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: white;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  margin-bottom: 0.75rem;
  color: rgba(255,255,255,0.8);
}

.footer-contact i {
  margin-right: 0.5rem;
  color: var(--secondary-color);
}

.footer-contact a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}

.footer-contact a:hover {
  color: white;
}

.admin-links .btn {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom a {
  color: var(--secondary-color);
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Buttons */
.btn-primary {
  background: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 600;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-light {
  color: white;
  border-color: rgba(255,255,255,0.5);
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
  color: white;
}

/* Utilities */
.bg-light {
  background-color: var(--bg-light) !important;
}

.text-muted {
  color: var(--text-light) !important;
}

/* Navbar Toggler */
.navbar-toggler {
  border: 2px solid var(--primary-color);
  padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(26, 77, 140, 0.25);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(26, 77, 140, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .school-name {
    font-size: 1rem;
  }
  
  .school-motto {
    font-size: 0.65rem;
  }
  
  .school-logo {
    height: 50px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .top-bar-left,
  .top-bar-right {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.5rem;
  }
  
  .top-bar-left span {
    margin-right: 0;
    margin-bottom: 0.5rem;
    display: block;
  }
  
  .top-bar-emails {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .top-bar-emails a {
    display: block;
  }
  
  .top-bar-emails a::before {
    content: '• ';
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .navbar-nav {
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
  }
  
  .btn-portal {
    margin-left: 0;
    margin-top: 0.5rem;
  }
}

/* Focus styles for accessibility */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(26, 77, 140, 0.25);
}

/* Bootstrap Icons */
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.0/font/bootstrap-icons.css");
