/************************************
Name: Mod.css                       *
Developer: CECOM Web-Team           *
Description: The Mod main css reference. *
*************************************/
/* Table of Contents
------------------------------------
    1. Fonts
    2. Global Styles
    3. Navigation
    4. Hero Section
    5. Mission & Vision
    6. Capabilities
    7. News Carousel
    8. Subordinate Commands
    9. Fixed Social Bar
    10. Footer
    11. Image Modal
    12. Mobile Responsive
    13. Sub-Page Template Styles
    14. Leadership Page Styles
    15. MSC Page Styles
    16. Contact Page Styles
    17. Search Styles
    18. Homepage Specific
	
COLORS
    Army Yellow: #ffcb05
*/

/* ===================================
   1. FONTS - LOAD FIRST
   =================================== */
@font-face {
    font-family: 'GI400';
    src: url('G.I.-400.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GI400Italic';
    src: url('G.I.-400Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'GI530';
    src: url('G.I.-530.ttf') format('truetype');
    font-weight: 530;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GI530Italic';
    src: url('G.I.-530Italic.ttf') format('truetype');
    font-weight: 530;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'GI750';
    src: url('G.I.-750.ttf') format('truetype');
    font-weight: 750;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GI750Italic';
    src: url('G.I.-750Italic.ttf') format('truetype');
    font-weight: 750;
    font-style: italic;
    font-display: swap;
}

/* ===================================
   FORCE CUSTOM FONTS - MUST BE FIRST
   =================================== */

/* Override Bootstrap font variables */
:root {
    --bs-body-font-family: 'GI400', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
    --bs-font-sans-serif: 'GI400', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
}

/* Force on all elements EXCEPT Font Awesome icons */
body,
body *:not([class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab):not(.fal) {
    font-family: 'GI400', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
}

/* Explicitly preserve Font Awesome fonts */
.fa, .fas, .far, .fab, .fal,
[class*="fa-"] {
    font-family: "Font Awesome 5 Free", "Font Awesome 5 Pro", "Font Awesome 5 Brands" !important;
}

/* Force bold font weight elements to use GI750 */
h1, h2, h3, h4, h5, h6,
.nav-title-container h1,
strong, b {
    font-family: 'GI750', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
}

/* Medium weight elements use GI530 */
.hero-title,
.section-title {
    font-family: 'GI530', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
}

.hero-description .highlight {
    color: #ffcb05;
    font-weight: bold;
    font-size: 1.2em;
}

/* ===================================
   2. GLOBAL STYLES
   =================================== */
* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    background: #000000;
    color: #ffffff;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
}

a {
    border-bottom: none !important;
}

    a:hover {
        background-color: none !important;
    }

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 0;
    min-height: auto;
    margin: 0 !important;
}

@media (min-width: 768px) {
    section {
        min-height: 100vh;
    }
}

main#main-content {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    overflow-x: hidden;
}

.container-fluid {
    padding: 0 !important;
    margin: 0 !important;
}

/* ===================================
   3. NAVIGATION STYLES
   =================================== */
.main-navbar {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* ===== DESKTOP LAYOUT (1800px+) ===== */
.top-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 1rem 9.5rem 1rem 9.5rem !important;
    gap: 1.5rem !important;
}

/* Army Logo Container - Horizontal logos on left */
.army-logo-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 1rem !important;
    flex-shrink: 0 !important;
}

    .army-logo-container a {
        display: flex !important;
        align-items: center !important;
        flex-shrink: 0 !important;
    }

        .army-logo-container a img {
            max-height: 65px !important;
            width: auto !important;
        }

/* Nav Title Container - Right of logos, text left-aligned */
.nav-title-container {
    flex: 0 0 auto !important;
    text-align: left !important;
    margin-left: 0.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

    .nav-title-container h1 {
        color: #ffffff !important;
        font-size: 1.6rem !important;
        font-weight: 700 !important;
        margin: 0 !important;
        letter-spacing: 1px !important;
        line-height: 1.1 !important;
        text-transform: uppercase !important;
        font-family: 'GI750', sans-serif !important;
        white-space: nowrap !important;
        text-align: left !important;
    }

    .nav-title-container p {
        text-align: left !important;
        margin: 0.3rem 0 0 0 !important;
        padding: 0 !important;
        font-size: 13px !important;
        color: #ffcb05 !important;
        font-weight: 600 !important;
        letter-spacing: 0.5px !important;
    }




/* Search Box */

/* ===================================
   SEARCH BOX - PERFECT ALIGNMENT FIX
   =================================== */
.search-container,
.cecom-search-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 250px;
    height: 45px;
}

.search-input,
.cecom-search-input {
    width: 100%;
    height: 45px;
    padding: 0 48px 0 15px; /* Exact space for button */
    border: 2px solid #ffcb05;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: #000000;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

    .search-input:focus,
    .cecom-search-input:focus {
        background: rgba(255, 255, 255, 1);
        border-color: #ffd700;
        outline: none;
        box-shadow: 0 0 0 3px rgba(255, 203, 5, 0.2);
    }

    .search-input::placeholder,
    .cecom-search-input::placeholder {
        color: rgba(0, 0, 0, 0.5);
    }

.search-submit,
.cecom-search-button {
    position: absolute;
    right: 4px; /* 4px from right edge */
    top: 4px; /* 4px from top edge */
    width: 37px; /* 45 - 8px (top+bottom spacing) */
    height: 37px; /* 45 - 8px (top+bottom spacing) */
    background: #ffcb05;
    border: none;
    border-radius: 5px; /* Slightly smaller radius */
    color: #000000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

    .search-submit:hover,
    .cecom-search-button:hover {
        background: #ffd700;
        transform: scale(1.05);
    }

    .search-submit i,
    .cecom-search-button i {
        color: #000000;
        font-size: 15px;
    }

/* Right Logos - Push to far right */
.right-logos-container {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
}

    .right-logos-container img {
        height: 60px;
        width: auto;
        transition: transform 0.3s ease;
    }

        .right-logos-container img:hover {
            transform: scale(1.05);
        }

/* Navigation Links Row */
.nav-links-bar {
    border-top: 1px solid rgba(255, 203, 5, 0.2);
    padding: 0rem 12rem 0rem 0rem;
    position: relative;
}

.navbar-nav {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
    padding: 0 2rem;
    list-style: none;
    max-width: 1400px;
    width: 100%;
}

@media (max-width: 1366px) and (min-width: 1200px) {
    .navbar-nav {
        justify-content: center;
        gap: 0.3rem;
    }

    .nav-link {
        padding: 0.6rem 0.9rem;
        font-size: 0.88rem;
    }
}

.nav-item {
    position: static;
}

.nav-link {
    color: #ffcb05 !important;
    font-weight: bold;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-size: 0.95rem;
}

    .nav-link:hover {
        background: rgba(255, 203, 5, 0.15);
        transform: translateY(-2px);
    }

/* Dropdown Arrow */
.dropdown-toggle::after {
    content: "▼";
    font-size: 0.7rem;
    margin-left: 0.5rem;
    border: none;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* DROPDOWN MEGA MENU */
.dropdown-menu.mega-menu {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    top: 100% !important;
    width: 100vw !important;
    max-width: 100vw !important;
    background-color: black;
    border: none;
    border-top: 2px solid #ffcb05;
    border-bottom: 2px solid #ffcb05;
    border-radius: 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    z-index: 990;
}

.mega-menu .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.mega-menu ul li {
    transition: all 0.3s ease;
    padding: 0.25rem 0;
    cursor: pointer;
}

    .mega-menu ul li:hover {
        color: #ffcb05 !important;
        padding-left: 0.5rem;
    }

/* Mobile Menu Button - HIDDEN ON DESKTOP */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 55px;
    height: 55px;
    background: #000000;
    border: 3px solid #ffcb05;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1100;
    transition: all 0.3s ease;
}

    .mobile-menu-btn:hover {
        border-color: #ffd700;
        box-shadow: 0 0 10px rgba(255, 203, 5, 0.5);
    }

    .mobile-menu-btn .bar {
        position: absolute;
        left: 50%;
        width: 30px;
        height: 3px;
        background: #ffcb05;
        margin-left: -15px;
        transition: all 0.3s ease;
    }

        .mobile-menu-btn .bar:nth-child(1) {
            top: 16px;
        }

        .mobile-menu-btn .bar:nth-child(2) {
            top: 26px;
        }

        .mobile-menu-btn .bar:nth-child(3) {
            top: 36px;
        }

    .mobile-menu-btn.open .bar:nth-child(1) {
        top: 26px;
        transform: rotate(45deg);
    }

    .mobile-menu-btn.open .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.open .bar:nth-child(3) {
        top: 26px;
        transform: rotate(-45deg);
    }

/* Mobile Sidebar - HIDDEN ON DESKTOP */
.sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100%;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    transition: left 0.3s ease-in-out;
    z-index: 1090;
    padding: 0;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
}

    .sidebar.show {
        left: 0;
    }

    .sidebar .nav {
        padding-top: 80px;
    }

    .sidebar .nav-link {
        color: white !important;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(255, 203, 5, 0.2);
        display: block;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
    }

        .sidebar .nav-link:hover {
            background: rgba(255, 203, 5, 0.15);
            color: #ffcb05 !important;
            padding-left: 2rem;
        }

    .sidebar .dropdown-toggle {
        position: relative;
    }

        .sidebar .dropdown-toggle::after {
            content: "+";
            position: absolute;
            right: 1.5rem;
            font-size: 1.5rem;
            border: none;
            transition: transform 0.3s ease;
        }

    .sidebar .dropdown.active .dropdown-toggle::after {
        content: "−";
    }

    .sidebar .dropdown-submenu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background: rgba(255, 203, 5, 0.05);
    }

    .sidebar .dropdown.active .dropdown-submenu {
        max-height: 500px;
    }

    .sidebar .dropdown-submenu a {
        padding: 0.75rem 2.5rem;
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.9) !important;
    }

        .sidebar .dropdown-submenu a:hover {
            background: rgba(255, 203, 5, 0.1);
            color: #ffcb05 !important;
        }

    /* Sidebar Mobile Search */
    .sidebar .mobile-search,
    .sidebar .cecom-search-container {
        padding: 1.5rem;
        border-top: 2px solid #ffcb05;
        margin-top: 1rem;
        position: relative;
    }

        .sidebar .mobile-search .search-input,
        .sidebar .cecom-search-input {
            width: 100%;
            padding-right: 45px;
        }

        .sidebar .mobile-search .search-submit,
        .sidebar .cecom-search-button {
            position: absolute;
            right: 1.75rem;
            top: 50%;
            transform: translateY(-50%);
        }

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1040;
}

    .overlay.show {
        display: block;
    }

