/* --- Reset & Global Styles --- */
body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    color: #29344c;
    background-color: #f9fafb;
    line-height: 1.7;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #29344c;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
}

/* --- Header & Navigation --- */
.main-header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.main-logo {
    height: 50px;
}

.nav-links {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #29344c;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #d22b1c;
}

/* --- Hero Section --- */
.hero {
    background-color: #ffffff;
    text-align: center;
    padding: 4rem 2rem;
}

.hero-text h1 {
    font-size: 2.5rem;
    max-width: 800px;
    margin: 0 auto 1rem auto;
}

.hero-text p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    color: #5a647e;
}

/* --- Divisions Section --- */
.divisions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    text-align: left;
}

.division-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    box-sizing: border-box;
}

.division-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.division-logo {
    height: 60px;
    margin-bottom: 1rem;
}

.division-card h3 {
    margin-top: 0;
    font-size: 1.25rem;
}

/* --- Footer --- */
.main-footer {
    background-color: #29344c;
    color: #ffffff;
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
}

/* --- CTA & Buttons --- */
.cta-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.btn-primary {
    background-color: #d22b1c;
    color: #ffffff;
    transition: filter 0.2s ease;
}

.btn-primary:hover {
    filter: brightness(0.95);
}

/* --- Image helpers --- */
.img-mask-bottom { position: relative; overflow: hidden; }
.img-mask-bottom img { display:block; width:100%; height:auto; }
.img-mask-bottom::after {
    content:""; position:absolute; left:0; right:0; bottom:0; height:80px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #ffffff 60%);
}

/* --- Sub-page Styles --- */
.card-link-wrapper {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.sub-hero {
    background-color: #29344c;
    color: #ffffff;
    padding: 3rem 2rem;
    text-align: center;
}

.sub-hero h1 {
    color: #ffffff;
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

.sub-hero .subtitle {
    font-size: 1.2rem;
    color: #e5e7eb;
    max-width: 800px;
    margin: 0 auto;
}

.content-section {
    padding-top: 2rem;
}

.content-section h2 {
    margin-bottom: 2rem;
    text-align: left;
}

.two-column-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    text-align: left;
}

.two-column-layout .column {
    flex: 1;
    min-width: 300px;
}

.two-column-layout h4 {
    font-size: 1.2rem;
    border-bottom: 2px solid #d22b1c;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.two-column-layout ul {
    list-style-type: none;
    padding-left: 0;
}

.two-column-layout li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23d22b1c" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>') no-repeat left center;
    padding-left: 35px;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    line-height: 1.5;
}
