/* ==========================================================================
   AGORA APPS - CUSTOM STYLESHEET
   Location: themes/classic/assets/css/custom.css
   Point of Truth - Full 288-Line Master Version
   Includes: Global Branding, Hero Logic, Sovereign Overrides, 
   Category Fixes, and Absolute Mobile Portrait Reset.
   ========================================================================== */

/* --- 1. GLOBAL BRANDING --- */

/* Primary Link Color (Agora Dark Blue) */
a {
    color: #0A3264 !important;
}

/* Link Hover Color (Agora Gold) */
a:hover {
    color: #D4AF37 !important;
}

/* Custom Footer Border */
.footer-container {
    border-top: 5px solid #0A3264 !important;
}

/* --- 2. HERO SECTION (Homepage & Parent Categories) --- */

/* Force the hero to break out of the container to be full width */
#agora-hero.full-width-hero {
    /* Ensure file is at public_html/img/custom/hero-bg.jpg */
    background-image: url('/img/custom/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    position: relative;
    width: 100vw !important;       
    left: 50%;
    right: 50%;
    margin-left: -50vw !important; 
    margin-right: -50vw !important;
    padding: 100px 20px; 
    
    text-align: center;
    color: #ffffff;
}

/* Dark Overlay to make text readable over the image */
#agora-hero.full-width-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 50, 100, 0.7); /* Agora Blue with 70% opacity */
    z-index: 1;
}

/* Ensure content sits on top of the overlay */
.hero-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

/* Hero Title Typography */
.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Hero Subtitle Typography */
.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    line-height: 1.6;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* --- 3. BUTTONS --- */

.hero-buttons .btn {
    margin: 10px;
    padding: 12px 30px;
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Primary Button (Gold) */
.agora-btn-primary {
    background-color: #D4AF37;
    color: #0A3264;
    border: 2px solid #D4AF37;
}

.agora-btn-primary:hover {
    background-color: #ffffff;
    border-color: #ffffff;
    color: #0A3264;
}

/* Secondary Button (Transparent/White) */
.agora-btn-secondary {
    background-color: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}

.agora-btn-secondary:hover {
    background-color: #ffffff;
    color: #0A3264;
    border-color: #ffffff;
}

/* --- 4. AGORA SOVEREIGN OVERRIDE: FUNCTIONAL AREAS (IDs) --- */

/* 1. The "Save Customization" Button */
#product .product-customization .btn-primary,
#main .product-customization button[name="submitCustomizedData"] {
    background-color: #0A3264 !important;
    border: 2px solid #D4AF37 !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
    font-weight: bold !important;
    opacity: 1 !important;
    padding: 10px 20px !important;
}

#product .product-customization .btn-primary:hover {
    background-color: #D4AF37 !important;
    color: #0A3264 !important;
}

/* 2. The "Add to Cart" Button */
#product .add-to-cart .btn-primary.add-to-cart,
#main .product-actions .add-to-cart button.add-to-cart {
    background-color: #D4AF37 !important;
    border: 2px solid #D4AF37 !important;
    color: #0A3264 !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    width: 100% !important; 
    padding: 15px !important;
}

#product .add-to-cart .btn-primary.add-to-cart:hover {
    background-color: #0A3264 !important;
    color: #D4AF37 !important;
}

/* 3. Section Dividers (Gold Accent Lines) */
#main .product-customization, 
#main .product-actions, 
#main .product-additional-info {
    border-top: 2px solid #D4AF37 !important; 
    padding-top: 25px !important;
    margin-top: 25px !important;
    display: block !important;
}

/* 4. Price Text (Agora Blue Highlight) */
#main .current-price span {
    color: #0A3264 !important;
    font-weight: bold !important;
    font-size: 1.5rem !important;
}

/* 5. Inputs & Labels */
.product-customization label {
    color: #0A3264 !important;
    font-weight: bold;
}

.product-customization input, 
.product-customization textarea {
    border: 1px solid #0A3264 !important;
}

/* --- 5. CATEGORY & SUBCATEGORY STYLING --- */

.block-category, #subcategories {
    border: none !important;
    background: transparent !important;
    margin-bottom: 2rem !important;
    padding: 0 !important;
}

.block-category .h1, .subcategory-heading {
    color: #0A3264 !important;
    text-transform: uppercase;
    font-weight: 700;
    border-bottom: 3px solid #D4AF37 !important;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.subcategories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    list-style: none;
    padding: 0;
    justify-content: flex-start;
}

.subcategory-item {
    width: 200px;
    text-align: center;
}

.subcategory-thumb {
    border: 2px solid #D4AF37 !important; /* Agora Gold Border */
    border-radius: 8px;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.subcategory-thumb:hover {
    transform: translateY(-5px);
}

.subcategory-name {
    color: #0A3264 !important;
    font-weight: bold;
    font-size: 1.1rem;
    text-decoration: none;
    display: block;
    margin-top: 10px;
}

/* --- 6. PRODUCT PAGE ENHANCEMENTS (FORCED FULL-WIDTH) --- */

/* Ensure the layout remains fluid for the repositioned TPL blocks */
#main .product-container, 
#product .row.product-container {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
}

/* Full Width Tabs Styling */
#main .tabs, 
.product-tabs, 
.js-product-tabs {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    clear: both !important;
    margin-top: 30px !important;
}

/* Tab Headers (Royal Blue & Gold) */
.tabs .nav-tabs {
    border-bottom: 4px solid #0A3264 !important;
}

.tabs .nav-tabs .nav-link.active {
    color: #D4AF37 !important;
    border: 1px solid #0A3264 !important;
    border-bottom-color: #ffffff !important;
    background-color: #0A3264 !important;
    font-weight: bold;
    text-transform: uppercase;
}

.tabs .nav-tabs .nav-link {
    color: #0A3264 !important;
    background: #f1f1f1 !important;
    margin-right: 4px;
}

/* --- 7. HIDE CATEGORY COVER IMAGE (LAYOUT FIX) --- */
body#category .block-category .category-cover {
    display: none !important;
}

/* --- 8. THE "NUCLEAR" MOBILE RESET --- */

@media (max-width: 768px) {
    /* Global Mobile Lockdown to prevent overflow shifting */
    html, body {
        overflow-x: hidden !important;
        position: relative !important;
        width: 100% !important;
    }

    /* Force the Hero and Containers to stay inside the screen boundaries */
    #wrapper, .container, #agora-hero.full-width-hero {
        width: 100% !important;
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        transform: none !important; /* Neutralizes the desktopcentering logic */
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }

    .hero-content-wrapper {
        width: 100% !important;
        margin: 0 !important;
        text-align: left !important;
    }

    .hero-title {
        font-size: 1.6rem !important;
        text-align: left !important;
        line-height: 1.2 !important;
        word-wrap: break-word !important;
    }

    .hero-subtitle {
        font-size: 1rem !important;
        text-align: left !important;
    }
}