/* =================================================================
   CUSTOM ADDITIONS FOR VISACLUB
   Announcement Strip, Team Page, Quick Access Boxes, etc.
   ================================================================= */

/* =================================================================
   STICKY WRAPPER FOR ALL DEVICES
   ================================================================= */

.sticky-top-wrapper {
    position: sticky;
    top: 0;
    z-index: 1001;
    width: 100%;
}

/* =================================================================
   MOBILE & TABLET SIDEBAR (up to 1023px)
   ================================================================= */

@media (max-width: 1023px) {

    /* Ensure container has proper padding on smaller screens */
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    /* Hide hamburger button when menu is active (no X button needed) */
    .mobile-menu-toggle.active {
        display: none !important;
    }

    /* Dark background for mobile sidebar */
    .main-nav {
        background: linear-gradient(135deg, #1a2332 0%, #2d3748 100%) !important;
        max-width: 320px;
        width: 85%;
    }

    /* Logo at top of sidebar */
    .main-nav::before {
        content: '';
        display: block;
        width: 120px;
        height: 60px;
        margin: 1rem auto 1.5rem;
        background-image: url('../img/visa-club.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        filter: brightness(0) invert(1);
        /* Make logo white for dark background */
    }

    /* Update text colors for dark background */
    .main-nav a {
        color: rgba(255, 255, 255, 0.9) !important;
    }

    .main-nav a:hover,
    .main-nav a.active {
        color: #1eae45 !important;
        background-color: rgba(30, 174, 69, 0.1) !important;
    }

    .main-nav li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    /* Hide close button if it exists */
    .main-nav .close-btn,
    .main-nav .sidebar-close,
    .main-nav .menu-close {
        display: none !important;
    }

    /* Style dropdown toggle for dark background */
    .main-nav .dropdown-toggle {
        color: rgba(255, 255, 255, 0.9) !important;
    }

    /* Dropdown chevron icon color */
    .main-nav .dropdown>a i {
        color: rgba(255, 255, 255, 0.7) !important;
    }

    /* Dropdown menu background for dark theme */
    .main-nav .dropdown-menu {
        background-color: rgba(0, 0, 0, 0.2) !important;
    }

    /* Dropdown menu items */
    .main-nav .dropdown-menu a {
        color: rgba(255, 255, 255, 0.85) !important;
        padding-left: 2.5rem !important;
    }

    .main-nav .dropdown-menu a:hover {
        color: #1eae45 !important;
        background-color: rgba(30, 174, 69, 0.15) !important;
    }

    /* Dropdown menu item borders */
    .main-nav .dropdown-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    }

    /* Contact button styling for dark background */
    .main-nav .nav-cta {
        border-color: #1eae45 !important;
        color: #1eae45 !important;
        background-color: transparent !important;
        font-weight: 600 !important;
        display: block !important;
        width: calc(100% - 3rem) !important;
        text-align: center !important;
        margin: 1rem 1.5rem !important;
        border: 2px solid #1eae45 !important;
        padding: 0.75rem 1.25rem !important;
        border-radius: 6px !important;
    }

    .main-nav .nav-cta:hover {
        background-color: #1eae45 !important;
        color: white !important;
    }
}

/* =================================================================
   MOBILE SPECIFIC (up to 767px)
   ================================================================= */

@media (max-width: 767px) {
    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .logo-image {
        height: 45px;
    }

    .site-header {
        padding: 0.65rem 0;
    }

    .main-nav {
        max-width: 280px !important;
        width: 90% !important;
    }

    /* Mobile hamburger positioning */
    .mobile-menu-toggle {
        padding: 0.4rem;
    }

    .hamburger-line {
        width: 1.5rem;
        height: 0.15rem;
    }
}

/* =================================================================
   TABLET SPECIFIC (768px to 1023px)
   ================================================================= */

@media (min-width: 768px) and (max-width: 1023px) {
    .logo-image {
        height: 55px;
    }

    .site-header {
        padding: 0.8rem 0;
    }

    .announcement-strip {
        padding: 0.45rem 0;
    }

    .announcement-item {
        font-size: 0.825rem;
    }
}

/* =================================================================
   COMPACT NAVBAR FOR DESKTOP - SINGLE ROW
   ================================================================= */

@media (min-width: 1024px) {

    /* Header inside sticky wrapper */
    .site-header {
        position: relative;
        padding: 0.6rem 0;
        background-color: #1a2332;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .logo-image {
        height: 50px;
    }

    .main-nav>ul {
        gap: 0.75rem;
        flex-wrap: nowrap;
        align-items: center;
    }

    .main-nav>ul>li {
        display: flex;
        align-items: center;
    }

    .main-nav>ul>li>a {
        font-size: 0.8rem;
        padding: 0.45rem 0.6rem;
        white-space: nowrap;
    }

    .nav-cta {
        padding: 0.55rem 1.1rem !important;
        font-size: 0.8rem !important;
    }

    /* Keep dropdown menu vertical and unchanged */
    .dropdown-menu {
        display: block;
    }

    .dropdown-menu li {
        display: block;
        width: 100%;
    }
}

/* =================================================================
   LARGE DESKTOP (1200px+) - More breathing room
   ================================================================= */

@media (min-width: 1200px) {
    .main-nav>ul {
        gap: 1rem;
    }

    .main-nav>ul>li>a {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }

    .logo-image {
        height: 55px;
    }

    .site-header {
        padding: 0.7rem 0;
    }
}

/* =================================================================
   ANNOUNCEMENT STRIP - RESPONSIVE
   ================================================================= */

.announcement-strip {
    background: linear-gradient(135deg, #1eae45 0%, #17a03d 100%);
    color: white;
    overflow: hidden;
    padding: 0.5rem 0;
    position: relative;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
}

/* Desktop - inside sticky wrapper */
@media (min-width: 1024px) {
    .announcement-strip {
        margin-top: -2px;
        /* Remove any potential gap between header and strip */
    }
}

/* Mobile & Tablet - both header and strip stick together in wrapper */
@media (max-width: 1023px) {
    .site-header {
        position: relative;
        z-index: 1001;
    }

    .announcement-strip {
        position: relative;
        z-index: 998;
        margin-top: 0;
    }
}

/* Mobile only - smaller text and padding */
@media (max-width: 767px) {
    .announcement-strip {
        padding: 0.4rem 0;
    }

    .announcement-item {
        font-size: 0.75rem;
        padding: 0 0.5rem;
    }

    .announcement-track {
        gap: 2rem;
    }
}

.announcement-track {
    display: flex;
    gap: 3rem;
    animation: scroll-announcement 40s linear infinite;
    width: max-content;
    align-items: center;
}

.announcement-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-announcement {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.announcement-item {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    padding: 0 1rem;
    color: white;
}

/* =================================================================
   TESTIMONIALS AUTO-SCROLL CAROUSEL (Similar to Awards)
   ================================================================= */

.testimonials-auto-scroll-section {
    padding: 5rem 0;
    background-color: #f7f8fa;
    overflow: hidden;
}

.testimonials-auto-scroll-wrapper {
    overflow: hidden;
    position: relative;
}

.testimonials-auto-scroll-track {
    display: flex;
    gap: 2.5rem;
    animation: scroll 35s linear infinite;
    width: max-content;
}

.testimonials-auto-scroll-track:hover {
    animation-play-state: paused;
}

.testimonial-auto-item {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    min-width: 400px;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.testimonial-auto-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.testimonial-auto-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.testimonial-auto-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-auto-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: #1a2332;
}

.testimonial-auto-info p {
    font-size: 0.85rem;
    color: #5a6b7d;
    margin: 0;
}

.testimonial-auto-quote {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #3d4852;
    font-style: italic;
}

.testimonial-auto-rating {
    margin-top: 1rem;
    color: #ffd700;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .testimonial-auto-item {
        min-width: 300px;
        max-width: 300px;
        padding: 1.5rem;
    }

    .testimonials-auto-scroll-track {
        gap: 1.5rem;
    }
}

/* =================================================================
   TEAM PAGE STYLES
   ================================================================= */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.team-member-card {
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 2rem;
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.team-member-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    display: block;
    border: 4px solid #1eae45;
    transition: all 0.3s ease;
}

.team-member-card:hover .team-member-image {
    border-color: #17a03d;
    transform: scale(1.05);
}

.team-member-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a2332;
    margin-bottom: 0.5rem;
}

.team-member-title {
    font-size: 0.95rem;
    color: #5a6b7d;
    margin-bottom: 0;
}

/* Team Member Modal */
.team-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.team-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-modal-content {
    background-color: white;
    margin: 2rem;
    padding: 0;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    position: relative;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.team-modal-header {
    background: linear-gradient(135deg, #1eae45 0%, #17a03d 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px 15px 0 0;
    text-align: center;
    position: relative;
}

.team-modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.team-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.team-modal-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    margin-bottom: 1rem;
}

.team-modal-header h2 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
}

.team-modal-header p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0;
    font-size: 1.05rem;
}

