/*
=====================================================
    0. Root styles - to change colour palette / style by changing just below (if all styled with the variables).
=====================================================
*/
:root {
  --primary-blue: #0056b3;
  --primary-blue-dark: #004a99;
  --primary-green: #28a745;
  --primary-red: #dc3545;
  --light-gray-border: #dee2e6;
  --light-gray-bg: #f8f9fa;
  --text-dark: #374151;
  --text-light: #6c757d;
  --white: #ffffff;
}

/*
=====================================================
    1. BASE & GLOBAL STYLES
=====================================================
*/
body {
    font-family: 'Rubik', sans-serif; /* Your chosen global font */
    margin: 0;
    padding: 0;
    background-color: #f4f7f9; /* Consistent background */
    color: #374151; /* Dark grey for general text */
    line-height: 1.6;
}
a {
    color: #0056b3; /* Consistent link blue */
    text-decoration: none;
}
a:hover {
    color: #003d80; /* Darker blue on hover */
    text-decoration: underline;
}
hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 25px 0;
}

/* --- Common Reusable Components --- */
.content-section { /* Your main page content wrapper */
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); /* Stronger shadow for main sections */
    margin: 25px auto; /* Space around content section */
    /* *** NEW: Wider max-width for content sections (100% minus 40px each side) *** */
    max-width: calc(100% - 80px); /* This makes it feel wider on very large screens */
    min-width: 320px; /* Minimum sensible width */
    box-sizing: border-box; /* Include padding in width */
}
.content-section.no-shadow { /* For sections that don't need a shadow */
    box-shadow: none;
    padding: 0;
    border: none;
}
.section-intro-text { /* For introductory text below a hero header */
    text-align: center;
    font-size: 1.1em;
    color: #555;
    max-width: 800px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}
.no-content-note { /* Common style for empty states */
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 15px 0;
}
.help-text { /* Small helper text */
    font-size: 0.85em;
    color: #6c757d;
}

