/* Modern CSS for Tower Day School Website */

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

:root {
    --primary-blue: #0099CC;
    --dark-blue: #0077A3;
    --light-blue: #E6F4F8;
    --cream: #F4F3EE;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    --accent-yellow: #FFD700;
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

/* Header and Navigation */
header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

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

.logo-section img {
    height: 80px;
    width: auto;
}

.school-name {
    display: flex;
    flex-direction: column;
}

.school-name h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    font-style: italic;
}

.school-name .subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

.contact-info {
    text-align: right;
    font-size: 0.95rem;
}

.contact-info p {
    margin: 0.25rem 0;
}

.contact-info a,
.contact-info a:visited {
    color: var(--white);
    text-decoration: underline;
}

.contact-info a:hover {
    color: var(--white);
    text-decoration: underline;
    opacity: 0.9;
}

/* Navigation */
nav {
    background-color: var(--dark-blue);
    padding: 0.75rem 0;
    box-shadow: 0 2px 5px var(--shadow);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    gap: 0.5rem;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    display: block;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: var(--primary-blue);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%);
    padding: 3rem 2rem;
    text-align: center;
}

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

.hero h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 2rem;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow);
    margin: 2rem 0;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.social-links a {
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.1);
}

.social-links img {
    height: 50px;
    width: auto;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-blue);
}

.content-section h3 {
    color: var(--dark-blue);
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
}

.content-section p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.content-section a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.content-section a:hover {
    color: var(--dark-blue);
    text-decoration: underline;
}

/* Ensure buttons override content-section link styles */
.content-section a.btn,
a.btn {
    color: var(--white) !important;
}

.content-section a.btn:hover,
a.btn:hover {
    color: var(--white) !important;
}

.content-section a.btn-secondary,
a.btn-secondary {
    color: var(--primary-blue) !important;
}

.content-section a.btn-secondary:hover,
a.btn-secondary:hover {
    color: var(--white) !important;
}

/* Programs Grid */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.program-card {
    background: var(--white);
    border: 2px solid var(--light-blue);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 3px 10px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px var(--shadow);
}

.program-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

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

.program-card ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.program-card ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

/* Image Gallery */
.gallery-section {
    margin: 4rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 3px 10px var(--shadow);
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

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

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

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-box {
    text-align: center;
    padding: 2rem;
    background: var(--light-blue);
    border-radius: 10px;
}

.feature-box h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-box p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Contact Section */
.contact-section {
    background: var(--light-blue);
    padding: 3rem 2rem;
    border-radius: 10px;
    margin: 3rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    text-align: center;
}

.contact-item h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.contact-item p,
.contact-item a {
    color: var(--text-dark);
    font-size: 1.05rem;
}

/* Footer */
footer {
    background: var(--dark-blue);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

footer p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

footer a,
footer a:visited {
    color: var(--white);
    text-decoration: underline;
}

footer a:hover {
    color: var(--white);
    text-decoration: underline;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }

    .contact-info {
        text-align: center;
        margin-top: 1rem;
    }

    .school-name h1 {
        font-size: 1.5rem;
    }

    nav ul {
        flex-direction: column;
        gap: 0.25rem;
    }

    nav ul li a {
        padding: 0.5rem 1rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    main {
        padding: 2rem 1rem;
    }

    .programs-grid,
    .features {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .logo-section {
        flex-direction: column;
    }

    .logo-section img {
        height: 60px;
    }

    .school-name h1 {
        font-size: 1.25rem;
    }

    .hero h2 {
        font-size: 1.75rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.highlight-box {
    background: var(--light-blue);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-blue);
    margin: 2rem 0;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: var(--primary-blue);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    margin: 0.5rem;
}

.btn:hover {
    background-color: var(--dark-blue);
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

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