.team-modal-body {
    padding: 2rem;
}

.team-modal-body h3 {
    color: #1eae45;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.team-modal-body p,
.team-modal-body ul {
    color: #3d4852;
    line-height: 1.7;
}

.team-modal-body ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.team-modal-body li {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .team-modal-content {
        margin: 1rem;
        width: calc(100% - 2rem);
    }

    .team-modal-header {
        padding: 1.5rem;
    }

    .team-modal-body {
        padding: 1.5rem;
    }
}

/* =================================================================
   QUICK ACCESS DROPBOXES
   ================================================================= */

.quick-access-section {
    background: linear-gradient(135deg, #1a2332 0%, #2d3748 100%);
    padding: 3rem 0;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.quick-access-box {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.quick-access-box:hover {
    background: rgba(30, 174, 69, 0.1);
    border-color: #1eae45;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(30, 174, 69, 0.2);
}

.quick-access-icon {
    font-size: 2.5rem;
    color: #1eae45;
    margin-bottom: 1rem;
}

.quick-access-box h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.quick-access-box p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.quick-access-header {
    text-align: center;
    margin-bottom: 2rem;
}

.quick-access-header h2 {
    color: white;
    margin-bottom: 1rem;
}

.quick-access-header p {
    color: rgba(255, 255, 255, 0.8);
}

/* =================================================================
   SERVICES CTA BACKGROUND
   ================================================================= */

.services-cta-bg {
    background: linear-gradient(rgba(26, 35, 50, 0.85), rgba(45, 55, 72, 0.85)), url('../img/services-cta-bg.jpg') center/cover no-repeat !important;
    color: white;
    position: relative;
}

.services-cta-bg h2 {
    color: white !important;
    margin-bottom: 1.5rem;
}

.services-cta-bg p {
    color: rgba(255, 255, 255, 0.9) !important;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Ensure container content is relative to appear above background */