/* ===================================
   4. HERO SECTION
   =================================== */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    background: #000000;
    margin: 0 !important;
    padding: 0 !important;
}

.hero-backgrounds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fadeSlide 15s infinite;
}

    .hero-bg-image:nth-child(1) {
        background-image: url('/Images/ASIC/RU-Open-House-JUL-2025-(1).png');
        animation-delay: 0s;
    }

    .hero-bg-image:nth-child(2) {
        background-image: url('/Images/CECOM/For Soldiers3.jpg');
        animation-delay: 5s;
    }

    .hero-bg-image:nth-child(3) {
        background-image: url('/Images/CECOM/FOR INDUSTRY.jpg');
        animation-delay: 10s;
    }

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 2;
}

    .hero-overlay::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 203, 5, 0.03) 2px, rgba(255, 203, 5, 0.03) 4px), repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255, 203, 5, 0.03) 2px, rgba(255, 203, 5, 0.03) 4px);
        opacity: 0.5;
    }

@keyframes fadeSlide {
    0%, 33.33% {
        opacity: 1;
        transform: scale(1);
    }

    33.34%, 100% {
        opacity: 0;
        transform: scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 0rem 3rem 4rem 3rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.hero-text {
    color: #ffffff;
}

.hero-subtitle {
    color: #ffcb05;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
    margin-top: 0;
    padding-top: 0;
    animation: fadeInUp 1s ease 0.4s both;
}

    .hero-title .highlight {
        color: #ffcb05;
        display: block;
    }

.hero-description {
    font-size: 1.3rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    animation: fadeInUp 1s ease 0.8s both;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #ffcb05;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Hero Capabilities Image Container */
.hero-capabilities-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 1s ease 1s both;
}

.capabilities-box {
    position: relative;
    width: 100%;
    max-width: 100%;
    background: rgba(0, 0, 0, 0.9);
    border: 3px solid #ffcb05;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 20px 60px rgba(255, 203, 5, 0.3);
    transition: all 0.3s ease;
}

    .capabilities-box:hover {
        transform: translateY(-10px);
        box-shadow: 0 30px 80px rgba(255, 203, 5, 0.4);
    }

.hero-capabilities-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

    .hero-capabilities-image:hover {
        transform: scale(1.02);
    }

.capabilities-expand-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #ffcb05;
    color: #ffcb05;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    z-index: 10;
}

    .capabilities-expand-btn:hover {
        background: #ffcb05;
        color: #000000;
        transform: scale(1.05);
    }

/* ===================================
   HERO/MISSION VIDEO DISPLAY FIX
   =================================== */

/* Desktop - both visible */
@media (min-width: 992px) {
    .hero-capabilities-container {
        display: block !important;
    }

    .mission-video-card {
        display: flex !important;
    }
}

/* Mobile - hide hero capabilities, show mission video */
@media (max-width: 991.98px) {
    .hero-capabilities-container {
        display: block !important;
    }

    .mission-video-card {
        display: flex !important;
    }

    /* Make sure mission video is properly sized */
    .video-wrapper {
        max-width: 100% !important;
    }
}

/* ===================================
   5. MISSION & VISION SECTION
   =================================== */
.mission-vision-section {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    padding: 4rem 0;
}

    .mission-vision-section .container-fluid {
        padding-left: 6rem !important;
        padding-right: 6rem !important;
    }

.mission-card,
.vision-card {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 3rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-card {
    border-bottom: 1px solid rgba(255, 203, 5, 0.2);
}

    .mission-card:hover,
    .vision-card:hover {
        transform: translateY(-5px);
    }

.icon-wrapper {
    flex-shrink: 0;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 50%;
    border: 3px solid #ffcb05;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 203, 5, 0.4), 0 4px 15px rgba(0, 0, 0, 0.5);
    position: relative;
}

.mission-card:hover .icon-wrapper,
.vision-card:hover .icon-wrapper {
    border-color: #ffd700;
    box-shadow: 0 0 40px rgba(255, 203, 5, 0.6), 0 6px 20px rgba(0, 0, 0, 0.7);
    transform: scale(1.05);
}

.icon-wrapper img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    filter: brightness(1.5) contrast(1.2);
    position: relative;
    z-index: 2;
}

.icon-wrapper i {
    color: #ffcb05;
    font-size: 3.5rem;
}

.content-wrapper {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
}

    .content-wrapper h2 {
        color: #ffffff;
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 1.5rem;
        letter-spacing: 0.5px;
        text-align: left;
        margin-left: 0;
    }

    .content-wrapper .highlight {
        color: #ffcb05;
        font-weight: 800;
    }

/* Vision header with icon on same line */
.vision-header-with-icon {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

    .vision-header-with-icon h2 {
        margin-bottom: 0 !important;
        flex: 1;
    }

    .vision-header-with-icon .icon-wrapper {
        margin: 0 !important;
        flex-shrink: 0;
    }

.info-box {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid #ffcb05;
    border-radius: 4px;
    transition: all 0.3s ease;
}

    .info-box:hover {
        background: rgba(255, 255, 255, 0.03);
        transform: translateX(10px);
        box-shadow: 0 4px 15px rgba(255, 203, 5, 0.2);
    }

    .info-box p {
        margin: 0;
        color: #FFFFFF;
        font-size: 1.1rem;
        font-weight: 600;
        line-height: 1.8;
    }

/* ===================================
   6. CAPABILITIES SECTION
   =================================== */
.capabilities-section {
    background: linear-gradient(135deg, #000000 0%, #2F372F 100%);
    padding: 0;
}

.capabilities-image-card {
    padding: 3rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .capabilities-image-card .image-wrapper {
        position: relative;
        width: 100%;
        max-width: 800px;
        overflow: hidden;
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        transition: transform 0.3s ease;
    }

        .capabilities-image-card .image-wrapper:hover {
            transform: scale(1.02);
        }

    .capabilities-image-card img {
        width: 100%;
        height: auto;
        display: block;
    }

.clickable-image {
    cursor: pointer;
    transition: all 0.3s ease;
}

    .clickable-image:hover {
        transform: scale(1.02);
    }

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(0);
    transition: all 0.3s ease;
}

    .image-overlay .image-link {
        color: #ffcb05;
        font-size: 1.1rem;
        font-weight: 700;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        transition: all 0.3s ease;
        border-bottom: 2px solid transparent;
    }

        .image-overlay .image-link:hover {
            color: #ffd700;
            border-bottom-color: #ffd700;
            gap: 0.75rem;
        }

        .image-overlay .image-link i {
            transition: transform 0.3s ease;
        }

        .image-overlay .image-link:hover i {
            transform: translateX(5px);
        }

/* Mission Video Card */
.mission-video-card {
    padding: 3rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    background: rgba(0, 0, 0, 0.9);
    border: 3px solid #ffcb05;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 20px 60px rgba(255, 203, 5, 0.3);
    transition: all 0.3s ease;
}

    .video-wrapper:hover {
        transform: translateY(-10px);
        box-shadow: 0 30px 80px rgba(255, 203, 5, 0.4);
    }

.mission-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.video-expand-fullscreen-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #FFCB05;
    color: #FFCB05;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0.9;
}

    .video-expand-fullscreen-btn:hover {
        background: rgba(255, 203, 5, 0.95);
        color: #000000;
        opacity: 1;
    }

/* Video Controls - CENTERED AT BOTTOM */
.video-controls-mission {
    position: absolute;
    bottom: 3.5rem !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.5rem;
    border-radius: 8px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

    .video-controls-mission button {
        background-color: rgba(0, 0, 0, 0.8);
        border: 2px solid #FFCB05;
        color: #FFCB05;
        padding: 8px 12px;
        cursor: pointer;
        border-radius: 4px;
        transition: all 0.3s ease;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .video-controls-mission button:hover {
            background-color: #FFCB05;
            color: #000000;
        }

    .video-controls-mission i {
        font-size: 16px;
    }

/* Show controls clearly on hover */
.video-wrapper:hover .video-expand-fullscreen-btn,
.video-wrapper:hover .video-controls-mission {
    opacity: 1;
}

.capabilities-content-card {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 3rem;
    height: 100%;
    position: relative;
    transition: transform 0.3s ease;
    border-left: 1px solid rgba(255, 203, 5, 0.2);
}

    .capabilities-content-card:hover {
        transform: translateY(-5px);
    }

    .capabilities-content-card .icon-wrapper {
        flex-shrink: 0;
        width: 120px;
        height: 120px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border-radius: 50%;
        border: 3px solid #ffcb05;
        transition: all 0.3s ease;
        box-shadow: 0 0 20px rgba(255, 203, 5, 0.4), 0 4px 15px rgba(0, 0, 0, 0.5);
        position: relative;
    }

    .capabilities-content-card:hover .icon-wrapper {
        border-color: #ffd700;
        box-shadow: 0 0 40px rgba(255, 203, 5, 0.6), 0 6px 20px rgba(0, 0, 0, 0.7);
        transform: scale(1.05);
    }

    .capabilities-content-card .icon-wrapper i {
        font-size: 3.5rem;
        color: #ffcb05;
        filter: brightness(1.5);
    }

    .capabilities-content-card .content-wrapper {
        flex: 1;
        text-align: left;
        display: flex;
        flex-direction: column;
    }

        .capabilities-content-card .content-wrapper h2 {
            color: #ffffff;
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            letter-spacing: 0.5px;
            text-align: left;
            margin-left: 0;
        }

        .capabilities-content-card .content-wrapper .highlight {
            color: #ffcb05;
            font-weight: 800;
        }

.capabilities-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .capabilities-list li {
        display: flex;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1.5rem;
        padding: 1rem;
        background: rgba(255, 203, 5, 0.05);
        border-left: 4px solid #ffcb05;
        border-radius: 4px;
        transition: all 0.3s ease;
    }

        .capabilities-list li:hover {
            background: rgba(255, 203, 5, 0.1);
            transform: translateX(10px);
            box-shadow: 0 4px 15px rgba(255, 203, 5, 0.2);
        }

        .capabilities-list li:last-child {
            margin-bottom: 0;
        }

        .capabilities-list li i {
            color: #ffcb05;
            font-size: 1.5rem;
            flex-shrink: 0;
            margin-top: 0.2rem;
        }

        .capabilities-list li span {
            color: #ffffff;
            font-size: 1.1rem;
            font-weight: 600;
            line-height: 1.6;
        }

/* ===================================
   7. NEWS CAROUSEL
   =================================== */
.news-carousel-container {
    padding: 3rem 7rem 5rem 7rem;
    background: #000000;
    position: relative;
    z-index: 1;
}

.carousel-indicators-custom {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    z-index: 50;
}

    .carousel-indicators-custom button {
        width: 80px;
        height: 4px;
        background: rgba(255, 203, 5, 0.3);
        border: none;
        border-radius: 2px;
        cursor: pointer;
        position: relative;
        overflow: hidden;
        transition: all 0.3s ease;
    }

        .carousel-indicators-custom button:hover {
            background: rgba(255, 203, 5, 0.5);
        }

        .carousel-indicators-custom button.active {
            background: rgba(255, 203, 5, 0.5);
        }

.indicator-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #ffcb05;
    width: 0%;
    transition: none;
}

.carousel-indicators-custom button.active .indicator-progress {
    animation: progressBar 5s linear forwards;
}

@keyframes progressBar {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

.news-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 203, 5, 0.2);
    transition: all 0.3s ease;
}

    .news-card:hover {
        transform: translateY(-10px);
        border-color: #ffcb05;
        box-shadow: 0 20px 60px rgba(255, 203, 5, 0.3);
    }

.news-image-wrapper {
    height: 100%;
    min-height: 400px;
    overflow: hidden;
    position: relative;
}

.news-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-img {
    transform: scale(1.1);
}

.news-card-body {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.news-date {
    color: #ffcb05;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-card-title {
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 2rem;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffcb05;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid #ffcb05;
    border-radius: 6px;
    transition: all 0.3s ease;
    width: fit-content;
}

    .news-read-more:hover {
        background: #ffcb05;
        color: #000000;
        transform: translateX(5px);
    }

    .news-read-more i {
        transition: transform 0.3s ease;
    }

    .news-read-more:hover i {
        transform: translateX(5px);
    }

/* Next Story Preview */
.next-story-preview {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 203, 5, 0.05);
    border-left: 4px solid #ffcb05;
    border-radius: 8px;
}

.next-story-label {
    color: #ffcb05;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .next-story-label i {
        font-size: 1rem;
    }

.next-story-content {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.next-story-image {
    width: 120px;
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
    border: 2px solid rgba(255, 203, 5, 0.3);
    flex-shrink: 0;
}

.next-story-info {
    flex: 1;
}

.next-story-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.next-story-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

    .next-story-date i {
        margin-right: 0.5rem;
        color: #ffcb05;
    }

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #ffcb05;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: 60px;
}

.carousel-control-next {
    right: 60px;
}

    .carousel-control-prev:hover,
    .carousel-control-next:hover {
        background: #ffcb05;
        transform: translateY(-50%) scale(1.1);
    }

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 24px;
    height: 24px;
}

/* ===================================
   8. SUBORDINATE COMMANDS SECTION
   =================================== */
.subordinate-commands-section {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    padding: 4rem 0;
    margin-bottom: 0;
}

    .subordinate-commands-section .container-fluid {
        padding-left: 8rem !important;
        padding-right: 8rem !important;
    }

.section-header {
    padding: 1rem 2rem 2rem;
}

    .section-header h2 {
        color: #FFFFFF;
        font-weight: 700;
        margin-bottom: 0.5rem;
    }

    .section-header .highlight {
        color: #ffcb05;
    }

.section-note {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-style: italic;
    margin: 0;
}

.section-description {
    padding-bottom: 10px !important;
    margin-top: 10px !important;
}

.map-card {
    padding: 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    .map-card img {
        width: 100%;
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        transition: transform 0.3s ease;
    }

        .map-card img:hover {
            transform: scale(1.02);
        }

/* Map Text Overlay */
.map-text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.map-label {
    position: absolute;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    pointer-events: auto;
    cursor: pointer;
}

    .map-label.active {
        background: #ffcb05;
        color: #000000;
        font-weight: 900;
        transform: scale(1.1);
        box-shadow: 0 0 20px rgba(255, 203, 5, 0.8);
        text-shadow: none;
    }

    .map-label[data-location="tyad"] {
        top: 11%;
        right: 10%;
    }

    .map-label[data-location="amlc"] {
        top: 27%;
        left: 44%;
    }

    .map-label[data-location="cecomhq"] {
        top: 50%;
        left: 50%;
    }

    .map-label[data-location="ilsc"] {
        top: 54%;
        left: 62%;
    }

    .map-label[data-location="sec"] {
        top: 60%;
        left: 57%;
    }

    .map-label[data-location="usaisec"] {
        bottom: 18%;
        left: 31%;
    }

.commands-detail-card {
    padding: 2rem;
    height: 100%;
    border-left: 1px solid rgba(255, 203, 5, 0.2);
}

.command-info {
    display: none;
}

    .command-info.active {
        display: block;
        animation: fadeIn 0.5s ease;
    }

.command-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #ffcb05;
}

.command-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
}

