/*
Theme Name: Rays Chinese Class
Theme URI: https://www.rayschineseclass.com
Author: Rays Chinese Class
Author URI: https://www.rayschineseclass.com
Description: A custom WordPress theme for Rays Chinese Class - Learn Chinese with daily lessons, pinyin, English translations, and audio pronunciation.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rays-chinese
Tags: education, chinese, language-learning, bilingual
*/

/* ========================================
   RESET & BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lora', serif;
    background-color: #ffffff;
    color: #3d2f3d;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

button, a {
    font-family: 'Poppins', sans-serif;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ========================================
   NAVIGATION
   ======================================== */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #e8dce8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.site-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    text-decoration: none;
}

.nav-logo img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.nav-logo h1 {
    font-size: 1.125rem;
    color: #6B3E5D;
    margin: 0;
    line-height: 1.2;
}

.nav-logo-text p {
    font-size: 0.65rem;
    color: #6B3E5D;
    opacity: 0.7;
    margin: 0;
}

/* Desktop Navigation Links */
.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 600;
    color: #6B3E5D;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #5a3350;
}

.nav-links svg {
    width: 20px;
    height: 20px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    margin-left: 1rem;
    background: none;
    border: none;
    padding: 0;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #6B3E5D;
    border-radius: 2px;
    transition: all 0.3s;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid #e8dce8;
    flex-direction: column;
    gap: 0;
    z-index: 40;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    padding: 1rem;
    color: #6B3E5D;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s;
}

.mobile-menu a:hover {
    background-color: #f9f7f9;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    background-image: url('https://d2xsxph8kpxj0f.cloudfront.net/310519663414349555/eUnAkbzVnvGCMw8qs8Awsk/mobile-hero-section-2aqgBoFk5CGiT8i9hUaDBD.webp');
    background-size: cover;
    background-position: center;
    padding: 3rem 1rem;
    text-align: center;
    color: white;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-en {
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.85;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero .subtitle {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    opacity: 0.85;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.subtitle-en {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: #d4a574;
    color: #3d2f3d;
    text-decoration: none;
    border: none;
    border-radius: 0.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

.btn .en-btn {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

.btn:hover {
    background-color: #c49563;
    color: #3d2f3d;
}

/* ========================================
   MOTTO SECTION
   ======================================== */
.motto {
    padding: 2.5rem 1rem;
    background: linear-gradient(135deg, rgba(107, 62, 93, 0.95) 0%, rgba(107, 62, 93, 0.85) 100%);
    color: white;
    text-align: center;
    border-top: 3px solid #d4a574;
    border-bottom: 3px solid #d4a574;
}

.motto-text {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.8;
    max-width: 48rem;
    margin: 0 auto;
}

.motto-text .cn {
    display: block;
    margin-bottom: 0.75rem;
    font-family: 'Playfair Display', serif;
}

.motto-text .en {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.95;
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.features {
    padding: 3rem 1rem;
    background-color: #ffffff;
}

.features h3 {
    font-size: 1.875rem;
    color: #6B3E5D;
    margin-bottom: 0.5rem;
    text-align: center;
}

.features h3 .en {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

.features-intro {
    text-align: center;
    color: #7a6a7a;
    margin-bottom: 2rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.features-intro .cn {
    display: block;
    margin-bottom: 0.75rem;
}

.features-intro .en {
    display: block;
    font-size: 0.95rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: white;
    border: 1px solid #e8dce8;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    transition: box-shadow 0.3s;
}

.feature-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h4 {
    font-size: 1.125rem;
    color: #6B3E5D;
    margin-bottom: 0.25rem;
}

.feature-card h4 .en {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

.feature-card p {
    font-size: 0.875rem;
    color: #7a6a7a;
    line-height: 1.6;
}

/* ========================================
   DAILY CTA CARD
   ======================================== */
.daily-cta-card {
    margin: 3rem auto;
    background: linear-gradient(135deg, #6B3E5D 0%, #8B5A7F 100%);
    border-radius: 1rem;
    padding: 2.5rem;
    text-align: center;
    color: white;
    box-shadow: 0 8px 24px rgba(107, 62, 93, 0.3);
    max-width: 56rem;
    border: 3px solid #d4a574;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(107, 62, 93, 0.3);
    }
    50% {
        box-shadow: 0 12px 32px rgba(107, 62, 93, 0.5);
    }
}

.daily-cta-card h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.daily-cta-card h3 .en {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.daily-cta-card p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.8;
}

.daily-cta-card p .cn {
    display: block;
    margin-bottom: 0.75rem;
}

.daily-cta-card p .en {
    display: block;
    font-size: 1rem;
}

.daily-cta-card .btn {
    background-color: #d4a574;
    color: #3d2f3d;
    font-size: 1.125rem;
    padding: 1rem 2.5rem;
}

.daily-cta-card .btn:hover {
    background-color: #c49563;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
    padding: 3rem 1rem;
    background-color: #ffffff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 56rem;
    margin: 0 auto;
}

.about-text h3 {
    font-size: 1.875rem;
    color: #6B3E5D;
    margin-bottom: 1rem;
}

.about-text h3 .en {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

.about-text p {
    color: #7a6a7a;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-text p .cn {
    display: block;
    margin-bottom: 0.75rem;
}

.about-text p .en {
    display: block;
    font-size: 0.95rem;
}

.about-image {
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ========================================
   YOUTUBE SECTION
   ======================================== */
.youtube-promo {
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #ff0000 0%, #c41e3a 100%);
    color: white;
}

.youtube-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    max-width: 56rem;
    margin: 0 auto;
}

.youtube-text h3 {
    font-size: 1.875rem;
    color: white;
    margin-bottom: 0.5rem;
}

.youtube-text h3 .en {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

.youtube-text p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.youtube-text p .cn {
    display: block;
    margin-bottom: 0.75rem;
}

.youtube-text p .en {
    display: block;
    font-size: 0.95rem;
}

.youtube-btn {
    background-color: white;
    color: #ff0000;
    font-weight: 700;
}

.youtube-btn:hover {
    background-color: #f0f0f0;
    color: #ff0000;
}

.youtube-icon {
    font-size: 4rem;
    text-align: center;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta {
    padding: 3rem 1rem;
    background-color: #6B3E5D;
    color: white;
    text-align: center;
}

.cta h3 {
    font-size: 1.875rem;
    margin-bottom: 0.5rem;
    color: white;
}

.cta h3 .en {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

.cta p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta .btn {
    background-color: #d4a574;
    color: #3d2f3d;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background-color: #3d2f3d;
    color: white;
    padding: 2rem 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 56rem;
    margin: 0 auto;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .site-nav .container {
        position: relative;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-logo-text p {
        display: none;
    }

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

    .hero p {
        font-size: 1rem;
    }

    .motto-text {
        font-size: 1.25rem;
    }

    .motto-text .en {
        font-size: 1rem;
    }

    .features h3 {
        font-size: 1.5rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .daily-cta-card {
        padding: 1.5rem;
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .daily-cta-card h3 {
        font-size: 1.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .youtube-content {
        grid-template-columns: 1fr;
    }

    .youtube-icon {
        font-size: 3rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}
