:root {
    /* GLOBAL BRANDING */
    --primary-color: #0056ff;
    --secondary-color: #000;
    --accent-color: #8ddf0d;
    /* Brand Neon Lime globally */
    --bg-main: #ffffff;
    --text-main: #333333;
    --card-bg: #ffffff;
    --nav-bg: rgba(255, 255, 255, 0.9);
    --footer-bg: #f9f9f9;
    --section-shading: #ffffff;
    --transition: all 0.3s ease;
}

body.dark-mode {
    /* DARK MODE - New Brand Colors */
    --primary-color: #0056ff;
    --accent-color: #8ddf0d;
    --bg-main: #242424;
    --text-main: #f0f0f0;
    --card-bg: #1a1a1a;
    --nav-bg: rgba(5, 5, 5, 0.9);
    --footer-bg: #000;
    --section-shading: #121212;
    /* Expertise shade */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    transition: var(--transition);
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    color: var(--secondary-color);
    letter-spacing: 1px;
}

body.dark-mode .logo {
    color: #fff;
}

.logo-accent {
    color: #fff;
    background-color: var(--primary-color);
    border-radius: 20%;
    padding: 2px 6px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #666;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

body.dark-mode .nav-links a {
    color: #ccc;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Dropdown Styles */
.nav-links li.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    background: #fff;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    list-style: none !important;
    margin-top: 15px;
    z-index: 1001;
}

body.dark-mode .dropdown-menu {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-links li.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0 !important;
    margin: 0 !important;
}

.dropdown-menu a {
    display: block !important;
    padding: 12px 20px !important;
    color: #666 !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase;
}

body.dark-mode .dropdown-menu a {
    color: #ccc !important;
}

.dropdown-menu a:hover {
    background: rgba(141, 223, 13, 0.1) !important;
    color: var(--primary-color) !important;
    padding-left: 28px !important;
}

body.dark-mode .dropdown-menu a:hover {
    background: rgba(141, 223, 13, 0.05) !important;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-actions i {
    cursor: pointer;
    font-size: 1.1rem;
    color: #444;
}

body.dark-mode .nav-actions i {
    color: #ccc;
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--accent-color);
    color: #000;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 50%;
}

.login-btn {
    background: var(--secondary-color);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.login-btn:hover {
    background: var(--primary-color);
}

.theme-toggle {
    cursor: pointer;
}

.hero-full-bg {
    background-image: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url('hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    /* Contain the tilted ticker */
}

body.dark-mode .hero-full-bg {
    background-image: url('hero-bg.jpg');
}


/* Hero Section */
.hero {
    padding: 150px 0 100px;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
}

.badge {
    background: rgba(141, 223, 13, 0.1);
    color: var(--accent-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 20px;
    color: var(--accent-color) !important;
    /* Forces Lime globally */
    text-transform: uppercase;
}

body.dark-mode .hero h1 {
    color: var(--accent-color) !important;
}

.hero h1 .highlight {
    color: var(--primary-color) !important;
    /* Brand Blue for GAME globally */
}

.hero p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 35px;
}

body.dark-mode .hero p {
    color: #aaa;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.primary-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 4px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
}

.primary-btn:hover {
    background: #0046cc;
    transform: translateY(-2px);
}

.secondary-btn {
    background: #fff;
    border: 1px solid #ddd;
    color: #000;
    padding: 15px 30px;
    border-radius: 4px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
}

body.dark-mode .secondary-btn {
    background: #fff;
    color: #000;
    border: none;
}

.secondary-btn:hover {
    background: #f0f0f0;
}

/* Ticker Section */
.ticker-wrapper {
    background: var(--accent-color);
    /* Always Lime */
    padding: 15px 0;
    overflow: hidden;
    position: relative;
    z-index: 10;
    transform: rotate(-1.5deg);
    width: 110%;
    margin-left: -5%;
    margin-top: 20px;
    margin-bottom: 20px;
}

.ticker {
    display: flex;
    gap: 50px;
    animation: scroll 30s linear infinite;
}

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

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

.ticker-item {
    color: #000;
    /* Always Black text on Lime */
    font-weight: 500;
    font-size: 1.1rem;
    white-space: nowrap;
    text-transform: uppercase;
}

/* Expertise Section */
.expertise {
    padding: 100px 0;
    background-color: var(--section-shading);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color) !important;
    /* Force Brand Blue globally */
    text-transform: uppercase;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.expertise-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

body.dark-mode .expertise-card {
    background: #1a1a1a;
    /* Lighter than section bg for visibility */
    border: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .expertise-card h3 {
    color: var(--accent-color);
    /* Elite Sports Lime */
}

.expertise-card:hover {
    transform: translateY(-5px);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(77, 184, 233, 0.05);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
    margin-bottom: 25px;
    position: relative;
    border: 1px solid rgba(77, 184, 233, 0.2);
}

.icon-box i {
    z-index: 2;
    background: none !important;
    -webkit-text-fill-color: initial !important;
    background-clip: border-box !important;
}

.expertise-card:nth-child(1) .icon-box i,
.expertise-card:nth-child(3) .icon-box i {
    color: var(--primary-color) !important;
}

.expertise-card:nth-child(2) .icon-box i,
.expertise-card:nth-child(4) .icon-box i {
    color: var(--primary-color) !important;
}

.icon-box::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: currentColor;
    /* Matches the icon color */
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    border-radius: 0 4px 0 0;
}

.expertise-card h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
    color: var(--accent-color) !important;
    /* Force Lime globally */
}

.expertise-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

body.dark-mode .expertise-card p {
    color: #aaa;
}

.learn-more {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
}

.gear {
    padding: 100px 0;
    background: var(--bg-main);
    position: relative;
    overflow: hidden;
}

.gear::before {
    display: block;
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 77, 0, 0.15) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    z-index: 0;
}

.gear::after {
    content: '';
    position: absolute;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(0, 86, 255, 0.12) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    z-index: 0;
}

body.dark-mode .gear {
    background: #0a0a0a;
}

body.dark-mode .gear::before {
    background: radial-gradient(circle, rgba(141, 223, 13, 0.35) 0%, transparent 70%);
}

body.dark-mode .gear::after {
    background: radial-gradient(circle, rgba(77, 184, 233, 0.3) 0%, transparent 70%);
}

.gear .container {
    position: relative;
    z-index: 1;
}

.gear .container {
    position: relative;
    z-index: 1;
}

.orange-text,
.orange-text-small {
    color: var(--primary-color) !important;
    /* Secondary Title Blue */
}

.stat-item .number {
    color: var(--accent-color) !important;
    /* Default Lime globally for visibility on blue */
    font-size: 3.5rem;
    font-weight: 800;
}

body.dark-mode .stat-item .label {
    color: #fff;
    letter-spacing: 2px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--card-bg);
    color: var(--text-main);
    border-radius: 8px;
    padding: 15px;
    position: relative;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-mode .product-card {
    background: #252525;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    color: #000;
    z-index: 2;
}

.product-badge.new {
    background: var(--accent-color);
}

.product-badge.sale {
    background: #ff4d00;
    color: #fff;
}

.product-img {
    height: 180px;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 6px;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-info .category {
    font-size: 10px;
    font-weight: 800;
    color: var(--accent-color);
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.product-info h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.product-info .price {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.old-price {
    font-size: 0.85rem;
    text-decoration: line-through;
    color: #666;
    margin-left: 8px;
}

.add-to-cart {
    width: 100%;
    margin-top: 15px;
    background: var(--secondary-color);
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

body.dark-mode .add-to-cart {
    background: #333;
}

.product-info h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--primary-color) !important;
    /* Force Brand Blue globally */
}

.add-to-cart:hover {
    background: var(--primary-color);
}

.highlights {
    padding: 100px 0;
    background: #f0f0f0;
    /* Grey background for light mode */
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.highlights::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--section-shading);
    z-index: 1;
}

.highlights .container {
    position: relative;
    z-index: 2;
    /* Ensure content is above the overlay */
}

body.dark-mode .highlights {
    padding: 100px 0 120px;
    background: #181818;
    /* Precise darker gray for Action section in dark mode */
}

body.dark-mode .highlights::before {
    background: var(--section-shading);
}

.left-align {
    text-align: left;
    margin-left: 0;
}

.outline-text {
    -webkit-text-stroke: 1px var(--accent-color);
    color: transparent;
}

body.dark-mode .outline-text {
    -webkit-text-stroke: 1px var(--primary-color) !important;
    color: var(--primary-color) !important;
    /* Brand Blue Filled Globally in Dark Mode */
}

.highlights-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
}

.highlight-main,
.side-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    color: #fff;
}