.command-header h3 {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
    line-height: 1.3;
}

.command-content-wrapper {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.command-text {
    flex: 1;
}

.command-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid #ffcb05;
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.95);
}

.command-details {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    transition: all 0.3s ease;
}

    .detail-item:hover {
        background: rgba(255, 203, 5, 0.1);
        transform: translateX(5px);
    }

    .detail-item i {
        color: #ffcb05;
        font-size: 1.4rem;
        flex-shrink: 0;
        width: 28px;
        text-align: center;
        margin-top: 3px;
    }

    .detail-item span {
        color: rgba(255, 255, 255, 0.9);
        font-size: 1.05rem;
        line-height: 1.6;
        word-break: break-word;
    }

    .detail-item strong {
        color: #ffcb05;
        font-weight: 700;
        font-size: 1.05rem;
    }

    .detail-item a {
        color: #ffcb05;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .detail-item a:hover {
            color: #ffd700;
            text-decoration: underline;
        }

.command-image {
    flex-shrink: 0;
    width: 340px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

    .command-image img {
        width: 100%;
        height: 250px;
        object-fit: cover;
        object-position: center;
        display: block;
        transition: transform 0.3s ease;
    }

    .command-image:hover img {
        transform: scale(1.05);
    }

/* ===================================
   9. FIXED SOCIAL MEDIA BAR
   =================================== */
.fixed-social-bar {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0;
}

@media (max-width: 1400px) {
    .fixed-social-bar {
        display: none;
    }
}

.fixed-social-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #ffcb05;
    color: #000000;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

    .fixed-social-bar a:first-child {
        border-top-right-radius: 8px;
    }

    .fixed-social-bar a:last-child {
        border-bottom-right-radius: 8px;
        border-bottom: none;
    }

    .fixed-social-bar a:hover {
        width: 60px;
        background: #ffd700;
        box-shadow: 2px 0 10px rgba(255, 203, 5, 0.5);
    }

    .fixed-social-bar a i {
        font-size: 24px;
        transition: all 0.3s ease;
    }

    .fixed-social-bar a:hover i {
        transform: scale(1.2);
    }

/* ===================================
   10. FOOTER
   =================================== */
.section-1-container {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

    .section-1-container.section-container {
        background-color: #000000 !important;
        margin: 0 !important;
        padding-bottom: 0 !important;
    }

footer.navbar {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    border-top: 3px solid #ffcb05;
    padding: 0;
    margin: 0;
}

.footer-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
}

.footer-main-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 203, 5, 0.2);
}

