/* =========================================
   1. Google Fonts & CSS Variables
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Modern Slate Palette */
    --nav-bg-top: #0f172a;      /* Rich dark slate */
    --nav-bg-bottom: #ffffff;   /* Pure white */
    --bg-main: #f8fafc;         /* Very soft off-white for the page */
    --accent: #3b82f6;          /* Modern bright blue */
    --text-main: #334155;       /* Soft dark gray for readability */
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    
    /* Soft, modern shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
}

/* =========================================
   2. Global Reset & Body
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

/* =========================================
   3. Main Navbar Container (Sticky)
   ========================================= */
.two-line-navbar {
    width: 100%;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

/* =========================================
   4. Top Navigation Line
   ========================================= */
.top-nav {
    background-color: var(--nav-bg-top);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 48px;
}

.brand-logo {
    height: 32px;
    width: auto;
    background-color: #ffffff; /* Sets the background to pure white */
    margin-right: 14px;
}

.top-nav .home-link a,
.top-nav .home-link a:visited {
    color: #ffffff;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px; /* Modern typography tweak */
    display: flex;
    align-items: center;
    transition: opacity 0.2s ease;
}

.top-nav .home-link a:hover {
    opacity: 0.8;
}

.top-nav .nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
}

.top-nav .nav-links a,
.top-nav .nav-links a:visited {
    color: #cbd5e1; /* Soft slate text */
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.top-nav .nav-links a:hover {
    color: #ffffff;
}

/* =========================================
   5. Bottom Navigation Line
   ========================================= */
.bottom-nav {
    background-color: var(--nav-bg-bottom);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 48px;
}

.bottom-nav .sub-nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
    justify-content: flex-end; /* Aligned to the right */
}

.bottom-nav .sub-nav-links a,
.bottom-nav .sub-nav-links a:visited {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    transition: color 0.2s ease;
}

/* Modern Animated Underline Hover Effect */
.bottom-nav .sub-nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.bottom-nav .sub-nav-links a:hover {
    color: var(--nav-bg-top);
}

.bottom-nav .sub-nav-links a:hover::after {
    width: 100%;
}

/* =========================================
   6. Hero Section
   ========================================= */
.company-hero {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    background-color: var(--nav-bg-top);
}

.company-hero .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.6; /* Dims the image slightly so text pops */
}

.company-hero .hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

.company-hero .hero-overlay h1 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.company-hero .hero-overlay p {
    font-size: 20px;
    font-weight: 300;
    color: #e2e8f0;
}

/* =========================================
   7. Page Content & Modern Tables
   ========================================= */
main {
    max-width: 1300px;
    margin: 0 auto; /* Centers the content */
    padding: 60px 24px;
}

.page-content h1 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--nav-bg-top);
    margin-bottom: 24px;
}

.page-content p {
    margin-bottom: 24px;
    font-size: 16px;
}

/* The Modern Table */
.page-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 40px 0;
    background-color: #ffffff;
    box-shadow: var(--shadow-sm);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.page-content table th {
    background-color: #f1f5f9; /* Very soft slate for header */
    color: var(--nav-bg-top);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.page-content table td {
    padding: 16px 24px;
    font-size: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

.page-content tbody tr:last-child td {
    border-bottom: none; /* Removes double border at the bottom */
}

.page-content tbody tr:hover td {
    background-color: #f8fafc;
    transition: background-color 0.2s ease;
}

/* =========================================
   8. Hamburger & Mobile Responsiveness
   ========================================= */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    border-radius: 4px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .top-nav { padding: 16px 24px; }
    
    .company-hero { height: 350px; }
    .company-hero .hero-overlay h1 { font-size: 36px; }

    .hamburger { display: flex; }

    .top-nav { flex-wrap: wrap; }

    /* Hides the main top links until hamburger is clicked */
    .top-nav .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        padding-top: 24px;
        gap: 20px;
    }

    /* --- THE FIX: Keep Bottom Nav Visible --- */
    .bottom-nav { 
        display: block; 
        padding: 12px 24px;
        overflow-x: auto; /* Lets users swipe left/right if you add more links later */
    }

    .bottom-nav .sub-nav-links {
        display: flex;
        flex-direction: row; /* Keeps them side-by-side */
        justify-content: flex-start; /* Aligns them nicely to the left on mobile */
        gap: 24px;
    }
    /* ---------------------------------------- */

    /* Only toggle the main nav links when hamburger is active */
    .two-line-navbar.active .nav-links {
        display: flex;
    }
}


/* =========================================
   9. Dropdown Menu
   ========================================= */
.dropdown {
    position: relative;
    display: inline-block;
}
.dropbtn {
    white-space: nowrap; /* This forces 'Seminars' and '▾' to stay on one line! */
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 180px;
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    top: 100%;
    left: 0;
    z-index: 1001;
    overflow: hidden;
    padding: 8px 0;
}

.dropdown-content a {
    color: var(--text-main) !important;
    padding: 12px 20px;
    display: block;
    font-size: 14px !important;
}

.dropdown-content a:hover {
    background-color: #f1f5f9;
    color: var(--accent) !important;
}

/* Show the dropdown when hovering over the list item */
.dropdown:hover .dropdown-content {
    display: block;
}


    .orange-title-strip {
        background-color: #e76100; /* A nice, vibrant orange */
        color: white; /* White text for high contrast */
        padding: 20px 0; /* Space above and below the text */
        margin-bottom: 30px; /* Space between the strip and the calendar */
        text-align: center; /* Centers the title */
        width: 100%;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* Optional: adds a subtle shadow */
    }

    .orange-title-strip h1 {
        margin: 0; /* Removes default spacing that makes things look uneven */
        font-size: 2.5rem; /* Makes the title nice and big */
        font-weight: bold;
    }
