/* CSS Variables for consistent theming */
:root {
    --primary-color: #6e2a5f;
    --secondary-color: #3c2a4b;
    --accent-color: #f7b1d3;
    --accent-dark: #d04880;
    --text-color: #2e2337;
    --muted-text: #605169;
    --background-color: #fff5fb;
    --card-background: #ffffff;
    --footer-background: #3c2a4b;
    --border-color: #f1d8e8;
    --shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at top left, rgba(247, 177, 211, 0.22), transparent 20%),
                radial-gradient(circle at bottom right, rgba(110, 42, 95, 0.10), transparent 22%),
                var(--background-color);
    color: var(--text-color);
    line-height: 1.75;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin: 0;
}

h1 {
    font-size: 3rem;
    color: var(--secondary-color);
}

h2 {
    font-size: 2.6rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h3 {
    font-size: 2rem;
    color: var(--secondary-color);
}

p {
    margin: 0 0 1rem 0;
    color: var(--muted-text);
}

/* Header Styles */
header {
    background-color: transparent;
    color: var(--text-color);
    padding: 1.2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: none;
    font-family: 'Montserrat', sans-serif;
}

.logo {
    height: 80px;
    width: auto;
    margin-bottom: 1rem;
}

.header-text {
    text-align: center;
    margin-bottom: 1rem;
}

.header-text h1 {
    color: var(--secondary-color);
    font-size: 2.75rem;
    margin-bottom: 0.3rem;
}

.header-text p {
    color: var(--muted-text);
    font-size: 1.1rem;
    margin: 0;
}

nav {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    justify-content: center;
}

nav a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    transition: var(--transition);
    background-color: rgba(247, 177, 211, 0.2);
}

nav a:hover {
    background-color: var(--accent-color);
    color: var(--secondary-color);
}

.dropdown-toggle {
    background-color: rgba(247, 177, 211, 0.2);
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    color: var(--secondary-color);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.dropdown-toggle:hover {
    background-color: var(--accent-color);
    color: var(--secondary-color);
}

.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown > a {
    display: inline-flex;
    align-items: center;
}

.button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    font-weight: 700;
    padding: 0.85rem 1.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: var(--transition);
}

.button:hover,
.btn:hover {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    min-width: 200px;
    box-shadow: var(--shadow);
    z-index: 10;
    border-radius: 12px;
    overflow: hidden;
}

.dropdown-content a {
    color: var(--secondary-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    background: rgba(247, 177, 211, 0.15);
}

.dropdown-content a:hover {
    background-color: var(--accent-color);
    color: var(--secondary-color);
}


/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.82);
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(110, 42, 95, 0.06);
}

/* Hero Section */
.hero {
    text-align: center;
    background: linear-gradient(135deg, rgba(247, 177, 211, 0.2), rgba(255, 255, 255, 0.95));
    padding: 3rem 2rem;
    border-radius: 18px;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
    border: 1px solid rgba(241, 216, 232, 0.9);
}

.hero h2 {
    color: var(--secondary-color);
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

/* Classes Section */
.classes {
    margin-bottom: 3rem;
}

.classes h2 {
    text-align: center;
    margin-bottom: 2rem;
}

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

.class-card {
    background-color: var(--card-background);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 1.8rem;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

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

.class-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.class-card-link:hover .class-card {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.12);
}

.class-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.class-card p {
    color: var(--text-color);
}

/* Classes Info Section */
.classes-info {
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
}

.classes-info h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.classes-info p {
    max-width: 760px;
    margin: 0 auto 1.5rem auto;
}

.classes-info select {
    display: block;
    margin: 0 auto 2rem auto;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background-color: var(--card-background);
    width: 320px;
    max-width: 100%;
}

.class-info {
    background-color: var(--card-background);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 1.8rem;
    border: 1px solid var(--border-color);
    margin: 0 auto 2rem;
    max-width: 900px;
}

.class-info h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.class-info h4 {
    color: var(--primary-color);
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.2rem;
}

.class-info p {
    color: var(--text-color);
    line-height: 1.75;
}

/* About Section */
.about {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 18px;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.about h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.about p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--muted-text);
}

.about strong {
    color: var(--primary-color);
}