.footer-links-section h3 {
    color: #ffcb05;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

    .footer-list li {
        margin-bottom: 0.75rem;
    }

        .footer-list li a {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            font-size: 0.95rem;
            transition: all 0.3s ease;
            display: inline-block;
        }

            .footer-list li a:hover {
                color: #ffcb05;
                transform: translateX(5px);
            }

.footer-social-section {
    text-align: center;
}

    .footer-social-section h3 {
        color: #ffcb05;
        font-size: 1.2rem;
        font-weight: 700;
        margin-bottom: 1.5rem;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

.dod-logo {
    margin-bottom: 2rem;
}

    .dod-logo img {
        height: 90px;
        width: auto;
        filter: brightness(1.2);
    }

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 0;
}

    .social-icons a i {
        font-style: normal;
    }

    .social-icons a {
        display: inline-block;
        transition: all 0.3s ease;
    }

        .social-icons a:hover {
            transform: translateY(-5px);
        }

.sitemap-link {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 203, 5, 0.2);
}

    .sitemap-link a {
        color: #ffcb05;
        text-decoration: none;
        font-size: 1rem;
        font-weight: 600;
        transition: all 0.3s ease;
    }

        .sitemap-link a:hover {
            color: #ffd700;
        }

.footer-partners-section h3 {
    color: #ffcb05;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.partner-logos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    align-items: center;
}

    .partner-logos a {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 8px;
        transition: all 0.3s ease;
        border: 1px solid transparent;
        min-height: 80px;
    }

        .partner-logos a:hover {
            background: rgba(255, 203, 5, 0.1);
            border-color: #ffcb05;
            transform: translateY(-3px);
        }

    .partner-logos img {
        max-height: 50px;
        max-width: 100%;
        width: auto;
        height: auto;
        filter: brightness(1.1);
    }

.footer-copyright-text {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 203, 5, 0.2);
}

    .footer-copyright-text p {
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.85rem;
        margin: 0;
        line-height: 1.6;
    }

.footer-bottom {
    background: black !important;
    padding-bottom: 5px !important;
}

.footer-top {
    padding-top: 20px !important;
    padding-bottom: 0px !important;
}

/* ===================================
   11. IMAGE MODAL
   =================================== */
#imageModal,
.image-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
}

    #imageModal.show,
    .image-modal.show {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        padding: 60px 20px 20px 20px;
    }

    #imageModal .modal-content,
    .image-modal .modal-content {
        display: block;
        max-width: 70%;
        max-height: 70vh;
        width: auto;
        height: auto;
        border: 3px solid #ffcb05;
        border-radius: 8px;
        object-fit: contain;
        margin: 0 auto;
        position: relative;
    }

    #imageModal .modal-close,
    .image-modal .modal-close {
        position: fixed;
        top: 20px;
        right: 40px;
        color: #ffcb05;
        font-size: 50px;
        font-weight: bold;
        transition: 0.3s;
        cursor: pointer;
        z-index: 100000;
        line-height: 1;
        background: none;
        border: none;
        padding: 0;
        margin: 0;
    }

        #imageModal .modal-close:hover,
        #imageModal .modal-close:focus,
        .image-modal .modal-close:hover,
        .image-modal .modal-close:focus {
            color: #ffd700;
            transform: scale(1.2);
        }

    #imageModal .modal-caption,
    .image-modal .modal-caption {
        text-align: center;
        padding: 20px 0 0 0;
        margin: 0;
        width: auto;
        max-width: none;
    }

    #imageModal .modal-link,
    .image-modal .modal-link {
        display: inline-block;
        color: #ffcb05;
        text-decoration: none;
        font-size: 1.1rem;
        font-weight: 700;
        padding: 0.75rem 1.5rem;
        border: 2px solid #ffcb05;
        border-radius: 5px;
        transition: all 0.3s ease;
        background: rgba(0, 0, 0, 0.8);
    }

        #imageModal .modal-link:hover,
        .image-modal .modal-link:hover {
            background: #ffcb05;
            color: #000000;
            transform: translateY(-3px);
            box-shadow: 0 5px 20px rgba(255, 203, 5, 0.5);
        }

        #imageModal .modal-link i,
        .image-modal .modal-link i {
            margin-left: 0.5rem;
        }

/* ===================================
   12. ADDITIONAL STYLES
   =================================== */
.btn-outline-secondary {
    color: #ffcb05;
    border-color: none;
    background-color: black;
}

.card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border: none;
}

.card-img-top {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}

.card-text {
    flex: 1;
    margin-bottom: 1rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ===================================
   STICKY HEADER (DESKTOP ONLY ≥1200px)
   =================================== */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    display: none;
}

@media (min-width: 1200px) {
    .sticky-header {
        display: block;
    }

        .sticky-header.show {
            transform: translateY(0);
        }
}

.sticky-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    border-bottom: 2px solid #ffcb05;
    opacity: 0.98;
}

.sticky-header-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.sticky-breadcrumb {
    margin: 0;
}

    .sticky-breadcrumb .breadcrumb {
        background: transparent;
        margin: 0;
        padding: 0;
    }

    .sticky-breadcrumb .breadcrumb-item {
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.85rem;
    }

        .sticky-breadcrumb .breadcrumb-item.active {
            color: #ffcb05;
        }

.sticky-title {
    color: #ffcb05;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    font-family: 'GI750', sans-serif;
    letter-spacing: 2px;
}

/* ===================================
   13. RESPONSIVE - MOBILE & TABLET
   =================================== */

