/* Enhanced Theme Variables */
:root {
    --brand: #eaa0c3;
    --brand-dark: #c97ca2;
    --brand-light: #fbeaf3;
    --brand-accent: #ff4d8d;
    --text-main: #2d2d2d;
    --text-light: #666666;
    --white: #fff;
    --shadow-sm: 0 2px 8px rgba(234,160,195,0.10);
    --shadow-md: 0 4px 16px rgba(234,160,195,0.15);
    --shadow-lg: 0 8px 24px rgba(234,160,195,0.20);
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: var(--brand-light);
    color: var(--text-main);
}

header {
    background: linear-gradient(90deg, var(--brand) 60%, var(--brand-light) 100%);
    color: var(--white);
    padding: 36px 0 24px 0;
    text-align: center;
    box-shadow: 0 2px 12px rgba(234,160,195,0.12);
    border-bottom: 4px solid var(--brand-dark);
}

header .header-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

header .header-logo {
    height: 56px;
    width: 56px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(234,160,195,0.12);
}
}

header .header-title {
    margin: 0;
}

header .header-subtitle {
    margin: 0;
}

nav {
    background: var(--brand-dark);
    box-shadow: 0 2px 8px rgba(201,124,162,0.10);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    scrollbar-width: none;
}

.nav-container::-webkit-scrollbar {
    display: none;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    align-items: center;
    gap: 24px;
    min-width: min-content;
    width: 100%;
}

nav ul li {
    position: relative;
    display: flex;
    align-items: center;
}

nav ul li a {
    display: block;
    padding: 15px 28px;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    border-radius: 6px 6px 0 0;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

@media (max-width: 768px) {
    #mobileMenuBtn {
        display: flex !important;
    }
    .nav-container {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        transition: transform 0.3s var(--transition-smooth);
        z-index: 998;
        max-width: 100vw;
        padding: 0;
        height: auto;
    }
    .nav-container.nav-mobile-open {
        transform: translateY(0);
    }
    nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        align-items: stretch;
    }
    nav ul li {
        width: 100%;
        justify-content: center;
    }
    nav ul li a, .nav-action-btn {
        width: 100%;
        text-align: center;
        padding: 18px 0;
        border-radius: 0;
        border-bottom: 1px solid var(--brand-light);
    }
    .header-social-top {
        display: none !important;
    }
    .social-nav-left {
        display: flex !important;
        position: fixed;
        bottom: 16px;
        left: 0;
        right: 0;
        flex-direction: row;
        justify-content: center;
        gap: 24px;
        background: rgba(255,255,255,0.85);
        box-shadow: 0 2px 8px rgba(234,160,195,0.10);
        padding: 8px 0;
        border-radius: 16px 16px 0 0;
        z-index: 999;
    }
}

#mobileMenuBtn {
    display: none;
}

nav ul li a.active, nav ul li:hover > a {
    background: var(--brand);
    color: var(--white);
}

nav ul li.has-dropdown {
    position: relative;
}

nav ul li.has-dropdown > a::after {
    content: '▾';
    margin-left: 6px;
    font-size: 0.8em;
    transition: transform 0.3s;
}

nav ul li.has-dropdown.active > a::after {
    transform: rotate(180deg);
}

nav ul li ul.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--brand);
    min-width: 200px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 12px rgba(201,124,162,0.15);
    z-index: 100;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s;
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;   /* stack items vertically */
        align-items: flex-start;  /* align to left */
        gap: 0;                   /* remove horizontal gap */
        width: 100%;              /* take full width */
    }

    nav ul li a {
        display: block;
        width: 100%;              /* clickable full width */
        padding: 15px 20px;
        border-radius: 0;         /* optional: cleaner look */
    }

    /* optional: dropdown full width on mobile */
    nav ul li ul.dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        width: 100%;
    }

    nav ul li ul.dropdown-menu li a {
        padding-left: 30px; /* indent submenu items */
    }
}


/* Main Section Styles */
main {
    background: var(--white);
    box-shadow: 0 2px 24px rgba(234,160,195,0.10);
    border-radius: 16px;
    border: 2px solid var(--brand-light);
    padding: 40px 28px;
    margin-bottom: 36px;
}

section {
    margin-bottom: 44px;
    padding: 32px 20px;
    background: var(--brand-light);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(234,160,195,0.06);
}

#hero {
    background: linear-gradient(90deg, var(--brand-light) 60%, var(--white) 100%);
    border-radius: 18px;
    box-shadow: 0 2px 24px rgba(234,160,195,0.10);
    padding: 36px 24px 24px 24px;
    margin-bottom: 36px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 32px;
    justify-content: center;
}

#about {
    background: var(--white);
    border-left: 6px solid var(--brand);
    box-shadow: 0 2px 8px rgba(234,160,195,0.08);
}

#courses {
    background: var(--brand-light);
    border-left: 6px solid var(--brand-dark);
    box-shadow: 0 2px 8px rgba(234,160,195,0.08);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--brand-dark);
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
    font-family: 'Segoe UI', Arial, sans-serif;
}

h2 {
    font-size: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: var(--spacing-md);
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--brand);
    border-radius: 2px;
}

/* Programs Layout */
.programs-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin: 32px auto;
    max-width: 1200px;
    width: 100%;
    padding: 0 24px;
}

