/* Global Header and Footer Styles for All Public Pages */
/* IMPORTANT: This CSS file ensures ALL pages have the exact same header and footer styling as index.html */

:root {
    --primary-color: #00a651;
    --secondary-color: #333333;
}

/* Header Styles - Consistent across all pages */
/* These styles override custom.css to ensure uniform header size */
.navbar.navbar-expand-lg.navbar-light.sticky-top {
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    padding: 15px 0 !important;
    min-height: 80px !important;
    transition: all 0.3s ease !important;
}

.navbar .navbar-brand img {
    max-height: 50px !important;
    transition: transform 0.3s ease !important;
}

.navbar .navbar-brand img:hover {
    transform: scale(1.05) !important;
}

.navbar .nav-link {
    color: var(--secondary-color) !important;
    font-weight: 600 !important;
    margin: 0 10px !important;
    position: relative !important;
    transition: color 0.3s ease !important;
}

.navbar .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar .nav-link::after {
    content: '' !important;
    position: absolute !important;
    width: 0 !important;
    height: 2px !important;
    bottom: -2px !important;
    left: 0 !important;
    background-color: var(--primary-color) !important;
    transition: width 0.3s ease !important;
}

.navbar .nav-link:hover::after {
    width: 100% !important;
}

.navbar .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar .nav-link.active::after {
    width: 100% !important;
}

/* Join/Dashboard Button - Square shape with slight curves */
/* Using multiple selectors to ensure this overrides everything */
.navbar .btn-join,
.btn-join,
a.btn-join,
.navbar a.btn-join {
    background-color: var(--primary-color) !important;
    color: white !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    border: 2px solid var(--primary-color) !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
    min-width: 80px !important;
    text-align: center !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    box-sizing: border-box !important;
}

.navbar .btn-join:hover,
.btn-join:hover,
a.btn-join:hover,
.navbar a.btn-join:hover {
    background-color: white !important;
    color: var(--primary-color) !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0, 166, 81, 0.3) !important;
    border: 2px solid var(--primary-color) !important;
}

/* Navbar Toggler Button */
.navbar-toggler {
    border: none !important;
    padding: 8px 12px !important;
    font-size: 1.2rem !important;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

/* Mobile Navigation */
@media (max-width: 991px) {
    .navbar.navbar-expand-lg.navbar-light.sticky-top {
        min-height: 70px !important;
    }
    
    .navbar .navbar-collapse {
        background-color: white !important;
        border-radius: 10px !important;
        padding: 20px !important;
        margin-top: 10px !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
    }
    
    .navbar .nav-link {
        margin: 5px 0 !important;
        padding: 10px 15px !important;
    }
    
    .navbar .btn-join {
        margin-top: 10px !important;
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        border-radius: 8px !important;
        padding: 12px 20px !important;
    }
}

/* Tablet Navigation */
@media (max-width: 768px) {
    .navbar.navbar-expand-lg.navbar-light.sticky-top {
        min-height: 65px !important;
        padding: 10px 0 !important;
    }
    
    .navbar .navbar-brand img {
        max-height: 45px !important;
    }
}

/* Footer Styles */
.footer {
    background-color: var(--secondary-color);
    color: white;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.footer-top {
    padding: 80px 0 50px;
}

.footer-logo {
    margin-bottom: 25px;
}

.footer-logo img {
    max-height: 60px;
    transition: transform 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.05);
}

.footer-about {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
    position: absolute;
    bottom: -12px;
    left: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 15px;
    font-size: 0.95rem;
}

.footer-links a::before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.footer-links a:hover {
    color: white;
    padding-left: 20px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--primary-color);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.footer-contact span {
    flex: 1;
}

.footer-contact .footer-phone,
.footer-contact .footer-email {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact .footer-phone:hover,
.footer-contact .footer-email:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
    color: white;
}

/* Payment Section */
.payment-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 600;
}

.payment-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 0 auto;
    max-width: 100%;
}

.payment-channels-img {
    height: 396px;
    width: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.payment-channels-img:hover {
    transform: scale(1.01);
}

.security-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.security-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.security-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.security-badge i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.security-badge small {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

/* Responsive adjustments for payment image */
@media (max-width: 992px) {
    .payment-channels-img {
        height: 100px;
    }
}

@media (max-width: 768px) {
    .payment-channels-img {
        height: 85px;
    }
    
    .security-badges {
        gap: 15px;
        margin-top: 18px;
    }
    
    .security-badge {
        padding: 6px 10px;
    }
    
    .security-badge i {
        font-size: 1.1rem;
    }
    
    .security-badge small {
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .payment-channels-img {
        height: 70px;
    }
    
    .security-badges {
        gap: 10px;
        margin-top: 15px;
    }
    
    .security-badge {
        padding: 5px 8px;
    }
    
    .security-badge i {
        font-size: 1rem;
    }
    
    .security-badge small {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .payment-channels-img {
        height: 60px;
    }
}

.security-info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.security-info i {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s ease;
    font-size: 0.9rem;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

/* Video Modal Styles */
.modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background-color: #fff;
    padding: 15px 20px 5px;
}

.btn-close {
    background-color: #f2f2f2;
    opacity: 1;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.btn-close:hover {
    background-color: #e0e0e0;
    transform: rotate(90deg);
}

.modal-body {
    padding: 0;
}

.ratio {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    overflow: hidden;
}

/* Responsive Navigation */
@media (max-width: 991px) {
    .navbar-brand img {
        max-height: 40px;
    }
}

@media (max-width: 767px) {
    .navbar {
        padding: 10px 0;
    }
    
    .navbar-toggler {
        padding: 5px 10px;
        font-size: 1rem;
    }
    
    .navbar-nav {
        padding: 15px 0;
    }
    
    .nav-item {
        margin: 5px 0;
    }
    
    .footer-top {
        padding: 60px 0 30px;
    }
    
    .footer [class*="col-"] {
        margin-bottom: 30px;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .navbar-brand img {
        max-height: 35px;
    }
    
    .footer-title {
        font-size: 1.2rem;
    }
    
    .footer-links a, 
    .footer-contact li,
    .footer-about,
    .footer-bottom p,
    .footer-bottom a {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .footer-bottom .col-md-6:last-child {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .footer-bottom a {
        margin: 0 !important;
    }
}