/* ===== MOBILE MODE (Below 1800px) ===== */
@media (max-width: 1799.98px) {
    /* Show Hamburger */
    .mobile-menu-btn {
        display: block !important;
        position: fixed !important;
        top: 1rem !important;
        right: 1rem !important;
        left: auto !important;
        z-index: 1100 !important;
    }

    /* Hide Desktop Nav */
    .nav-links-bar {
        display: none !important;
    }

    /* Hide Desktop Search */
    .search-container,
    .cecom-search-container {
        display: none !important;
    }

    /* Show Sidebar */
    .sidebar {
        display: block !important;
    }

    /* Mobile Top Bar Layout */
    .top-bar {
        padding: 1rem 75px 1rem 1rem !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 1rem !important;
        flex-wrap: nowrap !important;
        min-height: 80px !important;
    }

    /* Army logos - left */
    .army-logo-container {
        order: 1 !important;
        flex-shrink: 0 !important;
        display: flex !important;
        flex-direction: row !important;
        gap: 0.75rem !important;
        margin: 0 !important;
    }

        .army-logo-container img {
            height: 50px !important;
        }

    /* Title - next to logos */
    .nav-title-container {
        order: 2 !important;
        flex: 0 0 auto !important;
        text-align: left !important;
        margin-left: 0.75rem !important;
    }

        .nav-title-container h1 {
            font-size: 1.5rem !important;
        }

        .nav-title-container p {
            font-size: 10px !important;
        }

    /* Hide right logos */
    .right-logos-container {
        display: none !important;
    }

    /* Sidebar search */
    /* ===================================
   MOBILE SIDEBAR SEARCH - PERFECT ALIGNMENT
   =================================== */
    @media (max-width: 1799.98px) {
        .sidebar .mobile-search,
        .sidebar .cecom-search-container {
            display: block !important;
            padding: 1.5rem !important;
            border-top: 2px solid #ffcb05 !important;
            margin-top: 1rem !important;
            background: rgba(0, 0, 0, 0.5) !important;
            position: relative !important;
            height: auto !important;
        }

        .sidebar .cecom-search-input,
        .sidebar .search-input {
            display: block !important;
            width: 100% !important;
            height: 45px !important;
            padding: 0 48px 0 15px !important;
            border: 2px solid #ffcb05 !important;
            border-radius: 8px !important;
            background: rgba(255, 255, 255, 0.95) !important;
            color: #000000 !important;
            font-size: 1rem !important;
            box-sizing: border-box !important;
        }

        .sidebar .cecom-search-button,
        .sidebar .search-submit {
            display: flex !important;
            position: absolute !important;
            right: calc(1.5rem + 4px) !important; /* Account for container padding */
            top: calc(50% + 0px) !important;
            transform: translateY(-50%) !important;
            width: 37px !important;
            height: 37px !important;
            background: #ffcb05 !important;
            border: none !important;
            border-radius: 5px !important;
            color: #000000 !important;
            align-items: center !important;
            justify-content: center !important;
        }

            .sidebar .cecom-search-button:hover,
            .sidebar .search-submit:hover {
                background: #ffd700 !important;
                transform: translateY(-50%) scale(1.05) !important;
            }

            .sidebar .cecom-search-button i,
            .sidebar .search-submit i {
                color: #000000 !important;
                margin: 0 !important;
                font-size: 15px !important;
            }
    }

    /* Reduce navigation padding */
    .main-navbar .top-bar {
        padding-left: 1rem !important;
        padding-right: 75px !important;
    }

    /* Reduce section padding */
    .mission-vision-section .container-fluid {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }

    .news-carousel-container {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }

    .subordinate-commands-section .container-fluid {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }

    /* News carousel arrows */
    .carousel-control-prev {
        left: 10px !important;
    }

    .carousel-control-next {
        right: 10px !important;
    }

    /* Hero adjustments */
    .hero-content {
        padding: 2rem 1.5rem !important;
    }

    .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .hero-title {
        font-size: 2.5rem !important;
    }

    .hero-subtitle {
        font-size: 1rem !important;
    }

    .hero-description {
        font-size: 1.1rem !important;
    }

    .hero-stats {
        gap: 1.5rem !important;
    }

    .stat-number {
        font-size: 2.5rem !important;
    }

    /* Capabilities */
    .capabilities-box {
        max-width: 400px !important;
        margin: 0 auto !important;
    }

    .hero-capabilities-image {
        max-height: 250px !important;
    }

    /* Mission/Vision */
    .mission-card,
    .vision-card {
        padding: 2rem 1.5rem !important;
    }

    .icon-wrapper {
        width: 90px !important;
        height: 90px !important;
    }

        .icon-wrapper img {
            width: 55px !important;
            height: 55px !important;
        }

        .icon-wrapper i {
            font-size: 2.5rem !important;
        }

    /* Vision header mobile */
    .vision-header-with-icon {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

        .vision-header-with-icon .icon-wrapper {
            order: -1 !important;
            margin: 0 auto !important;
        }

        .vision-header-with-icon h2 {
            order: 1 !important;
            text-align: center !important;
        }

    .content-wrapper {
        text-align: center !important;
    }

        .content-wrapper h2 {
            text-align: center !important;
            font-size: 1.5rem !important;
        }

    .info-box {
        text-align: left !important;
    }
}

/* ===== TABLET (768px - 1799px) ===== */
@media (min-width: 768px) and (max-width: 1799.98px) {
    .army-logo-container img {
        height: 45px !important;
    }

    .nav-title-container h1 {
        font-size: 1.8rem !important;
    }

    .nav-title-container p {
        font-size: 10px !important;
    }
}

/* ===== MOBILE PHONES (Below 768px) ===== */
@media (max-width: 767.98px) {
    .top-bar {
        padding: 0.75rem 70px 0.75rem 0.75rem !important;
        gap: 0.75rem !important;
    }

    .army-logo-container {
        gap: 0.5rem !important;
    }

        .army-logo-container img {
            height: 42px !important;
        }

    .nav-title-container {
        margin-left: 0.5rem !important;
    }

        .nav-title-container h1 {
            font-size: 1.3rem !important;
        }

        .nav-title-container p {
            font-size: 8px !important;
        }

    /* Hero mobile */
    .hero-section {
        min-height: 0 !important;
        max-height: none !important;
        height: auto !important;
    }

    .hero-content {
        min-height: 0 !important;
        padding: 1.5rem 1rem !important;
    }

    .hero-title {
        font-size: 1.75rem !important;
    }

    .hero-description {
        font-size: 1rem !important;
    }

    .hero-stats {
        flex-direction: column !important;
    }

    .capabilities-box {
        max-width: 350px !important;
    }

    .hero-capabilities-image {
        max-height: 220px !important;
    }

    /* Mission/Vision mobile */
    .mission-card,
    .vision-card {
        padding: 2rem 1rem !important;
    }

    .icon-wrapper {
        width: 80px !important;
        height: 80px !important;
    }

        .icon-wrapper img {
            width: 48px !important;
            height: 48px !important;
        }

        .icon-wrapper i {
            font-size: 2.2rem !important;
        }

    .content-wrapper h2 {
        font-size: 1.5rem !important;
    }

    /* News carousel mobile */
    .news-image-wrapper {
        min-height: 250px !important;
    }

    .news-card-body {
        padding: 1.5rem !important;
    }

    .news-card-title {
        font-size: 1.25rem !important;
    }

    /* Next story preview */
    .next-story-preview {
        padding: 1.5rem !important;
    }

    .next-story-image {
        width: 80px !important;
        height: 60px !important;
    }

    /* Subordinate commands */
    .map-label {
        font-size: 11px !important;
        padding: 2px 8px !important;
    }

    /* Image modal */
    #imageModal.show,
    .image-modal.show {
        padding: 80px 10px 20px 10px !important;
    }

    #imageModal .modal-content,
    .image-modal .modal-content {
        max-width: 90% !important;
        max-height: 60vh !important;
    }

    #imageModal .modal-close,
    .image-modal .modal-close {
        top: 10px !important;
        right: 20px !important;
        font-size: 40px !important;
    }
}

/* ===== SMALL MOBILE (Below 576px) ===== */
@media (max-width: 575.98px) {
    .top-bar {
        padding: 0.75rem 70px 0.75rem 0.5rem !important;
        gap: 0.5rem !important;
    }

    .army-logo-container {
        gap: 0.4rem !important;
    }

        .army-logo-container img {
            height: 38px !important;
        }

    .nav-title-container {
        margin-left: 0.4rem !important;
    }

        .nav-title-container h1 {
            font-size: 1.1rem !important;
        }

        .nav-title-container p {
            font-size: 7px !important;
        }

    /* Hero extra small */
    .hero-content {
        padding: 1rem 0.75rem !important;
    }

    .hero-title {
        font-size: 1.5rem !important;
    }

    .capabilities-box {
        max-width: 300px !important;
    }

    .hero-capabilities-image {
        max-height: 200px !important;
    }

    /* Mission/Vision small */
    .mission-card,
    .vision-card {
        padding: 1.5rem 1rem !important;
    }

    .icon-wrapper {
        width: 70px !important;
        height: 70px !important;
    }

        .icon-wrapper img {
            width: 42px !important;
            height: 42px !important;
        }

        .icon-wrapper i {
            font-size: 1.8rem !important;
        }

    .content-wrapper h2 {
        font-size: 1.3rem !important;
    }

    /* Footer mobile */
    .footer-main-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .partner-logos {
        grid-template-columns: 1fr !important;
    }
}

/* ===== EXTRA SMALL (Below 400px) ===== */
@media (max-width: 399.98px) {
    .top-bar {
        gap: 0.4rem !important;
    }

    .army-logo-container img {
        height: 35px !important;
    }

    .nav-title-container h1 {
        font-size: 1rem !important;
    }

    .nav-title-container p {
        font-size: 6px !important;
    }

    .hero-title {
        font-size: 1.2rem !important;
    }

    .capabilities-box {
        max-width: 280px !important;
    }

    .icon-wrapper {
        width: 65px !important;
        height: 65px !important;
    }

        .icon-wrapper img {
            width: 38px !important;
            height: 38px !important;
        }

        .icon-wrapper i {
            font-size: 1.6rem !important;
        }
}

/* ===== DESKTOP MODE (1800px+) ===== */
@media (min-width: 1800px) {
    .mobile-menu-btn {
        display: none !important;
    }

    .sidebar {
        display: none !important;
    }

    .overlay {
        display: none !important;
    }

    .nav-links-bar {
        display: block !important;
    }

    .search-container,
    .cecom-search-container {
        display: block !important;
    }

    .right-logos-container {
        display: flex !important;
    }

    .nav-title-container h1 {
        font-size: 1.6rem !important;
        color: #ffffff !important;
    }
}

/* ===================================
   [ADDITIONAL STYLES CONTINUE IN NEXT SECTION]
   Leadership, MSC, Contact, Search pages, etc.
   =================================== */
/* ===================================
   14. LEADERSHIP PAGE STYLES
   =================================== */

/* Leadership Hero Section */
.leadership-hero {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    padding: 3rem 0 2.5rem 0;
    border-bottom: 3px solid #FFCB05;
    margin: 0 !important;
    min-height: auto !important;
}

    .leadership-hero .hero-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 203, 5, 0.02) 2px, rgba(255, 203, 5, 0.02) 4px), repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255, 203, 5, 0.02) 2px, rgba(255, 203, 5, 0.02) 4px);
        opacity: 0.3;
    }

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-text-content {
    flex: 1;
    max-width: 700px;
}

