/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --warm-color: #f59e0b;
    --text-dark: #1f2937;
    --text-medium: #4b5563;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    --bg-white: #ffffff;
    --bg-gray-50: #f9fafb;
    --bg-gray-100: #f3f4f6;
    --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);
    --gradient-subtle: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    /* Mobile-first spacing system */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    
    /* Responsive font sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
}

html {
    scroll-behavior: smooth;
    /* Prevent horizontal scrolling on mobile */
    overflow-x: hidden;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--bg-white);
    /* Optimize text rendering on mobile */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Prevent zoom on iOS inputs */
    -webkit-text-size-adjust: 100%;
}

/* Remove underline from all links */
a,
a:visited,
a:hover,
a:active {
    text-decoration: none;
}

/* Subtle Background */
.subtle-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.03;
    animation: subtleFloat 25s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--gradient-subtle);
    top: -300px;
    left: -300px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    bottom: -200px;
    right: -200px;
    animation-delay: -12s;
}

@keyframes subtleFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(50px, -50px) rotate(45deg); }
    50% { transform: translate(-25px, 25px) rotate(90deg); }
    75% { transform: translate(-50px, -25px) rotate(135deg); }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
}

.logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: var(--text-2xl);
    color: var(--text-dark);
    font-weight: 600;
    margin: 0;
}

.logo .tagline {
    font-size: var(--text-sm);
    color: var(--text-light);
    display: block;
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: var(--text-base);
}

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

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: var(--space-xs);
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--text-dark);
    font-weight: 600;
}

.tagline {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    display: block;
    margin-top: -5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

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

/* Hero Section - Blog Style */
.hero-blog {
    padding: 120px 20px 80px;
    text-align: center;
    background: linear-gradient(to bottom, var(--bg-white), var(--bg-gray-50));
}

.blog-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    line-height: 1.2;
}

