/* Reset & base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    padding-top: 70px; /* space for fixed menu */
}

a {
    color: #0077cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Inline menu */
.menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #4a90e2;
    color: #fff;
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.menu a {
    font-weight: 500;
    color: #fff;
}

main {
    max-width: 900px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

section {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: max-height 0.5s ease;
}

section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #4a90e2;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.3rem;
    cursor: pointer;
    user-select: none;
}

/* Collapsible content */
.content {
    max-height: 2000px; /* large value to expand by default */
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.collapsed .content {
    max-height: 0;
    padding: 0;
}

/* About section flex layout */
#bio .bio-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
}

#bio img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #4a90e2;
    flex-shrink: 0;
}

#bio p {
    font-size: 1rem;
    line-height: 1.8;
    flex: 1;
}

/* Services section */
#services ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

#services li {
    background-color: #eaf2ff;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-weight: 500;
    transition: transform 0.2s;
}

#services li:hover {
    transform: scale(1.05);
}

#contact p {
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 700px) {
    #bio .bio-container {
        flex-direction: column;
        text-align: center;
    }

    #bio img {
        margin-bottom: 1rem;
    }
}

/* Grid for future templates */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

#sample-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2em;
}

/* Each lesson row */
.sample-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

/* Description */
.sample-text {
    flex: 1;
}

.sample-text h3 {
    margin-bottom: 0.5rem;
    color: #4a90e2;
}

.sample-text p {
    line-height: 1.7;
}

/* Video container */
.sample-video iframe {
    min-width: 300px;
    max-width: 380px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#sample-list hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 1em 0;
}

/* Responsive behavior */
@media (max-width: 700px) {
    .sample-item {
        flex-direction: column;
    }

    .sample-video iframe {
        width: 100%;
        max-width: 100%;
    }
}
