/* ==========================================================================
   1. GLOBAL VARIABLES & SYSTEM TOKENS
   ========================================================================== */
:root {
    --primary-color: #0288d1;
    --primary-dark: #01579b;
    --primary-royal: #1e3a8a;
    --secondary-color: #b3e5fc;
    --accent-color: #f5b01d;
    --text-dark: #2c3e50;
    --bg-light: #f4f9fc;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --surface: #ffffff;
    --border-color: #d6e4ec;
    --card-bg: #f8f9fa;
}

/* ==========================================================================
   2. NAVBAR & HEADER STYLING
   ========================================================================== */

.navbar-custom {
    background-color: #0d5fa5 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
}

.brand-logo {
    font-size: 28px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin: 0;
    padding: 0;
}

.brand-tagline {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 2px;
    margin: 0;
    padding: 0;
}

.nav-link-custom {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85) !important;
    transition: all 0.3s ease;
    margin: 0 8px;
    padding: 8px 12px !important;
    border-radius: 20px;
    position: relative;
}

.nav-link-custom:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.15);
}

.nav-link-custom.active {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.25);
    font-weight: 600;
}

/* ==========================================================================
   3. HERO SECTION WITH IMAGE BACKGROUND
   ========================================================================== */

.hero-section {
    position: relative;
    padding: 65px 0 0 0;
    overflow: hidden;
}

/* MALINAW NA BACKGROUND (TINT REMOVED) */
.hero-bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('hero-background.jpg') no-repeat center center;
    background-size: cover;
    z-index: -2;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

/* PERFECTED PRODUCT SPACING & OVERLAP EFFECT */
.product-container {
    height: 480px; 
    display: flex;
    align-items: center;       /* BINAGO: Mula flex-end patungong center para maiangat ang mga gallon */
    justify-content: center;   /* Sinisigurong nasa gitna ang grupo horizontal */
    width: 100%;
    margin-top: -20px;         /* DAGDAG: Negatibong margin para mas humila pa paitaas */
    position: relative;
}

.product-image {
    height: 430px;             /* BINAGO: Ginawang 430px (mula 450px) para hindi tumama sa navbar kapag umakyat */
    width: auto;   
    object-fit: contain;
    position: relative;
    transition: transform 0.3s ease;
}

/* Round Gallon ang nasa harap */
.product-image:nth-child(1) {
    z-index: 2;
    filter: drop-shadow(5px 15px 35px rgba(0, 0, 0, 0.25));
}

/* Slim Gallon itatabi at ipapasok ng bahagya sa likod */
.product-image:nth-child(2) {
    z-index: 1;
    margin-left: -120px;       /* BINAGO: Mula -160px patungong -120px para mas balanse ang pagkagitna nilang dalawa */
    transform: scale(0.96); 
    filter: drop-shadow(-5px 10px 25px rgba(0, 0, 0, 0.2));
}

.hero-content {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

.hero-tagline {
    font-size: 16px;
    color: #0d5fa5;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.hero-title {
    font-size: 56px; 
    font-weight: 800;
    color: #1e3a8a;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
}

.hero-text {
    font-size: 18px; 
    color: #1e293b; 
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 30px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.btn-delivery {
    display: inline-block;
    background-color: #f5b01d;
    color: #1e3a8a;
    border: none;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(245, 176, 29, 0.4);
    width: fit-content;
}

.btn-delivery:hover {
    background-color: #f0a701;
    color: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(245, 176, 29, 0.5);
    text-decoration: none;
}

/* ==========================================================================
   4. CONTENT CARDS - 50/50 LAYOUT
   ========================================================================== */

.content-card {
    background-color: #f5f6f7;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 30px;
    padding-bottom: 0;
    border-bottom: none;
}

/* Protocol Card Styling */
.protocol-card {
    background-color: #f5f6f7;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 25px;
    padding-bottom: 20px;
}

.feature-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.feature-icon {
    font-size: 32px;
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(245, 176, 29, 0.15);
    flex-shrink: 0;
}

.feature-icon.lightning {
    background-color: rgba(245, 176, 29, 0.2);
}

.feature-icon.shield {
    background-color: rgba(13, 95, 165, 0.15);
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 8px;
    margin-top: 0;
}

.feature-text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Specs Card Styling */
.specs-card {
    background-color: #f5f6f7;
}

.specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.spec-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-icon {
    font-size: 24px;
    min-width: 32px;
    text-align: center;
    flex-shrink: 0;
}

.spec-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spec-content strong {
    font-size: 14px;
    color: #1e3a8a;
    font-weight: 600;
}

.spec-value {
    font-size: 14px;
    color: #666;
}

/* ==========================================================================
   5. FOOTER STYLING
   ========================================================================== */

.footer-custom {
    background-color: #1e3a8a;
    color: white;
    text-align: center;
    padding: 24px;
    margin-top: 60px;
    font-size: 16px;
    font-weight: 500;
}

.footer-custom p {
    margin: 0;
}

/* ==========================================================================
   6. BOOTSTRAP OVERRIDES & RESPONSIVE TWEAKS
   ========================================================================== */

body {
    background-color: #ffffff;
}

.product-img {
    max-height: 220px;
    object-fit: contain;
    width: 100%;
}

/* Authentication Tab Controls */
.form-toggle-section {
    display: none !important;
}

.form-toggle-section.active {
    display: block !important;
}

/* Radio Layout Wrapper */
.form-check {
    white-space: nowrap !important;
}

.form-check-input:checked {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

/* ==========================================================================
   7. RESPONSIVE ADJUSTMENTS
   ========================================================================== */

/* Notification numeric badge (for admin/customer) */
.badge-container { position: relative; display: inline-block; }
.numeric-badge { position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px; padding: 0 6px; background: #dc3545; color: #fff; border-radius: 999px; display: none; font-size: 12px; line-height: 20px; text-align: center; box-shadow: 0 2px 6px rgba(0,0,0,0.12); }

/* nav-specific badge tweak */
.nav-badge { top: -6px; right: -10px; min-width: 18px; height: 18px; line-height: 18px; font-size: 11px; }

/* sidebar list-group badge placement: place badge to the right vertically centered */
.list-group-item { position: relative; }
.list-group .badge-container { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); }
.list-group .numeric-badge { position: static; transform: none; top: auto; right: auto; display: inline-block; }

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-text {
        font-size: 14px;
    }

    .product-container {
        height: 250px;
        align-items: center;  /* Sinisigurong centered din sa mobile view */
        margin-top: 0;
    }

    .product-image {
        height: 220px;
        width: auto;
    }
    
    .product-image:nth-child(2) {
        margin-left: -35px;
    }

    .content-card {
        padding: 30px 20px;
    }

    .card-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
}

/* ==========================================================================
   8. NAVBAR PROFILE ICON & DROPDOWN
   ========================================================================== */
.nav-profile-avatar {
    width: 40px;
    height: 40px;
    background-color: #ffffff;
    color: #0d5fa5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.nav-profile-avatar:hover {
    transform: scale(1.05);
    border-color: #ffffff;
}

/* Inaayos ang posisyon ng dropdown menu para sumakto sa ilalim ng avatar */
.navbar-nav .dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    margin-top: 10px;
}

.dropdown-item {
    font-weight: 500;
    color: #2c3e50;
    padding: 8px 16px;
}

.dropdown-item:hover {
    background-color: #f4f9fc;
    color: #0288d1;
}