/* =========================================
   1. OVERALL LAYOUT & TYPOGRAPHY
   ========================================= */
body {
    background-color: #f4f7f6; 
    margin: 0;
    font-family: 'Google Sans', Arial, sans-serif;
}

.container {
    max-width: 95%; /* Changed from 1400px to 95% of the screen width */
    margin: 50px auto;
    padding: 0 20px;
}

/* =========================================
   2. TOP NAVIGATION BAR (Sticky & Dark)
   ========================================= */
.top-nav {
    position: sticky; /* This makes it stick to the top when scrolling */
    top: 0;
    z-index: 1000; /* Ensures it stays on top of all other content */
    display: flex;
    align-items: center;
    background-color: #111827; /* Very dark slate, matching CrustyBase */
    padding: 0 40px;
    height: 70px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Styling for the SLGEA Logo/Text */
.nav-brand {
    font-size: 1.6em;
    font-weight: 700;
    color: white;
    text-decoration: none;
    margin-right: 40px; /* Pushes the menu items to the right */
    display: flex;
    align-items: center;
    font-family: 'Google Sans', sans-serif;
    letter-spacing: 1px;
}

/* Container for the links */
.nav-menu {
    display: flex;
    gap: 10px; /* Spacing between links */
}

/* Styling for the clean text links */
.nav-link {
    color: #94a3b8; /* Dimmed text color */
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    padding: 10px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-family: 'Google Sans', sans-serif;
}

/* Hover effect: Lightens the background slightly and turns text white */
.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: white;
}

/* Active effect: Shows the user exactly which page they are on */
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
}

/* =========================================
   3. HERO BANNER
   ========================================= */
.hero {
    background-color: #1e293b; /* Premium dark slate */
    color: white;
    padding: 80px 20px;
    text-align: center;
    box-shadow: inset 0 -10px 20px rgba(0,0,0,0.1);
}

.hero h1 {
    margin-top: 0;
    font-size: 2.8em;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto;
    color: #cbd5e1; /* Soft grey-blue for subtitle */
    line-height: 1.6;
}

/* =========================================
   4. PREMIUM CARDS
   ========================================= */
.card {
    background: white;
    border-radius: 16px; 
    padding: 50px; 
    margin-bottom: 50px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    border: 1px solid #f0f4f8;
}

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

.card h2 {
    font-size: 2.2em; 
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 25px;
    border-bottom: 3px solid #f0f4f8; 
    padding-bottom: 15px;
}

.card p, .card li {
    font-size: 1.15em; 
    line-height: 1.8;
    color: #4a5568;
}

.card ul {
    padding-left: 20px;
}

.card li {
    margin-bottom: 15px; 
}

/* Accent Borders */
.accent-purple { border-top: 8px solid #9b59b6; }
.accent-orange { border-top: 8px solid #e67e22; }
.accent-green { border-top: 8px solid #2ecc71; }

/* =========================================
   5. BEAUTIFIED ELEMENTS (Boxes & Images)
   ========================================= */
.image-placeholder {
    background-color: #f8fafc;
    border: 3px dashed #cbd5e1;
    border-radius: 12px;
    min-height: 350px; 
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s;
}

/* Add this new block right here! */
.image-placeholder::after {
    content: attr(data-placeholder);
}

.image-placeholder:hover {
    background-color: #f1f5f9;
}

.figure-caption {
    text-align: center;
    margin-top: 12px;
    font-size: 0.95em;
    color: #64748b; 
    font-style: italic;
    line-height: 1.4;
    padding: 0 10px;
}

.figure-caption b {
    color: #1e293b; 
    font-style: normal;
}

/* =========================================
   6. TABLES
   ========================================= */
.sample-table {
    width: 100%;
    table-layout: fixed; /* This forces the table to stretch full width! */
    border-collapse: collapse;
    margin-top: 30px;
    font-size: 1.1em;
    border-radius: 12px;
    overflow: hidden; /* Keeps the rounded corners on the table */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Adds a subtle drop shadow */
    background-color: white;
}

/* Make sure the header row gets the dark premium background */
.sample-table th {
    background-color: #2c3e50; 
    color: white;
    padding: 20px 15px;
    text-align: left;
    font-weight: bold;
}

.sample-table td {
    padding: 18px 15px;
    border-bottom: 1px solid #eaeaea;
    color: #4a5568;
    line-height: 1.4;
}

/* Subtle highlight when hovering over a row */
.sample-table tr:hover td {
    background-color: #f8fafc; 
}

/* =========================================
   7. CALL TO ACTION BUTTONS
   ========================================= */
.action-links {
    margin-top: 35px;
    display: flex;
    gap: 20px;
}

.btn-large {
    padding: 15px 30px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.2s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.btn-large:hover {
    background-color: #0056b3;
    transform: translateY(-2px); 
}

/* =========================================
   8. FOOTER
   ========================================= */
.footer {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
    border-top: 1px solid #e2e8f0;
    margin-top: 50px;
    background-color: white;
    font-size: 1.05em;
}