/* style.css - The Royal Indigo & Gradient Redesign */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;600;700&family=Playfair+Display:wght@700&display=swap');

:root {
    /* The "GREwise" Inspired Gradient Palette */
    --royal-gradient: linear-gradient(135deg, #4B0082 0%, #3a0ca3 100%);
    --bg-light: #f8f9fc;
    --text-dark: #1e1e2f;
    --text-muted: #6b7280;
    --white: #ffffff;
    --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.07);
    --primary: #4361ee;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* --- HERO SECTION (The Big Royal Blue Header) --- */
header {
    background: var(--royal-gradient);
    color: var(--white);
    padding: 20px 0 80px 0; /* Extra bottom padding for overlap effect */
    border-bottom-right-radius: 50px;
    border-bottom-left-radius: 50px;
    position: relative;
}

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

.logo {
    font-size: 26px;
    font-weight: 800;
    font-family: 'Playfair Display', serif;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    margin-left: 25px;
    font-weight: 500;
    transition: 0.3s;
}
.nav-links a:hover { color: #fff; transform: translateY(-2px); display: inline-block; }

.btn-login {
    background: rgba(255,255,255,0.2);
    padding: 10px 24px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.hero-content {
    text-align: center;
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

/* --- FLOATING CARDS (Glass Effect) --- */
.container {
    max-width: 1200px;
    margin: -60px auto 40px auto; /* Pulls content UP into the blue header */
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.grid-layout {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 40px;
}

/* Feature Cards (Top Row) */
.features-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}
.feature-card:hover { transform: translateY(-5px); }
.icon-box {
    width: 50px; height: 50px;
    background: #e0e7ff;
    color: #4361ee;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    margin-bottom: 20px;
}

/* Blog Cards */
.section-title { font-family: 'Playfair Display'; color: #1e1e2f; margin-bottom: 20px; font-size: 2rem; }

.blog-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    display: flex; /* Side by side layout for desktop */
    transition: 0.3s;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.blog-content { padding: 25px; flex: 1; }
.blog-meta { font-size: 0.85rem; color: #888; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.blog-title { font-family: 'Playfair Display'; font-size: 1.5rem; margin: 0 0 10px 0; color: #222; }
.blog-excerpt { color: #555; font-size: 0.95rem; }

/* Sidebar */
.sidebar-box {
    background: var(--white);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}
.search-input { width: 100%; padding: 12px; border: 2px solid #eee; border-radius: 8px; box-sizing: border-box; }
.btn-primary { background: var(--royal-gradient); color: white; border: none; padding: 12px 20px; border-radius: 8px; cursor: pointer; width: 100%; font-weight: 600; }

/* Mobile */
@media (max-width: 768px) {
    .grid-layout { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.5rem; }
    .blog-card { flex-direction: column; }
    .container { margin-top: -30px; }
}
/* --- MOBILE OPTIMIZATION & HAMBURGER MENU --- */
.menu-toggle {
    display: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
}

@media (max-width: 768px) {
    /* 1. Header Adjustments */
    .nav-bar {
        padding: 15px 20px;
    }
    
    /* 2. Show Hamburger Icon */
    .menu-toggle {
        display: block;
    }

    /* 3. Hide Links by Default */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px; /* Below header */
        left: 0;
        width: 100%;
        background: #4B0082; /* Solid Royal Background */
        text-align: center;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        z-index: 1000;
    }

    /* 4. Show Links when Active */
    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        display: block;
        padding: 15px;
        color: white !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        margin: 0;
    }
    
    /* 5. Mobile Grid Fixes */
    .grid-layout {
        grid-template-columns: 1fr; /* Stack sidebar under content */
    }
    
    .hero-title {
        font-size: 2.2rem; /* Smaller text on phone */
    }
    
    .container {
        padding: 0 15px;
    }
}