.highlight-main img,
.side-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.highlight-main {
    height: 520px;
}

.highlight-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-item {
    height: 250px;
}

.highlight-content {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.8) 45%, rgba(0,0,0,0.4) 75%, rgba(0,0,0,0.1) 100%);
}

.event-tag {
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    display: inline-block;
}

.marathon {
    background: var(--primary-color);
    color: #fff;
}

.football {
    background: #ff4d00;
}

.crossfit {
    background: #000;
    border: 1px solid #333;
}

.highlight-content h3 {
    font-size: 1.75rem;
    margin-bottom: 10px;
}

/* Stats Section */
.stats {
    padding: 60px 0;
    background-color: var(--primary-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item .number {
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
}

.stat-item .label {
    font-size: 11px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    background-color: #fff;
    /* White bg for light mode */
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.testimonial-card {
    background: var(--card-bg-light);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body.dark-mode .testimonial-card {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.user-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.quote {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
}

body.dark-mode .testimonials {
    background-color: #000;
    /* Black bg for dark mode */
}

body.dark-mode .quote {
    color: #aaa;
}

.stars {
    color: var(--accent-color);
    font-size: 0.8rem;
}

/* Contact/Elevate Section */
.contact-elevate {
    padding: 100px 0;
    background: linear-gradient(90deg, #f8f8f8 50%, #fbf2ed 50%);
    /* 50/50 grey/skinish split */
}

.elevate-box {
    background: #fff;
    /* Solid white for light mode */
    border-radius: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

body.dark-mode .contact-elevate {
    background: linear-gradient(90deg, #181818 50%, #1d211a 50%);
    /* 50/50 dark grey/dark greenish split */
}

body.dark-mode .elevate-box {
    background: #000;
    /* Solid black for dark mode */
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.elevate-info {
    color: #fff;
    padding: 60px;
}

body:not(.dark-mode) .elevate-info {
    color: #000;
    /* Black text for light mode in solid white box */
}

.elevate-info h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.elevate-form {
    padding: 60px;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: #e5e7eb;
}

body:not(.dark-mode) .check-list li {
    color: #1f2937;
}

.check-list li i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    min-width: 22px;
    background: var(--primary-color, #8ddf0d);
    color: #000;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 700;
}

.elevate-form input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    background: #fff;
}

body.dark-mode .elevate-form input,
body.dark-mode .elevate-form select,
body.dark-mode .elevate-form textarea {
    background: #222;
    border-color: #333;
    color: #fff;
}

.submit-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 4px;
    font-weight: 800;
    width: 100%;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
}

/* Footer */
.footer {
    padding: 80px 0 30px;
    background: #000;
    /* Solid black for both modes */
    transition: var(--transition);
    color: #fff;
    /* Ensure all text defaulting in footer is white */
}

.footer .logo {
    color: #fff;
    /* Ensure 'SPORTS' text is visible in light mode */
}


.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    margin: 20px 0;
    color: #bbb;
    /* Slightly brighter than #888 for better visibility */
    font-size: 0.9rem;
}

.footer-nav h3 {
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 800;
}

.footer-nav a {
    text-decoration: none;
    color: #bbb;
    /* Brighter grey */
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-nav ul {
    list-style: none;
    color: #bbb;
}

/* Specific styling for Contact Us section */
.footer-nav:last-child h3 {
    color: #fff;
    font-weight: 900;
}

.footer-nav:last-child li {
    color: #fff;
    /* Brighter white for contact info */
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-nav:last-child i {
    color: var(--primary-color);
    /* Theme blue for contact icons */
    margin-right: 10px;
    width: 20px;
}

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

.social-links a {
    width: 35px;
    height: 35px;
    background: #1a1a1a;
    /* Unified dark bg from dark mode */
    color: #fff;
    /* Unified white icon from dark mode */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: #fff;
}

.footer-nav h3 {
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    text-decoration: none;
    color: #666;
    font-size: 0.85rem;
    transition: var(--transition);
}

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

@media (max-width: 992px) {
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .elevate-box {
        grid-template-columns: 1fr;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
}

/* ELITE SPORTS DARK MODE HEADING FIXES */
body.dark-mode .section-header h2,
body.dark-mode .highlights h2,
body.dark-mode .testimonials h2,
body.dark-mode .expertise h2,
body.dark-mode .elevate-info h2,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3 {
    color: var(--accent-color) !important;
    /* Force Brand Lime for visibility in dark mode */
}

body.dark-mode .section-header h2 .highlight,
body.dark-mode .hero h1 .highlight,
body.dark-mode .highlights h2 .outline-text,
body.dark-mode h2 .outline-text {
    color: var(--primary-color) !important;
    /* Force Brand Blue for accents in dark mode */
}


/* ========================================================= */
/* OD SPORTS: EVENT MANAGEMENT CUSTOM LAYOUT (.em-)          */
/* ========================================================= */

.em-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 5%;
}

/* BRAND TYPOGRAPHY UTILITIES */
.em-text-blue {
    color: var(--primary-color) !important;
}

.em-text-neon {
    color: var(--accent-color) !important;
}

/* CINEMATIC HERO */
.em-hero {
    height: 100vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 10vh;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.em-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, var(--bg-main) 100%);
    z-index: 1;
}

.em-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.em-hero-subtitle {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 5px;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

.em-hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(4rem, 10vw, 9rem);
    font-weight: 900;
    line-height: 0.85;
    text-transform: uppercase;
    margin: 0;
}

/* STATEMENT TYPOGRAPHY */
.em-statement {
    padding: 12vw 0;
    background: var(--bg-main);
}

.em-statement p {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-main);
    max-width: 1400px;
}

/* ZIG-ZAG EDITORIAL LAYOUT */
.em-capability-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 70vh;
}

.em-cap-image {
    background-size: cover;
    background-position: center;
    min-height: 500px;
}

.em-cap-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10% 15%;
    background: var(--section-shading);
}

.em-cap-text h2 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.em-cap-text p {
    font-size: 1.2rem;
    color: var(--text-main);
    opacity: 0.8;
    max-width: 600px;
    margin-bottom: 2rem;
}

.em-cap-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.em-cap-list li {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.em-cap-list li::before {
    content: '■';
    color: var(--primary-color);
    font-size: 1.2rem;
    line-height: 1;
}

body.dark-mode .em-cap-list li::before {
    color: var(--accent-color);
}

.em-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 86, 255, 0.1);
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 800;
    border-radius: 50px;
    margin-bottom: 2rem;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.dark-mode .em-tag {
    background: rgba(141, 223, 13, 0.1);
    color: var(--accent-color);
}

.em-capability-row.reverse .em-cap-text {
    order: 1;
}

.em-capability-row.reverse .em-cap-image {
    order: 2;
}

/* LIFECYCLE / DETAIL GRID */
.em-lifecycle {
    padding: 8vw 0;
    background: var(--bg-main);
}

.em-lifecycle-header {
    text-align: center;
    margin-bottom: 5rem;
}

.em-lifecycle-header h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-transform: uppercase;
    font-weight: 900;
}

.em-lifecycle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.em-phase-card {
    background: var(--card-bg);
    padding: 3rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

body.dark-mode .em-phase-card {
    border-color: rgba(255, 255, 255, 0.05);
}

.em-phase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.em-phase-card:hover {
    transform: translateY(-10px);
}

.em-phase-card:hover::before {
    transform: scaleX(1);
}

.em-phase-num {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: block;
}

.em-phase-card h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.em-phase-card p {
    color: var(--text-main);
    opacity: 0.8;
    font-size: 1rem;
}

/* SCALE & METRICS */
.em-impact {
    padding: 8vw 0;
    background: var(--card-bg);
}

.em-impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    border-top: 3px solid var(--primary-color);
    padding-top: 4rem;
}

.em-metric h3 {
    font-size: clamp(4rem, 8vw, 7rem);
    font-weight: 900;
    color: var(--accent-color);
    line-height: 0.9;
    margin-bottom: 1rem;
}

.em-metric p {
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
}

/* DIRECT COMMAND CONTACT */
.em-command {
    padding: 10vw 0;
    background: #000;
    /* Forcing black to make neon/blue pop aggressively */
    text-align: center;
}

.em-command h2 {
    font-size: clamp(3rem, 8vw, 7rem);
    text-transform: uppercase;
    margin-bottom: 3rem;
    line-height: 1;
    font-weight: 900;
}

.em-command-btn {
    display: inline-block;
    padding: 1.5rem 4rem;
    background: var(--accent-color);
    color: #000;
    font-weight: 900;
    font-size: 1.2rem;
    text-decoration: none;
    text-transform: uppercase;
    transition: var(--transition);
    border: 2px solid transparent;
}

.em-command-btn:hover {
    background: transparent;
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Mobile Responsiveness */
@media (max-width: 992px) {

    .em-capability-row,
    .em-capability-row.reverse {
        grid-template-columns: 1fr;
    }

    .em-capability-row.reverse .em-cap-text,
    .em-capability-row .em-cap-text {
        order: 2;
        padding: 15% 5%;
    }

    .em-capability-row.reverse .em-cap-image,
    .em-capability-row .em-cap-image {
        order: 1;
        min-height: 50vh;
    }
}

/* ================================================================
   RESPONSIVE FIXES — GLOBAL + HOMEPAGE
   ================================================================ */

/* Prevent any element from causing horizontal scroll */
html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Global image safety — no image ever overflows its container */
img {
    max-width: 100%;
    height: auto;
}

/* Form row: desktop two-column side-by-side */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.form-row input {
    margin-bottom: 0;
}

/* Hamburger button — hidden on desktop */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1002;
    flex-shrink: 0;
}
.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.mobile-menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.mobile-menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ----------------------------------------------------------------
   TABLET  768px – 1024px
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
    /* Hamburger activates for tablets too */
    .mobile-menu-toggle {
        display: flex;
    }
    .navbar .container {
        flex-wrap: wrap;
        position: relative;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        order: 10;
        background: var(--nav-bg);
        backdrop-filter: blur(15px);
        padding: 10px 0 15px;
        gap: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
    .nav-links.mobile-open {
        display: flex;
    }
    .nav-links li {
        padding: 0;
        width: 100%;
    }
    .nav-links li a {
        display: block;
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 0.9rem;
    }
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        width: 100%;
        padding: 0 0 5px 20px;
        margin-top: 0;
        display: none;
        background: rgba(0, 0, 0, 0.2);
    }
    .nav-links li.dropdown.mobile-dd-open .dropdown-menu {
        display: block;
    }
    .nav-links li.dropdown.mobile-dd-open > a i {
        transform: rotate(180deg);
    }
    .nav-actions {
        display: flex;
        gap: 6px;
        align-items: center;
    }
    .nav-actions form {
        display: none;
    }
    .nav-actions .primary-btn {
        font-size: 0.72rem !important;
        padding: 8px 12px !important;
    }
    .nav-actions .login-btn {
        font-size: 0.75rem;
        padding: 8px 10px;
    }
    .expertise-about-grid {
        gap: 40px !important;
    }
    .elevate-info h2 {
        font-size: 2.8rem;
    }
    .elevate-info,
    .elevate-form {
        padding: 40px;
    }
}

/* ----------------------------------------------------------------
   MOBILE  max 768px
   ---------------------------------------------------------------- */
@media (max-width: 768px) {

    /* -- Hamburger: show -- */
    .mobile-menu-toggle {
        display: flex;
    }

    /* -- Navbar container -- */
    .navbar .container {
        flex-wrap: wrap;
        position: relative;
    }

    /* -- Nav-actions on mobile: hide search only, keep login + CTA -- */
    .nav-actions {
        display: flex;
        gap: 6px;
        align-items: center;
    }
    .nav-actions form {
        display: none;
    }
    .nav-actions .primary-btn {
        font-size: 0.65rem !important;
        padding: 7px 10px !important;
    }
    .nav-actions .login-btn {
        font-size: 0.75rem;
        padding: 7px 10px;
    }

    /* -- Nav-actions: gap override (beats Tailwind gap-4) -- */
    .nav-actions.flex {
        gap: 6px !important;
    }

    /* -- Nav links: hidden by default, shown when toggled -- */
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        order: 10;
        background: var(--nav-bg);
        backdrop-filter: blur(15px);
        padding: 10px 0 15px;
        gap: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
    .nav-links.mobile-open {
        display: flex;
    }
    .nav-links li {
        padding: 0;
        width: 100%;
    }
    .nav-links li a {
        display: block;
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 0.9rem;
    }

    /* -- Mobile: Services dropdown -- */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        width: 100%;
        padding: 0 0 5px 20px;
        margin-top: 0;
        display: none;
        background: rgba(0, 0, 0, 0.2);
    }
    .nav-links li.dropdown.mobile-dd-open .dropdown-menu {
        display: block;
    }
    .nav-links li.dropdown.mobile-dd-open > a i {
        transform: rotate(180deg);
    }

    /* -- Hero -- */
    .hero {
        padding: 100px 0 60px;
    }
    .hero-btns {
        flex-wrap: wrap;
        gap: 12px;
    }

    /* -- Expertise two-column grid (overrides inline style) -- */
    .expertise-about-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        margin-top: 50px !important;
    }
    .expertise-about-grid > div:last-child {
        height: 260px !important;
    }

    /* -- Stats: fix iOS parallax glitch -- */
    .stats {
        background-attachment: scroll !important;
    }

    /* -- Portfolio highlights: reduce fixed heights -- */
    .highlight-main {
        height: 320px;
    }
    .side-item {
        height: 200px;
    }

    /* -- Contact / Elevate -- */
    .elevate-info,
    .elevate-form {
        padding: 35px 25px;
    }
    .elevate-info h2 {
        font-size: 2rem;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .form-row input {
        margin-bottom: 15px;
    }

    /* -- Footer word protection -- */
    .footer-nav li {
        word-break: break-word;
    }
}

/* ----------------------------------------------------------------
   VERY SMALL MOBILE  max 400px — navbar triage
   ---------------------------------------------------------------- */
@media (max-width: 400px) {
    .nav-actions .primary-btn {
        display: none !important;
    }
}

/* ----------------------------------------------------------------
   SMALL MOBILE  max 480px
   ---------------------------------------------------------------- */
@media (max-width: 480px) {
    .hero {
        padding: 85px 0 50px;
    }
    .hero h1 {
        font-size: 1.9rem;
    }
    .hero-btns {
        flex-direction: column;
    }
    .hero-btns .primary-btn,
    .hero-btns .secondary-btn {
        display: block;
        width: 100%;
        text-align: center;
    }
    .section-header h2 {
        font-size: 1.8rem;
    }
    .elevate-info {
        padding: 25px 18px;
    }
    .elevate-form {
        padding: 25px 18px;
    }
    .elevate-info h2 {
        font-size: 1.6rem;
    }
    .highlight-main {
        height: 260px;
    }
    .side-item {
        height: 180px;
    }
}

/* ================================================================
   RESPONSIVE FIXES — PAGE 2: SERVICES MAIN
   ================================================================ */

/* em-hero: fix iOS parallax on all service/about hero sections */
@media (max-width: 768px) {
    .em-hero {
        background-attachment: scroll !important;
        height: 70vh;
        min-height: 400px;
    }
    .em-hero-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
}

@media (max-width: 480px) {
    .em-hero-title {
        font-size: 1.6rem !important;
    }
    .em-hero-subtitle {
        font-size: 11px !important;
        letter-spacing: 2px !important;
    }
}

/* Services cards grid: prevent overflow when minmax(340px) > container */
@media (max-width: 380px) {
    .services-cards-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ================================================================
   RESPONSIVE FIXES — PAGE 8: PORTFOLIO
   ================================================================ */

/* Fix CSS typo: grid-template-cols → grid-template-columns
   The inline <style> uses the invalid property so this won't conflict */
.folder-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

@media (max-width: 768px) {
    /* Gallery lightbox: reduce column count from 3 to 2 */
    .gallery-grid {
        columns: 2 200px !important;
        column-gap: 15px !important;
    }
    /* Gallery overlay: reduce side padding */
    .gallery-overlay {
        padding: 70px 18px 30px !important;
    }
    .close-gallery {
        right: 18px !important;
        top: 18px !important;
    }
}

@media (max-width: 480px) {
    /* Gallery lightbox: single column on small mobile */
    .gallery-grid {
        columns: 1 !important;
    }
    /* Portfolio hero h1: reduce from clamp 3rem minimum */
    .portfolio-header h1,
    body.dark-mode .portfolio-header h1 {
        font-size: 2rem !important;
        letter-spacing: -1px !important;
    }
    /* Folder grid: explicit single column on very small screens */
    .folder-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================================================
   RESPONSIVE FIXES — PAGE 11: ABOUT
   ================================================================ */
@media (max-width: 768px) {
    /* Story section: stack two columns */
    .about-story-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    /* Stat badge: pull out of absolute, become inline block below image */
    .about-stat-badge {
        position: relative !important;
        bottom: auto !important;
        right: auto !important;
        margin-top: 20px !important;
        max-width: 100% !important;
        display: inline-block;
    }
    /* Office addresses: stack to single column */
    .about-offices-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

@media (max-width: 480px) {
    .about-story-grid {
        gap: 25px !important;
    }
}

/* ================================================================
   RESPONSIVE FIXES — PAGE 10: CUSTOM ORDERS
   (inline <style> loads after style.css — needs !important)
   ================================================================ */
@media (max-width: 768px) {
    .em-what-we-make {
        padding: 60px 0 !important;
    }
    .em-lifecycle {
        padding: 60px 0 !important;
    }
    .contact-elevate {
        padding: 60px 0 !important;
    }
    /* Stack form rows — higher specificity needed to beat inline <style> */
    .elevate-form .form-row {
        flex-direction: column !important;
        gap: 0 !important;
    }
    .elevate-form .form-row input,
    .elevate-form .form-row select {
        width: 100% !important;
        margin-bottom: 15px !important;
    }
}
@media (max-width: 480px) {
    .em-what-we-make {
        padding: 40px 0 !important;
    }
    .em-lifecycle {
        padding: 40px 0 !important;
    }
    .contact-elevate {
        padding: 40px 0 !important;
    }
}

/* ================================================================
   RESPONSIVE FIXES — PAGE 9: BLOG
   ================================================================ */

/* Blog posts: 3-col → 2-col → 1-col */
@media (max-width: 1024px) {
    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 640px) {
    .blog-posts-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Portfolio stories grid: same minmax(340px) overflow fix as services page */
@media (max-width: 380px) {
    .blog-stories-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ================================================================
   RESPONSIVE FIXES — PAGE 3: EVENT MANAGEMENT
   (inline <style> in blade loads after style.css — needs !important)
   ================================================================ */
@media (max-width: 768px) {
    .em-capabilities-new,
    .em-strategy-new {
        padding: 60px 0 !important;
    }
    .em-impact {
        padding: 60px 0 !important;
    }
    .em-lifecycle-new {
        padding: 60px 0 !important;
    }
    .em-command {
        padding: 60px 0 !important;
    }
    .em-statement {
        padding: 50px 0 !important;
    }
    .impact-content h2 {
        font-size: 2rem !important;
    }
    .em-command h2 {
        font-size: 2rem !important;
    }
    .section-header-center h2 {
        font-size: 1.8rem !important;
    }
}

@media (max-width: 480px) {
    .em-capabilities-new,
    .em-strategy-new {
        padding: 40px 0 !important;
    }
    .em-impact {
        padding: 40px 0 !important;
    }
    .em-lifecycle-new {
        padding: 40px 0 !important;
    }
    .em-command {
        padding: 40px 0 !important;
    }
    .em-statement {
        padding: 35px 0 !important;
    }
    .impact-content h2 {
        font-size: 1.6rem !important;
    }
    .em-command h2 {
        font-size: 1.6rem !important;
    }
    .impact-content p {
        font-size: 1rem !important;
    }
}

/* ================================================================
   RESPONSIVE FIXES — GLOBAL HOMEPAGE SECTIONS
   ================================================================ */

/* Reduce large section paddings on mobile */
@media (max-width: 768px) {
    .expertise {
        padding: 60px 0;
    }
    .gear {
        padding: 60px 0;
    }
    .highlights {
        padding: 60px 0 80px;
    }
    .testimonials {
        padding: 60px 0;
    }
    .stats {
        padding: 40px 0;
    }
    /* About: story heading too large after grid stacks */
    .about-story-grid > div:first-child h2 {
        font-size: 2rem !important;
    }
}

@media (max-width: 480px) {
    .expertise {
        padding: 40px 0;
    }
    .gear {
        padding: 40px 0;
    }
    .highlights {
        padding: 50px 0 60px;
    }
    .testimonials {
        padding: 40px 0;
    }
}

/* Testimonials grid: minmax(300px) overflows at very narrow screens */
@media (max-width: 360px) {
    .testimonials-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Portfolio: folder item heading on very small screens */
@media (max-width: 480px) {
    .folder-item h2 {
        font-size: 1.4rem !important;
    }
}

/* ================================================================
   RESPONSIVE FIXES — PORTFOLIO POPUP (480px and below)
   ================================================================ */
@media (max-width: 480px) {
    .gallery-overlay {
        padding: 55px 12px 25px !important;
    }
    .gallery-header h2,
    body.dark-mode .gallery-header h2 {
        font-size: 1.4rem !important;
    }
    /* Stack badge above title on very small screens */
    .gallery-title-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
    .event-initials-badge {
        width: 55px !important;
        height: 55px !important;
    }
    .event-initials-badge i {
        font-size: 1.1rem !important;
    }
    .event-initials-badge span {
        font-size: 0.5rem !important;
        letter-spacing: 1px !important;
    }
    .impact-item h4 {
        font-size: 1.4rem !important;
    }
    .close-gallery {
        top: 15px !important;
        right: 15px !important;
        font-size: 1.5rem !important;
    }
}

/* ================================================================
   RESPONSIVE FIXES — CUSTOM ORDERS ELEVATE-BOX (inline CSS override)
   The inline <style> in blade loads after style.css — needs !important
   ================================================================ */
@media (max-width: 992px) {
    .elevate-box {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
}

@media (max-width: 768px) {
    .elevate-box {
        padding: 40px 30px !important;
        gap: 35px !important;
        border-radius: 20px !important;
    }
    .elevate-info h2 {
        font-size: 2.2rem !important;
    }
    .check-list li {
        font-size: 0.9rem !important;
        gap: 10px !important;
    }
}

@media (max-width: 480px) {
    .elevate-box {
        padding: 30px 18px !important;
        gap: 25px !important;
        border-radius: 15px !important;
    }
    .elevate-info h2 {
        font-size: 1.8rem !important;
    }
    .elevate-info p {
        font-size: 1rem !important;
    }
}

/* ================================================================
   RESPONSIVE FIXES — ABOUT PAGE INLINE SECTIONS
   ================================================================ */
@media (max-width: 768px) {
    /* Stat badge: already static in existing fix, just ensure gap */
    .about-stat-badge {
        padding: 20px !important;
    }
    .about-stat-badge span:first-child {
        font-size: 2rem !important;
    }
    /* Team grid: tighten on mobile */
    .expertise-card {
        padding: 25px 15px !important;
    }
}

/* ================================================================
   RESPONSIVE FIXES — CAMPAIGN DESIGN & SERVICE PAGES
   Lifecycle list: 2-col on tablet → 1-col on mobile
   Already in inline CSS of most service pages, but global fallback:
   ================================================================ */
@media (max-width: 600px) {
    .lifecycle-list {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    .lifecycle-item {
        padding: 15px !important;
    }
}

/* ================================================================
   RESPONSIVE FIXES — GENERAL TYPOGRAPHY & PADDING (mobile polish)
   ================================================================ */
@media (max-width: 480px) {
    /* Hero subtitles on service/custom/about pages */
    .em-hero-subtitle {
        font-size: 0.7rem !important;
        letter-spacing: 1px !important;
    }
    /* Phase cards: reduce padding */
    .em-phase-card {
        padding: 20px 15px !important;
    }
    /* Cap cards: reduce padding */
    .cap-card {
        padding: 20px !important;
    }
    /* Portfolio header badge on mobile */
    .portfolio-header .badge {
        font-size: 0.65rem !important;
        padding: 4px 12px !important;
    }
    /* Impact stats numbers smaller on tiny screens */
    .impact-item h4 {
        font-size: 1.3rem !important;
    }
    /* Section header: already covered at 480px — tighten margin */
    .section-header {
        margin-bottom: 35px !important;
    }
}

@media (max-width: 360px) {
    /* Ultra-narrow: ensure em-container never overflows */
    .em-container {
        padding: 0 12px !important;
    }
    .em-hero-title {
        font-size: 1.4rem !important;
    }
    /* Folder grid cards: label text wraps safely */
    .folder-title {
        font-size: 0.9rem !important;
    }
    .folder-category {
        font-size: 0.75rem !important;
    }
}

/* Blog Card Title Customization */
.blog-card-title,
body.dark-mode .blog-card-title {
    color: var(--accent-color, #8ddf0d) !important;
    transition: color 0.3s ease;
}
.blog-card-title:hover,
body.dark-mode .blog-card-title:hover {
    color: var(--accent-color, #8ddf0d) !important;
}