/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366F1;
    --primary-hover: #4F46E5;
    --secondary-color: #10B981;
    --accent-pink: #EC4899;
    --accent-yellow: #FCD34D;
    --accent-orange: #FB923C;
    --accent-purple: #A855F7;
    --accent-blue: #3B82F6;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --bg-light: #F9FAFB;
    --bg-white: #FFFFFF;
    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-rainbow: 0 10px 30px rgba(99, 102, 241, 0.3), 0 0 20px rgba(236, 72, 153, 0.2);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    animation: logoBounce 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.3));
}

.logo-text {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-pink), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo:hover {
    transform: scale(1.05);
}

.logo:hover .logo-img {
    animation: logoSpin 0.6s ease-in-out;
    filter: drop-shadow(0 6px 12px rgba(99, 102, 241, 0.5));
}

@keyframes logoBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes logoSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3.5rem;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
}

.nav-cta {
    margin-left: auto;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.btn-primary {
    background: rgba(99, 102, 241, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: all 0.3s;
}

.nav-link.btn-primary:hover {
    background: rgba(79, 70, 229, 0.9);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
    color: white;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    min-width: 48px;
    min-height: 48px;
    position: relative;
    z-index: 1002;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-pink));
    border-radius: 2px;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
}

.mobile-menu-toggle:hover span {
    background: linear-gradient(90deg, var(--accent-pink), var(--accent-purple));
    transform: scale(1.1);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    background: #f8fafc;
    color: var(--text-dark);
    padding: 5rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: none;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    text-align: center;
    position: relative;
}

.hero-blobs {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-visual {
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.8;
    animation: blobMove 12s ease-in-out infinite;
}

.blob-1 {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.65), rgba(236, 72, 153, 0.35));
    top: 10%;
    left: 10%;
}

.blob-2 {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle at 30% 30%, rgba(16, 185, 129, 0.5), rgba(59, 130, 246, 0.35));
    bottom: 0;
    right: 5%;
    animation-delay: -3s;
}

.blob-3 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle at 30% 30%, rgba(252, 211, 77, 0.6), rgba(251, 146, 60, 0.35));
    top: 30%;
    right: 35%;
    animation-delay: -6s;
}

.orb {
    width: 140px;
    height: 140px;
    background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.6), rgba(99, 102, 241, 0.25));
    top: 55%;
    left: 25%;
    filter: blur(20px);
    animation: orbFloat 8s ease-in-out infinite;
}

@keyframes blobMove {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -10px) scale(1.05); }
    66% { transform: translate(-15px, 15px) scale(0.95); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes orbFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.9; }
    50% { transform: translateY(-15px) scale(1.05); opacity: 1; }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.5) rotate(180deg);
        opacity: 1;
    }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.highlight {
    color: #F59E0B;
    display: block;
    margin-top: 0.5rem;
    animation: textShine 3s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(252, 211, 77, 0.5);
    position: relative;
}

.highlight-word {
    display: inline-block;
    background: linear-gradient(135deg, #FCD34D, #FB923C, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: wordPulse 2.6s ease-in-out infinite;
}

.highlight-word.word-2 {
    animation-delay: 0.4s;
}

@keyframes textShine {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.3);
    }
}

@keyframes wordPulse {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px) scale(1.02);
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    animation: statPop 0.6s ease-out;
    animation-fill-mode: both;
}

.stat-item:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-item:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-item:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #FCD34D, #FB923C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: numberPulse 2s ease-in-out infinite;
}

@keyframes statPop {
    from {
        opacity: 0;
        transform: scale(0.5) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes numberPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    z-index: 3;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(236, 72, 153, 0.9));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-primary::before {
    content: none;
}

.btn-primary:hover {
    background: #4F46E5;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.2);
    transition: all 0.25s ease;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.35);
    transform: translateY(-3px) scale(1.03);
}

/* Disable hover effects for format cards */
#formats .course-card {
    transition: none;
}

#formats .course-card::after {
    content: none;
}

