:root {
    --primary-color: #0f2c59; /* Deep Navy */
    --secondary-color: #c5a065; /* Muted Gold */
    --accent-color: #173b69;
    --text-color: #333333;
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', serif;
    color: var(--primary-color);
    font-weight: 700;
}

.text-primary-custom { color: var(--primary-color) !important; }
.text-secondary-custom { color: var(--secondary-color) !important; }
.bg-primary-custom { background-color: var(--primary-color) !important; }
.bg-light-custom { background-color: var(--light-bg) !important; }
.btn-primary-custom {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 5px;
    transition: 0.3s;
}
.btn-primary-custom:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}
.btn-outline-custom {
    border: 2px solid #fff;
    color: #fff;
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 5px;
    transition: 0.3s;
}
.btn-outline-custom:hover {
    background-color: #fff;
    color: var(--primary-color);
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 4px 0;
}
.navbar-brand {
    font-family: 'Georgia', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}
.navbar-brand span {
    color: var(--secondary-color);
}
.nav-link {
    color: var(--text-color) !important;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 10px;
    position: relative;
}
.nav-link:hover, .nav-link.active {
    color: var(--secondary-color) !important;
}
.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-top: 3px solid var(--secondary-color);
}
.dropdown-item:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(15, 44, 89, 0.85), rgba(15, 44, 89, 0.9)), url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?q=80&w=2070') center/cover no-repeat;
    color: #fff;
    padding: 120px 0;
    text-align: center;
}
.hero-section h1 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 20px;
}
.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Sections */
.section-padding {
    padding: 80px 0;
}
.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    font-size: 2.2rem;
    text-transform: capitalize;
    margin-bottom: 15px;
}
.section-title p {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}
.divider {
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 0 auto 20px;
}

/* Cards */
.feature-card, .program-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 30px;
    transition: all 0.3s ease;
    height: 100%;
}
.feature-card:hover, .program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-color: var(--secondary-color);
}
.feature-icon {
    width: 60px;
    height: 60px;
    background-color: var(--light-bg);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

/* Swiper */
.swiper {
    padding-bottom: 50px;
}
.swiper-pagination-bullet-active {
    background-color: var(--secondary-color) !important;
}

/* Footer */
.footer {
    background-color: #0a1d3b;
    color: #b0b8c4;
    padding: 60px 0 20px;
}
.footer h5 {
    color: #fff;
    margin-bottom: 25px;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 600;
}
.footer a {
    color: #b0b8c4;
    text-decoration: none;
    transition: 0.3s;
    display: block;
}
.footer a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
}

/* Accordion */
.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: var(--light-bg);
}
.accordion-button:focus {
    box-shadow: none;
    border-color: var(--secondary-color);
}

/* Forms */
.form-control, .form-select {
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #ddd;
}
.form-control:focus, .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(197, 160, 101, 0.25);
}

/* =========================================
   SPECIFIC CSS FOR PROGRAM FEATURES, 
   ASSESSMENT & AWARD REQUIREMENTS SECTIONS
========================================= */

/* 1. Standard Program Features - Card Alignment */
.feature-card.d-flex {
    /* Ensures the icon and text align perfectly vertically */
    align-items: center !important;
}

.feature-card .feature-icon {
    /* Resets the margin bottom from the original class so it aligns sideways */
    margin-bottom: 0 !important; 
    width: 50px;
    height: 50px;
    font-size: 20px;
    flex-shrink: 0; /* Prevents icon from squishing on small screens */
}

/* Make the feature card title slightly smaller to fit in one line nicely */
.feature-card h6 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.4;
}

/* 2. Assessment Methods - Checklist Polish */
.shadow-sm {
    /* Slightly softer shadow for the checklist items */
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shadow-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
}

/* 3. Award Requirements - Dark Section Polish */
.bg-primary-custom.text-white .section-title h2.text-white {
    color: #ffffff !important;
}

.bg-primary-custom.text-white .section-title p.text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Ensure the white checklist cards inside the dark section look clean */
.bg-primary-custom .bg-white {
    border-left: 4px solid var(--secondary-color) !important;
    border-radius: 4px !important;
}

/* Polish for the checkmark icons */
.fas.fa-clipboard-check {
    color: var(--secondary-color) !important;
}

/* =========================================
   TYPES OF AFFILIATION SECTION
========================================= */

/* Gold top border accent for the affiliation cards */
.feature-card.border-top {
    border-top: 4px solid var(--secondary-color) !important;
}

