* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1b1b1b;
    min-height: 100vh;
}

.menu-toggle {
    display: none;
    background: #004d00;
    color: white;
    border: none;
    font-size: 1.5rem;
    padding: 6px 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.25s ease;
    
    /* FIX: Force button to hold its alignment positions inside structural flexboxes */
    align-items: center;
    justify-content: center;
}

.menu-toggle:hover {
    background: #006600;
}

/* ================= CAPSULE NAVBAR ================= */
.sticky-top {
    position: relative;
    margin: 25px auto 10px auto;
    width: 95%; 
    max-width: 1200px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 30px; 
    
    background-color: #ffffff;
    border: 1px solid rgba(0, 77, 0, 0.15);
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    min-height: 70px; 
    height: auto; 
}

.nav-logo img {
    height: 45px; 
    max-width: 100%;
    width: auto;
    display: block;
}

nav {
    display: flex;
    align-items: center;
    gap: 15px; 
    margin-left: auto;
    flex-wrap: wrap; 
    justify-content: flex-end;
}

nav a, .dropdown a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-family: Arial, sans-serif;
    font-size: 15px;
    white-space: nowrap;
    transition: color 0.3s ease, background-color 0.3s ease;
    padding: 6px 12px;
    border-radius: 10px;
}

nav > a:hover, .dropdown > a:hover {
    color: #004d00;
    background-color: rgba(0, 77, 0, 0.08);
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none; 
    position: absolute;
    background-color: white;
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
    z-index: 10000;
    top: 100%; 
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.dropdown::after {
    display: none;
}

.dropdown-content a {
    display: block;
    padding: 10px 12px;
    color: #333;
}

.dropdown-content a:hover {
    background-color: rgba(0, 77, 0, 0.08);
    color: #004d00;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.nav-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.dropdown:hover .nav-arrow {
    transform: rotate(90deg);
    color: #004d00;
}

/* ================= CONTENT WRAPPER ================= */
.wrapper {
    background: linear-gradient(to top, #e8f5e9 70%, white);
}

.main-content {
    max-width: 1200px;
    width: 90%;
    margin: 20px auto 60px;
}

.profile-container {
    max-width: 1100px; 
    width: 90%; 
    background: #ffffff; 
    padding: 40px;
    text-align: center;
    box-sizing: border-box;
}

.profile-header h2 {
    color: #004d00;
    margin: 0 0 30px 0;
    font-size: 28px;
    text-align: left;   
}

.profile-header h2::after {
    content: "";
    display: block;
    width: 100%;         
    height: 1px;          
    background: green;
    margin: 10px auto 0;  
    border-radius: 10px;  
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #004d00;
    margin-bottom: 15px;
    text-align: left;
}

.section-content {
    font-size: 16px;
    color: #444;
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #eee;
    text-align: justify;
    line-height: 1.6;
}

/* ================= LOGO ADJUSTMENT ================= */
.reveal-container {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s ease-out;
    margin-top: 20px;
    text-align: center;
}

.reveal-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.tagline-text {
    display: block;
    margin-top: 15px;
    color: #004d00;
    font-weight: bold;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ================= SYMBOLISM LIST ================= */
.symbolism-list {
    list-style-position: outside; 
    list-style-type: lower-alpha;
    padding-left: 25px;
    margin: 0;
}

.symbolism-list li {
    margin-bottom: 15px;
    text-align: justify;
    line-height: 1.6;
    padding-left: 10px; 
}

/*================ REQUIRED ASTERISK =============*/
.required-asterisk {
    color: #d9534f;
    font-size: 18px;
    margin-left: 3px;
    font-weight: bold;
}

/* ================= RESPONSIVE STACKING ================= */
@media screen and (max-width: 1100px) {
    .sticky-top {
        flex-direction: row;          
        justify-content: space-between; /* FIX: Keeps structural elements pushed to left and right boundaries */
        align-items: center;          
        gap: 15px;                     
        border-radius: 30px;
        padding: 10px 24px;
        width: 90%;
        height: auto; 
        min-height: 70px;
        flex-wrap: wrap;              
    }

    /* FIX: Force explicit Flexbox assignments so components line up accurately */
    .menu-toggle {
        order: 1;
    }
    
    .nav-logo {
        order: 2;
        margin-right: auto; /* FIX: Anchors logo tight to the left next to the hamburger button */
    }

    nav {
        flex-direction: column;
        gap: 5px;
        margin-left: 0;
        width: 100%;
        align-items: center; 
        order: 3;                     
    }

    .dropdown {
        width: 100%; 
        display: flex;
        flex-direction: column;
        align-items: center; 
    }

    nav a, .dropdown > a {
        font-size: 14px;
        padding: 10px 0;
        width: 100%;
        text-align: center;
        display: block;
    }

    .dropdown-content {
        position: static; 
        transform: none !important; 
        left: auto !important;
        margin: 5px 0;
        width: 100%;
        max-width: 250px; 
        background: rgba(0, 77, 0, 0.05); 
        border-radius: 10px;
        border: none;
        box-shadow: none;
        display: none; 
        pointer-events: auto;
    }

    .dropdown-content a {
        width: 100%;
        text-align: center;
        padding: 12px 0;
        font-size: 13px;
        border-radius: 0; 
    }

    .dropdown:hover .dropdown-content {
        display: flex; 
        flex-direction: column;
        align-items: center;
    }

    .nav-logo img {
        height: 45px; 
        max-width: 100%;
        width: auto;
        display: block;
    }
}

@media screen and (max-width: 900px) {
    .menu-toggle {
        display: inline-flex; /* Shows burger icon appropriately on mobile breakpoints */
        order: 1;
    }

    .nav-logo {
        order: 2;
        margin-right: auto; /* Keeps logo linked cleanly next to button on smaller viewports */
    }

    .sticky-top {
        justify-content: flex-start; /* Aligns left elements gracefully */
        gap: 15px;
    }

    .sticky-top nav {
        display: none;                
        width: 100%;
        margin-top: 12px;
        order: 3;
    }

    .sticky-top nav.open {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 10px 0 0 0;
    }

    .sticky-top .dropdown,
    .sticky-top nav > a {
        width: 100%;
        text-align: center;
    }

    .sticky-top .dropdown-content {
        width: 100%;
        position: static;
        opacity: 1;
        visibility: visible;
        display: block;
        transform: none;
        margin: 6px 0 0 0;
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 12px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
        pointer-events: auto;
    }

    .sticky-top .dropdown-content a {
        width: 100%;
        padding: 12px 0;
    }

    .sticky-top nav > a:hover,
    .sticky-top .dropdown > a:hover {
        color: #004d00;
        background-color: rgba(0, 77, 0, 0.08);
    }

    .sticky-top .nav-arrow {
        display: inline-block;
        transition: transform 0.3s ease;
        transform: rotate(90deg);     
    }
    
    .nav-logo img {
        height: 35px;     
        width: auto;            
        margin-bottom: 0;             
    }
}

/* ================= BACK TO TOP BUTTON (FIXED) ================= */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background-color: darkgreen;
    color: white;
    border: 2px solid #F0AA18;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: 0.3s;
    animation: pulsate 2s infinite;
}

@keyframes pulsate {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(240, 170, 24, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(240, 170, 24, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(240, 170, 24, 0); }
}

#backToTop:hover {
    background-color: #F0AA18;
    color: darkgreen;
    animation: none; 
}

@media screen and (max-width: 1000px) {
    #backToTop { right: 20px; bottom: 20px; }
}

/* ================= TABS SYSTEM ================= */
.tabs-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; 
    background: #ffffff;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    border-bottom: 2px solid #004d00;
}

.tab-link {
    background-color: inherit;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 15px 12px;
    transition: 0.3s;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    box-sizing: border-box; 
    text-align: center;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* CONFLICT FIXED: Removed the forced width property here so pages can choose grid or flex layouts */
}

.tab-icon {
    width: 24px;
    height: 24px;
    object-fit: scale-down;
}

.tab-link:hover { 
    background: linear-gradient(to top, #e8f5e9 10%, #ffffff) !important; 
    color: #004d00 !important; 
}

.tab-link.active {
    background: linear-gradient(to top, #e8f5e9 30%, #ffffff) !important;
    color: #004d00 !important;
    border-bottom: 3px solid green;
}

.tab-content {
    display: none;
    padding: 40px 30px;
    background: white;
    border: 1px solid #eee;
    border-top: none;
    animation: fadeInContent 0.4s ease-in-out;
}

.tab-content.active { display: block; }

@keyframes fadeInContent {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================= TABLE STYLING ================= */
.deposit-table-wrapper { overflow-x: auto;
 }

.deposit-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
}

.deposit-table th {
    background-color: #f8f9fa;
    color: #333;
    font-weight: 700;
    padding: 15px;
    border: 1px solid #dee2e6;
    text-align: center;
    text-transform: uppercase;
    font-size: 12px;
}

.deposit-table td {
    padding: 15px;
    border: 1px solid #dee2e6;
    text-align: center;
    color: #555;
    font-size: 14px;
}

.product-desc {
    font-size: 16px;
    color: #444;
    margin-bottom: 25px;
    line-height: 1.6;
}

.deposit-table th:nth-child(3),
.deposit-table td:nth-child(3) {
    width: 220px; 
}

/* ================= BUTTONS CONTAINER ================= */
.btn-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

/* CONFLICT FIXED: Updated background gradient with high contrast for legible white text */
.btn-open-account {
    background: linear-gradient(to right, #248232, #56ab63); 
    color: #ffffff;
    padding: 14px 45px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}

.btn-open-account:hover {
    background: linear-gradient(to right, #1b6625, #448f50);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.text-left {
    text-align: left !important;
}

@media screen and (max-width: 768px) {
    /* Safe layout fallback targets */
    .tabs-container .tab-link { flex: 100%; border-right: none; border-bottom: 1px solid #ddd; }
    .plain-profile-image { width: 160px; top: -90px; }
    .profile-container { padding-top: 60px; }
}

/* ================= FOOTER ================= */
footer {
    background: linear-gradient(to left, #004d00 30%, #9ACD32);
    color: white; 
    padding-top: 40px;
    width: 100%;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 30px 20px;
    flex-wrap: wrap;
    gap: 25px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h3 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 12px;
}

.footer-privacy-link {
    font-size: 16px;
    color: #ffffff !important;
    text-decoration: none;
}

.footer-privacy-link:hover {
    text-decoration: underline;
}

.footer-column p {
    font-size: 15px;
    color: #ffffff; 
    line-height: 1.5;
}

.footer-divider {
    width: 1px;
    background-color: rgba(255, 255, 255, 0.3); 
    height: 300px;
}

.locate-btn {
    display: inline-flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    margin-top: 6px;
    transition: color 0.3s;
}

.locate-btn:hover {
    text-decoration: none;
    color: #F0AA18;
}

.member-logos-container {
    background-color: #ffffff;
    padding: 12px 16px;
    border-radius: 10px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 5px;
}

.member-logos img {
    height: 32px;
    margin-right: 5px;
    vertical-align: middle;
}

.member-logos img:last-child {
    margin-right: 0;
}

.footer-bottom {
    text-align: center;
    padding: 15px;
    background: linear-gradient(to left, #004d00 30%, #9ACD32);
    font-size: 15px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}