@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #2a9d8f;
    --primary-hover: #1e7066;
    --primary-light: #e8f6f5;
    --secondary: #264653;
    --accent: #fb8500;
    --accent-hover: #ffb703;
    --accent-light: #fff3e6;
    --text-color: #2b2d42;
    --text-muted: #6c757d;
    --bg-color: #faf9f6;
    --card-bg: #ffffff;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Quicksand', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--secondary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

/* Base Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section-bg {
    background-color: var(--white);
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title-wrapper h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 12px;
}

.section-title-wrapper p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.section-title-wrapper::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    margin: 16px auto 0 auto;
    border-radius: var(--radius-full);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 157, 143, 0.3);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--white);
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 133, 0, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Header & Navigation */
.header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-link svg {
    width: 48px;
    height: 48px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
    letter-spacing: -0.5px;
    line-height: 1;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 4px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--secondary);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary);
    transition: var(--transition);
    border-radius: var(--radius-full);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--secondary);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: var(--radius-full);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, #fffbf2 100%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 32px;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 8px solid var(--white);
    transform: rotate(1deg);
    transition: var(--transition);
}

.hero-image:hover {
    transform: rotate(0deg) scale(1.02);
}

.hero-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background-color: var(--accent);
    color: var(--white);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    font-family: var(--font-heading);
    font-weight: 700;
    text-align: center;
    transform: rotate(-3deg);
}

.hero-badge span {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Feature Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border-bottom: 4px solid transparent;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--primary);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    font-size: 2rem;
}

.feature-card:nth-child(2n) .feature-icon {
    background-color: var(--accent-light);
    color: var(--accent);
}

.feature-card:nth-child(2n):hover {
    border-bottom-color: var(--accent);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Classroom / Classes Grid */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.class-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.class-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.class-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.class-body {
    padding: 30px;
}

.class-badge {
    display: inline-block;
    background-color: var(--accent-light);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.class-body h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.class-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.class-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.class-meta {
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.9rem;
}

/* Post / Blog Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.post-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.post-img-wrapper {
    position: relative;
    height: 220px;
}

.post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

.post-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
}

.post-body h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.post-body h3 a:hover {
    color: var(--primary);
}

.post-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.post-link {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.post-link:hover {
    gap: 10px;
}

/* Quick Enrollment Section */
.quick-enroll {
    background: linear-gradient(135deg, var(--secondary) 0%, #1e3a47 100%);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 60px;
    margin-top: 40px;
}

.quick-enroll-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.quick-enroll-content h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.quick-enroll-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 24px;
}

.quick-enroll-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--accent);
}

/* Forms */
.form-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    color: var(--text-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--secondary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-error {
    color: #e63946;
    font-size: 0.85rem;
    margin-top: 4px;
    font-weight: 600;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

/* Subpage Banner */
.sub-banner {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.sub-banner h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 12px;
}

.sub-banner p {
    font-size: 1.15rem;
    opacity: 0.9;
}

/* About Details Page */
.about-section {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.about-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.about-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.about-img-large {
    grid-column: span 2;
    height: 300px;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
}

.contact-info-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-detail {
    display: flex;
    gap: 20px;
}

.contact-detail-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-detail-body h4 {
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.contact-detail-body p {
    color: var(--text-muted);
}

.map-wrapper {
    margin-top: 40px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 4px solid var(--white);
    height: 350px;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Post Detail Page */
.post-detail-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 50px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.post-detail-header {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 24px;
}

.post-detail-header h1 {
    font-size: 2.75rem;
    margin-bottom: 16px;
}

.post-detail-meta {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
    font-weight: 500;
}

.post-detail-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
}

.post-detail-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-detail-content p {
    margin-bottom: 24px;
}

.post-detail-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    font-style: italic;
    color: var(--secondary);
    margin: 30px 0;
}

/* Footer Section */
.footer {
    background-color: var(--secondary);
    color: rgba(255, 255, 255, 0.85);
    padding: 80px 0 40px 0;
    border-top: 8px solid var(--primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent);
    border-radius: var(--radius-full);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo svg {
    width: 44px;
    height: 44px;
}

.footer-logo-title {
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 6px;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact-item {
    display: flex;
    gap: 12px;
    font-size: 0.95rem;
}

.footer-contact-item svg {
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
}

/* Utility classes */
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mt-40 { margin-top: 40px; }

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .hero-content h1 {
        font-size: 2.75rem;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-image {
        height: 380px;
    }
    .quick-enroll-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        height: 70px;
    }
    .nav {
        display: none; /* In a real app we'd toggle classes, for simplicity we show links nicely stack or inline */
    }
    .mobile-menu-btn {
        display: block;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .section-title-wrapper h2 {
        font-size: 2rem;
    }
    .post-detail-container {
        padding: 24px;
    }
    .post-detail-header h1 {
        font-size: 2rem;
    }
}
