/* Mobile-first styles for Yingxi Academy - V2 Design Match */
:root {
    --primary-yellow: #F4D03F;
    --soft-orange: #F5B041;
    --calming-blue: #5DADE2;
    --text-dark: #5D4037;
    --text-light: #FFFFFF;
    --bg-light: #FFFFFF;
    --card-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header - Taller as per design */
header {
    background-color: var(--primary-yellow);
    padding: 1.5rem 1.5rem;
    /* Increased padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 0.5rem;
}

.menu-toggle {
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-dark);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex-direction: column;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--text-dark);
    border-bottom: 1px solid #eee;
    font-weight: bold;
}

/* Hero Section - Full width illustration with curved bottom */
.hero {
    position: relative;
    background: linear-gradient(to bottom, var(--primary-yellow) 0%, #F9E79F 100%);
    padding: 2rem 0 5rem;
    /* No horizontal padding, larger bottom for curve */
    text-align: center;
    border-bottom-left-radius: 50% 40px;
    /* Larger curve */
    border-bottom-right-radius: 50% 40px;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 1rem 1rem 0;
    /* Only horizontal padding for text */
}

.hero h1 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: #5D4037;
    font-weight: bold;
    line-height: 1.4;
}

.hero p {
    color: #795548;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero-illustration {
    width: 100%;
    /* Full width */
    max-width: 100%;
    height: auto;
    margin: 1rem 0 0 0;
    /* No horizontal margin */
    display: block;
}

/* Main Content - Buttons */
.main-content {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.1s;
    position: relative;
    height: 80px;
}

.nav-btn:active {
    transform: scale(0.98);
}

.nav-btn .icon-circle {
    width: 50px;
    height: 50px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.nav-btn .icon-circle i {
    font-size: 1.5rem;
}

.nav-btn span {
    text-align: center;
    flex-grow: 1;
    padding-right: 3rem;
}

/* Specific Button Colors */
.btn-about {
    background-color: var(--primary-yellow);
    color: #fff;
}

.btn-about .icon-circle i {
    color: #5D4037;
}

.btn-records {
    background-color: var(--soft-orange);
    color: #fff;
}

.btn-records .icon-circle i {
    color: var(--soft-orange);
}

.btn-activities {
    background-color: var(--calming-blue);
    color: #fff;
}

.btn-activities .icon-circle i {
    color: var(--calming-blue);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: #999;
    font-size: 0.8rem;
    margin-top: auto;
}

/* Tab Styles */
.tabs {
    display: flex;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    overflow-x: auto;
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.tab-btn.active {
    color: var(--calming-blue);
    border-bottom-color: var(--calming-blue);
    font-weight: bold;
}

.tab-content {
    display: none;
    padding: 1rem;
    background-color: #fff;
    margin: 0 1rem 1rem;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
}

.tab-content.active {
    display: block;
}

/* Inner pages styles */
.grade-section {
    margin-bottom: 1.5rem;
    background: #fff;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: var(--card-shadow);
}

.grade-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--calming-blue);
    margin-bottom: 1rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

.student-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
}

.student-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    border: 1px solid #eee;
    transition: all 0.2s;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.gallery-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    text-decoration: none;
    color: var(--text-dark);
}

.gallery-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background-color: #eee;
}

.gallery-title {
    padding: 0.5rem;
    font-size: 0.9rem;
    text-align: center;
    font-weight: bold;
}

.record-card {
    background: #fff;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: var(--card-shadow);
    border-left: 5px solid var(--soft-orange);
}

.record-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.record-date {
    font-weight: bold;
    color: var(--calming-blue);
}

.record-teacher {
    font-size: 0.9rem;
    color: #888;
}

.record-content {
    font-size: 1rem;
    color: #444;
    line-height: 1.6;
}

.announcement-item {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}

.announcement-item:last-child {
    border-bottom: none;
}

.announcement-date {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 0.2rem;
}

.announcement-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-dark);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.content-text {
    font-size: 1rem;
    color: #444;
    line-height: 1.8;
}

.content-text h2 {
    color: var(--calming-blue);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.back-btn {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--calming-blue);
    text-decoration: none;
    font-weight: bold;
}