/* Critical Font Loading */
@font-face {
    font-family: 'IDLEWILD';
    /* Local sources first for priority */
    src: local('IDLEWILD Bold'), 
         local('Idlewild-Bold'),
         url('../assets/fonts/IDLEWILD-Bold.woff') format('woff'),
         /* CDN URL as fallback */
         url('https://magz.s3.us-east-1.amazonaws.com/assets/web_fonts/Idlewild+Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IDLEWILD';
    /* Local sources first for priority */
    src: local('IDLEWILD Light'), 
         local('Idlewild-Light'),
         url('../assets/fonts/IDLEWILD-Light.woff') format('woff'),
         /* CDN URL as fallback */
         url('https://magz.s3.us-east-1.amazonaws.com/assets/web_fonts/Idlewild+Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham HTF';
    /* Local sources first for priority */
    src: local('Gotham HTF Ultra'), 
         local('GothamHTF-Ultra'),
         url('../assets/fonts/GothamHTF-Ultra.woff') format('woff'),
         /* CDN URL as fallback */
         url('https://magz.s3.us-east-1.amazonaws.com/assets/web_fonts/GothamHTF-Ultra.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham HTF';
    /* Local sources first for priority */
    src: local('Gotham HTF Light'), 
         local('GothamHTF-Light'),
         url('../assets/fonts/GothamHTF-Light.woff') format('woff'),
         /* CDN URL as fallback */
         url('https://magz.s3.us-east-1.amazonaws.com/assets/web_fonts/Gotham+HTF+Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* Brand Variables - Single Source of Truth */
:root {
    /* MAGZ Brand Colors - From Brand Guide */
    --primary-orange: rgb(255, 123, 0);
    --primary-blue: rgb(4, 102, 200);
    --dark-gray: rgb(102, 102, 102);
    --light-gray: rgb(230, 230, 230);
    
    /* Background Gradients */
    --bg-gradient: linear-gradient(to bottom, #0B0F1C, #151A2E);
    --brand-gradient: linear-gradient(45deg, var(--primary-orange), var(--primary-blue));
    
    /* Typography System */
    --font-headers: 'IDLEWILD', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-subheaders: 'Gotham HTF', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Gotham HTF', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Animation Timings */
    --transition-fast: 0.3s;
    --transition-medium: 0.5s;
    --transition-slow: 0.8s;
    
    /* Z-index Layers */
    --z-nav: 1000;
    --z-modal: 2000;
    --z-cursor: 9999;
}

/* Loading States and Fallbacks */
.fonts-loading {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.fonts-failed {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.initialization-error {
    /* Simplified gradients and animations when initialization fails */
    --bg-gradient: linear-gradient(to bottom, #0B0F1C, #151A2E) !important;
    --brand-gradient: linear-gradient(45deg, var(--primary-orange), var(--primary-blue)) !important;
}

.disable-animations * {
    animation: none !important;
    transition: none !important;
}

.image-load-error {
    position: relative;
    background: rgba(255, 123, 0, 0.1);
}

.image-load-error::after {
    content: 'Image loading error';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-orange);
    font-family: var(--font-subheaders);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Ensure critical UI elements are visible even when styles fail */
.main-nav {
    background-color: #0B0F1C !important;
}

.contact-btn {
    background-color: white !important;
    color: black !important;
}

/* Ensure text remains readable */
.hero-title {
    color: white !important;
    -webkit-text-fill-color: white !important;
}

.service-item {
    background-color: rgba(11, 15, 28, 0.3) !important;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-gradient);
    color: white;
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography System */
h1, h2, h3, h4 {
    font-family: var(--font-headers);
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: text-shadow 0.3s ease;
    overflow-wrap: break-word; /* Add word wrapping */
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
    letter-spacing: -0.03em;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

h1:hover {
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Override the gradient hero title styles with solid color */
.hero-title {
    font-family: var(--font-headers);
    font-weight: 900;
    line-height: 0.9;
    margin: 0 0 0.15rem 0; /* Further reduced from 0.8rem to 0.15rem */
    text-transform: none;
    letter-spacing: -0.01em;
    color: white;
    display: block;
    text-align: left;
    
    /* Override gradient styles */
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: white;
    animation: none;
    background-size: auto;
    filter: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    
    /* Force browser refresh */
    position: relative;
}

/* Special styles for the two-line title */
.two-line-title {
    display: block !important;
    position: relative !important;
    padding-bottom: 0.5em !important;
}

.two-line-title .title-line {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    position: relative !important;
}

.two-line-title .title-line.first {
    font-size: clamp(2.5rem, 4vw, 4.5rem) !important;
    font-weight: 900 !important;
    margin-bottom: 0.1em !important;
    letter-spacing: -0.02em !important;
    color: rgba(255, 255, 255, 0.9) !important;
    position: relative !important;
    z-index: 2 !important;
    text-transform: uppercase !important;
}

.two-line-title .title-line.second {
    font-size: clamp(3.5rem, 10vw, 12rem) !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    margin-top: -0.05em !important;
    letter-spacing: -0.03em !important;
    position: relative !important;
    z-index: 1 !important;
    line-height: 0.85 !important;
    white-space: nowrap !important;
}

/* Styles for the two-line title approach */
.title-line {
    display: block;
    opacity: 1 !important; /* Force visibility */
}

.title-line.first {
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    font-weight: 500;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
    animation-delay: 0.2s;
    opacity: 1 !important; /* Force visibility */
    transform: translateY(0) !important; /* Force position */
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: -0.02em;
}

.title-line.second {
    font-size: clamp(3.5rem, 10vw, 12rem);
    font-weight: 900;
    text-transform: uppercase;
    margin-top: -0.05em;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
    animation-delay: 0.4s;
    opacity: 1 !important; /* Force visibility */
    transform: translateY(0) !important; /* Force position */
    letter-spacing: -0.03em;
    line-height: 0.85;
    white-space: nowrap;
}

/* Update subtitle styles */
.hero-subtitle {
    font-family: var(--font-subheaders);
    font-weight: 300;
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    max-width: 480px;
    margin: 0;
    text-align: left;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
    animation-delay: 0.6s;
    opacity: 1 !important; /* Force visibility */
    transform: translateY(0) !important; /* Force position */
    
    /* Make sure these override previous styles */
    text-transform: none;
    letter-spacing: normal;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background: #0F0F0F;
    overflow: hidden;
    padding: 0;
}

/* Previous background styles commented out
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../gross_photo_assets/studio_photo_fieldDay.jpg') center/cover no-repeat;
    filter: grayscale(100%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(to bottom, rgba(8, 12, 24, 0.85), rgba(8, 12, 24, 0.8)),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.98;
    mix-blend-mode: overlay;
    z-index: 2;
    backdrop-filter: blur(3px);
}
*/

/* Video container and related styles */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    z-index: 1;
    filter: grayscale(100%) brightness(0.7) contrast(1.2);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 2;
}

.pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        /* Simple dot matrix pattern */
        radial-gradient(circle at center, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 3;
    opacity: 0.75;
    /* The animated dots will be added via JavaScript */
}

/* Container for the animated dots */
.animated-dots-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

/* Style for individual animated dots */
.animated-dot {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    pointer-events: none;
}

/* Pattern behind header text removed as requested */
.hero-content::before {
    display: none;
}

/* Hero inner container */
.hero-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 4;
    padding: 0 8%;
    transform: translateY(17.5%); /* Move header content down by 17.5% from center */
}

/* Updated hero content styles */
.hero-content {
    max-width: 1400px;
    margin: 0;
    text-align: left;
    opacity: 1;
    position: relative;
    z-index: 3;
}

/* Mission Statement Section */
.mission {
    padding: clamp(6rem, 10vw, 10rem) 2rem;
    background: linear-gradient(to bottom, rgba(11, 15, 28, 0.3), rgba(11, 15, 28, 0.5));
    text-align: center;
    position: relative;
    min-height: fit-content;
}

.circle-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 0;
    width: 100%;
}

.circle-container h2 {
    font-size: clamp(1.5rem, 3vw, 2.75rem);
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 auto;
    position: relative;
    max-width: 95%;
    padding: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.circle-outline {
    width: 100%;
    height: 1px;
    background: var(--brand-gradient);
    opacity: 0.5; /* Increased opacity */
    position: absolute;
    top: -4rem;
    left: 0;
}

.circle-container::after {
    content: '';
    position: absolute;
    bottom: -4rem;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--brand-gradient);
    opacity: 0.5; /* Increased opacity */
}

/* What We Do Section */
.services {
    padding: clamp(6rem, 10vw, 10rem) 2rem;
    /* Subtle integration of primary blue into the background */
    background: linear-gradient(to bottom, rgba(4, 102, 200, 0.05), rgba(11, 15, 28, 0.8)); 
    position: relative;
}

.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
    border-top: 1px solid rgba(255, 123, 0, 0.2);
    border-bottom: 1px solid rgba(255, 123, 0, 0.2);
    padding: 1px 0;
}

.section-title {
    font-size: clamp(2rem, 5vw, 4rem);
    text-align: center;
    margin-bottom: 4rem;
    color: white;
    font-family: var(--font-headers);
    white-space: normal; /* Allow text wrapping */
    overflow: visible;
}

/* Service Items */
.service-item {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    display: flex;
    height: auto; /* Ensure service item can grow with its content */
    overflow: visible; /* Ensure it doesn't clip its own content */
    flex-direction: column;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: rgba(11, 15, 28, 0.3);
    overflow-wrap: break-word;
    word-wrap: break-word;
    border-bottom: 1px solid rgba(255, 123, 0, 0.2);
}

.service-item:last-child {
    border-bottom: none;
}

.service-item-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
}

.number {
    font-family: var(--font-subheaders);
    font-size: 1rem;
    color: var(--primary-orange);
    min-width: 2rem;
}

.expand-icon {
    color: var(--primary-orange);
    font-size: 1.2rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.service-item.expanded .expand-icon {
    transform: rotate(45deg);
}

.service-item-header h3 {
    flex: 1;
    margin: 0;
    font-size: clamp(1rem, 3vw, 1.4rem);
    font-family: var(--font-subheaders);
    font-weight: 800;
    line-height: 1.3;
    white-space: nowrap;
    overflow: visible;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.service-item-content {
    max-height: 0;
    opacity: 0;
    transition: all 0.3s ease;
    overflow: hidden;
    margin-left: 4rem;
}

.service-item.expanded {
    height: auto; /* Explicitly allow height to adjust to content */
    background: rgba(11, 15, 28, 0.5);
    border-left: 2px solid var(--primary-orange);
    background: linear-gradient(
        to right,
        rgba(255, 123, 0, 0.08),
        rgba(11, 15, 28, 0.5) 15%
    );
    box-shadow: inset 0 1px 0 0 rgba(255, 123, 0, 0.1);
}

.service-item.expanded .service-item-content {
    max-height: none; /* Allow content to expand to its natural height */
    opacity: 1;
    margin-top: 2rem;
    overflow: visible !important; /* Attempt to force visibility of all content */
}

.service-item-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 65ch;
}

.service-item-content ul {
    list-style: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-item-content li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-item-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-orange);
}

/* Add fallback styles for video loading failures */
.video-fallback .hero-video-container {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('../gross_photo_assets/studio_photo_fieldDay.jpg') center/cover no-repeat;
    filter: grayscale(100%);
}

.video-fallback .hero-video {
    display: none;
}

/* Responsive styles for different screen sizes */
/* NOTE: Component-specific overrides (e.g., .service-item, .footer-bottom) 
   have been moved to responsive-utilities.css for better organization. */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Removed .service-item-header h3 override */
}

@media (max-width: 992px) {
    .hero-inner {
        padding: 0 5%;
    }
    
    .title-line.first {
        font-size: clamp(2rem, 3.5vw, 4.5rem) !important;
    }
    
    .title-line.second {
        font-size: clamp(4rem, 8vw, 9rem) !important;
    }
    /* Removed .service-item-content margin override */
    /* Removed .footer-title override */
}

@media (max-width: 768px) {
    .split-content {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "carousel"
            "content";
    }
    
    .content-right {
        padding: 2rem 1rem;
    }
    
    /* Adjust gradient text for mobile */
    .gradient-text {
        font-size: clamp(1.5rem, 8vw, 2.5rem);
        letter-spacing: 0.02em;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        max-width: 90%;
    }
    /* Removed .service-item overrides */
    /* Removed .service-item-header gap override */
    /* Removed .service-item-content margin override */
    
    /* Mobile Menu Button Styles - Keep here or move to navbar-responsive? 
       Keeping here for now as it relates to general layout interaction */
    .mobile-menu-button {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 24px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
        margin-right: 1rem;
    }
    
    .mobile-menu-button span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: white;
        border-radius: 2px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* Hamburger to X animation */
    .mobile-menu-button.active span:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }
    
    .mobile-menu-button.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-button.active span:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }
    
    /* Mobile Navigation Styles - Keep here or move to navbar-responsive? 
       Keeping here for now as it relates to general layout interaction */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(11, 15, 28, 0.95);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 1000;
        padding: 2rem;
        backdrop-filter: blur(10px);
    }
    
    .nav-links a {
        font-size: 1.2rem;
    }
    /* Removed .footer-bottom overrides */
}

/* Medium-small screens like Pixel devices */
@media (max-width: 576px) {
    .hero-inner {
        padding: 0 1rem;
    }
    
    .title-line.first {
        font-size: clamp(1.5rem, 2.5vw, 2rem) !important;
    }
    
    .title-line.second {
        font-size: clamp(2.8rem, 7vw, 4.5rem) !important;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-top: 1rem;
        max-width: 100%;
    }
    /* Removed .service-item-header h3 override */
    /* Removed .service-item-content margin override */
    
    /* Adjust gradient text for small mobile screens */
    .gradient-text {
        font-size: clamp(1.2rem, 7vw, 2rem);
        letter-spacing: 0.01em;
    }
    
    .section-title {
        font-size: clamp(1.8rem, 4vw, 3rem);
    }
}

@media (max-width: 480px) {
    .hero-inner {
        padding: 0 1rem;
    }
    
    .title-line.first {
        font-size: 1.5rem !important;
    }
    
    .title-line.second {
        font-size: 2.8rem !important;
    }
    /* Removed .service-item padding override */
    /* Removed .service-item-header gap override */
    /* Removed .service-item-content margin override */
    /* Removed .number min-width override */
}

/* Extra small screens */
@media (max-width: 375px) {
    .gradient-text {
        font-size: clamp(1rem, 6vw, 1.5rem);
    }
    /* Removed .service-item-header h3 override */
}

/* High-resolution devices with small viewports (like Pixel 9 Pro XL) */
@media (min-width: 390px) and (max-width: 767px) and (min-resolution: 2dppx) {
    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Removed .service-item-header h3 override */
    /* Removed .service-item-content margin override */
    /* Removed .service-item padding override */
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.2rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: linear-gradient(to right, rgba(8, 12, 24, 0.95), rgba(11, 15, 28, 0.95));
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 123, 0, 0.1);
}

.nav-logo {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0.15rem 0;
    margin-right: auto;
}

.nav-logo-img {
    height: 38px;
    transition: all 0.3s ease;
    opacity: 1;
    transform-origin: left center;
    margin-top: -4px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.nav-logo-img:hover {
    opacity: 1;
    transform: translateY(-1px);
}

/* Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Highlights Section */
.highlights {
    padding: clamp(6rem, 10vw, 10rem) clamp(1rem, 3vw, 2rem);
    background: linear-gradient(to bottom, rgba(11, 15, 28, 0.5), rgba(11, 15, 28, 0.3));
    position: relative;
    overflow: hidden;
}

/* Brands Section */
.brands {
    padding: clamp(8rem, 12vw, 12rem) 2rem; /* Increased vertical padding */
    background: linear-gradient(to bottom, rgba(11, 15, 28, 0.5), rgba(11, 15, 28, 0.3));
    position: relative;
    overflow: hidden;
}

/* Ticker Group Container */
.ticker-group {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 0;
}

.ticker-group .row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 2rem;
}

/* Individual Ticker Container */
.brand-counter-container {
    padding: 1.5rem 1rem;
    text-align: center;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.brand-counter-number {
    font-family: 'IDLEWILD', sans-serif;
    font-weight: bold;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: #fff;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 12px rgba(4,102,200,0.18), 0 1px 0 #222;
    display: block;
    line-height: 1;
    white-space: nowrap;
}

.brand-counter-label {
    display: block;
    font-family: 'Gotham HTF Ultra', 'Gotham HTF', sans-serif;
    font-size: clamp(0.8rem, 1.5vw, 1.1rem);
    color: #ff7b00;
    letter-spacing: 0.12em;
    margin-top: 0.5em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Responsive adjustments for different screen sizes */
/* Extra large screens */
@media (min-width: 1400px) {
    .ticker-group {
        max-width: 1200px;
    }
}

/* Large screens */
@media (max-width: 1199.98px) {
    .ticker-group .row {
        --bs-gutter-x: 0.5rem;
    }
    
    .brand-counter-number {
        font-size: clamp(2rem, 3.5vw, 3rem);
    }
    
    .brand-counter-label {
        font-size: clamp(0.7rem, 1.2vw, 0.9rem);
    }
}

/* Medium screens */
@media (max-width: 991.98px) {
    .brand-counter-container {
        padding: 1rem 0.5rem;
        min-height: 100px;
    }
    
    .brand-counter-number {
        font-size: clamp(1.8rem, 3vw, 2.5rem);
    }
    
    .brand-counter-label {
        font-size: clamp(0.7rem, 1vw, 0.85rem);
        margin-top: 0.3em;
    }
}

/* Small screens and below */
@media (max-width: 767.98px) {
    .ticker-group {
        padding: 1rem 0;
    }
    
    .ticker-group .row {
        --bs-gutter-y: 1.5rem;
    }
    
    .brand-counter-container {
        min-height: auto;
        padding: 1rem;
    }
    
    .brand-counter-number {
        font-size: 2.5rem;
    }
    
    .brand-counter-label {
        font-size: 0.9rem;
    }
}

/* Extra small screens */
@media (max-width: 575.98px) {
    .brand-counter-number {
        font-size: 2rem;
    }
    
    .brand-counter-label {
        font-size: 0.8rem;
    }
}

/* Brand Logos Grid Styling */
.brand-logos-grid {
    margin-top: 3rem;
    padding: 2rem 0;
}

.brand-grid-title {
    font-family: var(--font-subheaders);
    font-weight: 800;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: var(--primary-orange);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.brand-logo-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    height: 120px;
    width: 100%; /* Ensure container takes full column width */
    max-width: 180px; /* Maximum container width */
    margin: 0 auto; /* Center the container */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.brand-logo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 123, 0, 0.05) 0%, 
        rgba(4, 102, 200, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.brand-logo-item:hover::before {
    opacity: 1;
}

.brand-logo-item img {
    width: 100% !important; /* Force images to fill container width */
    height: auto !important; /* Maintain aspect ratio */
    max-height: 60px !important; /* Strict height limit */
    max-width: 140px !important; /* Maximum width constraint */
    object-fit: contain !important; /* Ensure image fits within bounds */
    display: block; /* Remove any inline spacing */
    margin: 0 auto; /* Center the image */
    filter: grayscale(100%) brightness(0.8) contrast(1.1);
    opacity: 0.7;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.brand-logo-item:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 123, 0, 0.3);
    box-shadow: 0 8px 24px rgba(4, 102, 200, 0.15),
                0 4px 8px rgba(255, 123, 0, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.brand-logo-item:hover img {
    filter: grayscale(0%) brightness(1) contrast(1);
    opacity: 1;
    transform: scale(1.05);
}

/* Brand logo link styling */
.brand-logo-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.brand-logo-item a:hover {
    text-decoration: none;
}

/* Special handling for SVG logos (T-Mobile, Scheels, No Rivals) */
.brand-logo-item img[src$=".svg"] {
    width: auto !important; /* Let SVGs size naturally */
    max-width: 140px !important; /* But constrain to container */
    height: 60px !important; /* Fixed height for SVGs */
    filter: grayscale(100%) brightness(0) invert(1) opacity(0.7);
}

.brand-logo-item:hover img[src$=".svg"] {
    filter: grayscale(0%) brightness(1) invert(0) opacity(1);
}

/* Specific size adjustments for smaller logos */
.brand-logo-item img[src*="carhartt.png"],
.brand-logo-item img[src*="pga.png"],
.brand-logo-item img[src*="Brooks Logo.png"],
.brand-logo-item img[src*="Bad Birdie Logo.png"],
.brand-logo-item img[src*="GLD Logo Design.png"] {
    max-height: 80px !important; /* Increased from 60px */
    max-width: 160px !important; /* Increased from 140px */
}

/* Special handling for GLD SVG logo */
.brand-logo-item .gld-logo-svg {
    width: 80px !important; /* Increased from 60px */
    height: auto !important;
}

/* Responsive adjustments for brand logos */
@media (max-width: 1199.98px) {
    .brand-logo-item {
        height: 110px;
        padding: 1.25rem;
    }
}

@media (max-width: 991.98px) {
    .brand-logo-item {
        height: 100px;
        padding: 1rem;
    }
    
    .brand-grid-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .brand-logos-grid .row {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 0.75rem;
    }
    
    .brand-logo-item {
        height: 90px;
        padding: 0.75rem;
        border-radius: 8px;
    }
    
    .brand-grid-title {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .brand-logo-item {
        height: 80px;
        padding: 0.5rem;
    }
}


/* Footer Styles */
footer {
    padding: clamp(4rem, 8vw, 8rem) 2rem;
    background: linear-gradient(to bottom, rgba(11, 15, 28, 0.3), rgba(11, 15, 28, 0.5));
    position: relative;
}

/* --- Photo Block Section: Multi-Photo Grid --- */
.photo-block-section {
    background: linear-gradient(120deg, rgba(11,15,28,0.95) 60%, rgba(4,102,200,0.08) 100%);
    border-radius: 1.5rem;
    box-shadow: 0 4px 32px 0 rgba(4,102,200,0.07), 0 1.5px 0 rgba(255,123,0,0.04);
    margin-bottom: 3rem;
    margin-top: 3rem;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.photo-block-section .row {
    --bs-gutter-x: 0.7rem;
    --bs-gutter-y: 0.7rem;
}

.photo-block-item {
    overflow: hidden;
    border-radius: 1.1rem;
    box-shadow: 0 2px 12px 0 rgba(11,15,28,0.10);
    background: rgba(255,255,255,0.01);
    transition: transform 0.22s cubic-bezier(.4,0,.2,1), box-shadow 0.22s cubic-bezier(.4,0,.2,1);
    position: relative;
}

.photo-block-item img {
    width: 100%;
    /* height: 220px; Removed fixed height */
    aspect-ratio: 4 / 3; /* Added aspect ratio */
    object-fit: cover;
    object-position: center;
    filter: grayscale(100%) brightness(0.93) contrast(1.08);
    transition: filter 0.28s cubic-bezier(.4,0,.2,1), transform 0.22s cubic-bezier(.4,0,.2,1);
    border-radius: 1.1rem;
    display: block;
}

/* Image positioning adjustments as requested */
/* Significant adjustments */
.photo-block-section .row > div:nth-child(1) .photo-block-item img {
    object-position: center top;
}

.photo-block-section .row > div:nth-child(2) .photo-block-item img {
    object-position: center top;
}

.photo-block-section .row > div:nth-child(6) .photo-block-item img {
    object-position: center top;
}

.photo-block-section .row > div:nth-child(7) .photo-block-item img {
    object-position: center top;
}

.photo-block-section .row > div:nth-child(10) .photo-block-item img {
    object-position: center top;
}

.photo-block-section .row > div:nth-child(12) .photo-block-item img {
    object-position: center top;
}

.photo-block-section .row > div:nth-child(14) .photo-block-item img {
    object-position: center top;
}

/* Slight adjustments */
.photo-block-section .row > div:nth-child(8) .photo-block-item img {
    object-position: center 30%;
}

.photo-block-section .row > div:nth-child(13) .photo-block-item img {
    object-position: center 30%;
}

/* Very slight adjustments */
.photo-block-section .row > div:nth-child(15) .photo-block-item img {
    object-position: center 35%;
}

.photo-block-section .row > div:nth-child(16) .photo-block-item img {
    object-position: center 45%;
}

/* Portrait orientation (mobile) - set all photos to top-center */
@media (orientation: portrait) {
    .photo-block-section .photo-block-item img {
        object-position: center top !important;
    }
}

/* Remove fixed height overrides for photo grid images */
/* @media (max-width: 992px) {
    .photo-block-item img {
        height: 160px; 
    }
}
@media (max-width: 576px) {
    .photo-block-item img {
        height: 110px;
    }
} */

.photo-block-item:hover,
.photo-block-item:focus-within {
    transform: scale(1.035);
    box-shadow: 0 6px 32px 0 rgba(4,102,200,0.13), 0 2.5px 0 rgba(255,123,0,0.08);
    z-index: 2;
}

.photo-block-item:hover img,
.photo-block-item:focus-within img {
    filter: grayscale(0%) brightness(1.03) contrast(1.08);
}

@media (max-width: 992px) {
    .photo-block-item img {
        height: 160px;
    }
}
@media (max-width: 576px) {
    .photo-block-item img {
        height: 110px;
    }
    .photo-block-section {
        border-radius: 0.7rem;
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
        padding-top: 1.2rem;
        padding-bottom: 1.2rem;
    }
}

/* Footer showcase images */
.footer-showcase .brand-item {
    height: 300px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.footer-showcase .brand-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter var(--transition-medium) ease;
}

.footer-showcase .brand-item:hover .brand-image {
    filter: grayscale(0%);
}

/* First two images: top positioning */
.footer-showcase .brand-item:nth-child(1) .brand-image,
.footer-showcase .brand-item:nth-child(2) .brand-image {
    object-position: top center;
}

/* Last image: bottom positioning */
.footer-showcase .brand-item:nth-child(3) .brand-image {
    object-position: bottom center;
}

/* Make footer social icons white */
.social-links {
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
}

.social-links svg path {
    fill: white;
}

/* Remaining footer styles */

/* Careers Page Accordion Styles */
#careersFaqAccordion {
    --bs-accordion-bg: transparent;
    --bs-accordion-border-color: rgba(255, 123, 0, 0.3);
    --bs-accordion-btn-color: white;
    --bs-accordion-active-color: var(--primary-orange);
    --bs-accordion-active-bg: rgba(255, 255, 255, 0.05);
    --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(255, 123, 0, 0.25);
    --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ff7b00'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

#careersFaqAccordion .accordion-button {
    font-family: var(--font-subheaders);
    font-weight: 800;
}

#careersFaqAccordion .accordion-body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--light-gray);
    line-height: 1.7;
}

#careersFaqAccordion .accordion-body a {
    color: var(--primary-orange);
    text-decoration: underline;
}

#careersFaqAccordion .accordion-item {
    background-color: transparent; /* Ensure item background is transparent */
    border: none; /* Remove default item border if needed */
}

#careersFaqAccordion .accordion-item:not(:first-of-type) {
     border-top: 1px solid rgba(255, 123, 0, 0.3); /* Add border between items */
}

/* Partnership Expertise Section Styles */
.partnership-expertise {
    border-radius: 12px; /* Optional: Add rounded corners */
    margin: 3rem 0; /* Add some vertical spacing */
    padding: clamp(3rem, 6vw, 5rem) 0; /* Adjust padding */
    background: linear-gradient(180deg, rgb(255, 123, 0) 0%, rgb(230, 110, 0) 100%); /* Orange gradient background */
}

/* Adjust text colors for orange background */
.partnership-expertise h2,
.partnership-expertise h3 {
    color: white; /* White color for headings */
    text-shadow: none; /* Remove text shadow */
}

.partnership-expertise p,
.partnership-expertise .partnership-list li {
    color: var(--light-gray); /* Use light gray for body text */
}

.partnership-expertise .nav-tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* Light border for contrast */
    position: relative; /* Needed for the absolute positioned indicator */
}

.partnership-expertise .nav-link {
    color: var(--light-gray); /* Light gray for inactive tabs */
    background-color: transparent;
    border: none;
    border-bottom: 3px solid transparent; /* Keep transparent border for spacing */
    transition: color 0.3s ease; /* Only transition color */
    font-size: clamp(1rem, 1.8vw, 1.2rem); /* Responsive font size */
    padding: 0.75rem 1.5rem; /* Adjust padding */
    margin: 0 0.5rem; /* Adjust spacing */
    position: relative; /* Needed for z-index */
    z-index: 1; /* Ensure tabs are above the indicator */
}

.partnership-expertise .nav-link:hover,
.partnership-expertise .nav-link:focus {
    color: white; /* White hover */
}

.partnership-expertise .nav-link.active {
    color: white; /* White for active tab text */
    background-color: transparent;
    border-bottom-color: transparent; /* Remove static underline, indicator will handle it */
    font-weight: 800; /* Ensure active tab font weight is bold */
}

/* Style for the animated indicator */
.partnership-expertise .nav-tabs .indicator {
    position: absolute;
    bottom: -1px; /* Position just above the nav-tabs border */
    height: 3px;
    background-color: white; /* Change indicator to white for contrast on orange */
    border-radius: 1.5px;
    transition: left 0.4s cubic-bezier(0.23, 1, 0.32, 1), width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 0; /* Below the tab links */
}


.partnership-expertise .tab-content {
    padding-top: 2.5rem; /* Space between tabs and content */
}

.partnership-expertise .tab-pane h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem); /* Responsive heading size */
    margin-bottom: 1.5rem;
    color: white; /* Ensure heading color is white */
}

