/* --- 1. VARIABLES & RESET --- */
:root {
    --primary-color: #D4AF37; /* Metallic Gold */
    --primary-dark: #B59020;  /* Darker Gold for hover */
    --text-dark: #2C3E50;     /* Navy Blue/Dark Grey (Softer than pure black) */
    --text-light: #607D8B;
    --bg-body: #FDFBF7;       /* Warm Cream (Looks expensive) */
    --white: #ffffff;
    --border-color: #EAEAEA;
    --container-width: 1100px;
    --sidebar-width: 300px;
    
    /* Font Variables */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-body);
}

a { color: var(--text-dark); text-decoration: none; transition: 0.3s; }
a:hover { color: var(--primary-color); }

/* --- 2. LAYOUT --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 3. BEAUTIFUL HERO SECTION --- */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #fff 0%, #fdfbf7 100%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.btn-hero {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-hero:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    color: white;
}

/* --- 4. MODERN CARD DESIGN --- */
.card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.15);
    border-color: var(--primary-color);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.card h2 { margin-top: 0; border: none; font-size: 1.5rem; }
.card p { color: var(--text-light); flex-grow: 1; }

.read-more {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-top: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* --- 5. TYPOGRAPHY & ARTICLE --- */
h1, h2, h3 { font-family: var(--font-heading); color: var(--text-dark); margin-bottom: 15px; }
h2 { font-size: 1.8rem; margin-top: 40px; position: relative; display: inline-block; }

/* Elegant underline for H2 */
.article-content h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    margin-top: 8px;
}

/* --- HEADER & NAVIGATION (DESKTOP DEFAULT) --- */
.main-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between; /* Pushes Logo to left, Links to right */
    align-items: center;            /* Aligns them vertically in the middle */
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 15px 20px;
}

.logo a {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #2c3e50;
    text-decoration: none;
}

/* This checks if the screen is BIG (Desktop) */
.nav-links {
    display: flex;       /* CRITICAL: Makes the items sit in a horizontal row */
    gap: 30px;           /* Adds space between the links */
    list-style: none;    /* Removes the bullet points */
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none; /* Hide hamburger on desktop */
    cursor: pointer;
    font-size: 1.8rem;
    color: var(--text-dark);
}

/* --- MOBILE RESPONSIVENESS (SMALL SCREENS ONLY) --- */
@media (max-width: 768px) {
    .hamburger {
        display: block; /* Show hamburger on mobile */
    }

    .nav-links {
        display: none; /* Hide menu by default */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column; /* Stack vertical on mobile */
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        text-align: center;
    }

    .nav-links li {
        margin: 15px 0; /* Space out items vertically */
    }

    /* JS adds this class to show the menu */
    .nav-links.active {
        display: flex; 
    }
}

/* Keep previous styles for Tables, Ad-Container, Sidebar from your old file below... */
.ad-container { width: 100%; min-height: 280px; background: #f4f4f4; margin: 30px 0; text-align: center; border: 1px dashed #ddd; }
.table-wrapper { overflow-x: auto; margin-bottom: 20px; border: 1px solid #eee; }
table { width: 100%; border-collapse: collapse; min-width: 500px; background: white; }
th, td { padding: 12px 15px; border-bottom: 1px solid #eee; text-align: left; }

th { background-color: var(--primary-color); color: white; }


/* --- UNIVERSAL TABLE FIX (No HTML Edits Needed) --- */
@media (max-width: 768px) {
    table {
        display: block;       /* Changes table from 'table' to 'block' so it can scroll */
        width: 100%;          /* Ensures it takes full width of the screen */
        overflow-x: auto;     /* Adds the horizontal scrollbar */
        white-space: nowrap;  /* Prevents text from wrapping awkwardly */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iPhones */
    }
    
    /* Optional: Ensure table headers/cells don't shrink too much */
    th, td {
        min-width: 120px;     /* Gives columns enough breathing room */
    }
}