.hero-breadcrumb {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

    .hero-breadcrumb a {
        color: #FFCB05;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .hero-breadcrumb a:hover {
            color: #FFF;
        }

.hero-page-title {
    font-size: 3rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 1rem;
    font-family: 'GI750', sans-serif;
    line-height: 1.2;
}

    .hero-page-title .highlight {
        color: #FFCB05;
    }

.hero-page-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Hero Image - Right Side */
.hero-image-wrapper {
    flex-shrink: 0;
    width: 250px;
}

.hero-image-box {
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid #FFCB05;
    border-radius: 8px;
    padding: 0.75rem;
    box-shadow: 0 10px 30px rgba(255, 203, 5, 0.4);
    transition: all 0.3s ease;
}

    .hero-image-box:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(255, 203, 5, 0.5);
    }

    .hero-image-box img {
        width: 100%;
        height: auto;
        border-radius: 6px;
        display: block;
    }

/* Commanding Leadership Section */
.commanding-leadership-section {
    background: #F5F5F5;
    padding: 5rem 0 4rem 0;
    margin-top: 0 !important;
}

.command-profile-card {
    background: #FFFFFF;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

    .command-profile-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(255, 203, 5, 0.3);
        border-color: #FFCB05;
    }

.command-profile-image {
    text-align: center;
}

    .command-profile-image img {
        width: 100%;
        max-width: 350px;
        height: auto;
        border-radius: 8px;
        border: 3px solid #FFCB05;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

.command-profile-content {
    padding-left: 2rem;
}

.profile-rank {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-family: 'GI750', sans-serif;
}

.profile-position {
    font-size: 1.3rem;
    font-weight: 600;
    color: #FFCB05;
    margin-bottom: 1rem;
}

.profile-date {
    font-size: 0.95rem;
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .profile-date i {
        color: #FFCB05;
    }

.profile-summary {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(0, 0, 0, 0.8);
    margin-bottom: 2rem;
}

.profile-bio-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #FFCB05;
    color: #000000;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid #FFCB05;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .profile-bio-button:hover {
        background: #1a1a1a;
        color: #FFCB05;
        transform: translateX(5px);
    }

/* Senior Leaders Section */
.senior-leaders-section {
    background: #FFFFFF;
    padding: 4rem 0;
}

.leaders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.leader-card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

    .leader-card:hover {
        transform: translateY(-10px);
        border-color: #FFCB05;
        box-shadow: 0 15px 40px rgba(255, 203, 5, 0.3);
    }

.leader-image-wrapper {
    position: relative;
    height: 350px;
    overflow: hidden;
    background: #f5f5f5;
}

    .leader-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        transition: transform 0.5s ease;
    }

.leader-card:hover .leader-image-wrapper img {
    transform: scale(1.1);
}

.leader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.leader-card:hover .leader-overlay {
    opacity: 1;
}

.leader-overlay i {
    color: #FFCB05;
    font-size: 3rem;
}

.leader-card-body {
    padding: 1.5rem;
}

.leader-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-family: 'GI750', sans-serif;
}

.leader-position {
    font-size: 1rem;
    color: #FFCB05;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.leader-bio-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #FFCB05;
    color: #000000;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
    border: 2px solid #FFCB05;
    border-radius: 6px;
    transition: all 0.3s ease;
    width: 100%;
    cursor: pointer;
}

    .leader-bio-button:hover {
        background: #1a1a1a;
        color: #FFCB05;
    }

/* Biography Modals - FULLSCREEN */
.bio-modal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.95);
}

    .bio-modal.bio-modal-active {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

.modal-content-wrapper {
    width: 95vw;
    height: 95vh;
    max-width: 1600px;
    display: flex;
    flex-direction: column;
    background: #1a1a1a;
    border: 3px solid #FFCB05;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.close-modal-x {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 3rem;
    color: #FFCB05;
    z-index: 10;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.7);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: none;
    line-height: 1;
    font-weight: bold;
}

    .close-modal-x:hover {
        background: #FFCB05;
        color: #000;
        transform: scale(1.1);
    }

.pdf-modal-header {
    flex: 0 0 auto;
    padding: 1.5rem 2rem;
    background: #000;
    border-bottom: 2px solid #FFCB05;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .pdf-modal-header h2 {
        color: #FFCB05;
        font-size: 1.5rem;
        margin: 0;
        font-family: 'GI750', sans-serif;
    }

    .pdf-modal-header p {
        color: rgba(255, 255, 255, 0.8);
        margin: 0;
    }

.pdf-download-button {
    background: #FFCB05;
    color: #000;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

    .pdf-download-button:hover {
        background: #FFF;
        transform: scale(1.05);
    }

.pdf-modal-body {
    flex: 1 1 auto;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    background: #fff;
}

    .pdf-modal-body iframe {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }

/* Leadership Responsive */
@media (max-width: 991.98px) {
    .leadership-hero {
        padding: 2rem 0 1.5rem 0;
    }

    .hero-content-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-text-content {
        max-width: 100%;
    }

    .hero-page-title {
        font-size: 2.5rem;
    }

    .hero-image-wrapper {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .commanding-leadership-section {
        padding: 4rem 0;
    }

    .command-profile-content {
        padding-left: 0;
        margin-top: 2rem;
    }

    .leaders-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .bio-modal.bio-modal-active .modal-content-wrapper {
        width: 98vw;
        height: 98vh;
    }

    .bio-modal.bio-modal-active .pdf-modal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding-right: 60px;
    }
}

@media (max-width: 767.98px) {
    .leadership-hero {
        padding: 1.5rem 0 1rem 0;
    }

    .hero-page-title {
        font-size: 2rem;
    }

    .commanding-leadership-section {
        padding: 3rem 0;
    }

    .command-profile-card {
        padding: 1.5rem;
    }

    .leaders-grid {
        grid-template-columns: 1fr;
    }

    .leader-image-wrapper {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .leadership-hero {
        padding: 1.25rem 0 0.75rem 0;
    }

    .hero-page-title {
        font-size: 1.75rem;
    }

    .commanding-leadership-section {
        padding: 2.5rem 0;
    }

    .leader-image-wrapper {
        height: 280px;
    }

    .bio-modal.bio-modal-active .modal-content-wrapper {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }

    .close-modal-x {
        font-size: 2rem;
        width: 40px;
        height: 40px;
    }
}

/* ===================================
   15. MSC (MAJOR SUBORDINATE COMMANDS) PAGE STYLES
   =================================== */

/* MSC Hero Section */
.msc-hero {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    padding: 3rem 0 2.5rem 0;
    border-bottom: 3px solid #FFCB05;
    margin: 0 !important;
    min-height: auto !important;
}

    .msc-hero .hero-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 203, 5, 0.02) 2px, rgba(255, 203, 5, 0.02) 4px), repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255, 203, 5, 0.02) 2px, rgba(255, 203, 5, 0.02) 4px);
        opacity: 0.3;
    }

/* Command Cards Section */
.commands-section {
    background: #F5F5F5;
    padding: 5rem 0 4rem 0;
    margin: 0 !important;
}

.command-card {
    background: #FFFFFF;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 3rem;
    margin-bottom: 3rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

    .command-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
        opacity: 0.3;
        pointer-events: none;
    }

    .command-card:hover {
        border-color: #FFCB05;
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(255, 203, 5, 0.3);
    }

.command-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.command-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px rgba(255, 203, 5, 0.3));
}

.command-title-wrapper h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-family: 'GI750', sans-serif;
}

    .command-title-wrapper h2 a {
        color: #1a1a1a;
        text-decoration: none;
        transition: all 0.3s ease;
    }

        .command-title-wrapper h2 a:hover {
            color: #FFCB05;
        }

.command-location {
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .command-location i {
        color: #FFCB05;
    }

.command-content {
    position: relative;
    z-index: 2;
}

.command-description {
    color: #000000;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.command-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.command-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #FFCB05;
    border: 2px solid #FFCB05;
    color: #000000;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .command-link:hover {
        background: #1a1a1a;
        color: #FFCB05;
        border-color: #1a1a1a;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(255, 203, 5, 0.4);
    }

    .command-link i {
        font-size: 0.9rem;
    }

.command-divider {
    border: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 203, 5, 0.3), transparent);
    margin: 3rem 0;
}