/* --- Buttons --- */
.button {
    display: inline-flex; /* Use flex for icon alignment */
    align-items: center;
    justify-content: center; /* Center content if width allows */
    gap: 8px; /* Space between icon and text */
    background-color: #0056b3;
    color: #ffffff;
    padding: 10px 18px;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1em;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.1s ease;
    vertical-align: middle;
    white-space: nowrap; /* Prevent text wrap on buttons */
}
.button:hover {
    background-color: #ffffff;
    transform: translateY(-1px); /* Slight lift effect */
    color: #0056b3;
    border-color: #0056b3;
}
.button.small {
    padding: 6px 12px;
    font-size: 0.9em;
}
.button.x-small {
    padding: 3px 7px;
    font-size: 0.75em;
}
.button.confirm { background-color: #28a745; }
.button.confirm:hover { background-color: #218838; }
.button.delete { background-color: #dc3545; }
.button.delete:hover { background-color: #c82333; }
.button.renew { background-color: #28a745; } /* Often same as confirm */
.button.renew:hover { background-color: #218838; }
.button.cancel { background-color: #6c757d; }
.button.cancel:hover { background-color: #5a6268; }
.button.disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
    pointer-events: none; /* Disables clicks */
    opacity: 0.8;
}

/* --- Status Tags --- */
.status-tag {
    display: inline-block;
    padding: 3px 8px;
    font-size: 0.8em;
    font-weight: bold;
    border-radius: 4px;
    color: #fff;
    background-color: #6c757d; /* Default neutral grey */
    white-space: nowrap;
}
.status-tag.status-owned { background-color: #17a2b8; } /* Teal */
.status-tag.status-yours { background-color: #007bff; } /* Blue for user's own */
.status-tag.status-sold { background-color: #dc3545; text-decoration: line-through;} /* Red */
.status-tag.status-cancelled { background-color: #ffc107; color: #333;} /* Yellow */
.status-tag.status-expired { background-color: #adb5bd; } /* Light grey */
.status-tag.status-funds { background-color: #ffc107; color: #333;} /* Yellow for insufficient funds */
.status-tag.status-soldout { background-color: #dc3545; } /* Red for sold out */

/* --- Tables --- */
.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th, .data-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid #f0f4f8; /* Light horizontal line */
}
.data-table th {
    font-weight: bold;
    color: #374151; /* Darker text for headers */
    background-color: #f8f9fa; /* Light header background */
}
.data-table tr:last-child td {
    border-bottom: none; /* No border on last row */
}
.data-table .no-content-note {
    font-style: italic;
    color: #9ca3af;
    text-align: center;
    padding: 15px 0;
}
.table-responsive { /* For tables that are wider than their container */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Smoother scrolling on iOS */
    border: 1px solid #e9ecef; /* Optional border around scrollable area */
    border-radius: 8px; /* Match container border-radius */
}

/* --- Forms (Standard) --- */
.standard-form {
    padding: 20px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.standard-form .form-group {
    margin-bottom: 15px;
}
.standard-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #374151;
}
.standard-form input[type="text"],
.standard-form input[type="password"],
.standard-form input[type="number"],
.standard-form input[type="email"],
.standard-form textarea,
.standard-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    box-sizing: border-box; /* Include padding in width */
    font-size: 1em;
    font-family: 'Rubik', sans-serif;
}
.standard-form input[type="checkbox"] {
    width: auto;
    margin-right: 5px;
}
.standard-form .form-row { /* For compact forms */
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}
.standard-form .form-row label {
    flex-shrink: 0;
    margin-bottom: 0;
}
.standard-form .form-row input,
.standard-form .form-row select {
    flex-grow: 1;
}

/* --- Flash Messages --- */
.flash-message {
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.flash-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.flash-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.flash-message.info {
    background-color: #cfe2ff;
    color: #055160;
    border: 1px solid #b6d4fe;
}

/*
=====================================================
    2. HEADER & NAVIGATION (Definitive Hanging Logo Version)
=====================================================
*/

/* --- Main Header Container --- */
.main-header-v2 {
    display: flex;
    align-items: center;
    background-color: #004a99;
    color: #fff;
    padding-left: 100px; /* Make space for the absolute positioned logo */
    position: relative; /* Crucial for positioning the logo */
    z-index: 1001;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* --- The Hanging Logo --- */
.logo-container-v2 {
    position: absolute;
    left: 20px;
    top: 5px; /* Adjust to vertically center across both rows */
    z-index: 1002; /* Above the header background */
}
.logo-container-v2 img {
    height: 80px; /* Larger logo */
    width: auto;
    transition: transform 0.2s ease;
}
.logo-container-v2:hover img {
    transform: scale(1.05);
}

/* --- Main Content Area of Header (holds both rows) --- */
.header-content-v2 {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* --- Top Row --- */
.header-top-row-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
    padding-right: 25px;
}
.brand-name-v2 {
    font-size: 1.6em;
    font-weight: 700;
    color: #fff;
    padding-left: 0px; /* Space from logo */
}
.header-right-top-v2 {
    display: flex;
    align-items: center;
    gap: 15px;
}
.header-info-stack { text-align: right; font-size: 0.85em; color: #d0eaff; white-space: nowrap; }
.header-info-stack a { color: #d0eaff; } .header-info-stack a:hover { color: #fff; }
.online-info i { margin-right: 4px; }
.balance { font-weight: bold; background-color: #ffc107; color: #333; padding: 4px 8px; border-radius: 4px; font-size: 0.9em; }

/* --- Bottom Row --- */
.header-bottom-row-v2 {
    display: flex;
    align-items: center;
    height: 40px;
    background-color: #0056b3; /* Slightly lighter blue for the nav bar */
    padding: 0 25px;
}
#menu-toggle { display: none; } /* Hamburger hidden on desktop */

ul.main-nav-links-v2 {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    gap: 2px;
}
ul.main-nav-links-v2 li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    height: 40px;
    color: #e0e7ff;
    text-decoration: none;
    font-weight: 500;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}
ul.main-nav-links-v2 li a:hover { background-color: #0069d9; color: #fff; }
.nav-divider { height: 25px; width: 1px; background-color: rgba(255, 255, 255, 0.2); margin: 0 10px; }
.nav-item-right { margin-left: auto; }
.admin-nav-link { margin-left: 5px; }

/* --- Solid Button Styles (Old Style) --- */
.nav-button-v2 {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
    color: #fff; border: none; border-radius: 4px; font-size: 0.9em;
    font-weight: 500; text-decoration: none; transition: background-color 0.2s;
}
.nav-button-v2.solid-blue { background-color: #007bff; }
.nav-button-v2.solid-blue:hover { background-color: #0069d9; }
.nav-button-v2.solid-green { background-color: #28a745; }
.nav-button-v2.solid-green:hover { background-color: #218838; }
.nav-button-v2.solid-red { background-color: #dc3545; }
.nav-button-v2.solid-red:hover { background-color: #c82333; }

/* --- Alert / Notification Styles --- */
.flash-alert, a.flash-alert { color: #ffeb3b !important; font-weight: 700 !important; }
.alert-dot { font-size: 0.5em; vertical-align: top; margin-left: 3px; }
.notification-badge { background-color: #dc3545; font-size: 0.8em; padding: 2px 6px; border-radius: 10px; margin-left: 8px; font-weight: bold; }

/* --- Style for the Mail icon button when it has the 'unread' class --- */
.user-button.mail-icon.unread {
    background-color: #ffc107;      /* Bright, attention-grabbing yellow background */
    border-color: #f8c949;          /* A slightly lighter border for depth */
    color: #333;                   /* Dark text/icon color for contrast on yellow */
    animation: pulse 2s infinite;   /* Apply the pulsing animation */
}

/* Hover state for the unread mail button */
.user-button.mail-icon.unread:hover {
    background-color: #ffca2c; /* A slightly brighter yellow on hover */
}


/* --- The pulsing animation keyframes --- */
/* This makes the button gently grow and shrink */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4); /* Start with no shadow */
    }
    70% {
        transform: scale(1.05); /* Grow slightly larger */
        box-shadow: 0 0 10px 10px rgba(255, 193, 7, 0); /* Create a disappearing glow effect */
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); /* End with no shadow */
    }
}

/*
=====================================================
    4. DEFINITIVE RESPONSIVE & MOBILE STYLES
=====================================================
*/

/* Hide hamburger on desktop by default */
#menu-toggle { display: none; }

/* === MAIN TABLET BREAKPOINT (<= 1024px) === */
@media (max-width: 1024px) {

    /* --- General Layout --- */
    .content-wrapper, .content-section {
        max-width: calc(100% - 40px); /* Add some breathing room */
    }
    
    /* --- The Universal Stacking Fix --- */
    /* This rule targets ALL your multi-column layouts and forces them to stack */
    .home-logged-in-grid, .home-logged-out-grid,
    .chart-layout, .marketplace-layout-grid,
    .marketplace-layout-grid,
    .profile-page-grid, .hc-page-grid, .content-grid, .forum-page-grid, .login-page-grid {
        grid-template-columns: 1fr !important;
        grid-template-areas: none !important;
    }
    .info-box, .chart-sidebar, .marketplace-sidebar, .profile-sidebar, .hc-sidebar {
        grid-area: auto !important;
        margin-bottom: 20px;
        width: auto;
    }
    .home-featured-content { grid-row: auto !important; }

    /* --- MOBILE NAVIGATION --- */
    
    /* Show the hamburger button */
    #menu-toggle {
        display: block;
        background: none; border: none; padding: 10px; cursor: pointer;
        z-index: 1005; /* Must be higher than the menu panel */
    }
    #menu-toggle span { display: block; width: 25px; height: 3px; background-color: #fff; margin: 5px 0; transition: all 0.3s ease; }
    
    /* Hamburger "X" animation */
    #menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    #menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    #menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    /* The desktop navigation bar is now hidden... */
    .header-bottom-row-v2 ul#main-nav-list {
        display: none;
    }
    
    /* ...and is REPLACED by the slide-out menu when '.active' is added by JS */
    .header-bottom-row-v2 ul#main-nav-list.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0; left: 0;
        width: 280px;
        height: 100vh;
        background-color: #003f80;
        padding-top: 60px; /* Space for the "virtual" header bar */
        box-shadow: 5px 0 15px rgba(0,0,0,0.2);
        z-index: 1004;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Links within the slide-out menu */
    ul#main-nav-list.active a {
        padding: 15px 25px;
        border-bottom: 1px solid #0056b3;
        width: 100%;
        box-sizing: border-box;
    }
    ul#main-nav-list.active .nav-divider { display: block; }
    ul#main-nav-list.active .nav-item-right { margin-left: 0; }
}


/* === PHONE BREAKPOINT (<= 768px) === */
@media (max-width: 768px) {
    .content-wrapper, .content-section { padding: 15px; }

    /* Hero header adjustments */
    .mascot-hero-header { flex-direction: column; text-align: center; gap: 15px; }
    .mascot-hero-image { order: -1; margin-bottom: 10px; }
    .mascot-hero-image img { max-height: 120px; }
    
    /* Header space saving */
    .brand-name-v2 { display: none; }
    .header-info-stack { display: none; }
    .main-header-v2 { padding-left: 80px; } /* Space for hanging logo */
    .logo-container-v2 img { height: 70px; top: -5px; }
    
    /* General font scaling */
    h1, .mascot-hero-text h1 { font-size: 1.8em; }
    h2, .section-title { font-size: 1.4em; }
    h3 { font-size: 1.2em; }
    
    .data-table th, .data-table td { font-size: 0.9em; }
}


/* === SMALL PHONE BREAKPOINT (<= 480px) === */
@media (max-width: 480px) {

    /* --- [FIX] Universal Image Sizing for Mobile --- */
    /* Targets all images in the main content to make them shrink safely */
    main img {
        max-width: 100%;
        height: auto;
    }

    /* --- Header & Layout Adjustments --- */
    .main-header-v2 { padding-left: 70px; }
    .logo-container-v2 img { height: 60px; top: 0px; left: 10px; }
    .header-right-top-v2 .balance { display: none; }
    .header-right-top-v2 .nav-button-v2 { padding: 5px 8px; font-size: 0.8em; }
    .content-wrapper, .content-section { padding: 15px 10px; }
    .home-logged-in-grid, .home-logged-out-grid { gap: 15px; }

    /* --- Card & Filter Layouts for Small Screens --- */
    .item-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
    .trade-filters {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    /* ======================================= */
    /* === FIXES FOR STUBBORN HOMEPAGE BOXES === */
    /* ======================================= */

    /* [FIX #1] The User Snapshot Box (Stacks Avatar + Details) */
    .home-snapshot .user-snapshot-content {
        flex-direction: column;
        text-align: center;
    }
    .home-snapshot .snapshot-actions .button {
        white-space: normal; /* Allow button text to wrap */
        justify-content: center;
    }

    /* [FIX #2] Featured Company Box (Stacks Logo + Details) */
    .company-feature-details {
        flex-direction: column;
        text-align: center;
    }
    
    /* [FIX #3] Developer Profile Box */
    .developer-profile-box {
       align-items: center; /* Helps center content when flex direction is column */
    }

    /* [FIX #4] The Top Entrepreneur Box */
    .home-top-entrepreneur .top-entrepreneur-details {
        flex-direction: column;
    }

    /* [FIX #5] General Flexbox Item Shrinking */
    /* Allows flex items like info-boxes to shrink smaller than their content would normally allow. */
    .info-box, .feature-card, .highlight-box {
        min-width: 0;
    }

}
    
    /* Smaller item cards */
    .item-grid-container { grid-template-columns: repeat(2, 1fr); }


/*
=====================================================
    3. PAGES: MASCOT HEROES & BASE LAYOUTS (Desktop Default)
=====================================================
*/

/* --- Mascot Hero Header (Reusable) --- */
.mascot-hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    color: #fff;
    margin-bottom: 25px;
    position: relative; /* For any internal positioning */
    overflow: hidden; /* Hide anything that goes outside */
    border-radius: 8px; /* Rounded corners for the hero box */
}
.mascot-hero-text {
    flex-grow: 1; /* Allows text to take up available space */
}
.mascot-hero-text h1 {
    font-size: 2.5em;
    margin: 0 0 5px 0;
    font-weight: bold;
}
.mascot-hero-text p {
    font-size: 1.1em;
    margin: 0;
    max-width: 500px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}
.mascot-hero-image img {
    max-height: 160px; /* A good, large size for mascots */
    width: auto;
    position: relative;
    z-index: 2; /* To ensure it's above any background effects */
}

.mascot-hero-header a .mascot-hero-image img {
    transition: transform 0.2s ease-in-out; /* Add a smooth transition */
}

.mascot-hero-header a:hover .mascot-hero-image img {
    transform: scale(1.1); /* Make it 10% bigger on hover */
    /* You could also add a subtle drop-shadow for more pop */
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

/* --- Specific Hero Header Themes (Colors/Accents) --- */
.charts-hero {
    background: linear-gradient(135deg, #0056b3, #004a99); /* Blue gradient */
}
.marketplace-hero {
    background: linear-gradient(135deg, #28a745, #218838); /* Green gradient for marketplace */
}
.shop-hero {
    background: linear-gradient(135deg, #0d6efd, #0b60cb); /* Brighter blue for shop */
}
.about-hero {
    background: linear-gradient(135deg, #ffc107, #ffa000); /* Yellow/Orange for about */
}
.contact-hero {
    background: linear-gradient(135deg, #6f42c1, #5d38a0); /* Purple for contact */
}

/* --- Main content wrapper for pages using mascot heroes --- */
.content-wrapper {
    max-width: calc(100% - 80px); /* Adjust max-width for 40px padding on each side */
    margin: -30px auto 40px auto; /* Pulls content up over the hero header */
    padding: 40px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* Stronger shadow */
    position: relative; /* Needed for overlap effect */
    z-index: 10;
    box-sizing: border-box;
}

/* --- Grid Layouts (Desktop Default) --- */
/* These rules are now outside media queries, applying by default */
.content-grid { /* Used in About/Contact */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
}
.chart-layout { /* For Charts page sidebar/main content */
    display: grid;
    grid-template-columns: 250px 1fr; /* Sidebar and main content */
    gap: 25px;
}
.marketplace-layout-grid { /* For Marketplace page sidebar/main content */
    display: grid;
    grid-template-columns: 250px 1fr; /* Sidebar and main content */
    gap: 25px;
}


/* --- Sidebars/Dev Info Box (Shared) --- */
.sidebar-dev-box {
    margin-top: 30px;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    text-align: center;
    font-size: 0.9em;
}
.sidebar-dev-box .fas {
    color: #007bff;
    font-size: 1.5em;
    margin-bottom: 10px;
}
.sidebar-dev-box p {
    margin: 0 0 10px 0;
}
.sidebar-dev-box a {
    font-weight: bold;
}

/* --- Inner Section Titles --- */
.section-title {
    font-size: 1.5em;
    color: #004a99;
    margin-bottom: 20px;
    margin-top: 30px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title:first-of-type {
    margin-top: 0; /* No top margin for the very first one in a content-section */
}


/* --- Cards (General Purpose, similar to info-box but for content) --- */
.feature-card { /* Used in About/Contact */
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    border-top: 4px solid #0056b3; /* Top border accent */
    display: flex; /* Make it a flex container to push content/buttons to bottom */
    flex-direction: column;
}
.feature-card h2, .feature-card h3 { /* Headers within feature cards */
    color: #111827;
    margin-top: 0;
    margin-bottom: 15px;
}
.feature-card h2 i, .feature-card h3 i { /* Icons within feature card headers */
    color: #0056b3;
    margin-right: 10px;
}
.feature-card ul {
    list-style: none;
    padding: 0;
}
.feature-card li {
    margin-bottom: 12px;
}
.feature-card li a {
    display: flex;
    align-items: center;
    gap: 8px;
}
.feature-card li a i {
    width: 20px;
    text-align: center;
}

/* --- Highlights (General purpose boxes, e.g. on Charts, Marketplace) --- */
.highlight-box { /* Replaces some of the 'info-box' usage */
    margin-bottom: 25px;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.highlight-box h2 {
    margin-top: 0;
    font-size: 1.3em;
    color: #004a99;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}
.highlight-box table { /* Specific for tables inside highlights */
    width: 100%;
    border-collapse: collapse;
}
.highlight-box table th, .highlight-box table td {
    padding: 12px 5px;
    text-align: left;
    border-bottom: 1px solid #f0f4f8;
}
.highlight-box table tr:last-child th, .highlight-box table tr:last-child td {
    border-bottom: none;
}
.highlight-box table th {
    font-weight: bold;
    color: #374151;
    vertical-align: top;
}
.highlight-box table th .fas { /* Icons in table headers */
    margin-right: 8px;
    color: #9ca3af;
}

/* --- Item Cards (Specific to Shop, but designed to be reusable if needed) --- */
.item-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.item-card {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: box-shadow 0.2s ease-in-out;
}
.item-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
    .item-card-image {
        height: 160px; /* Give the image container a fixed height */
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .item-card-image img {
        max-width: 100%;
        max-height: 100%; /* Ensure image fits within the container */
        height: auto;
        width: auto;
        object-fit: contain; /* Prevents image distortion */
    }
.item-card-info {
    flex-grow: 1;
    margin-bottom: 10px;
}
.item-card .item-name {
    font-weight: bold;
    font-size: 1.05em;
    margin-bottom: 5px;
    display: block;
}
.item-card .item-name a { color: #004a99; text-decoration: none; }
.item-card .item-name a:hover { text-decoration: underline; }
.item-card .item-desc-short {
    font-size: 0.85em; color: #555; margin: 0; line-height: 1.3;
    min-height: 2.6em; /* Reserve space for ~2 lines description */
}
.item-card .item-details {
    margin-top: 10px;
    font-size: 0.9em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px dotted #eee;
}
.item-card .item-price { font-weight: bold; color: #28a745; }
.item-card .item-stock { color: #6c757d; font-style: italic; }
.item-card .stock-soldout { color: #dc3545; font-weight: bold; font-style: normal;}
.item-card-actions {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #eee;
}
.item-card-actions .button,
.item-card-actions .status-tag {
    width: 80%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* --- Pagination (Reused across many pages) --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 5px;
}
.pagination a, .pagination span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    text-decoration: none;
    color: #374151;
    background-color: #fff;
    transition: background-color 0.2s, border-color 0.2s;
}
.pagination a:hover {
    background-color: #e5e7eb;
    border-color: #9ca3af;
    color: #111827;
}
.pagination span.current-page {
    background-color: #0056b3;
    color: #fff;
    border-color: #0056b3;
    font-weight: bold;
}
.pagination span.ellipsis {
    border: none;
    background: none;
    cursor: default;
    font-weight: bold;
    color: #9ca3af;
}

/*
=====================================================
    PAGES: GLOBAL LAYOUTS & CONTAINERS
=====================================================
*/

/* --- Main content wrapper for pages using mascot heroes --- */
.content-wrapper {
    /* Adjusted max-width for 1/4 spacing. Example: 1920px screen, content will be 1920 - 80 = 1840px */
    /* This will fill almost the entire screen, with a consistent margin on left/right */
    max-width: calc(100% - 80px); 
    margin: -30px auto 40px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
    box-sizing: border-box;
}

/* --- Grid Layouts (Desktop Default - apply outside @media for desktop) --- */
.content-grid { /* Used in About/Contact */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
}
.chart-layout { /* For Charts page sidebar/main content */
    display: grid;
    grid-template-columns: 250px 1fr; /* Sidebar and main content */
    gap: 25px;
}
.marketplace-layout-grid { /* For Marketplace page sidebar/main content */
    display: grid;
    grid-template-columns: 250px 1fr; /* Sidebar and main content */
    gap: 25px;
}


/*
=====================================================
    PAGES: HOME PAGE SPECIFIC STYLES
=====================================================
*/

.home-page { /* Specific adjustments for homepage content section */
    /* Add any unique homepage top-level layout styles here */
}

/* Logged In Grid Layout */
.home-logged-in-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 15px;
    grid-template-areas:
        "snapshot companies charts"
        "announce threads top-e";
}
/* Logged Out Grid Layout */
.home-logged-out-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.8fr 1.1fr; /* Column proportions */
    gap: 20px;
    margin-bottom: 20px;
    grid-template-areas:
        "login   go-info        featured-content"
        "about   go-info        featured-content"
        "company recent-threads tip-of-day";
}

/* Info box base for both logged in/out */
.info-box {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}
.info-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #004a99;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.info-box h3 i {
    color: #0056b3;
    font-size: 0.9em;
}

/* Home Page Specific Areas & Content */
.home-snapshot { grid-area: snapshot; }
.home-companies { grid-area: companies; }
.home-charts { grid-area: charts; }
.home-announcement { grid-area: announce; }
.home-recent-threads { grid-area: threads; }
.home-top-entrepreneur { grid-area: top-e; }
.home-login { grid-area: login; }
.home-about { grid-area: about; }
.home-go-info { grid-area: go-info; }
.home-featured-content { grid-area: featured-content; display: flex; flex-direction: column; align-items: stretch; } /* Adjusted */
.home-featured-company { grid-area: company; }
.home-recent-posts { grid-area: recent-threads; }
.home-tip { grid-area: tip-of-day; }


/* Home Page Details & Components */
.home-snapshot .user-snapshot-content { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; flex-grow: 1;}
.home-snapshot .user-snapshot-avatar { max-width: 60px; height: auto; border-radius: 50%; border: 2px solid #ccc; flex-shrink: 0;}
.home-snapshot .user-snapshot-details h4 { margin: 0 0 5px 0; font-size: 1.2em;}
.home-snapshot .user-snapshot-details p { margin: 2px 0; font-size: 0.95em; color: #333;}
.home-snapshot .snapshot-actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; border-top: 1px solid #eee; padding-top: 10px; }
.home-snapshot .snapshot-actions .button { text-align: left; width: 100%; box-sizing: border-box;}

.home-companies .company-overview-list { margin: 0; padding: 0; list-style: none; flex-grow: 1; }
.company-overview-item { padding: 6px 0 6px 1.5em; border-bottom: 1px dotted #eee; font-size: 0.95em; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; position: relative; }
.company-overview-item::before { content: '•'; color: #0056b3; font-weight: bold; display: inline-block; position: absolute; left: 0.5em; top: 6px; }
.company-overview-item:last-child { border-bottom: none; }
.company-overview-item a { color: #0056b3; text-decoration: none; font-weight: 500; margin-right: auto; }
.company-overview-item a:hover { text-decoration: underline;}
.company-type-tag { font-size: 0.85em; color: #6c757d; margin-left: 4px; }
.company-status-tag { padding: 2px 6px; font-size: 0.8em; border-radius: 4px; font-weight: bold; color: white; background-color: #6c757d; white-space: nowrap; margin-left: auto; }
.company-status-tag.status-idle { background-color: #6c757d; }
.company-status-tag.status-researching { background-color: #0d6efd; }
.company-status-tag.status-advertising { background-color: #198754; }
.company-status-tag.status-training { background-color: #6f42c1; }
.company-status-tag.status-exhibiting { background-color: #ffc107; color: #000; }

.home-charts .chart-snapshot-list { list-style: none; padding: 0; margin: 0 0 15px 0; flex-grow: 1;}
.home-charts li { margin-bottom: 8px; font-size: 0.9em; border-bottom: 1px dotted #eee; padding-bottom: 5px; line-height: 1.4; }
.home-charts li:last-child { border-bottom: none; }
.home-charts li strong { color: #004a99; }

.home-announcement { justify-content: space-between;}
.home-announcement h4 { font-size: 1.05em; margin-bottom: 5px; font-weight: 500;}
.home-announcement h4 a { text-decoration: none; color: #0056b3; }
.home-announcement .meta { font-size: 0.8em; color: #6c757d; margin-bottom: 10px; display: block; }
.announcement-content-snippet { font-size: 0.9em; line-height: 1.5; color: #333; max-height: 100px; overflow: hidden; margin-bottom: 10px; padding: 5px; border-left: 3px solid #0056b3; background-color: #f8f9fa; }
.announcement-content-snippet p:first-child { margin-top: 0; }
.announcement-content-snippet p:last-child { margin-bottom: 0; }


.home-recent-threads .forum-post-list-compact { margin: 0; list-style: none; padding: 0; flex-grow: 1;}
.forum-post-list-compact li { padding: 4px 0; border-bottom: 1px dotted #eee; font-size: 0.85em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.forum-post-list-compact li:last-child { border-bottom: none; }
.forum-post-list-compact a { text-decoration: none; color: #0056b3; }
.forum-post-list-compact a:hover { text-decoration: underline; }

.home-top-entrepreneur .top-entrepreneur-details { display: flex; gap: 10px; align-items: center; }
.home-top-entrepreneur .top-entrepreneur-avatar { max-width: 50px; height: auto; border-radius: 50%; flex-shrink: 0; }
.home-top-entrepreneur .top-e-details h4 { margin: 0 0 5px 0; font-size: 1.1em; }
.home-top-entrepreneur .top-e-details p { margin: 1px 0; font-size: 0.9em; }
.home-top-entrepreneur .top-e-desc { font-style: italic; color: #555; font-size: 0.85em; margin-top: 5px; }


.compact-login-form { font-size: 0.95em; }
.compact-login-form .form-row { display: flex; align-items: center; margin-bottom: 8px; gap: 8px; }
.compact-login-form label { flex-basis: 70px; text-align: right; margin-bottom: 0; font-size: inherit;}
.compact-login-form input[type="text"], .compact-login-form input[type="password"] { flex-grow: 1; padding: 5px 8px; font-size: inherit; border: 1px solid #ccc;}
.compact-login-form .submit-row { justify-content: space-between; margin-top: 8px; }
.compact-login-form .submit-row div { display: flex; align-items: center; }
.compact-login-form .submit-row input[type="checkbox"] { width: auto; margin-right: 5px; vertical-align: middle;}
.compact-login-form .submit-row label { flex-basis: auto; font-weight: normal; font-size: 0.9em; }
.compact-login-form .links-row { justify-content: flex-start; flex-direction: column; align-items: flex-start; gap: 5px; margin-top: 10px; padding-top: 10px; border-top: 1px dotted #ccc; }
.compact-login-form .links-row a { display: inline-flex; align-items: center; font-size: 0.9em; text-decoration: none; }
.compact-login-form .links-row a.button { padding: 4px 8px; width: auto; background-color: #0056b3; color: #ffffff; border-radius: 4px; transition: background-color 0.2s ease; }
.compact-login-form .links-row a.button:hover { background-color: #004a99; }
.compact-login-form .links-row i { margin-right: 5px; }

.home-about p { margin-bottom: 0.8em; line-height: 1.4; font-size: 0.95em; }
.home-about p:last-child { margin-bottom: 0; }

.developer-profile-box { display: flex; flex-direction: column; text-align: center; justify-content: space-between; }
.developer-profile-box h3 { text-align: left; }
.developer-profile-box p { margin: 4px 0; }
.developer-title { font-size: 0.9em; color: #6c757d; }
.developer-blurb { font-size: 0.95em; line-height: 1.5; background-color: #f8f9fa; border-left: 3px solid #0056b3; padding: 10px; text-align: left; margin: 15px 0; }
.home-go-info .go-logo-container { text-align: center; margin: 15px 0; flex-grow: 1; display: flex; align-items: center; justify-content: center; } 
.home-go-info .go-logo-container img { max-height: 200px; width: auto; }
.portfolio-actions { margin-top: auto; padding-top: 10px; border-top: 1px dotted #ccc; text-align: center; } /* Adjusted */

/* --- Styles for Side-by-Side Featured Company Box --- */
.company-feature-details {
    display: flex;
    gap: 15px; /* Increase gap slightly */
    align-items: center; /* Vertically align items in the middle */
}
.featured-logo-side {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border: 2px solid #e9ecef;
    border-radius: 8px; /* A squircle shape */
    padding: 3px;
    background: #fff;
    flex-shrink: 0;
}
.featured-text-details {
    flex-grow: 1;
}
.featured-text-details p {
    margin: 2px 0;
    font-size: 0.9em;
    line-height: 1.5;
}
.featured-text-details p strong {
    display: inline-block;
    width: 60px; /* Aligns the data values vertically */
    font-weight: 600;
    color: #495057;
}

.home-recent-posts ul.forum-post-list-compact { list-style: none; padding: 0; margin: 0 0 10px 0; flex-grow: 1;}
.forum-post-list-compact li { padding: 4px 0; border-bottom: 1px dotted #eee; font-size: 0.85em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.forum-post-list-compact li:last-child { border-bottom: none; }
.forum-post-list-compact a { text-decoration: none; color: #0056b3; }
.forum-post-list-compact a:hover { text-decoration: underline; }

/* Footer Stats on homepage */
.footer-stats { text-align: center; margin-top: 20px; padding: 12px; border-top: 1px solid #ddd; font-size: 0.9em; color: #666; background-color: transparent; border: none; margin-bottom: 0; }
.footer-stats span { margin: 0 10px; white-space: nowrap; }


/*
=====================================================
    3. PAGES: MASCOT HEROES & BASE LAYOUTS (Desktop Default)
=====================================================
*/

/* --- Mascot Hero Header (Reusable) --- */
.mascot-hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    color: #fff;
    margin-bottom: 25px;
    position: relative; /* For any internal positioning */
    overflow: hidden; /* Hide anything that goes outside */
    border-radius: 8px; /* Rounded corners for the hero box */
}
.mascot-hero-text {
    flex-grow: 1; /* Allows text to take up available space */
}
.mascot-hero-text h1 {
    font-size: 2.5em;
    margin: 0 0 5px 0;
    font-weight: bold;
}
.mascot-hero-text p {
    font-size: 1.1em;
    margin: 0;
    max-width: 500px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}
.mascot-hero-image img {
    max-height: 160px; /* A good, large size for mascots */
    width: auto;
    position: relative;
    z-index: 2; /* To ensure it's above any background effects */
}

/* --- Specific Hero Header Themes (Colors/Accents) --- */
.charts-hero {
    background: linear-gradient(135deg, #0056b3, #004a99); /* Blue gradient */
}
.marketplace-hero {
    background: linear-gradient(135deg, #28a745, #218838); /* Green gradient for marketplace */
}
.shop-hero {
    background: linear-gradient(135deg, #0d6efd, #0b60cb); /* Brighter blue for shop */
}
.about-hero {
    background: linear-gradient(135deg, #ffc107, #ffa000); /* Yellow/Orange for about */
}
.contact-hero {
    background: linear-gradient(135deg, #6f42c1, #5d38a0); /* Purple for contact */
}

/* --- Main content wrapper for pages using mascot heroes --- */
.content-wrapper {
    /* Adjusted max-width for 1/4 spacing. Example: 1920px screen, content will be 1920 - 80 = 1840px */
    /* This will fill almost the entire screen, with a consistent margin on left/right */
    max-width: calc(100% - 80px);
    margin: -30px auto 40px auto; /* Pulls content up over the hero header */
    padding: 40px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* Stronger shadow */
    position: relative;
    z-index: 10;
    box-sizing: border-box;
}

/* --- Grid Layouts (Desktop Default - apply outside @media for desktop) --- */
/* These rules are now outside media queries, applying by default */
.content-grid { /* Used in About/Contact */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
}
.chart-layout { /* For Charts page sidebar/main content */
    display: grid;
    grid-template-columns: 250px 1fr; /* Sidebar and main content */
    gap: 25px;
}
.marketplace-layout-grid { /* For Marketplace page sidebar/main content */
    display: grid;
    grid-template-columns: 250px 1fr; /* Sidebar and main content */
    gap: 25px;
}


/* --- Sidebars/Dev Info Box (Shared) --- */
.sidebar-dev-box {
    margin-top: 30px;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    text-align: center;
    font-size: 0.9em;
}
.sidebar-dev-box .fas {
    color: #007bff;
    font-size: 1.5em;
    margin-bottom: 10px;
}
.sidebar-dev-box p {
    margin: 0 0 10px 0;
}
.sidebar-dev-box a {
    font-weight: bold;
}

/* --- Inner Section Titles --- */
.section-title {
    font-size: 1.5em;
    color: #004a99;
    margin-bottom: 20px;
    margin-top: 30px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title:first-of-type {
    margin-top: 0; /* No top margin for the very first one in a content-section */
}


/* --- Cards (General Purpose, similar to info-box but for content) --- */
.feature-card { /* Used in About/Contact */
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    border-top: 4px solid #0056b3; /* Top border accent */
    display: flex; /* Make it a flex container to push content/buttons to bottom */
    flex-direction: column;
}
.feature-card h2, .feature-card h3 { /* Headers within feature cards */
    color: #111827;
    margin-top: 0;
    margin-bottom: 15px;
}
.feature-card h2 i, .feature-card h3 i { /* Icons within feature card headers */
    color: #0056b3;
    margin-right: 10px;
}
.feature-card ul {
    list-style: none;
    padding: 0;
}
.feature-card li {
    margin-bottom: 12px;
}
.feature-card li a {
    display: flex;
    align-items: center;
    gap: 8px;
}
.feature-card li a i {
    width: 20px;
    text-align: center;
}

/* --- Highlights (General purpose boxes, e.g. on Charts, Marketplace) --- */
.highlight-box { /* Replaces some of the 'info-box' usage */
    margin-bottom: 25px;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.highlight-box h2 {
    margin-top: 0;
    font-size: 1.3em;
    color: #004a99;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}
.highlight-box table { /* Specific for tables inside highlights */
    width: 100%;
    border-collapse: collapse;
}
.highlight-box table th, .highlight-box table td {
    padding: 12px 5px;
    text-align: left;
    border-bottom: 1px solid #f0f4f8;
}
.highlight-box table tr:last-child th, .highlight-box table tr:last-child td {
    border-bottom: none;
}
.highlight-box table th {
    font-weight: bold;
    color: #374151;
    vertical-align: top;
}
.highlight-box table th .fas { /* Icons in table headers */
    margin-right: 8px;
    color: #9ca3af;
}

/* --- Item Cards (Specific to Shop, but designed to be reusable if needed) --- */
.item-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.item-card {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: box-shadow 0.2s ease-in-out;
}
.item-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.item-card-image {
    margin-bottom: 10px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.item-card-image img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
}
.item-card-info {
    flex-grow: 1;
    margin-bottom: 10px;
}
.item-card .item-name {
    font-weight: bold;
    font-size: 1.05em;
    margin-bottom: 5px;
    display: block;
}
.item-card .item-name a { color: #004a99; text-decoration: none; }
.item-card .item-name a:hover { text-decoration: underline; }
.item-card .item-desc-short {
    font-size: 0.85em; color: #555; margin: 0; line-height: 1.3;
    min-height: 2.6em; /* Reserve space for ~2 lines description */
}
.item-card .item-details {
    margin-top: 10px;
    font-size: 0.9em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px dotted #eee;
}
.item-card .item-price { font-weight: bold; color: #28a745; }
.item-card .item-stock { color: #6c757d; font-style: italic; }
.item-card .stock-soldout { color: #dc3545; font-weight: bold; font-style: normal;}
.item-card-actions {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #eee;
}
.item-card-actions .button,
.item-card-actions .status-tag {
    width: 80%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* --- Pagination (Reused across many pages) --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 5px;
}
.pagination a, .pagination span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    text-decoration: none;
    color: #374151;
    background-color: #fff;
    transition: background-color 0.2s, border-color 0.2s;
}
.pagination a:hover {
    background-color: #e5e7eb;
    border-color: #9ca3af;
    color: #111827;
}
.pagination span.current-page {
    background-color: #0056b3;
    color: #fff;
    border-color: #0056b3;
    font-weight: bold;
}
.pagination span.ellipsis {
    border: none;
    background: none;
    cursor: default;
    font-weight: bold;
    color: #9ca3af;
}

/*
=====================================================
    5. FOOTER STYLES
=====================================================
*/
.main-footer {
    background-color: #343a40; /* A dark charcoal, very professional */
    color: #adb5bd; /* A light grey for text */
    padding: 40px 20px 0 20px; /* Padding on top/sides, no bottom padding on this part */
    margin-top: 40px; /* Space above the footer */
    font-size: 0.9em;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #495057; /* A subtle separator line */
}

.footer-column h4 {
    color: #ffffff;
    font-size: 1.1em;
    margin-bottom: 15px;
    font-weight: 500;
}

.footer-column.about .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.footer-column.about .footer-logo img {
    height: 35px;
}
.footer-column.about p {
    line-height: 1.7;
    color: #ced4da;
}

.footer-column.links ul,
.footer-column.developer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-column.links li a,
.footer-column.developer li a {
    color: #adb5bd;
    text-decoration: none;
    display: block;
    padding: 5px 0;
    transition: color 0.2s;
}
.footer-column.developer li a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.footer-column.links li a:hover,
.footer-column.developer li a:hover {
    color: #ffffff;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 0.85em;
}
.footer-bottom p {
    margin: 0;
}

/*
=====================================================
    PAGES: COMPETITIONS HUB
=====================================================
*/

.competitions-hub-page { /* Kept for any top-level specific needs */
}
.page-header {
    text-align: center;
    margin-bottom: 25px;
}
.page-header h1 { margin-bottom: 5px; }
.page-header-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
    display: block;
}
.page-intro {
    text-align: center;
    color: #666;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

/* Tab Navigation System */
.tabs {
    display: flex;
    justify-content: center;
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 25px;
    gap: 10px;
}
.tabs button.tab-link {
    background-color: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.2s ease-in-out;
    margin-bottom: -2px; /* Pulls the link down to overlap the main border */
}
.tabs button.tab-link:hover {
    color: #0056b3;
}
.tabs button.tab-link.active {
    color: #0056b3;
    border-bottom-color: #0056b3;
}

/* Individual Tab Content Panel */
.tab-content {
    display: none;
}

/* --- Featured Competition Card --- */
/* The styles you provided for this are excellent and reused with minor tweaks */
.featured-competition-card {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    color: white;
    border-radius: 8px;
    margin-top: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.4);
    position: relative;
    overflow: hidden;
}
.featured-banner {
    background-color: #ffc107;
    color: #333;
    font-weight: bold;
    padding: 5px 12px;
    position: absolute;
    top: 15px;
    right: -40px;
    transform: rotate(45deg);
    width: 150px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.featured-content {
    display: flex;
    padding: 30px;
    gap: 30px;
    align-items: center;
}
.featured-info { flex-grow: 1; }
.featured-info h2 { margin: 0 0 10px; font-size: 1.8em; }
.featured-info h2 a { color: white; text-decoration: none; }
.featured-info h2 a:hover { text-decoration: underline; }
.featured-description { font-size: 1em; opacity: 0.9; margin-bottom: 20px; }
.featured-details { list-style: none; padding: 0; }
.featured-details li { margin-bottom: 5px; }
.featured-actions { text-align: center; }
.featured-actions .ends-in { font-size: 1.1em; font-weight: 500; margin-bottom: 10px; }
.featured-actions .button.large { font-size: 1.2em; padding: 12px 25px; }


/* --- Competition List (reused in each tab) --- */
.competition-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

/* Individual Competition Card */
/* Styles for this should be in a REUSABLE template named "competition_card" */
.competition-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
}
.competition-card .card-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
}
.competition-card .card-header h4 {
    margin: 0;
    font-size: 1.2em;
}
.competition-card .card-header h4 a {
    color: #0056b3;
    text-decoration: none;
}
.competition-card .card-header h4 a:hover {
    text-decoration: underline;
}
.competition-card .comp-type {
    font-size: 0.85em;
    color: #666;
    background-color: #f0f0f0;
    padding: 3px 7px;
    border-radius: 3px;
    display: inline-block;
    margin-top: 5px;
}
.competition-card .card-body {
    padding: 15px;
    flex-grow: 1;
    font-size: 0.9em;
    line-height: 1.5;
}
.competition-card .card-body .description {
    color: #555;
    margin-bottom: 15px;
}
.competition-card .card-footer {
    padding: 10px 15px;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
    text-align: right;
}
.competition-card.past {
    background-color: #f8f9fa; /* Slightly different background for past competitions */
    opacity: 0.85; /* Fade them out a bit */
}
.competition-card .status-tag.urgent {
    background-color: #dc3545; /* Red for things like "Ending Soon" */
    color: white;
}

/*
=====================================================
    PAGES: FORUM LIST
=====================================================
*/
.forum-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px; /* More space */
    padding-bottom: 15px; /* More space */
    border-bottom: 2px solid #e9ecef;
}
.forum-header-bar h2 {
    margin: 0;
    font-size: 1.8em;
    color: #004a99;
    display: flex;
    align-items: center;
    gap: 12px;
}

.forum-tip-of-the-day {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9em;
}
.forum-tip-of-the-day .tip-text {
    color: #555;
    font-style: italic;
}
.forum-tip-of-the-day .fa-lightbulb {
    color: #ffc107;
    margin-right: 4px;
}

/* --- The Main 2-Column Grid Layout for Forums Page --- */
.forum-page-grid {
    display: grid;
    grid-template-columns: 1fr 380px; /* Main content | Sidebar */
    gap: 25px;
    align-items: start; /* Align tops of columns */
}

/* Styles for main forum categories list (left column) */
.forum-main-list .forum-category { /* The container for a category title and table */
    margin-bottom: 25px; /* Space between categories */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Reuse highlight-box shadow */
    border-radius: 8px;
    overflow: hidden; /* Important for containing rounded corners of table */
}
.forum-main-list .forum-category h3 { /* The category header bar */
    background-color: #e9ecef;
    color: #495057;
    padding: 10px 15px;
    margin: 0;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}
.forum-main-list .data-table {
    border: 1px solid #dee2e6; /* Border for the table */
    border-top: none; /* No top border, as it connects to h3 */
    border-radius: 0 0 8px 8px;
    margin-top: 0;
}
.forum-main-list .data-table td:first-child { width: 55%; }
.forum-main-list .data-table td:nth-child(2) { width: 10%; text-align: center; }
.forum-main-list .data-table td:last-child { width: 35%; }

.forum-icon { /* The small image next to a forum name */
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 8px;
    border-radius: 4px;
}
.forum-info {
    font-size: 0.85em;
    color: #555;
    margin-top: 3px;
}

/* Styles for the summary boxes (right column) */
.forum-summary-box { /* Now using highlight-box for base style */
    padding: 15px 20px;
}
.forum-summary-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #0056b3;
    font-size: 1.1em;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.summary-table th, .summary-table td { /* Smaller text in summary tables */
    font-size: 0.9em;
    padding: 8px 5px;
}
.summary-table th { background-color: transparent; font-size: 0.85em; color: #6c757d; }
.summary-table a:not(.button) { font-weight: 500; }
.last-post-link { font-weight: bold; margin-left: 5px; text-decoration: none; color: #6c757d; }
.last-post-link:hover { color: #0056b3; }
.timestamp { font-size: 0.85em; color: #6c757d; white-space: nowrap; display: block; }
.nomination-count { font-weight: bold; color: #e67e22; }
.view-history-link { text-align: right; margin-top: 10px; display: block; }

/* Responsive Overrides for Forum Page Grid */
@media (max-width: 1100px) {
    .forum-page-grid {
        grid-template-columns: 1fr; /* Stack columns */
    }
    .forum-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Make sidebar 2 columns on tablet */
        gap: 20px;
    }
}
@media (max-width: 768px) {
    .forum-sidebar {
        grid-template-columns: 1fr; /* Stack sidebar to 1 column on mobile */
    }
    .forum-header-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/*
=====================================================
    PAGES: PROFILE DASHBOARD
=====================================================
*/
.profile-page-grid {
    display: grid;
    grid-template-columns: 1fr 300px; /* Main content | Sidebar */
    gap: 25px;
    align-items: start;
}

/* --- Left Column Styles --- */
.profile-header-grid {
    display: grid;
    grid-template-columns: auto 1fr; /* Avatar | Details */
    gap: 20px;
    align-items: center;
}
.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #dee2e6;
    object-fit: cover;
}
.profile-details-container h3 {
    margin: 0 0 10px 0;
    font-size: 1.8em;
    color: #004a99;
}
.profile-details-container p {
    margin: 0 0 5px 0;
    color: #4b5563;
    display: flex;
    align-items: center;
}
.profile-details-container p .fa-fw {
    width: 20px;
    text-align: center;
    margin-right: 8px;
    color: #9ca3af;
}
.profile-bio {
    font-style: italic;
    color: #555;
    margin-top: 10px !important; /* more space above bio */
}
.profile-bio .fa-quote-left {
    margin-right: 5px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 15px 0;
}
.stat-card {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}
.stat-card h4 {
    margin: 0;
    font-size: 2em;
    color: #0056b3;
}
.stat-card p {
    margin: 5px 0 0 0;
    font-size: 0.9em;
    color: #6c757d;
}

/* --- Right Sidebar Styles --- */
.profile-sidebar .highlight-box {
    margin-bottom: 20px;
}
.profile-sidebar .highlight-box h4 {
    font-size: 1.1em;
    margin: 0;
    padding: 0 0 10px 0;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 8px;
}
.profile-sidebar .highlight-box .fas {
    color: #9ca3af;
}
.sidebar-action-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sidebar-action-list .button {
    width: 100%;
    box-sizing: border-box; /* Important for width */
    text-align: left;
}

/* --- Responsive for Profile Page --- */
@media (max-width: 900px) {
    .profile-page-grid {
        grid-template-columns: 1fr; /* Stack on smaller screens */
    }
    .profile-sidebar {
        order: -1; /* Move sidebar to the top */
    }
}
@media (max-width: 500px) {
    .profile-header-grid {
        grid-template-columns: 1fr; /* Stack avatar and details */
        text-align: center;
    }
    .profile-avatar {
        margin: 0 auto 15px auto;
    }
    .profile-details-container p {
        justify-content: center;
    }
}

/*
=====================================================
    PAGES: PROFILE & SETTINGS FORMS
=====================================================
*/

/* Titles inside forms/sections */
.form-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8em;
    color: #004a99;
    margin: 0 0 15px 0;
}
.form-title .fas {
    color: #0056b3;
}
.form-intro-text {
    color: #555;
    margin: -10px 0 25px 0;
}
.form-actions {
    display: flex;
    justify-content: flex-end; /* Align buttons to the right */
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

/* Specifics for Delete Account Page */
.warning-heading {
    color: #dc3545 !important; /* Red heading */
    justify-content: center;
}
.warning-heading .fas {
    color: #dc3545 !important;
}
.warning-message {
    color: #721c24; /* Dark red text */
    background-color: #f8d7da; /* Light red background */
    padding: 15px;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    margin-bottom: 25px;
}

/*
=====================================================
    PAGES: HOLDING COMPANY DASHBOARD
=====================================================
*/
.hc-page-grid {
    display: grid;
    grid-template-columns: 1fr 320px; /* Main content | Asset sidebar */
    gap: 25px;
    align-items: start;
}

.hc-details-section {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}
.hc-logo-container { flex-shrink: 0; }
.hc-logo {
    width: 100px; /* Consistent size */
    height: 100px;
    object-fit: cover; /* Prevents stretching */
    border-radius: 8px;
    border: 1px solid #eee;
    padding: 5px;
    background-color: #fff;
}
.hc-info { flex-grow: 1; }
.hc-info p { margin: 0 0 8px 0; }
.hc-upgrade-form {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dotted #ccc;
    display: flex;
    align-items: center;
    gap: 15px;
}
.hc-upgrade-form p { margin: 0; }

.asset-card {
    padding: 20px;
    border: 1px solid #e9e9e9;
    border-radius: 8px;
    background-color: #fdfdfd;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}
.asset-card h4 {
    margin: 0 0 10px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #333;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}
.asset-card .fa-fw {
    color: #0056b3; /* Icon color in asset cards */
}
.asset-card p {
    margin: 0 0 10px 0;
    line-height: 1.5;
    flex-grow: 1; /* Pushes form to the bottom */
}
.asset-desc, .asset-details { font-size: 0.9em; color: #555; }
.asset-status { font-style: italic; color: #777; flex-grow: 1;}

.asset-action-form {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dotted #ccc;
}
.asset-action-form p { font-size: 0.9em; margin: 0 0 8px 0; }

.contract-table td.cell-actions { text-align: right; }
.inline-form { display: inline; }


/* Responsive override for HC dashboard */
@media (max-width: 1024px) {
    .hc-page-grid {
        grid-template-columns: 1fr; /* Stack columns on mobile */
    }
}

/*
=====================================================
    PAGES: MEET THE MASCOTS
=====================================================
*/
.mascot-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}
.mascot-profile-card {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.06);
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
}
.mascot-profile-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin: 0 auto 15px auto;
}
.mascot-profile-card h3 {
    margin: 0;
    font-size: 1.5em;
    color: #004a99;
}
.mascot-title {
    font-size: 0.9em;
    font-weight: 500;
    color: #6c757d;
    margin: 4px 0 15px 0;
    font-style: italic;
}
.mascot-story {
    font-size: 0.95em;
    color: #4b5563;
    line-height: 1.6;
    flex-grow: 1; /* Pushes the button to the bottom */
}
.mascot-card-action {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

/* =================================== */
/*  Styles for Login & Recovery Page   */
/* =================================== */

.login-page-grid {
    display: grid;
    /* Two columns: first takes 1 part space, second takes 1.5 parts */
    grid-template-columns: 1fr 1.5fr;
    gap: 30px; /* Space between the two columns */
    align-items: flex-start; /* Aligns columns to the top */
}

/* Headings within the login/recovery columns */
.login-column h2, 
.recovery-column h2 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-column h2 i, 
.recovery-column h2 i {
    font-size: 0.9em; /* Makes the icon slightly smaller than the text */
}

/* Styling for the radio button group in the recovery form */
.form-fieldset {
    margin-top: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 4px;
}

.form-fieldset legend {
    font-weight: 500;
    padding: 0 10px;
    margin-left: 5px;
}

.radio-group .input-group {
    margin-bottom: 10px; /* Space between each radio option */
}

.radio-group .input-group label {
    font-weight: normal; /* Labels for radio/checkboxes are usually not bold */
}

/* General styles for icons inside form buttons */
.standard-form .form-actions button i, 
.standard-form .form-actions a.button i {
    margin-right: 6px;
}

.standard-form .form-actions.center {
    justify-content: center;
    text-align: center;
}

.standard-form label.checkbox-label {
    margin-bottom: 0;
    font-weight: normal;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 992px) {
    .login-page-grid {
        grid-template-columns: 1fr; /* Stack columns on top of each other */
    }
}

/* === Forum Category Header Styling === */
.forum-category-header {
    background-color: #f0f2f5; /* A slightly different light grey */
    padding: 12px 15px;
    margin: -16px -16px 0 -16px; /* Negative margin to span the full width of the highlight-box padding */
    border-bottom: 1px solid #e9ecef;
    border-top-left-radius: 5px; /* Match highlight-box corners */
    border-top-right-radius: 5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.forum-category-header img {
    height: 32px; /* A bit smaller for a tighter header */
    width: 32px;
    border-radius: 5px;
}

.forum-category-header h3 {
    margin: 0;
    font-size: 1.25em;
    color: #333;
}

.category-description {
    padding: 10px 15px;
    margin: 0 -16px 15px -16px; /* Match negative margins */
    background-color: #f8f9fa; /* Slightly different background for description */
    border-bottom: 1px solid #e9ecef;
    color: #555;
    font-size: 0.95em;
}

.category-description i {
    margin-right: 8px;
    color: #888;
}

.data-table {
    border-top: none; /* Remove the top border from the table itself */
}

/*
=====================================================
    PAGES: HALL OF FAME
=====================================================
*/
.hall-of-fame-page .page-header-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
    display: block;
    color: #c8a415; /* Gold color */
}

.hall-of-fame-page .page-intro {
    text-align: center;
    color: #666;
    max-width: 600px;
    margin: 0 auto 35px auto;
}

/* Two-column layout */
.hof-columns {
    display: flex;
    gap: 30px;
    flex-wrap: wrap; /* Allows stacking on smaller screens */
}

.hof-main-column {
    flex: 3; /* Takes up 3 parts of the space */
    min-width: 400px; /* Prevents it from getting too squished */
}

.hof-sidebar {
    flex: 1; /* Takes up 1 part of the space */
    min-width: 300px;
}

.hof-main-column h2, .hof-sidebar h2 {
    font-size: 1.4em;
    color: #004a99;
    margin-bottom: 15px;
    margin-top: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 10px;
}
.hof-main-column h2:first-of-type, .hof-sidebar h2:first-of-type {
    margin-top: 0;
}

/* Winner Cards Styling */
.winners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.winner-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
}
.winner-card-header {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}
.winner-card-header .competition-title {
    margin: 0;
    font-size: 1.1em;
}
.winner-card-header .competition-title a {
    color: #0056b3;
    text-decoration: none;
    font-weight: 600;
}
.winner-card-header .competition-period {
    font-size: 0.8em;
    color: #666;
}
.winner-card-body {
    padding: 15px;
    flex-grow: 1;
    font-size: 0.9em;
}
.winner-card-body p {
    margin: 0 0 8px 0;
}
.winner-card-body .entry-label {
    font-weight: 600;
    color: #333;
    margin-right: 5px;
}

/* Trophy Leaders Sidebar Styling */
.trophy-leaders-table td {
    vertical-align: middle; /* This is important for alignment */
}

/* === avatars for top trophy list === */
.leader-avatar-small {
    width: 40px;          /* Sets a fixed width */
    height: 40px;         /* Sets a fixed height */
    border-radius: 50%;   /* Makes avatars circular */
    margin-right: 10px;
    border: 2px solid #ddd;
    object-fit: cover;    /* This is the key: it scales the image to fit the container without distortion */
    vertical-align: middle; /* Helps align it nicely with the username next to it */
}

.trophy-leaders-table .rank-1-row {
    background-color: #fffbef;
    font-weight: bold;
}
.trophy-leaders-table .rank-1-row .fa-trophy {
    color: #FFD700;
    text-shadow: 0 0 5px rgba(255,215,0,0.7);
}

/* Spotlight Card for Latest Champion */
.spotlight-card {
    background: #fffbef; /* A warm, creamy yellow */
    border: 1px solid #ffeeba;
    border-left: 5px solid #ffc107; /* A strong gold accent on the left */
    border-radius: 8px;
    padding: 25px;
    margin: 10px auto 40px auto; /* Centered with more space below */
    max-width: 700px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}

.spotlight-card .spotlight-header {
    font-size: 0.9em;
    font-weight: 600;
    color: #856404; /* Dark gold/brown for text */
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spotlight-card .spotlight-winner-name {
    font-size: 1.6em;
    font-weight: 700;
    margin: 0;
}

.spotlight-card .spotlight-winner-name a {
    color: #0056b3; /* Your primary link color */
    text-decoration: none;
    transition: color 0.2s;
}
.spotlight-card .spotlight-winner-name a:hover {
    color: #004a99;
}

.spotlight-card .spotlight-award-details {
    font-size: 1.1em;
    color: #666;
    margin: 5px 0 15px 0;
}

.spotlight-card .spotlight-thread-link {
    display: inline-block;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
}

.spotlight-card .spotlight-thread-link:hover {
    background-color: #f8f9fa;
    border-color: #ccc;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.spotlight-card .spotlight-footer {
    font-size: 0.85em;
    color: #999;
    margin-top: 20px;
}







/* Container for the game title and the beta wordmark */
.logotype {
    display: flex;
    /* This aligns the baselines of the text, crucial for this effect */
    align-items: baseline; 
    gap: 12px; /* Adjust the space between "Corporation" and "βeta" */
}

/* The main title: "Operation Corporation" */
.main-title {
    font-family: 'Rubik', sans-serif;
    font-weight: 700; /* Bold */
    font-size: 1.4em; /* Or whatever size you prefer */
    color: #ffffff;
}

/* Container for the whole word "βeta" */
.beta-wordmark {
    font-family: 'Rubik', sans-serif;
    font-weight: 500; /* Slightly less bold than the main title */
    /* No color is set here, we color the inner spans */
}

/* Just the big "β" symbol */
.beta-symbol-large {
    font-size: 1.5em;       /* The "Big" part of the effect */
    color: #dc3545;         /* The strong, clear red you want */
    font-weight: 700;       /* Make the symbol itself bold */
    vertical-align: middle; /* Helps with vertical alignment */
}

/* Just the small "eta" text */
.beta-text-small {
    font-size: 0.8em;  /* The "small" part of the effect */
    color: #ffffff;    /* Match the color of the main title */
    
    /* This nudges "eta" closer to the big beta symbol */
    margin-left: -4px; 
}