.blog-subtitle {
    font-size: 1.25rem;
    color: var(--text-medium);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat .number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat .label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Featured Post */
.featured-post {
    padding: 60px 20px;
    background: var(--bg-gray-50);
}

.featured-badge {
    text-align: center;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

.featured-article {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.featured-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.category {
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.date, .read-time {
    color: var(--text-light);
    font-size: 0.9rem;
}

.featured-article h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.3;
}

.featured-article p {
    color: var(--text-medium);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--text-dark);
}

.author-title {
    font-size: 0.9rem;
    color: var(--text-light);
}

.featured-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 200px;
    height: 200px;
    background: var(--gradient-subtle);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    animation: gentleGlow 3s ease-in-out infinite alternate;
}

@keyframes gentleGlow {
    from { box-shadow: 0 0 20px rgba(102, 126, 234, 0.3); }
    to { box-shadow: 0 0 40px rgba(102, 126, 234, 0.5); }
}

/* Blog Section */
.blog-section {
    padding: 80px 20px;
    background: var(--bg-white);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.blog-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
}

.blog-image {
    height: 180px;
    background: var(--bg-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.blog-placeholder {
    font-size: 2.5rem;
    opacity: 0.7;
    animation: subtleFloat 4s ease-in-out infinite;
}

.blog-content {
    padding: 1.5rem;
}

.blog-card .post-meta {
    margin-bottom: 1rem;
    align-items: center;
}

.blog-category {
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.7rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.post-date {
    color: var(--text-lighter);
    font-size: 0.85rem;
}

.blog-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.blog-card p {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-mini {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-avatar-small {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gradient-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
}

.author-name-small {
    font-size: 0.85rem;
    color: var(--text-medium);
    font-weight: 500;
}

.read-time {
    color: var(--text-lighter);
    font-size: 0.85rem;
}

.load-more {
    text-align: center;
    margin-top: 3rem;
}

.load-more-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Categories Section */
.categories-section {
    padding: 80px 20px;
    background: var(--bg-gray-50);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

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

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.category-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.category-card p {
    color: var(--text-medium);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.post-count {
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Newsletter Section */
.newsletter-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
}

.newsletter-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.newsletter-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto 2rem;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    min-width: 250px;
}

.newsletter-form button {
    background: var(--warm-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: #d97706;
    transform: translateY(-2px);
}

.newsletter-benefits {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 20px 1rem;
}

.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;
    color: white;
}

.footer-section p {
    color: #d1d5db;
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

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

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    max-height: 85vh;
    overflow-y: auto;
}

.blog-modal-content {
    max-width: 900px;
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .featured-article {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .nav-menu {
        display: none;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
    
    .newsletter-benefits {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blog-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .featured-article {
        padding: 2rem;
    }
    
    .featured-article h2 {
        font-size: 1.8rem;
    }
}

/* Hero Section */
.hero {
    padding: 150px 20px 100px;
    text-align: center;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
}

.gradient-text {
    background: var(--golden-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease 0.4s both;
    flex-wrap: wrap;
}

.primary-btn, .secondary-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.primary-btn {
    background: var(--golden-gradient);
    color: white;
    box-shadow: var(--shadow-soft);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
}

.secondary-btn {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.pulse-effect {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(246, 211, 101, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(246, 211, 101, 0); }
    100% { box-shadow: 0 0 0 0 rgba(246, 211, 101, 0); }
}

.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    animation: fadeInUp 1s ease 0.6s both;
    flex-wrap: wrap;
}

.trust-indicators span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Floating Elements */
.hero-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    font-size: 2rem;
    opacity: 0.6;
    animation: floatingElements 6s infinite ease-in-out;
}

.element-1 { top: 20%; left: 10%; animation-delay: 0s; }
.element-2 { top: 30%; right: 15%; animation-delay: -2s; }
.element-3 { bottom: 30%; left: 20%; animation-delay: -4s; }
.element-4 { bottom: 20%; right: 10%; animation-delay: -6s; }

@keyframes floatingElements {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* Featured Course Section */
.featured-course {
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    position: relative;
}

.course-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-strong);
    position: relative;
    overflow: hidden;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--golden-gradient);
}

.course-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.course-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.price-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.old-price {
    font-size: 1.2rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.new-price {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--golden-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.discount {
    background: #ff4757;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.urgency-timer {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    animation: pulse 1s infinite;
}

.course-cta {
    background: var(--golden-gradient);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.course-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.course-image {
    display: flex;
    justify-content: center;
}

.course-placeholder {
    width: 200px;
    height: 200px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    animation: rotate 10s linear infinite;
}

.glow-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--golden-gradient);
    opacity: 0.3;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes glow {
    from { transform: scale(1); opacity: 0.3; }
    to { transform: scale(1.1); opacity: 0.6; }
}

/* Blog Section */
.blog-section {
    padding: 100px 20px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.blog-image {
    height: 200px;
    background: var(--purple-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.blog-placeholder {
    font-size: 3rem;
    animation: float 3s ease-in-out infinite;
}

.blog-content {
    padding: 1.5rem;
}

.blog-category {
    background: var(--accent-gradient);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.blog-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.blog-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Courses Section */
.courses-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.courses-section .section-title,
.courses-section .section-subtitle {
    color: white;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.course-card-detailed {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-strong);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.course-card-detailed:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.course-card-detailed.premium {
    border: 3px solid #f6d365;
    transform: scale(1.05);
}

.course-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--secondary-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0 0 10px 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

.premium-badge {
    background: var(--golden-gradient);
}

.course-card-detailed h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.course-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.course-features {
    margin-bottom: 1.5rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.course-price {
    margin-bottom: 1.5rem;
}

.course-price .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.course-price .old-price {
    font-size: 1.2rem;
    color: var(--text-light);
    text-decoration: line-through;
    margin-right: 0.5rem;
}

.price-note {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.course-btn {
    width: 100%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.course-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.premium-btn {
    background: var(--golden-gradient);
}

/* Testimonials */
.testimonials {
    padding: 100px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    position: relative;
}

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

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary-gradient);
    font-family: serif;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.testimonial-author {
    margin-bottom: 0.5rem;
}

.testimonial-author strong {
    color: var(--text-dark);
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.stars {
    color: #ffd700;
}

/* Footer */
.footer {
    background: #2d3748;
    color: white;
    padding: 3rem 20px 1rem;
}

.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;
    color: white;
}

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

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

.footer-section a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4a5568;
    color: #a0aec0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

.blog-modal-content {
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--text-dark);
}

.modal h2 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-form input,
.modal-form select {
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.modal-form input:focus,
.modal-form select:focus {
    outline: none;
    border-color: #667eea;
}

.modal-submit {
    background: var(--golden-gradient);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.modal-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .trust-indicators {
        flex-direction: column;
        gap: 1rem;
    }
    
    .course-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .nav-menu {
        display: none;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .course-card-detailed.premium {
        transform: none;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        gap: 0.5rem;
    }
    
    .primary-btn,
    .secondary-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Smooth transitions for all interactive elements */
* {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Enhanced hover effects */
.blog-card:hover .blog-placeholder,
.course-card-detailed:hover .course-badge {
    animation-play-state: paused;
}

/* Loading animation for course placeholders */
.course-placeholder {
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 400% 400%;
    animation: gradient 3s ease infinite, rotate 10s linear infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===================================
   MOBILE RESPONSIVE DESIGN
   =================================== */

/* Mobile Navigation */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: var(--space-xl) 0;
        gap: var(--space-lg);
        transition: right 0.3s ease;
        border-left: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        font-size: var(--text-lg);
        padding: var(--space-sm) 0;
        color: var(--text-dark);
        font-weight: 600;
    }
    
    .logo h1 {
        font-size: var(--text-xl);
    }
    
    .logo .tagline {
        font-size: var(--text-xs);
    }
    
    .nav-container {
        padding: 0 var(--space-md);
        min-height: 60px;
    }
}

/* Mobile Typography */
@media (max-width: 768px) {
    :root {
        --text-xs: 0.75rem;
        --text-sm: 0.875rem;
        --text-base: 1rem;
        --text-lg: 1.125rem;
        --text-xl: 1.25rem;
        --text-2xl: 1.5rem;
        --text-3xl: 1.875rem;
        --text-4xl: 2.25rem;
        --text-5xl: 2.5rem;
    }
    
    body {
        font-size: var(--text-base);
        line-height: 1.6;
    }
}

/* Mobile Hero Section */
@media (max-width: 768px) {
    .hero-blog {
        padding: 100px var(--space-md) 60px;
        text-align: center;
    }
    
    .hero-blog h1 {
        font-size: var(--text-4xl);
        line-height: 1.2;
        margin-bottom: var(--space-md);
    }
    
    .hero-blog p {
        font-size: var(--text-lg);
        margin-bottom: var(--space-lg);
        max-width: none;
    }
    
    .featured-article {
        margin-top: var(--space-xl);
        padding: var(--space-lg);
        border-radius: 16px;
    }
    
    .featured-article h2 {
        font-size: var(--text-2xl);
        margin-bottom: var(--space-sm);
    }
    
    .featured-article p {
        font-size: var(--text-base);
        margin-bottom: var(--space-md);
    }
    
    .author-info {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    
    .author-avatar {
        width: 50px;
        height: 50px;
        font-size: var(--text-lg);
    }
}

/* Mobile Blog Grid */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        padding: 0;
    }
    
    .blog-card {
        border-radius: 16px;
        overflow: hidden;
        margin-bottom: var(--space-md);
    }
    
    .blog-image {
        height: 200px;
    }
    
    .blog-placeholder {
        font-size: 3rem;
    }
    
    .blog-content {
        padding: var(--space-lg);
    }
    
    .blog-card h3 {
        font-size: var(--text-xl);
        line-height: 1.3;
        margin-bottom: var(--space-sm);
    }
    
    .blog-card p {
        font-size: var(--text-base);
        line-height: 1.6;
        margin-bottom: var(--space-md);
    }
    
    .blog-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    
    .author-mini {
        width: 100%;
    }
    
    .read-time {
        font-size: var(--text-sm);
    }
    
    .post-meta {
        flex-wrap: wrap;
        gap: var(--space-sm);
        margin-bottom: var(--space-sm);
    }
    
    .blog-category {
        font-size: var(--text-xs);
        padding: 4px 8px;
    }
    
    .post-date {
        font-size: var(--text-sm);
    }
}

/* Mobile Categories */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .category-card {
        padding: var(--space-lg);
        text-align: center;
    }
    
    .category-icon {
        font-size: 2.5rem;
        margin-bottom: var(--space-sm);
    }
    
    .category-card h3 {
        font-size: var(--text-lg);
        margin-bottom: var(--space-xs);
    }
    
    .category-card p {
        font-size: var(--text-sm);
        margin-bottom: var(--space-sm);
    }
    
    .post-count {
        font-size: var(--text-xs);
    }
}

/* Mobile Section Spacing */
@media (max-width: 768px) {
    .blog-section {
        padding: var(--space-2xl) 0;
    }
    
    .section-title {
        font-size: var(--text-3xl);
        margin-bottom: var(--space-md);
        text-align: center;
    }
    
    .section-subtitle {
        font-size: var(--text-lg);
        margin-bottom: var(--space-xl);
        text-align: center;
        max-width: none;
    }
    
    .container {
        padding: 0 var(--space-md);
    }
}

/* Mobile Footer */
@media (max-width: 768px) {
    .footer {
        padding: var(--space-2xl) 0 var(--space-lg);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }
    
    .footer-section h3 {
        font-size: var(--text-xl);
        margin-bottom: var(--space-md);
    }
    
    .footer-section h4 {
        font-size: var(--text-lg);
        margin-bottom: var(--space-sm);
    }
    
    .footer-section p {
        font-size: var(--text-base);
        margin-bottom: var(--space-md);
    }
    
    .social-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--space-md);
    }
    
    .social-links a {
        font-size: var(--text-base);
        padding: var(--space-sm) var(--space-md);
    }
    
    .footer-bottom {
        margin-top: var(--space-xl);
        text-align: center;
        font-size: var(--text-sm);
    }
}

/* Tablet Breakpoint */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 var(--space-lg);
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-blog {
        padding: 120px var(--space-lg) 80px;
    }
    
    .hero-blog h1 {
        font-size: var(--text-5xl);
    }
    
    .nav-menu {
        gap: var(--space-md);
    }
}

/* Large Mobile (iPhone Pro Max, etc.) */
@media (max-width: 480px) {
    :root {
        --space-xs: 0.5rem;
        --space-sm: 0.75rem;
        --space-md: 1rem;
        --space-lg: 1.5rem;
        --space-xl: 2rem;
        --space-2xl: 3rem;
    }
    
    .hero-blog h1 {
        font-size: var(--text-3xl);
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-card {
        padding: var(--space-md);
    }
    
    .blog-content {
        padding: var(--space-md);
    }
    
    .nav-container {
        min-height: 55px;
    }
    
    .mobile-menu-toggle {
        padding: var(--space-xs);
    }
    
    .mobile-menu-toggle span {
        width: 20px;
    }
}

/* Touch Optimization */
@media (hover: none) and (pointer: coarse) {
    .blog-card:hover {
        transform: none;
    }
    
    .blog-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .nav-link:hover {
        color: var(--text-medium);
    }
    
    .nav-link:active {
        color: var(--primary-color);
    }
    
    /* Larger touch targets */
    .nav-link {
        padding: var(--space-sm);
        margin: -var(--space-sm);
    }
    
    .mobile-menu-toggle {
        padding: var(--space-sm);
        margin: -var(--space-xs);
    }
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .gradient-orb {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High DPI / Retina Display Optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .blog-placeholder,
    .category-icon,
    .author-avatar {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark Mode Support - Disabled to maintain light theme */
/* 
@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #f9fafb;
        --text-medium: #d1d5db;
        --text-light: #9ca3af;
        --text-lighter: #6b7280;
        --bg-white: #111827;
        --bg-gray-50: #1f2937;
        --bg-gray-100: #374151;
        --border-color: #4b5563;
    }
    
    .navbar {
        background: rgba(17, 24, 39, 0.98);
    }
    
    .blog-card,
    .category-card {
        background: var(--bg-gray-50);
        border-color: var(--border-color);
    }
    
    .gradient-orb {
        opacity: 0.02;
    }
}
*/

/* Focus Management for Accessibility */
.nav-link:focus,
.mobile-menu-toggle:focus,
.blog-card:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to main content for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 9999;
}

.skip-link:focus {
    top: 6px;
}