/* MSC Responsive */
@media (max-width: 991.98px) {
    .msc-hero {
        padding: 2rem 0 1.5rem 0;
    }

    .commands-section {
        padding: 4rem 0;
    }

    .command-card {
        padding: 2.5rem;
    }

    .command-header {
        gap: 1.5rem;
    }

    .command-logo {
        width: 80px;
        height: 80px;
    }

    .command-title-wrapper h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .msc-hero {
        padding: 1.5rem 0 1rem 0;
    }

    .commands-section {
        padding: 3rem 0;
    }

    .command-card {
        padding: 2rem;
    }

    .command-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .command-logo {
        width: 80px;
        height: 80px;
    }

    .command-title-wrapper h2 {
        font-size: 1.4rem;
    }

    .command-location {
        justify-content: center;
    }

    .command-links {
        flex-direction: column;
    }

    .command-link {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .msc-hero {
        padding: 1.25rem 0 0.75rem 0;
    }

    .commands-section {
        padding: 2.5rem 0;
    }

    .command-card {
        padding: 1.5rem;
    }

    .command-title-wrapper h2 {
        font-size: 1.2rem;
    }

    .command-description {
        font-size: 0.95rem;
    }
}

/* ===================================
   16. CONTACT PAGE STYLES
   =================================== */

/* Contact Hero Section */
.contact-hero {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    padding: 3rem 0 2.5rem 0;
    border-bottom: 3px solid #FFCB05;
    margin: 0 !important;
    min-height: auto !important;
}

    .contact-hero .hero-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 203, 5, 0.02) 2px, rgba(255, 203, 5, 0.02) 4px), repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255, 203, 5, 0.02) 2px, rgba(255, 203, 5, 0.02) 4px);
        opacity: 0.3;
    }

/* Contact Info Section */
.contact-info-section {
    background: #F5F5F5;
    padding: 5rem 0 2rem 0;
    margin: 0 !important;
    min-height: auto !important;
}