#beginner, #intermediate, #advanced {
    background: var(--brand-light);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(234,160,195,0.08);
    padding: 32px;
    width: 100%;
}

.programs-layout ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0;
    list-style: none;
    width: 100%;
}

.program-item-box {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(234,160,195,0.10);
    padding: 24px;
    margin-bottom: 0;
    display: flex;
    align-items: flex-start;
    gap: 24px;
    transition: all 0.2s ease;
    width: 100%;
}

.program-item-box:hover {
    box-shadow: 0 4px 16px rgba(234,160,195,0.18);
    transform: translateY(-2px);
}

.program-item-img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(234,160,195,0.10);
    flex-shrink: 0;
}

.program-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.program-item-title {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--brand-dark);
    margin: 0;
}

.program-item-content p {
    color: var(--text-main);
    margin: 0;
    line-height: 1.5;
}

.program-item-content a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    padding: 8px 16px;
    background: var(--brand-light);
    border-radius: 6px;
    transition: background 0.2s;
    width: fit-content;
}

.program-item-content a:hover {
    background: var(--brand);
}

.program-item-pdf {
    height: 24px;
    vertical-align: middle;
}

.program-download-icon {
    height: 20px;
    width: 20px;
    vertical-align: middle;
    margin-left: 4px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.program-item-content a:hover .program-download-icon {
    opacity: 1;
}

.video-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 18px;
}

.video-gallery > div {
    flex: 1 1 320px;
    max-width: 605px;
    min-width: 325px;
    background: var(--white);
    border: 2px solid var(--brand);
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(234,160,195,0.08);
    padding: 16px;
}

footer {
    background: var(--brand-dark);
    color: var(--white);
    text-align: center;
    padding: 36px 12px;
    margin-top: 52px;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 -2px 12px rgba(201,124,162,0.10);
    border-top: 2px solid var(--brand);
}

.footer-links a {
    color: var(--white);
    margin: 0 12px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--brand);
    text-decoration: underline;
}

/* Floating Button */
.floating-btn {
    position: fixed;
    right: 32px;
    bottom: 32px;
    z-index: 999;
    background: var(--brand);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    box-shadow: 0 4px 16px rgba(234,160,195,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.floating-btn:hover {
    background: var(--brand-dark);
    box-shadow: 0 8px 24px rgba(234,160,195,0.28);
    transform: scale(1.08);
}

.nav-action-btn {
    background: var(--brand);
    color: var(--white);
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 1em;
    margin-left: 12px;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(234,160,195,0.10);
}

.nav-action-btn:hover {
    background: var(--brand-dark);
    box-shadow: 0 4px 16px rgba(234,160,195,0.18);
}

@media (max-width: 900px) {
    nav ul {
        flex-wrap: wrap;
        gap: 8px;
    }
    .nav-action-btn {
        margin-left: 0;
        margin-top: 8px;
        width: 100%;
    }
}

@media (max-width: 1024px) {
    main {
        width: 90%;
        margin: 24px auto;
    }
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }

    nav ul li ul {
        position: static;
        width: 100%;
        box-shadow: none;
        background: var(--brand-dark);
    }

    nav ul li:hover ul {
        display: none;
    }

    nav ul li.active ul {
        display: block;
    }

    .programs-layout {
        padding: 0 12px;
    }
    
    #beginner, #intermediate, #advanced {
        padding: 24px 16px;
    }

    main {
        width: 95%;
        padding: 32px 16px;
        margin: 20px auto;
    }
}

@media (max-width: 600px) {
    .program-item-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }
    
    .program-item-img {
        width: 140px;
        height: 140px;
    }
    
    .program-item-content {
        align-items: center;
    }

    .program-item-content a {
        margin-top: 8px;
    }

    main {
        width: 100%;
        margin: 12px 0;
        border-radius: 0;
    }
}

.section-box {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    max-width: 1000px;
    margin: var(--spacing-xl) auto;
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.section-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.section-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--brand) 0%, var(--brand-accent) 100%);
}

@media (max-width: 768px) {
    .section-box {
        padding: var(--spacing-lg) var(--spacing-md);
        margin: var(--spacing-lg) var(--spacing-sm);
    }

    h2 {
        font-size: 1.75rem;
    }

    .btn {
        width: 100%;
        margin: var(--spacing-xs) 0;
    }

    .card {
        padding: var(--spacing-md);
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

main {
    padding: var(--spacing-xl) var(--spacing-lg);
    margin: var(--spacing-xl) var(--spacing-lg);
}

@media (max-width: 768px) {
    main {
        padding: var(--spacing-lg) var(--spacing-md);
        margin: var(--spacing-lg) var(--spacing-sm);
    }
}

/* Social Media Navigator */
.social-nav-left {
    position: fixed;
    top: 120px;
    left: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    z-index: 10;
}

@media (max-width: 700px) {
    .social-nav-left {
        top: auto;
        bottom: 16px;
        left: 0;
        right: 0;
        width: 100vw;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 24px;
        background: rgba(255,255,255,0.85);
        box-shadow: 0 2px 8px rgba(234,160,195,0.10);
        padding: 8px 0;
        border-radius: 16px 16px 0 0;
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    .social-nav-left a {
        flex: 0 0 auto;
        min-width: 32px;
        min-height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
