/* --- GLOBAL BASE STYLES --- */
* { box-sizing: border-box; }

body {
    background: linear-gradient(172deg, rgba(85,72,64,1) 0%, rgba(65,83,59,1) 100%);
    font-family: 'Open Sans', sans-serif;
    color: white;
    min-height: 100vh;
    margin: 0;
}

h1, h2, h3 { text-align: center; font-family: 'Montserrat', sans-serif; }
h1 { font-size: 30px; margin: 20px 0; }
p { line-height: 1.5; font-size: 16px; }
.center-text { text-align: center; }

/* --- LEGACY LAYOUT SUPPORT (For Learn More & Snapchat pages) --- */
.contents, .wrapper { max-width: 900px; margin: 0 auto; padding: 15px; }

/* Keep your tables looking clean on sub-pages */
table { width: 100%; border-collapse: separate; border-spacing: 0 15px; margin: auto; }
table td {
    padding: 20px;
    background-color: #fafaf5;
    color: black;
    border-radius: 8px;
    border: 2px solid #d6c1ab;
}

/* Fix for the Snapchat Sale grey background row */
tr[id="2"] td { background-color: #e0e0e0 !important; }

/* List styling for internal pages */
ul { text-align: left; display: inline-block; margin: 10px 0; }
li { margin-bottom: 8px; }

/* --- NAVIGATION & LINKS --- */
.nav-container { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.nav-link, a.sub-menu {
    color: #284283;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}
.nav-link:hover, a.sub-menu:hover { color: #38ffb6; }

/* White text for links on the dark background */
body > a.nav-link, .main-content .nav-link { color: lightyellow; }

/* --- MODERN HOME PAGE GRID --- */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.army-card {
    background-color: #fafaf5;
    color: black;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    border: 2px solid #d6c1ab;
}

/* --- BUTTONS & UTILITIES --- */
/* This part keeps your Desktop looking exactly how it was */
.button-group { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 10px; 
    padding: 10px 0;
}

.myButton {
    background-color: #1A100E;
    border-radius: 4px;
    color: white;
    padding: 10px 20px;
    display: inline-block;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    text-align: center;
}

.myButton:hover { 
    color: #38ffb6; 
    transform: translateY(-2px); 
}

/* --- THE MOBILE-ONLY FIX (Linktree Style) --- */
/* This ONLY triggers on screens smaller than 600px */
@media screen and (max-width: 600px) {
    .button-group {
        flex-direction: column; /* Stack them vertically */
        align-items: stretch;   /* Make them the same length */
        width: 100%;
        max-width: 300px;       /* Keeps them from hitting the edges of the card */
        margin: 0 auto;
    }

    .myButton {
        display: block;
        width: 100%;           /* Full width of the group */
        padding: 15px 20px;    /* Bigger touch area for thumbs */
        margin-bottom: 5px;    /* Space between stacked buttons */
    }
}
/* --- SOCIAL ICON RESTORATION --- */
.social-menu {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
}

.social-icon {
    width: 50px;
    height: 50px;
    background-color: #1A100E;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none; /* This removes the underline */
    transition: 0.3s;
}

.social-icon i {
    text-decoration: none; /* Ensures the icon itself isn't underlined */
    font-size: 20px;
}

.social-icon:hover {
    transform: translateY(-5px); /* The "pop" effect */
    color: #38ffb6; /* Mint green on hover */
}

/* Specific button cleanup to prevent underlines there too */
.myButton {
    text-decoration: none;
}

/* Images */
img { max-width: 100%; height: auto; border-radius: 4px; }
.short { max-width: 800px; display: block; margin: 0 auto; }

/* Restored Learn More Link Styles */
.nav-link {
    color: lightyellow;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    padding: 10px 5px;
    border-bottom: 3px solid transparent;
    transition: 0.3s;
    cursor: pointer;
    display: inline-block;
}

.nav-link:hover, .nav-link.active {
    color: #38ffb6;
    border-bottom: 3px solid #f96854;
}

/* --- FIX FOR CUT-OFF CONTENT & SMOOTH ROLL --- */
.display-content {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    background-color: #ffffff;
    border-radius: 15px;
    color: black;
    margin-top: 20px;
    /* Cubic-bezier keeps that "weighted" page-opening feel */
    transition: max-height 1s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease-in-out;
}

.display-content.is-visible {
    /* Increased to 10000px so Special Forces never gets cut off */
    max-height: 10000px;
    opacity: 1;
    visibility: visible;
    border: 1px solid #ddd;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* This ensures the bottom card (Special Forces) has breathing room */
#inner-content {
    padding: 25px;
    display: block;
    height: auto;
}
/* --- SIDENAV  --- */
.sidenav {
    height: 100%;
    width: 0; /* Managed by JavaScript openNav() */
    position: fixed;
    z-index: 2000; /* Higher than cards to ensure it's on top */
    top: 0;
    left: 0;
    background-color: #111;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
}

.sidenav a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: #818181;
    display: block;
    transition: 0.3s;
}

.sidenav a:hover {
    color: #f1f1f1;
}

.sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

/* Tooltip & Trigger Styling */
.menu-trigger {
    margin: 20px 0;
}

.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black;
  cursor: pointer;
}

.tooltiptext {
  visibility: hidden;
  width: 130px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}

/* Banner sizing to make sure it looks right on top */
.banner {
    max-width: 90%;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
}

/* Ensure the main container doesn't overflow on small screens */
@media screen and (max-width: 600px) {
    .main-content {
        padding: 10px;
        width: 100%;
        overflow-x: hidden;
    }
    
    h1 {
        font-size: 24px; /* Slightly smaller for mobile headers */
    }

    .army-card {
        padding: 15px; /* Tighter padding for mobile cards */
    }
}

img {
    max-width: 100%;
    height: auto;
}