#formats .course-card:hover {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    transform: none;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    border-width: 1px;
    animation: none;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Why Us Section */
.why-us {
    background: rgba(249, 250, 251, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-pink), var(--accent-purple));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3), 0 0 30px rgba(236, 72, 153, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: iconFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.feature-card:nth-child(2n) .feature-icon {
    animation-delay: 0.5s;
}

.feature-card:nth-child(3n) .feature-icon {
    animation-delay: 1s;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Courses Section */
.courses {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
}

.courses-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.75rem 2rem;
    background: rgba(249, 250, 251, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(31, 38, 135, 0.1);
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.tab-btn:hover::before {
    width: 300px;
    height: 300px;
}

.tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.tab-btn.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(236, 72, 153, 0.9));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    transform: scale(1.05);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.course-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.course-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.course-card:hover::after {
    opacity: 1;
}

.course-card:hover {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3), 0 0 30px rgba(236, 72, 153, 0.2);
    transform: translateY(-10px) scale(1.02);
    border-width: 2px;
}

/* Reviews: simple highlight on hover */
#reviews .course-card {
    transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

#reviews .course-card:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.18);
    transform: none;
    border-width: 1px;
    animation: none;
}

.course-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(59, 130, 246, 0.9));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    animation: badgePulse 2s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 1;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
    }
}

.course-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.course-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.course-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.course-features li {
    padding: 0.5rem 0;
    color: var(--text-dark);
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.course-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Info Sections */
.info-section {
    background: rgba(249, 250, 251, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
}

.info-section.alt {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.info-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.info-content.reverse {
    direction: rtl;
}

.info-content.reverse > * {
    direction: ltr;
}

.info-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.info-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.info-list {
    margin-bottom: 2rem;
}

.info-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item strong {
    color: var(--text-dark);
    display: block;
    margin-bottom: 0.5rem;
}

.info-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.info-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.8), rgba(124, 58, 237, 0.8), rgba(236, 72, 153, 0.8));
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
    color: white;
    padding: 3rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4), 0 0 30px rgba(236, 72, 153, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 400px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

.info-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: float 15s linear infinite;
    pointer-events: none;
}

.info-card:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(124, 58, 237, 0.9), rgba(236, 72, 153, 0.9));
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.5), 0 0 40px rgba(236, 72, 153, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

.info-icon {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: iconSpin 4s linear infinite;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 1;
}

@keyframes iconSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.info-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.info-card p {
    opacity: 0.95;
    line-height: 1.7;
}

/* Tutors Section */
.tutors {
    background: rgba(249, 250, 251, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
}

.tutors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.tutor-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.tutor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
    opacity: 0;
    transition: opacity 0.3s;
}

.tutor-card:hover::before {
    opacity: 1;
}

.tutor-card:hover {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3), 0 0 30px rgba(236, 72, 153, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
}

.tutor-avatar {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: avatarBounce 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    position: relative;
    z-index: 1;
}

.tutor-card:nth-child(2n) .tutor-avatar {
    animation-delay: 0.3s;
}

.tutor-card:nth-child(3n) .tutor-avatar {
    animation-delay: 0.6s;
}

@keyframes avatarBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.05);
    }
}

