:root {
    --primary-color: #d4af37; /* Gold */
    --secondary-color: #87ceeb; /* Sky Blue */
    --accent-color: #d4af37; /* Gold accent */
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #e5e5e5; /* Light Gray */
    --white: #ffffff;
    --gold: #d4af37;
    --sky-blue: #87ceeb;
    --light-gray: #d3d3d3;
    --nav-bg: #87ceeb; /* Sky Blue for navbar */
}

html {
  font-size: 14px;
    scroll-behavior: smooth;
    height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    padding-top: 76px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: var(--nav-bg) !important;
}

.navbar-brand .school-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #1f2937 !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    color: #1f2937 !important;
}

.navbar-nav .nav-link:hover {
    color: var(--gold) !important;
    font-weight: 600;
}

/* Main Content */
.main-content {
    flex: 1;
    padding-bottom: 2rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--sky-blue) 0%, var(--gold) 100%);
    color: white;
    padding: 80px 0 60px;
    margin-bottom: 0;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
}

/* Buttons */
.btn-primary {
    background-color: var(--gold);
    border-color: var(--gold);
    color: #1f2937;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--sky-blue);
    border-color: var(--sky-blue);
    color: #1f2937;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-outline-primary {
    color: var(--gold);
    border-color: var(--gold);
    padding: 0.75rem 2rem;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: var(--gold);
    border-color: var(--gold);
    color: #1f2937;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-title {
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Sections */
.section {
    padding: 60px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--sky-blue);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 3rem;
}

/* Features/Highlights */
.feature-box {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.feature-box h4 {
    color: var(--sky-blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* News Cards */
.news-card {
    border-left: 4px solid var(--gold);
    padding: 1.5rem;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    transition: box-shadow 0.3s ease;
}

.news-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.news-card h5 {
    color: var(--sky-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.news-card .news-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Forms */
.form-control {
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 0.75rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background-color: #1a1a1a !important;
    color: #ffffff;
    margin-top: auto;
    flex-shrink: 0;
    display: none; /* Hidden for now */
}

.footer h5 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--accent-color);
}

.footer ul {
    padding-left: 0;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

/* About Page */
.mission-vision-box {
    background: linear-gradient(135deg, var(--sky-blue) 0%, var(--gold) 100%);
    color: white;
    padding: 3rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.mission-vision-box h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.values-list {
    list-style: none;
    padding: 0;
}

.values-list li {
    padding: 1rem;
    margin-bottom: 1rem;
    background: white;
    border-left: 4px solid var(--gold);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.values-list li strong {
    color: var(--sky-blue);
    font-size: 1.1rem;
}

/* Academics Page */
.info-box {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--gold);
}

.info-box h4 {
    color: var(--sky-blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

.timetable-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.timetable-item strong {
    color: var(--gold);
}

/* Contact Page */
.contact-info-box {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.contact-info-box h4 {
    color: var(--sky-blue);
    margin-bottom: 1rem;
}

.contact-info-box p {
    margin-bottom: 0.5rem;
}

.contact-info-box i {
    color: var(--gold);
    margin-right: 0.5rem;
}

/* Utility Classes */
.text-primary-custom {
    color: var(--sky-blue) !important;
}

.bg-primary-custom {
    background-color: var(--gold) !important;
}

.shadow-custom {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .mission-vision-box {
        padding: 2rem 1.5rem;
    }
}

/* Image Carousel */
.carousel-item img {
    height: 500px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .carousel-item img {
        height: 300px;
    }
}

/* Image Showcase Cards */
.image-showcase-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-showcase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.image-showcase-card img {
    transition: transform 0.3s ease;
}

.image-showcase-card:hover img {
    transform: scale(1.05);
}

/* Activity Image Cards */
.activity-image-card {
  position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.activity-image-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.activity-image-card img {
    transition: transform 0.3s ease;
}

.activity-image-card:hover img {
    transform: scale(1.1);
}

/* Loading animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Newsletter PDF links */
.newsletter-link {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--gold);
    color: #1f2937;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin: 0.5rem;
    font-weight: 600;
}

.newsletter-link:hover {
    background: var(--sky-blue);
    color: #1f2937;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