/* Contact Section */
.contact {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 18px;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.contact h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.contact ul {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 0 auto;
}

.contact li {
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: rgba(255, 244, 250, 0.95);
    border-radius: 14px;
    border-left: 4px solid var(--accent-color);
}

.contact strong {
    color: var(--primary-color);
}

.contact a {
    color: var(--secondary-color);
    text-decoration: none;
}

.contact a:hover {
    text-decoration: underline;
}

/* Registration Section */
.registration {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 18px;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.registration h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.registration > p {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--muted-text);
}

.registration-form {
    max-width: 800px;
}

.registration-form fieldset {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background-color: rgba(247, 177, 211, 0.08);
}

.registration-form legend {
    font-weight: 700;
    color: var(--primary-color);
    padding: 0 0.5rem;
    font-size: 1.1rem;
}

.registration-form .form-group {
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
}

.registration-form label {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.4rem;
}

.registration-form input[type="text"],
.registration-form input[type="email"],
.registration-form input[type="tel"],
.registration-form input[type="number"],
.registration-form select,
.registration-form textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: var(--text-color);
    background-color: #fafafe;
    transition: var(--transition);
}

.registration-form input[type="text"]:focus,
.registration-form input[type="email"]:focus,
.registration-form input[type="tel"]:focus,
.registration-form input[type="number"]:focus,
.registration-form select:focus,
.registration-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(247, 177, 211, 0.2);
}

.registration-form textarea {
    resize: vertical;
    line-height: 1.5;
}

.registration-form input[type="checkbox"] {
    margin-right: 0.6rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.registration-form input[type="checkbox"] + label,
.registration-form label:has(> input[type="checkbox"]) {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    font-weight: 500;
}

.registration-form button {
    width: 100%;
    margin-top: 1.5rem;
}

/* Timetable Section */
.timetable {
    margin-bottom: 3rem;
}

.timetable h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.timetable h3 {
    color: var(--secondary-color);
    margin: 2rem 0 1rem 0;
    font-size: 1.8rem;
}

.timetable table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background-color: var(--card-background);
    box-shadow: var(--shadow);
    border-radius: 18px;
    overflow: hidden;
}

.timetable th, .timetable td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.timetable th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.timetable tr:nth-child(even) {
    background-color: rgba(247, 177, 211, 0.15);
}

.timetable tr:hover {
    background-color: rgba(247, 177, 211, 0.25);
}

/* Locations Section */
.locations {
    margin-bottom: 3rem;
}

.locations h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.locations p {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--muted-text);
}

/* Map Styles */
#map {
    height: 400px;
    border-radius: 18px;
    box-shadow: var(--shadow);
    margin: 2rem 0;
    border: 1px solid rgba(241, 216, 232, 0.9);
}

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

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

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

    .logo {
        margin-bottom: 1rem;
    }

    nav {
        margin-top: 1rem;
    }

    nav a {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    main {
        padding: 1rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

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

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

    .classes-info select {
        width: 100%;
    }

    .timetable table {
        font-size: 0.95rem;
    }

    .timetable th, .timetable td {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 2rem;
    }

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

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}
.accordion details {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 12px;
    background: #fafafa;
}

.accordion summary {
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 0;
}

.accordion ul {
    margin: 10px 0 0 15px;
    padding: 0;
    list-style: none;
}

.accordion li {
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.nav-toggle {
    display: none;
    background: #333;
    color: #fff;
    border: none;
    padding: 0.4rem 0.7rem;
    border-radius: 4px;
    font-size: 1rem;
}

/* Dropdown base */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    min-width: 180px;
    display: none;
    flex-direction: column;
    z-index: 10;
}

.dropdown-content a {
    padding: 0.4rem 0.6rem;
    white-space: nowrap;
}

/* Mobile layout */
@media (max-width: 768px) {
    .nav-toggle {
        display: inline-block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        margin-top: 0.5rem;
    }

    .nav-links a,
    .dropdown-toggle {
        padding: 0.4rem 0;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-content {
        position: static;
        border: none;
        box-shadow: none;
        background: transparent;
    }

    .dropdown-content a {
        padding-left: 1rem;
    }

    .nav-links.open {
        display: flex;
    }

    .dropdown.open .dropdown-content {
        display: flex;
    }
}

/* Desktop dropdown on hover */
@media (min-width: 769px) {
    .dropdown:hover .dropdown-content {
        display: flex;
        flex-direction: column;
    }
}

.nav-toggle {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: var(--shadow);
}

.nav-links {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.dropdown-toggle {
    font-weight: 600;
    color: var(--secondary-color);
}

.dropdown-content a {
    background: rgba(247, 177, 211, 0.15);
    border-radius: 8px;
    margin: 2px 0;
}

.dropdown-content a:hover {
    background: var(--accent-color);
    color: var(--secondary-color);
}
