/* General Body Styles */
body {
    font-family: 'Arimo', sans-serif; /* Using the Google Font from the HTML */
    margin: 0;
    background-color: #ffffff;
    color: #191919;
    font-size: 35.4382px
}

/* A container for centered content sections */
section {
    max-width: 1100px;
    margin: 0 auto; /* Center the content */
    padding: 0px 20px;
    /* text-align is now handled by more specific rules below */
}

/* Basic styles for headings and paragraphs */
h1, h2, h3 {
    font-weight: 700;
}

h1 {
    font-size: 2.8rem; /* 44px */
}

h2 {
    font-size: 2.4rem; /* 38px */
    margin-bottom: 0px;
}

p, li {
    /* line-height: 1.6; */
}

/* Header & Navigation */
.hero-section {
    padding: 20px;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto 30px auto;
}

.logo {
    width: 250px;
    height: auto;
}

/* This new container will hold the arrow and button */
.nav-cta-group {
    display: flex;
    align-items: center; /* This vertically aligns the arrow and button */
}

/* Style the new arrow SVG */
.nav-arrow {
    width: 42.28px;
    height: 139.26px;
    fill: #191919;
    margin-right: 80px;
    transform: rotate(90deg);
    animation: slideIn 2s forwards;
}

@keyframes slideIn {
    0% {
        transform: translateX(-80px) rotate(90deg);
        opacity: 0;
    }
    100% {
        transform: translateX(0) rotate(90deg);
        opacity: 1;
    }
}

.nav-button {
    background-color: transparent;
    border: 2px solid #191919;
    color: #191919;
    padding: 1rem 2rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.3s, color 0.3s;
}

.nav-button:hover {
    background-color: #191919;
    color: #ffffff;
}

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

.hero-gallery img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
}

/* --- TEXT ALIGNMENT REFINEMENTS --- */

.intro-section h1,
.intro-section .subtitle {
    text-align: center;
}

.intro-section h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0;
}

.intro-section .subtitle {
    font-size: 2.8rem;
    margin-top: 0;
    margin-bottom: 2rem;
}

.intro-section h2 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
}

.intro-section p:not(.subtitle) {
    text-align: left;
}

.divisions-section h2,
.mission-section h2,
.get-started-section h2,
.text-center {
    text-align: center;
}

.mission-section p {
    text-align: left;
}

.rewards-list, .mission-list, .cta-list {
    list-style-type: none;
    padding-left: 0;
}

.rewards-list li, .mission-list li, .cta-list li {
    text-align: left;
    margin-bottom: 10px;
}

.rewards-section p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.table-container {
    overflow-x: auto;
    font-size: 18.6666px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    border: 3px solid #99acff;
}

th {
    border: 3px solid #99acff;
    padding: 1.2rem;
    vertical-align: top;
    text-align: left;
    font-size: 27.9997px;
}

td {
    border: 3px solid #99acff;
    padding: 1.2rem;
    vertical-align: top;
    text-align: left;
}

thead {
    /* font-size: 1.2rem; */
}

thead th {
    font-weight: 700;
}

tbody tr td:first-child {
    font-size: 27.9997px;
}

/* --- GET STARTED SECTION --- */

.cta-list li {
    margin-bottom: 40px;
}

.cta-image-button {
    display: block; /* Allows margin auto to work */
    margin: 40px auto 0 auto; /* Center the button */
    width: 275px; /* Set a specific width for the button image */
}

/* --- FOOTER SECTION --- */
.main-footer {
    padding: 120px 20px 0px;
    text-align: center;
}

.social-icons {
    margin-bottom: 20px;
}

.social-icons a {
    margin: 0 10px;
    display: inline-block;
}

.social-icons img {
    width: 77px;
    height: 77px;
    transition: opacity 0.3s ease; /* Add a smooth transition */
}

.social-icons a:hover img {
    opacity: 0.7; /* Makes the icon slightly transparent on hover */
}

.footer-logo {
    width: 200px;
    margin: 0px auto;
}

.copyright {
    color: #666;
    font-size: 26.6671px
}

/* --- RESPONSIVE DESIGN --- */

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    .intro-section h2 {
        font-size: 2.2rem; /* Adjust tagline size on medium screens */
    }

    /* Stack the nav items */
    .main-nav {
        flex-direction: column;
        gap: 20px;
    }

    /* Change image gallery to 2 columns */
    .hero-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* --- IMPROVE TABLE ON MOBILE --- */
    table, thead, tbody, th, td, tr {
        display: block; /* Makes table elements stack */
    }

    thead tr {
        position: absolute;
        top: -9999px; /* Hides the table headers */
        left: -9999px;
    }

    tr {
        border: 3px solid #99acff;
        margin-bottom: 1rem;
    }

    td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding: 0.8rem 0.8rem 0.8rem 50%;
        text-align: left;
        font-size: 14px;
    }

    td:before {
        position: absolute;
        top: 0.8rem;
        left: 0.8rem;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: 700;
        font-size: 15px; /* CHANGED: A slightly larger font size for the labels */
    }

    /* NEW RULE: Make the first data cell's font size larger to match the labels */
    tbody tr td:first-child {
        font-size: 15px; 
    }

    /* Add the content for the labels */
    td:nth-of-type(1):before { content: "🏷️ Division"; }
    td:nth-of-type(2):before { content: "🌟 Focus Area"; }
    td:nth-of-type(3):before { content: "🔧 Products & Tools"; }
}

@media (max-width: 480px) {
    /* Change image gallery to 1 column */
    .hero-gallery {
        grid-template-columns: 1fr; /* Single column on very small screens */
    }
}