:root {
    --primary: #D97742;
    --secondary: #5A3A2E;
    --accent: #A24C39;
    --light: #F4E3D7;
    --highlight: #E24E1B;
    --white: #FFFF;
    --spacing: 2rem;
    --fun-font: 'Montserrat', sans-serif;
    --a: 135deg;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--secondary);
    background: linear-gradient(135deg, var(--light) 0%, var(--white) 100%);
    scroll-behavior: smooth;
}

header {
    background-color: var(--secondary);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 2rem;
}

#danses a {
    font-size: 1.2rem;
    background-color: var(--primary);
    transition: cubic-bezier(0.36, 0, 0.66, -0.56) 0.1s;
}

#danses a:hover {
    background-color: var(--highlight);
}

#danses {
    transition: cubic-bezier(0.36, 0, 0.66, -0.56) 0.1s;
}

#danses:hover {
    transform: scale(1.05);
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
}

.landing {
    height: 100vh;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.landing span {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.landing h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.landing p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.landing .btn {
    background: var(--highlight);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 25px;
    transition: background 0.3s ease;
}

.landing .btn:hover {
    background: var(--primary);
}

.landing-logo {
    width: 20%; /* Adjust the width as needed */
    height: auto; /* Maintain aspect ratio */
    margin: 1rem; /* Space between the logo and the heading */
    filter: invert(1);
}

main {
    margin-top: 80px;
    padding: var(--spacing);
}

section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    scroll-margin-top: 80px;
    border-radius: 15px;
}

h2 {
    color: var(--accent);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 1rem auto;
    transition: cubic-bezier(0.215, 0.610, 0.355, 1) 0.3s;
}

h2:hover:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    margin: 1rem auto;
}

/* Containers */
.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    align-items: stretch;
}

.section-flexbox {
    display: flex;
    flex-direction: row;
    gap: 2.5rem;
    align-items: stretch;
    margin-top: 2rem;
}

/* Card Styling */
.card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(217, 119, 66, 0.3);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.card::after {
    content: '';
    position: absolute;
    top: -200%;
    left: -200%;
    width: 300%;
    height: 300%;
    background: linear-gradient(135deg, rgba(244, 227, 215, 0.5), transparent);
    opacity: 0.7;
    z-index: -1;
    transition: 0.3s cubic-bezier(.785, .135, .15, .86);
}

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

.card:hover::after {
    transform: translate(50%, 50%);
}

.card h3 {
    font-family: var(--fun-font);
    color: var(--highlight);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    line-height: 1.3;
    text-align: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--light);
    width: 100%;
}

/* Day title styling */
.day-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Center content vertically */
    height: 30px; /* Set a fixed height */
}

.day-main {
    font-size: 1.4rem;
    line-height: 1.3;
}

.day-qualifier {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: normal;
    margin-top: 0.2rem;
}

.card p {
    margin: auto;
    margin-bottom: 10px;
    font-size: 1.1rem;
    line-height: 1.5;
    text-align: left;
    color: var(--secondary);
    background: var(--light);
    padding: 20px;
    border-radius: 10px;
}

.card p b {
    color: var(--accent);
    font-weight: 600;
}

.card p i {
    margin-right: 0.75rem;
    color: var(--primary);
    width: 1rem;
    text-align: center;
}

.card a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.card a:hover {
    color: var(--highlight);
    text-decoration: underline;
}

.card img {
    border-radius: 6px;
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
    flex-grow: 1;
}

.image-container {
    display: flex;
    flex-direction: column;
    flex-grow: 0;
    justify-content: center;
    
}

/* Course location styling */
.course-location {
    font-weight: 600;
    color: var(--secondary);
    display: block;
    margin: 0.5rem 0 1rem 0;
    font-size: 1.1rem;
    text-align: center;
    padding: 0.5rem;
    background-color: var(--light);
    border-radius: 4px;
}

/* Course schedule styling */
.course-schedule {
    margin: 0.5rem 0;
    color: var(--accent);
    font-style: italic;
    text-align: center;
}

/* Contact card specific styling */
.contact-info p {
    display: flex;
    align-items: center;
    margin: 1rem 0;
}

.contact-info i {
    min-width: 1.5rem;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 3rem;
    align-items: start;
}

.social-links {
    display: flex;
    gap: 1.25rem;
    margin-top: 1.75rem;
    justify-content: center;
}

.social-links a {
    color: var(--primary);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--highlight);
}

.map {
    width: 100%;
    height: 100%;
    min-height: 300px;
}

.map iframe {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

footer {
    background: var(--secondary);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

.dance-entry {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.dance-entry:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Equal height cards in about section */
.about-section .section-flexbox {
    align-items: stretch;
}

.about-section .card {
    display: flex;
    flex-direction: column;
    height: auto;

}

.about-image {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

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

    .card {
        padding: 1.75rem;
        
    }

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

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}