/*
Theme Name: The Jumping Gorilla
Theme URI: https://pixelvect.com/
Author: Shuvadip Sana
Author URI: https://pixelvect.com/
Description: Custom theme for The Jumping Gorilla Trail Run Series.
Version: 1.4
*/

/* Core Layout */
body { background-color: #ffffff; color: #1a202c; overflow-x: hidden; }
.site-container { width: 100%; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .site-container { padding: 0 50px; } }
@media (min-width: 1280px) { .site-container { padding: 0 150px; max-width: 100%; } }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: linear-gradient(to bottom, #ff6b00, #facc15); border-radius: 4px; }

/* Navbar */
.nav-glass {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.nav-scrolled-text a, .nav-scrolled-text span, .nav-scrolled-text i { color: #1a202c !important; }
.nav-scrolled-text a:hover { color: #ff6b00 !important; }

/* =========================================
   SIDEBAR & HEADER TRANSITIONS (FIXED)
   ========================================= */

/* --- SOCIAL SIDEBAR --- */
/* Default: White Icons (For Dark Backgrounds) */
.social-sidebar a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}
.social-sidebar a:hover {
    color: #ff6b00; /* Orange on hover */
    transform: scale(1.2);
}

/* Sidebar Lines (Default White) */
.social-sidebar::before, .social-sidebar::after {
    content: ''; width: 1px; height: 80px; margin: 0 auto; display: block;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.5));
    transition: background 0.3s ease;
}
.social-sidebar::before { background: linear-gradient(to top, rgba(255,255,255,0.5), transparent); }

/* --- DARK MODE STATE (Triggered by JS) --- */
/* When .sidebar-dark class is added, force icons to Dark Grey */
.social-sidebar.sidebar-dark a {
    color: #1f2937 !important; /* Dark Slate */
}
.social-sidebar.sidebar-dark a:hover {
    color: #ff6b00 !important;
}

/* Sidebar Lines (Switch to Dark) */
.social-sidebar.sidebar-dark::before, .social-sidebar.sidebar-dark::after {
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.3));
}
.social-sidebar.sidebar-dark::before { background: linear-gradient(to top, rgba(0,0,0,0.3), transparent); }


/* --- STICKY HEADER TRANSITIONS --- */
.logo-img { transition: opacity 0.3s ease-in-out; }

/* When NOT scrolled (Top of page) */
.logo-normal { opacity: 1; }
.logo-sticky { opacity: 0; }

/* When SCROLLED (JS adds .scrolled class to navbar) */
#navbar.scrolled .logo-normal { opacity: 0; }
#navbar.scrolled .logo-sticky { opacity: 1; }

/* Text Color Changes */
#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}
#navbar.scrolled nav a, 
#navbar.scrolled button i { 
    color: #1a202c !important; /* Dark Text */
}
#navbar.scrolled nav a:hover { 
    color: #ff6b00 !important; 
}

/* Components */
.text-gradient {
    background: linear-gradient(to right, #ff6b00, #facc15);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.scrub-text-gradient {
    background-size: 200% auto;
    background-image: linear-gradient(to right, #1a202c 50%, #ff6b00 50%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-position: 0% center;
}
.gradient-card {
    position: relative; background: #ffffff; border-radius: 0.5rem; z-index: 1;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
}
.gradient-card::after {
    content: ""; position: absolute; inset: 0; border-radius: 0.5rem; padding: 4px;
    background: linear-gradient(45deg, #ff6b00, #facc15, #ff6b00); background-size: 200% 200%;
    animation: shimmer 3s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; z-index: 10;
}
@keyframes shimmer { 0% { background-position: 0% 50%; } 100% { background-position: 0% 50%; } }

.hero-clip { clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%); }
.hero-bg-custom { background-image: url('https://thejumpinggorilla.pixelvect.com/wp-content/uploads/2026/01/MGU2024-320-scaled.jpg'); }

.tribe-img-base { width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform 0.7s ease; }

.hero-glass-cards .glass-badge { box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.floating { animation: float 4s ease-in-out infinite; }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-8px); } 100% { transform: translateY(0px); } }

.testimonial-bg { background-image: url('https://images.unsplash.com/photo-1486218119243-13883505764c?q=80&w=2072&auto=format&fit=crop'); }

/* =========================================
   WORDPRESS DROPDOWN MENU FIX
   ========================================= */

/* 1. Parent Item Styling */
.menu-item-has-children {
    position: relative; /* Essential for positioning the dropdown */
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Add a little arrow next to items with dropdowns */
.menu-item-has-children > a::after {
    content: "\f078"; /* FontAwesome Chevron Down */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 10px;
    margin-left: 6px;
    opacity: 0.7;
}

/* 2. The Dropdown Box (Hidden by default) */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px; /* Width of the dropdown */
    background: #ffffff;
    padding: 10px 0;
    border-radius: 0 0 8px 8px; /* Rounded corners at bottom */
    border-top: 4px solid #ff6b00; /* Your Brand Orange Top Border */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Animation Setup */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    z-index: 999;
}

/* 3. Show Dropdown on Hover */
.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 4. Dropdown Links Styling */
.sub-menu li {
    display: block;
    margin: 0;
}

.sub-menu li a {
    display: block;
    padding: 12px 24px;
    color: #334155; /* Slate 700 */
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f5f9; /* Light divider */
}

/* Remove default arrow from children */
.sub-menu li a::after { content: none; }

/* Hover Effect on Links */
.sub-menu li a:hover {
    background-color: #fff7ed; /* Light Orange Background */
    color: #ff6b00; /* Brand Orange Text */
    padding-left: 30px; /* Slight shift effect */
}

/* Icons support (If you add icons in WP Menu via <i> tags) */
.sub-menu li a i {
    margin-right: 10px;
    color: rgba(255, 107, 0, 0.7); /* Light Orange Icon */
}
/* =========================================
   FOOTER DYNAMIC MENU STYLING
   ========================================= */
/* =========================================
   FOOTER MENU FIX (Exact Design Match)
   ========================================= */

/* 1. Reset the UL (Remove default WP padding) */
ul.footer-dynamic-menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 2. Style the List Items (Exact Font & Spacing) */
.footer-dynamic-menu > li {
    position: relative !important;
    padding-left: 20px !important;    /* Matches original HTML */
    margin-bottom: 10px !important;   /* Matches original HTML */
    color: #cbd5e1 !important;        /* Exact Text Color */
    font-size: 14.2px !important;     /* Exact Font Size */
    font-family: "Montserrat", sans-serif !important;
    line-height: 1.6;
}

/* 3. The Orange Triangle Bullet (Exact Shape) */
.footer-dynamic-menu > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;  /* Exact positioning */
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 9px solid #ff6b00; /* Brand Orange */
}

/* 4. Link Styling (Hover Effects) */
.footer-dynamic-menu > li a {
    color: #cbd5e1 !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.footer-dynamic-menu > li a:hover {
    color: #ff6b00 !important; /* Brand Orange on Hover */
}

/* 5. Icons inside Menu (If added via the filter) */
.footer-dynamic-menu i {
    color: #ff6b00; /* Ensure icons match if present */
    margin-right: 5px;
}