.tutor-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.tutor-subject {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tutor-exp {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.tutor-rating {
    color: #F59E0B;
    font-weight: 600;
}

.tutors-cta {
    text-align: center;
    margin-top: 3rem;
}

.tutors-cta p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* FAQ Section */
.faq {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

/* FAQ — native details/summary */
.faq-item {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(31, 38, 135, 0.1);
}

.faq-item[open] {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    list-style: none;
}

.faq-question::-webkit-details-marker,
.faq-question::marker {
    display: none;
}

.faq-question:hover {
    background: rgba(249, 250, 251, 0.5);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    overflow: hidden;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Contact Section */
.contact {
    background: rgba(249, 250, 251, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
}

.contact-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
    align-items: stretch;
}

.contact-form {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
}

.contact-form:hover {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3), 0 0 30px rgba(236, 72, 153, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1), 0 4px 12px rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
}

.contact-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3), 0 0 30px rgba(236, 72, 153, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
}

.contact-icon {
    transition: transform 0.3s;
}

.contact-card:hover .contact-icon {
    transform: scale(1.2) rotate(10deg);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.contact-card a:hover {
    color: var(--primary-hover);
}

.contact-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Footer */
.footer {
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: white;
    padding: 3rem 0 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(25px) saturate(180%);
        -webkit-backdrop-filter: blur(25px) saturate(180%);
        width: 100%;
        height: calc(100vh - 70px);
        padding: 2rem;
        box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        transition: left 0.3s ease;
        gap: 1rem;
        z-index: 1001;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .info-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .info-content.reverse {
        direction: ltr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .features-grid,
    .courses-grid,
    .tutors-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-large {
        width: 100%;
        text-align: center;
    }

    .logo-img {
        height: 40px;
    }

    .logo-text {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .courses-tabs {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Floating particles effect */
@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Add sparkle effect to emojis */
.feature-icon,
.tutor-avatar,
.info-icon {
    position: relative;
}

.feature-icon::after,
.tutor-avatar::after,
.info-icon::after {
    content: '✨';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 1rem;
    animation: sparkle 2s ease-in-out infinite;
    opacity: 0;
}

.feature-card:hover .feature-icon::after,
.tutor-card:hover .tutor-avatar::after,
.info-card:hover .info-icon::after {
    opacity: 1;
}

/* Add subtle glow effect on hover */
.course-card:hover,
.feature-card:hover,
.tutor-card:hover {
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: var(--shadow-rainbow);
    }
    50% {
        box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4), 0 0 30px rgba(236, 72, 153, 0.3);
    }
}

/* ===== Blog ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
  }
  
  .nav-link-active {
    color: var(--primary-color);
  }
  
  .blog-hero {
    padding: 3.5rem 0 1.5rem;
  }
  
  .blog-controls {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .blog-search input,
  .blog-filters select {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.45);
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    box-shadow: var(--shadow-sm);
    font-family: inherit;
    font-size: 1rem;
  }
  
  .blog-search input:focus,
  .blog-filters select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
  }
  
  .blog-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  .blog-section {
    padding: 1.5rem 0 4rem;
  }
  
  .blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
  
  .blog-card {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(31, 38, 135, 0.12);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s;
  }
  
  .blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(31, 38, 135, 0.18);
  }
  
  .blog-card-body {
    padding: 1.4rem 1.4rem 1.1rem;
  }
  
  .blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--text-light);
    font-size: 0.95rem;
  }
  
  .blog-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(99, 102, 241, 0.25);
    background: rgba(99, 102, 241, 0.10);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.85rem;
  }
  
  .blog-title {
    font-size: 1.2rem;
    line-height: 1.35;
    margin-bottom: 0.6rem;
  }
  
  .blog-excerpt {
    color: var(--text-light);
    line-height: 1.75;
  }
  
  .blog-card-footer {
    margin-top: auto;
    padding: 0 1.4rem 1.4rem;
  }
  
  .blog-readmore {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 700;
    color: var(--primary-color);
  }
  
  .blog-readmore:hover {
    color: var(--primary-hover);
  }
  
  .blog-empty {
    margin-top: 2rem;
    padding: 2rem;
    text-align: center;
    border-radius: 22px;
    background: rgba(255,255,255,0.65);
    border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
  }
  
  .blog-empty h3 {
    margin-bottom: 0.5rem;
  }
  
  .post-page {
    padding-bottom: 2rem;
  }
  
  .post-hero {
    padding: 2rem 0 0.5rem;
  }
  
  .post-back {
    text-decoration: none;
    font-weight: 700;
    color: var(--primary-color);
  }
  
  .post-back:hover {
    color: var(--primary-hover);
  }
  
  .post-section {
    padding: 0.5rem 0 4rem;
  }
  
  .post-card {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(31, 38, 135, 0.12);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    padding: 1.8rem;
  }
  
  .post-title {
    font-size: 2rem;
    line-height: 1.25;
    margin-bottom: 0.75rem;
  }
  
  .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    align-items: center;
    margin-bottom: 1.25rem;
    color: var(--text-light);
  }
  
  .post-content {
    color: var(--text-dark);
    line-height: 1.9;
  }
  
  .post-content h2 {
    margin: 1.6rem 0 0.75rem;
    font-size: 1.35rem;
  }
  
  .post-content ul {
    padding-left: 1.25rem;
    margin: 0.75rem 0;
  }
  
  .post-content li {
    margin-bottom: 0.35rem;
  }
  
  @media (max-width: 1024px) {
    .blog-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  
  @media (max-width: 768px) {
    .blog-filters {
      grid-template-columns: 1fr;
    }
    .blog-grid {
      grid-template-columns: 1fr;
    }
    .post-title {
      font-size: 1.6rem;
    }
  }
  
  /* ===== Blog (simple feed) ===== */
.nav-link-active { color: var(--primary-color); }

.blog-hero { padding: 3.5rem 0 1.5rem; }

.blog-section { padding: 1.5rem 0 4rem; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(31, 38, 135, 0.12);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(31, 38, 135, 0.18);
}

.blog-thumb {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.blog-card-body { padding: 1.4rem 1.4rem 1.1rem; }

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
  color: var(--text-light);
  font-size: 0.95rem;
}

.blog-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.25);
  background: rgba(99, 102, 241, 0.10);
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.85rem;
}

.blog-title { font-size: 1.2rem; line-height: 1.35; margin-bottom: 0.6rem; }
.blog-excerpt { color: var(--text-light); line-height: 1.75; }

.blog-card-footer { margin-top: auto; padding: 0 1.4rem 1.4rem; }

.blog-readmore {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 700;
  color: var(--primary-color);
}
.blog-readmore:hover { color: var(--primary-hover); }

.blog-empty {
  margin-top: 2rem;
  padding: 2rem;
  text-align: center;
  border-radius: 22px;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

/* ===== Post page ===== */
.post-page { padding-bottom: 2rem; }
.post-hero { padding: 2rem 0 0.5rem; }
.post-back { text-decoration: none; font-weight: 700; color: var(--primary-color); }
.post-back:hover { color: var(--primary-hover); }

.post-section { padding: 0.5rem 0 4rem; }

.post-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(31, 38, 135, 0.12);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  padding: 1.8rem;
  overflow: hidden;
}

.post-title { font-size: 2rem; line-height: 1.25; margin-bottom: 0.75rem; }

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  margin-bottom: 1.25rem;
  color: var(--text-light);
}

.post-cover {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 18px;
  margin: 0.75rem 0 1.25rem;
  display: block;
}

.post-content { color: var(--text-dark); line-height: 1.9; }
.post-content h2 { margin: 1.6rem 0 0.75rem; font-size: 1.35rem; }
.post-content ul { padding-left: 1.25rem; margin: 0.75rem 0; }
.post-content li { margin-bottom: 0.35rem; }

/* ===== Admin ===== */
.admin-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(31, 38, 135, 0.12);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 1.4rem;
  margin-bottom: 1.5rem;
}

.admin-form .field { margin-bottom: 1rem; }

.admin-form label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.admin-form input,
.admin-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: var(--shadow-sm);
  font-family: inherit;
  font-size: 1rem;
}

.admin-form small { color: var(--text-light); display: block; margin-top: 0.35rem; }

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.btn-danger {
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.admin-preview {
  margin-top: 1rem;
  border-radius: 18px;
  padding: 1rem;
  border: 1px dashed rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.06);
}

.admin-posts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.admin-post-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.55);
}

.admin-post-row strong { display:block; }
.admin-post-row .meta { color: var(--text-light); font-size: 0.95rem; }

@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .post-title { font-size: 1.6rem; }
}


