/* ================= GLOBAL CONFIGURATION ================= */
:root {
    --primary-blue: #0779ad;
    --dark-blue: #0369a1;
    --soft-blue: #38bdf8;
    --green: #22c55e;
    --light-bg: #f8fafc;
    --text-dark: #0f172a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: var(--light-bg);
    color: var(--text-dark);
    /* color: white; */

    /* remove flex for r_mapping to work */
    /* display: flex;
    flex-direction: column; */
    min-height: 100vh;
}

/* ================= NAVIGATION BAR ================= */
.navbar {
    background: linear-gradient(135deg, #053B4A 0%, #0A6D88 45%, #0A6D88 55%, #053B4A 100%);
    padding: 0.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #c1f6ed;
    font-weight: 500;
    position: relative;
    padding-bottom: 6px;
    transition: color 0.3s ease;
}

/* Animated underline */
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: #ffce00; 
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #ffffff; 
    font-weight: 750;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ================= DROPDOWN MENUS ================= */
.nav-item {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.dropdown-toggle::after {
    content: "▼";
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(135deg, #053B4A 0%, #0A6D88 45%, #0A6D88 55%, #053B4A 100%);
    border: 1px solid #0369a1;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 200px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.dropdown-menu a {
    display: block;
    color: #c1f6ed;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
    font-size: 0.95rem;
}

.dropdown-menu a:hover {
    background: rgba(255, 206, 0, 0.15);
    color: #ffffff;
}

/* Trigger states */
.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-item:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* ================= HERO SECTION ================= */
.hero {
    min-height: 80vh;
    /* display: flex;  */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    color: white;
    background: linear-gradient(135deg, var(--primary-blue), var(--green));
}

.hero-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--green));
    color: white;
    text-align: center;
    margin-bottom: 1.5rem;
}

.hero-header p {
    font-size: 1rem;
    max-width: 700px;
    margin: auto;
}

.hero-content {
    max-width: 95%;
    /* max-height: 65%; */
    margin: 0 auto;
    /* display: flex; */
    flex-direction: column;
    gap: 0;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 14px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero h2 {
    font-size: 1.2rem;
    font-weight: normal;
    color: #ffce00;
    margin: auto;
}

.hero p {
    font-size: 1.2rem;
    /* max-width: 600px; */
    margin: auto;
}

.hero button {
    margin-top: 2rem;
    padding: 0.9rem 2rem;
    border: none;
    background: white;
    color: var(--primary-blue);
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.hero button:hover {
    background: var(--soft-blue);
    color: white;
}

/* Specific Section adjustments inside Hero */
.hero .section {
    margin: 0;
    background: white;
    color: var(--text-dark);
    border-radius: 18px;

}

.hero .section h2 {
    color: var(--primary-blue);
}

/* ================= GENERAL SECTIONS ================= */
.section {
    padding: 2rem 1rem;
    text-align: center;
}

.section.alt {

    background: linear-gradient(135deg, var(--primary-blue), var(--green));
}

.section h2 {
    color: white;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.section h3 {
    font-weight: normal;
    color: #ffce00;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.section p {
    font-size: 0.95rem;
    /* max-width: 700px; */
    margin: auto;
    line-height: 1.6;
    color: #475569;
    /* margin-bottom: 1rem; */
    text-align: justify;
    color: black; 
}

/* ================= SECTION COMPONENTS ================= */
.section-with-image {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.section-text {
    flex: 1;
}

.section-image {
    flex: 0 0 15%;
    min-width: 150px;
}

.section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.logos-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.logos-container img {
    width: 30%;
    max-height: 70px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ================= CARDS CONTAINER & ITEMS ================= */
.cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.cards-inline {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.card {
    padding: 24px;
    border-radius: 24px;
    background: rgba(7, 121, 173, 0.3);
    border: 1px solid rgba(255,255,255,0.10);
    backdrop-filter: blur(10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    font-size: 18px;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
}

/* ================= FOOTER ================= */
footer {
    background: #1e293b;
    color: #cbd5e1;
    text-align: center;
    padding: 2rem;
}

/* ================= RESPONSIVE LAYOUTS ================= */
@media(max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .cards, .cards-inline {
        grid-template-columns: 1fr; /* Changes grid grids to list-stack on mobile */
    }
    .section-with-image {
        flex-direction: column; /* Stack image sections vertically on mobile */
    }
}