.contact-info-card {
    background: #FFFFFF;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 3rem;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

    .contact-info-card:hover {
        border-color: #FFCB05;
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(255, 203, 5, 0.3);
    }

.contact-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(255, 203, 5, 0.1);
    border: 3px solid #FFCB05;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

    .contact-icon-wrapper i {
        color: #FFCB05;
        font-size: 2.5rem;
    }

.contact-card-title {
    color: #000000;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    font-family: 'GI750', sans-serif;
}

.contact-details {
    color: rgba(0, 0, 0, 0.8);
}

.contact-address,
.contact-phone {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1rem;
}

    .contact-address i,
    .contact-phone i {
        color: #FFCB05;
        margin-right: 0.75rem;
        width: 20px;
    }

.contact-section-label {
    color: #FFCB05;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

    .contact-section-label:first-of-type {
        margin-top: 0;
    }

.contact-description {
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: #FFCB05;
    border: 2px solid #FFCB05;
    color: #000000;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

    .contact-link:hover {
        background: #1a1a1a;
        color: #FFCB05;
        border-color: #1a1a1a;
        transform: translateX(5px);
        box-shadow: 0 5px 15px rgba(255, 203, 5, 0.4);
    }

    .contact-link i {
        font-size: 1rem;
    }

/* Contact Form Section */
.contact-form-section {
    background: #FFFFFF;
    padding: 4rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    min-height: auto !important;
}

.form-card,
.qr-section {
    background: #F5F5F5;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 3rem;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-header,
.qr-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(255, 203, 5, 0.3);
}

    .form-header i,
    .qr-header i {
        color: #FFCB05;
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    .form-header h2,
    .qr-header h2 {
        color: #1a1a1a;
        font-size: 1.8rem;
        font-weight: 700;
        margin-bottom: 0.75rem;
    }

    .form-header p,
    .qr-header p {
        color: rgba(0, 0, 0, 0.7);
        font-size: 1rem;
        margin: 0;
    }

/* Form Validation Summary */
.form-validation-summary {
    background: rgba(220, 53, 69, 0.1);
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    color: #ff6b6b;
}

    .form-validation-summary i {
        margin-right: 0.5rem;
    }

    .form-validation-summary ul {
        margin: 1rem 0 0 0;
        padding-left: 1.5rem;
    }

    .form-validation-summary li {
        margin-bottom: 0.5rem;
        color: #ff6b6b;
    }

/* Form Groups */
.form-group {
    margin-bottom: 1.75rem;
}

    .form-group label {
        color: #1a1a1a;
        font-weight: 600;
        font-size: 1rem;
        margin-bottom: 0.5rem;
        display: block;
    }

.required {
    color: #ff6b6b;
    margin-left: 0.25rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    background: #FFFFFF !important;
    border: 2px solid rgba(0, 0, 0, 0.2) !important;
    border-radius: 6px !important;
    color: #000000 !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
}

    .form-control:focus {
        background: #FFFFFF !important;
        border-color: #FFCB05 !important;
        outline: none !important;
        box-shadow: 0 0 0 3px rgba(255, 203, 5, 0.1) !important;
    }

    .form-control::placeholder {
        color: rgba(0, 0, 0, 0.4) !important;
    }

textarea.form-control {
    resize: vertical !important;
    min-height: 120px !important;
    color: #000000 !important;
}

/* Character Counter */
.char-counter {
    display: block;
    text-align: right;
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

#counter {
    color: #FFCB05;
    font-weight: 600;
}

/* Form Errors */
.form-error {
    color: #ff6b6b;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

.input-validation-error {
    border-color: #dc3545 !important;
}

/* Submit Button */
.submit-button {
    width: 100%;
    background: #FFCB05;
    color: #000000;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 1rem 2rem;
    border: 2px solid #FFCB05;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

    .submit-button:hover {
        background: #1a1a1a;
        color: #FFCB05;
        border-color: #1a1a1a;
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(255, 203, 5, 0.4);
    }

    .submit-button i {
        font-size: 1.2rem;
    }

/* QR Code Section */
.qr-code-wrapper {
    text-align: center;
    margin: 2rem 0;
}

.qr-link {
    display: inline-block;
    padding: 2rem;
    background: #FFFFFF;
    border: 2px solid rgba(255, 203, 5, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
}

    .qr-link:hover {
        border-color: #FFCB05;
        background: rgba(255, 203, 5, 0.05);
        transform: scale(1.05);
        box-shadow: 0 10px 30px rgba(255, 203, 5, 0.3);
    }

.qr-image {
    max-width: 300px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 1.5rem;
    border-radius: 8px;
}

.qr-cta {
    color: #FFCB05;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

    .qr-cta i {
        font-size: 1rem;
    }

.qr-description {
    color: rgba(0, 0, 0, 0.7);
    text-align: center;
    line-height: 1.7;
    font-size: 1rem;
    margin-top: 2rem;
}

/* Contact Responsive */
@media (max-width: 991.98px) {
    .contact-hero {
        padding: 2rem 0 1.5rem 0;
    }

    .contact-info-section {
        padding: 4rem 0 2rem 0;
    }

    .contact-info-card,
    .form-card,
    .qr-section {
        margin-bottom: 2rem;
        padding: 2.5rem;
    }

    .form-header h2,
    .qr-header h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .contact-hero {
        padding: 1.5rem 0 1rem 0;
    }

    .contact-info-section {
        padding: 3rem 0 1rem 0;
    }

    .contact-form-section {
        padding: 3rem 0;
    }

    .contact-info-card,
    .form-card,
    .qr-section {
        padding: 2rem;
    }

    .contact-card-title {
        font-size: 1.5rem;
    }

    .contact-icon-wrapper {
        width: 70px;
        height: 70px;
    }

        .contact-icon-wrapper i {
            font-size: 2rem;
        }

    .qr-image {
        max-width: 250px;
    }
}

@media (max-width: 576px) {
    .contact-hero {
        padding: 1.25rem 0 0.75rem 0;
    }

    .contact-info-card,
    .form-card,
    .qr-section {
        padding: 1.5rem;
    }

    .submit-button {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }
}

/* ===================================
   17. CECOM SEARCH STYLES
   Command Hierarchy Display
   =================================== */

/* Search Container */
.cecom-search-container {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 400px;
}

.cecom-search-input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: 2px solid #FFCB05;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: #1C1C1C;
    font-size: 1rem;
    font-family: Arial, sans-serif;
    transition: all 0.3s ease;
}

    .cecom-search-input:focus {
        outline: none;
        border-color: #000000;
        box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
    }

.cecom-search-button {
    position: absolute;
    right: 3px;
   
    top: calc(10% + 0px) !important;
    width: 50px;
    background: #FFCB05;
    border: none;
    border-radius: 0 8px 8px 0;
    color: #000000;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}



    .cecom-search-button:hover {
        background: #000000;
        color: #FFCB05;
    }

/* Search Overlay */
.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9998;
}

/* Search Results Panel */
.search-results-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    max-height: 80vh;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: #000000;
    color: white;
    border-bottom: 3px solid #FFCB05;
}

.search-header-content {
    flex: 1;
}

.search-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: white;
}

.search-count {
    color: #FFCB05;
    font-weight: 600;
}

.search-close-btn {
    background: transparent;
    border: 2px solid #FFCB05;
    color: #FFCB05;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

    .search-close-btn:hover {
        background: #FFCB05;
        color: #000000;
    }

.search-results-container {
    padding: 2rem;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    max-height: calc(80vh - 200px);
}

    /* Custom Scrollbar */
    .search-results-container::-webkit-scrollbar {
        width: 10px;
    }

    .search-results-container::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .search-results-container::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 10px;
    }

        .search-results-container::-webkit-scrollbar-thumb:hover {
            background: #555;
        }

/* Command Structure Legend */
.command-structure-legend {
    background: linear-gradient(135deg, #1C1C1C 0%, #000000 100%);
    padding: 1.5rem 2rem;
    border-bottom: 3px solid #FFCB05;
}

.legend-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #FFCB05;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

    .legend-title i {
        font-size: 1.3rem;
    }

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 203, 5, 0.3);
}

.legend-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    border: 2px solid;
}

    .legend-badge.cecom-parent {
        background: #FFCB05;
        color: #000000;
        border-color: #FFCB05;
    }

    .legend-badge.cecom-sub {
        background: #4A4A4A;
        color: white;
        border-color: #4A4A4A;
    }

.legend-arrow {
    color: #FFCB05;
    font-size: 1.2rem;
    font-weight: 700;
}

.legend-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Search Categories */
.search-category {
    margin-bottom: 2rem;
}

.search-category-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #000000;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #FFCB05;
}

    .search-category-title i {
        color: #FFCB05;
    }

.category-count {
    color: #4A4A4A;
    font-size: 0.9rem;
    font-weight: 600;
}

.search-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Search Result Items */
.search-result-item {
    display: block;
    padding: 1.5rem;
    background: #F5F5F5;
    border: 2px solid transparent;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

    .search-result-item:hover {
        border-color: #FFCB05;
        background: white;
        transform: translateX(5px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .search-result-item::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: #000000;
        border-radius: 8px 0 0 8px;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .search-result-item:hover::before {
        opacity: 1;
    }

.search-item-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.search-item-icon {
    color: #000000;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.search-item-title {
    color: #000000;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.search-item-description {
    color: rgba(0, 0, 0, 0.7);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 1rem 0;
}

.search-item-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Command Hierarchy Badges */
.command-hierarchy {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.command-badge {
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 2px solid;
}

    .command-badge.parent {
        background: #FFCB05;
        color: #000000;
        border-color: #FFCB05;
    }

    .command-badge.subordinate {
        background: #4A4A4A;
        color: white;
        border-color: #4A4A4A;
    }

    .command-badge.single {
        background: rgba(0, 0, 0, 0.05);
        color: #000000;
        border-color: #000000;
    }

.hierarchy-arrow {
    color: #FFCB05;
    font-size: 0.9rem;
}

/* Link Badges */
.link-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 2px solid;
}

    .link-badge.internal {
        background: rgba(0, 0, 0, 0.05);
        color: #000000;
        border-color: #000000;
    }

    .link-badge.external {
        background: rgba(255, 203, 5, 0.1);
        color: #000000;
        border-color: #FFCB05;
    }

    .link-badge i {
        font-size: 0.75rem;
    }

/* Highlight matched text */
mark {
    background: #FFCB05;
    color: #000000;
    padding: 0.15rem 0.3rem;
    border-radius: 3px;
    font-weight: 600;
}

/* No Results */
.search-no-results {
    text-align: center;
    padding: 3rem 2rem;
}

    .search-no-results i {
        font-size: 4rem;
        color: #000000;
        margin-bottom: 1rem;
    }

    .search-no-results h3 {
        color: #000000;
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .search-no-results p {
        color: rgba(0, 0, 0, 0.6);
        margin-bottom: 0;
    }

/* Try Again Button */
.search-retry-btn {
    margin-top: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #FFCB05;
    color: #000000;
    border: 2px solid #FFCB05;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .search-retry-btn:hover {
        background: #000000;
        color: #FFCB05;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .search-retry-btn i {
        font-size: 1rem;
    }

/* Search Responsive */
@media (max-width: 991.98px) {
    .command-structure-legend {
        padding: 1rem 1.5rem;
    }

    .legend-items {
        flex-direction: column;
    }

    .command-hierarchy {
        flex-wrap: wrap;
    }
}

@media (max-width: 767.98px) {
    .search-results-panel {
        width: 95%;
        max-height: 90vh;
    }

    .search-header {
        padding: 1rem;
        flex-wrap: wrap;
    }

    .search-results-container {
        padding: 1rem;
    }

    .search-item-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .command-structure-legend {
        padding: 1rem;
    }

    .legend-title {
        font-size: 1rem;
    }

    .command-hierarchy {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .search-header h3 {
        font-size: 1.2rem;
    }

    .search-category-title {
        font-size: 1rem;
    }

    .search-item-title {
        font-size: 1rem;
    }

    .legend-badge {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
}

/* ===================================
   END OF MOD.CSS
   =================================== */


/* ===================================
   MISSION VIDEO MODAL - EQUAL PADDING FIX
   =================================== */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 60px; /* Equal padding all around */
}

    .video-modal.active {
        display: flex !important;
    }

.video-modal-content {
    position: relative;
    width: 100%;
    max-width: 1400px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-modal video {
    width: 79%;
    height: auto;
    max-height: calc(100vh - 120px); /* Account for padding */
    border: 3px solid #ffcb05;
    border-radius: 8px;
    display: block;
    background: #000000;
}

.modal-close-btn {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: #ffcb05;
    font-size: 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
    z-index: 1000000;
    font-weight: bold;
}

    .modal-close-btn:hover {
        color: #ffd700;
        transform: scale(1.2);
    }

/* Mobile Video Modal */
@media (max-width: 991.98px) {
    .video-modal {
        padding: 40px 20px; /* Smaller but still equal padding */
    }

        .video-modal video {
            max-height: calc(100vh - 80px);
        }

    .modal-close-btn {
        top: -40px;
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .video-modal {
        padding: 30px 15px;
    }

        .video-modal video {
            max-height: calc(100vh - 60px);
        }

    .modal-close-btn {
        top: -35px;
        font-size: 2rem;
    }
}

/* Video Loading Spinner */
.video-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 15;
    border-radius: 8px;
}

    .video-loading.hidden {
        display: none;
    }

    .video-loading .spinner {
        width: 60px;
        height: 60px;
        border: 5px solid rgba(255, 203, 5, 0.3);
        border-top: 5px solid #FFCB05;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.video-loading p {
    color: #FFCB05;
    margin-top: 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Enhanced Video Controls - Repositioned */
.video-controls-mission {
    position: absolute;
    bottom: 4rem; /* Moved up to make room for progress bar */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
    background: rgba(0, 0, 0, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

    .video-controls-mission button {
        background-color: rgba(0, 0, 0, 0.9);
        border: 2px solid #FFCB05;
        color: #FFCB05;
        padding: 10px 14px;
        cursor: pointer;
        border-radius: 6px;
        transition: all 0.3s ease;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .video-controls-mission button:hover {
            background-color: #FFCB05;
            color: #000000;
            transform: scale(1.15);
            box-shadow: 0 4px 12px rgba(255, 203, 5, 0.4);
        }

        .video-controls-mission button i {
            font-size: 1rem;
        }

/* Video Progress Container */
.video-progress-container {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 10;
}

/* Video Time Display */
.video-time-display {
    color: #FFCB05;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    display: inline-block;
    width: 100%;
}

/* Video Progress Bar */
.video-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    border: 2px solid rgba(255, 203, 5, 0.3);
    overflow: hidden;
}

.video-progress-filled {
    height: 100%;
    background: linear-gradient(90deg, #FFCB05 0%, #FFD700 100%);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
    position: relative;
}

    .video-progress-filled::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: #FFFFFF;
        box-shadow: 0 0 8px rgba(255, 203, 5, 0.8);
    }

.video-progress-bar:hover {
    height: 10px;
    border-color: #FFCB05;
}

    .video-progress-bar:hover .video-progress-filled {
        background: linear-gradient(90deg, #4A9FD8 0%, #6BB6E8 100%);
    }

/* Mobile Responsive Adjustments */
@media (max-width: 767.98px) {
    .video-controls-mission {
        bottom: 4.5rem;
        gap: 0.5rem;
        padding: 0.4rem 0.8rem;
    }

        .video-controls-mission button {
            width: 38px;
            height: 38px;
            padding: 8px 10px;
        }

            .video-controls-mission button i {
                font-size: 0.9rem;
            }                       

    .video-time-display {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }

    .video-progress-bar {
        height: 6px;
    }

        .video-progress-bar:hover {
            height: 8px;
        }
}


/* Mobile adjustments - CECOM specific */
@media (max-width: 767.98px) {
    .video-expand-fullscreen-btn {
        top: 0.25rem;
        right: 0.25rem;
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
        gap: 0.3rem;
    }

        .video-expand-fullscreen-btn span {
            display: none !important;
        }

    .video-controls-mission {
        bottom: 3rem !important;
        gap: 0.4rem;
        padding: 0.4rem;
    }

        .video-controls-mission button {
            width: 36px;
            height: 36px;
            padding: 6px 10px;
        }

            .video-controls-mission button i {
                font-size: 14px;
            }
}

/* Small mobile - even more compact */
@media (max-width: 576px) {
    .video-expand-fullscreen-btn {
        top: 0.25rem;
        right: 0.25rem;
        padding: 0.35rem 0.5rem;
        font-size: 0.65rem;
    }

    .video-controls-mission {
        bottom: 2.5rem !important;
        gap: 0.3rem;
        padding: 0.35rem;
    }

        .video-controls-mission button {
            width: 32px;
            height: 32px;
            padding: 5px 8px;
        }

            .video-controls-mission button i {
                font-size: 12px;
            }
}
