.partnership-expertise .partnership-list li {
    font-size: clamp(0.9rem, 1.4vw, 1rem); /* Responsive list item size */
    margin-bottom: 0.8rem; /* Adjust spacing */
    color: var(--light-gray); /* Ensure list text color is light */
}

.partnership-expertise .partnership-list span {
    min-width: 1.5em; /* Ensure bullet points align */
    display: inline-block;
    text-align: center;
}

/* Style bullet points differently for each tab */
#university-content .partnership-list span {
    color: var(--primary-orange);
}

#pro-athlete-content .partnership-list span {
    color: var(--primary-blue);
}

.partnership-expertise img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partnership-expertise img:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments for the partnership section */
@media (max-width: 768px) {
    .partnership-expertise .nav-link {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
        padding: 0.6rem 1rem;
        margin: 0 0.2rem;
    }
    .partnership-expertise .tab-pane .row > div {
        text-align: center; /* Center content on smaller screens */
    }
    .partnership-expertise .tab-pane img {
        margin-bottom: 2rem; /* Add space below image on mobile */
        max-height: 300px;
    }
     .partnership-expertise .partnership-list {
        text-align: left; /* Keep list text left-aligned */
    }
}

/* Specific Careers Page Adjustments */
@media (max-width: 575.98px) {
    .careers-title {
        font-size: clamp(2.5rem, 10vw, 4rem) !important; /* Adjust clamp values for smaller screens */
        line-height: 1.1; /* Adjust line height if needed */
    }
}
