/* RFMSS Website Styles */

/* Font Definitions */
@font-face {
    font-family: 'G.I.';
    src: url('fonts/G_I_-400_copy.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'G.I.';
    src: url('fonts/G_I_-400Italic_copy.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'G.I.';
    src: url('fonts/G_I_-530_copy.ttf') format('truetype');
    font-weight: 530;
    font-style: normal;
}

@font-face {
    font-family: 'G.I.';
    src: url('fonts/G_I_-530Italic_copy.ttf') format('truetype');
    font-weight: 530;
    font-style: italic;
}

@font-face {
    font-family: 'G.I.';
    src: url('fonts/G_I_-750_copy.ttf') format('truetype');
    font-weight: 750;
    font-style: normal;
}

@font-face {
    font-family: 'G.I.';
    src: url('fonts/G_I_-750Italic_copy.ttf') format('truetype');
    font-weight: 750;
    font-style: italic;
}

/* CSS Variables */
:root {
    --color-gold: #FFCC01;
    --color-gold-light: #E8C45A;
    --color-gold-dark: #B8922E;
    --color-dark: #1A1A1A;
    --color-dark-lighter: #2D2D2D;
    --color-white: #FFFFFF;
    --color-gray-light: #F5F5F5;
    --color-gray-medium: #666666;
    --color-gray-dark: #333333;
    --color-green-dark: #3D5A3D;
    --color-green-button: #4A6741;
    --color-link-blue: #4A90D9;
    --font-primary: 'G.I.', 'Arial', sans-serif;
    --font-secondary: 'Segoe UI', 'Arial', sans-serif;
    --max-width: 1200px;
    --header-height: 50px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-gray-dark);
    background-color: var(--color-gray-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 20px;
    background-color: var(--color-dark);
    height: var(--header-height);
}

.headercol {
    padding: 0 10px;
    text-align: center;
    flex: 1;
}

.left-headercol,
.right-headercol {
    flex: 0 0 150px;
}

.center-headercol {
    flex: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--color-gold);
}

.logo-img {
    height: 32px;
    width: auto;
}

.logo-star {
    width: 24px;
    height: 24px;
}

.logo-text {
    font-family: var(--font-primary);
    font-weight: 750;
    font-size: 1.25rem;
    letter-spacing: 1px;
}

.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    height: 100%;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--color-gold);
    text-decoration: none;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--color-gold-light);
}

.nav-link .dropdown-arrow {
    font-size: 0.6rem;
    transition: transform 0.2s ease;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-white);
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1001;
}

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

.nav-item:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--color-gray-dark);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: var(--color-gray-light);
}

/* Hero Section */
.hero-index {
    position: relative;
    height: 280px;
    background: url('images/hero-soldiers.jpg') center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
}

/* @supports (background-image: url('images/hero-soldiers.webp')) {
    .hero-index {
        background-image: url('images/hero-soldiers.webp');
    }
} */

.hero-help {
    position: relative;
    height: 280px;
    background: url('images/hero-help.jpg') center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
}

/* @supports (background-image: url('images/hero-help.webp')) {
    .hero-help {
        background-image: url('images/hero-help.webp');
    }
} */

.hero-about {
    position: relative;
    height: 280px;
    background: url('images/hero-soldiers.jpg') center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
}

/* @supports (background-image: url('images/hero-soldiers.webp')) {
    .hero-about {
        background-image: url('images/hero-soldiers.webp');
    }
} */

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

