@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

:root {
    --primary: #2E7D32;
    --secondary: #FFB300;
    --light: #F5F9F6;
    --accent: #66BB6A;
    --text: #1C2833;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: var(--light);
    color: var(--text);
}

header {
    background: linear-gradient(135deg, var(--secondary), #FFC94D);
    color: var(--text);
    padding: 0 1rem 0 1rem;
    position: fixed;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

nav .Navbar {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

nav a:hover {
    color: var(--primary);
}

.Navtoggle {
    display: none;
    font-weight: 1000;
    position: absolute;
    right: 5%;
    top: 25%;
}

@media only screen and (max-width: 768px) {

    .Navitem,
    .Navbar,
    nav {
        flex-direction: column;
    }

    nav .Navbar .Navitem {
        display: none;
    }

    nav .Navitem.NavitemShow {
        display: flex;
    }

    .Navtoggle {
        align-self: flex-end;
        display: initial;
        cursor: pointer;
    }

}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, rgba(46, 125, 50, 0.05), rgba(255, 179, 0, 0.05));
}

.drum-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

.image-rotator {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.rotating-image {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 2rem;
    background: none;
    box-shadow: none;
    text-shadow: 2px 2px 3px rgba(255, 255, 255, 0.473);
}

.hero h1 {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section {
    padding: 0 2rem 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
    scroll-margin-top: 4rem;
}

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

.card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(46, 125, 50, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    margin-top: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

footer {
    background: linear-gradient(135deg, var(--secondary), #FFC94D);
    color: var(--text);
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

h2 {
    color: var(--primary);
    margin-top: 1rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    font-weight: 600;
    letter-spacing: -0.3px;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

h3 {
    font-weight: 500;
    letter-spacing: -0.2px;
}

p {
    font-weight: 300;
    line-height: 1.6;
}

.registration-form {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-section {
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(46, 125, 50, 0.1);
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-top: 1rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text);
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.1);
}

.form-group textarea {
    padding: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    min-height: 100px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background: white;
    margin: 10vh auto;
    padding: 2rem;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text);
}

.form-group span {
    color: var(--text);
    font-size: 0.9rem;
}

.teacher-carousel {
    position: relative;
    width: 100%;
}

.carousel-container {
    overflow: hidden;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 1%;
}

.carousel-card {
    width: 80%;
    padding: 1%;
    flex: 0 0 auto;
    text-align: center;
    /* Center the content */
    padding-top: 2rem;
    /* Add some padding for the photo */
}

.teacher-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 1rem auto;
    object-fit: cover;
    display: block;
    border: 3px solid var(--primary);
    object-position: top;
}

@media (min-width: 768px) {
    .carousel-card {
        min-width: calc(50% - 2rem);
    }
}

@media (min-width: 1200px) {
    .carousel-card {
        min-width: calc(33.333% - 2rem);
    }
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 2;
    transition: background-color 0.3s, transform 0.3s;
}

.carousel-btn:hover {
    background: var(--accent);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.teacher-profile {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.profile-section {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(46, 125, 50, 0.1);
}

.profile-section h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.profile-section ul {
    list-style: none;
    padding: 0;
}

.profile-section ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(46, 125, 50, 0.1);
}

.profile-section ul li:last-child {
    border-bottom: none;
}

.gallery-grid {
    column-count: 3;
    column-gap: 1.5rem;
    width: 100%;
    margin-top: 2rem;
}

@media (max-width: 900px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        column-count: 1;
        column-gap: 0.5rem;
    }

    .gallery-grid img {
        margin-bottom: 1rem;
        border-radius: 8px;
    }
}

.gallery-grid img {
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background: #fff;
    cursor: pointer;
    transition: transform 0.2s;
    display: block;
    /* Remove fixed aspect ratio and object-fit for natural mosaic look */
}

.gallery-grid img:hover {
    transform: scale(1.04);
}

.modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 90vh;
    background: #fff;
    border-radius: 10px;
    padding: 1rem;
    position: relative;
}

#modalImg {
    max-width: 80vw;
    max-height: 70vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    background: #fff;
}

/* Make modal image and content more mobile-friendly */
@media (max-width: 600px) {
    .modal-content {
        max-width: 98vw;
        max-height: 98vh;
        padding: 0.5rem;
    }

    #modalImg {
        max-width: 96vw;
        max-height: 60vh;
        border-radius: 6px;
    }
}

/* Make year headings and blocks more compact on mobile */
@media (max-width: 600px) {
    .year-block h2 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .year-block {
        margin-bottom: 1.5rem;
    }
}