/* Custom styling for the bulleted lists inside affiliation cards */
.affiliation-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.affiliation-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: #444;
    line-height: 1.5;
}

/* Custom checkmark icon for the list bullets */
.affiliation-list li::before {
    content: "\f00c"; /* Font Awesome check icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 14px;
}

/* Align the header icon and title perfectly */
.feature-card .d-flex.align-items-center .feature-icon {
    margin-bottom: 0 !important;
    width: 50px;
    height: 50px;
    font-size: 20px;
}

/* =========================================
   AFFILIATION: BENEFITS, APPLICANTS & ELIGIBILITY
========================================= */

/* Polish for the "Who Can Apply" centered cards */
.feature-card.text-center h6 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.4;
}

/* Ensure the header icon and title align perfectly in Eligibility cards */
.feature-card .d-flex.align-items-center .feature-icon {
    margin-bottom: 0 !important;
    width: 50px;
    height: 50px;
    font-size: 20px;
    flex-shrink: 0;
}

.feature-card .d-flex.align-items-center h5 {
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* =========================================
   AFFILIATION APPLICATION PROCESS
========================================= */

.process-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 25px;
    height: 100%;
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.process-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.07);
    border-color: var(--secondary-color);
}

/* The large numbered circle */
.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Georgia', serif;
    font-size: 1.4rem;
    font-weight: 700;
    border: 3px solid var(--secondary-color);
}

/* The text content area */
.step-content {
    flex-grow: 1;
}

.step-content h5 {
    margin-bottom: 10px;
    color: var(--primary-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
}

.step-content p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 10px;
}

/* Adjust the lists inside the process cards to be more compact */
.step-content .affiliation-list li {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

/* Add a subtle vertical line connecting the steps visually */
.step-content::before {
    content: '';
    position: absolute;
    left: 49px;
    top: 75px;
    bottom: -25px;
    width: 2px;
    background-color: #e0e0e0;
    z-index: 0;
}

/* Hide the line on the last item of the grid row to prevent overlapping */
.col-lg-6:nth-child(odd) .step-content::before,
.process-card:last-child .step-content::before {
    display: none; 
}

/* =========================================
   AFFILIATION POLICIES & DOCUMENTS
========================================= */

/* Puts the documents list inside neat bordered boxes */
.box-list li {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 10px 10px 10px 30px !important;
    border-radius: 5px;
    margin-bottom: 8px;
}

.box-list li::before {
    left: 10px;
    top: 12px;
}

/* Makes long lists split into two columns to save vertical space */
.two-col-list {
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
}

@media (max-width: 576px) {
    .two-col-list {
        columns: 1;
        -webkit-columns: 1;
        -moz-columns: 1;
    }
}

/* Custom styling for the Suspension/Termination red X list */
.termination-list {
    list-style: none;
    padding-left: 0;
}

.termination-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: #444;
}

.termination-list li::before {
    content: "\f057"; /* Font Awesome times-circle icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #dc3545; /* Bootstrap danger red */
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 16px;
}

/* Left border accent for the renewal card */
.border-left-warning {
    border-left: 5px solid var(--secondary-color) !important;
}

/* =========================================
   HOMEPAGE: AUDIENCE & FLEXIBLE LEARNING
========================================= */

/* Target Audience List Items */
.d-flex.align-items-center.p-3.bg-white.rounded {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.d-flex.align-items-center.p-3.bg-white.rounded:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.07) !important;
}

.d-flex.align-items-center span {
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.4;
}

/* Flexible Learning Cards on Dark Background */
.flex-learning-card {
    background-color: rgba(255, 255, 255, 0.05); /* Subtle transparent white */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.flex-learning-card:hover {
    background-color: rgba(197, 160, 101, 0.1); /* Subtle gold tint on hover */
    border-color: var(--secondary-color);
    transform: translateY(-5px);
}

.flex-learning-card h5 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0;
} 

/* =========================================
   ABOUT PAGE: OBJECTIVES, APPROACH & COMMITMENTS
========================================= */

/* Adjustments for box-list when inside a feature card */
.feature-card .box-list li {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 10px 10px 10px 30px !important;
    border-radius: 5px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    transition: 0.2s;
}

.feature-card .box-list li:hover {
    background: #fff;
    border-color: var(--secondary-color);
}

/* Our Purpose Section Text Polish */
#purpose .lead {
    font-weight: 500;
    color: var(--primary-color);
}

#purpose .fs-5 {
    line-height: 1.8;
}