.hero-title {
    font-family: var(--font-primary);
    font-weight: 750;
    font-size: 3rem;
    color: var(--color-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.hero-subtitle {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 1.25rem;
    color: var(--color-white);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Hero for subpages (shorter) */
.hero-small {
    height: 180px;
    background: url('images/hero-help.jpg') center center / cover no-repeat;
}

/* @supports (background-image: url('images/hero-help.webp')) {
    .hero-small {
        background-image: url('images/hero-help.webp');
    }
} */

/* Main Content */
.main {
    flex: 1;
    padding: 40px 20px;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Section Titles */
.section-title {
    font-family: var(--font-primary);
    font-weight: 750;
    font-size: 1.75rem;
    color: var(--color-gray-dark);
    text-align: center;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: var(--color-gray-medium);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Commands Table */
.commands-section {
    background-color: var(--color-white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 50px;
}

.commands-table {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    border-collapse: collapse;
}

.commands-table th {
    background-color: var(--color-white);
    color: var(--color-white);
    font-family: var(--font-primary);
    font-weight: 750;
    font-size: 1.2rem;
    padding: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}


.commands-table td {
    padding: 0;
    border-bottom: 1px solid var(--color-gray-light);
}


.commands-table tr:last-child td {
    border-bottom: none;
}

.command-link {
    display: block;
    text-decoration: none;
    color: var(--color-gray-dark);
    font-weight: 500;
    padding: 20px 16px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.command-link:hover {
    background-color: var(--color-gold);
    color: var(--color-dark);
}


/* Additional Resources Section */
.resources-section {
    background-color: var(--color-gray-light);
    padding: 50px 20px;
    margin: 0 -20px;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.resource-card {
    background-color: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.resource-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background-color: var(--color-gray-medium);
}

.resource-content {
    padding: 20px;
}

.resource-content p {
    color: var(--color-gray-medium);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.resource-button {
    display: block;
    width: 100%;
    background-color: var(--color-green-button);
    color: var(--color-white);
    text-align: center;
    padding: 12px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-family: var(--font-primary);
    font-weight: 530;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: background-color 0.2s ease;
}

.resource-button:hover {
    background-color: var(--color-green-dark);
}

/* Footer */
.footer {
    background-color: var(--color-dark);
    padding: 15px 20px;
    color: var(--color-gray-medium);
    font-size: 0.85rem;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-version {
    color: var(--color-gray-medium);
}

.footer-link {
    color: var(--color-link-blue);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--color-gold-light);
}

/* Index styles */
.index-resource-image-left {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: url('images/index-resource-left.jpg') center center / cover no-repeat;
}

/* @supports (background-image: url('images/index-resource-left.webp')) {
    .index-resource-image-left {
        background-image: url('images/index-resource-left.webp');
    }
} */

.index-resource-image-center {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: url('images/index-resource-center.jpg') center center / cover no-repeat;
}

/* @supports (background-image: url('images/index-resource-center.webp')) {
    .index-resource-image-center {
        background-image: url('images/index-resource-center.webp');
    }
} */

.index-resource-image-right {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: url('images/index-resource-right.jpg') center center / cover no-repeat;
}

/* @supports (background-image: url('images/index-resource-right.webp')) {
    .index-resource-image-right {
        background-image: url('images/index-resource-right.webp');
    }
} */


/* Site Page Specific Styles */
.site-content {
    background-color: var(--color-white);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.site-title {
    font-family: var(--font-primary);
    font-weight: 750;
    font-size: 2rem;
    color: var(--color-gray-dark);
    text-align: center;
    margin-bottom: 20px;
}

.site-description {
    text-align: center;
    color: var(--color-gray-medium);
    max-width: 600px;
    margin: 0 auto 30px;
}

.sites-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.site-row {
    display: contents;
}

.site-name {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-gray-light);
    font-weight: 500;
}

.site-links {
    display: flex;
    gap: 20px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-gray-light);
    justify-content: flex-end;
}

.site-link {
    color: var(--color-link-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.site-link:hover {
    color: var(--color-gold-dark);
    text-decoration: underline;
}

/* Help Page Styles */
.help-section {
    background-color: var(--color-white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.help-section-title {
    font-family: var(--font-primary);
    font-weight: 750;
    font-size: 1.5rem;
    color: var(--color-gray-dark);
    text-align: center;
    margin-bottom: 15px;
}

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

.help-contact {
    margin: 15px 0;
}

.help-contact-label {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: var(--color-gray-dark);
}

.help-contact-value {
    margin-left: 8px;
}

.help-contact-value a {
    color: var(--color-link-blue);
    text-decoration: underline;
}

.help-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.help-card {
    border: 1px solid var(--color-gray-light);
    border-radius: 8px;
    overflow: hidden;
}

.help-card-image-left {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: url('images/help-card-left.jpg') center center / cover no-repeat;
}

/* @supports (background-image: url('images/help-card-left.webp')) {
    .help-card-image-left {
        background-image: url('images/help-card-left.webp');
    }
} */

.help-card-image-right {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: url('images/help-card-right.jpg') center center / cover no-repeat;
}

/* @supports (background-image: url('images/help-card-right.webp')) {
    .help-card-image-right {
        background-image: url('images/help-card-right.webp');
    }
} */

.help-card-content {
    padding: 20px;
}

.help-card-content p {
    color: var(--color-gray-medium);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.help-button {
    display: block;
    width: 100%;
    background-color: var(--color-green-button);
    color: var(--color-white);
    text-align: center;
    padding: 12px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-family: var(--font-primary);
    font-weight: 530;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: background-color 0.2s ease;
}

.help-button:hover {
    background-color: var(--color-green-dark);
}

/* About Page Styles */
.about-content {
    background-color: var(--color-white);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.welcome-section {
    text-align: center;
    margin-bottom: 40px;
}

.welcome-title {
    font-family: var(--font-primary);
    font-weight: 750;
    font-size: 2rem;
    color: var(--color-gray-dark);
    margin-bottom: 20px;
}

.welcome-text {
    max-width: 700px;
    margin: 0 auto;
    color: var(--color-gray-medium);
    line-height: 1.7;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border: 1px solid var(--color-gray-light);
    border-radius: 8px;
    transition: border-color 0.2s ease;
}

.info-card:hover {
    border-color: var(--color-gold);
}

.info-icon {
    width: 40px;
    height: 40px;
    background-color: var(--color-gold);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--color-dark);
}

.info-text {
    color: var(--color-gray-dark);
    font-size: 0.95rem;
}

/* Videos Section */
.videos-section {
    background-color: var(--color-gray-light);
    padding: 50px 20px;
    margin: 0 -40px -40px;
    border-radius: 0 0 8px 8px;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.video-placeholder {
    background-color: var(--color-gray-medium);
    border-radius: 8px;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--color-white);
}

/* Responsive Styles */
@media (max-width: 900px) {
    .sites-grid {
        grid-template-columns: 1fr;
    }

    .site-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0;
        border-bottom: 1px solid var(--color-gray-light);
    }

    .site-name,
    .site-links {
        border-bottom: none;
        padding: 0;
    }

    .help-cards {
        grid-template-columns: 1fr;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
    }

    .nav-link {
        padding: 0 12px;
        font-size: 0.85rem;
    }

    .search-input {
        width: 140px;
    }

    .search-input:focus {
        width: 160px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .commands-table td {
        padding: 10px 8px;
    }

    .footer-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

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

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

/* Placeholder backgrounds for hero images */
.hero {
    background-color: var(--color-dark);
}

.hero-small {
    background-color: var(--color-dark);
}

/* Star SVG Icon */
.star-icon {
    color: var(--color-gold);
}


#popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#close-popup {
    margin-top: 10px;
    padding: 10px 20px;
    cursor: pointer;
}
