@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Poppins:wght@400;600;700&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: #023047;
    background: #f8fdff;
}

h1,
h2,
h3 {
    font-family: 'Fredoka One', cursive;
    letter-spacing: 1px;
    color: #219ebc;
}

h1 {
    font-size: 5rem;
}

h2 {
    font-size: 3rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.container {
    width: 90%;
    max-width: 1280px;
    margin: auto;
}

.flex {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.header {
    background: #023047;
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .flex {
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 100px;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav a:hover,
.nav a.active {
    color: #8ecae6;
}

.hero {
    position: relative;
    height: 75vh;
    min-height: 520px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(2, 48, 71, 0.55);
    z-index: 1;
}

.hero h1 {
    position: relative;
    z-index: 2;
    text-align: center;
    text-shadow: 4px 4px 18px rgba(0, 0, 0, 0.9);
}

.section {
    padding: 5rem 0;
}

.two-col>* {
    flex: 1 1 48%;
}

.three-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.card {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    text-align: center;
}

.card img {
    height: 220px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.btn {
    background: #219ebc;
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.btn:hover {
    background: #126782;
}

.footer {
    background: #023047;
    color: #8ecae6;
    text-align: center;
    padding: 4rem 0;
}

.footer a {
    color: white;
    text-decoration: underline;
}

.btn-large {
    background: #219ebc;
    color: white;
    padding: 1.5rem 4rem;
    font-size: 1.4rem;
    border: none;
    border-radius: 60px;
    cursor: pointer;
}

.btn-large:hover {
    background: #126782;
}

@media (max-width:768px) {
    .header .flex {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .hero h1 {
        font-size: 3.2rem;
    }

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

/* Contact Form */
/* Minor Contact Form Polish – Extra Breathing Room */
.contact-form-grid {
    max-width: 900px;
    margin: 4rem auto;
    /* More top space from hero */
    background: white;
    padding: 4rem;
    /* Increased inner padding */
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    display: grid;
    gap: 3rem;
    /* Bigger gaps between rows */
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem 2.5rem;
    /* Row gap bigger, column gap same */
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
    /* Tiny extra space below each group */
}

.form-group label {
    font-weight: 700;
    margin-bottom: 1rem;
    /* More space under labels */
    color: #023047;
    font-size: 1.1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1.6rem;
    /* Slightly more padding inside fields */
    border: 2px solid #ddd;
    border-radius: 16px;
    font-family: inherit;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #219ebc;
    outline: none;
    box-shadow: 0 0 0 4px rgba(33, 158, 188, 0.2);
}

.full-span {
    grid-column: 1 / -1;
}

.btn-final {
    background: #219ebc;
    color: white;
    padding: 1.6rem 4rem;
    /* Taller button */
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    border-radius: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 1rem;
    /* Space above button */
}

.btn-final:hover {
    background: #126782;
    transform: translateY(-2px);
}

/* Mobile – Still spacious */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-form-grid {
        padding: 2.5rem;
        margin: 2rem 1rem;
        gap: 2.5rem;
    }

    .btn-final {
        width: 100%;
        padding: 1.6rem;
    }
}

/* Extra polish for buttons on About/Lessons/Camps pages */
.about-text .btn-final,
.lessons-text .btn-final,
.camps-text .btn-final {
    padding: 1.5rem 4rem;
    font-size: 1.4rem;
}

/* Fix image-button spacing on About page */
.button-spacing {
    margin-top: 3rem;
    /* Perfect space above button */
    text-align: center;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    /* Extra space between text column & image */
    align-items: start;
    /* Aligns top for better balance */
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Mobile – stacks with space */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .button-spacing {
        margin-top: 2.5rem;
    }
}