﻿:root {
    --primary: #0E3A5D;
    --secondary: #1F8A8C;
    --accent: #C8102E;
    --bg: #F7F9FC;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: var(--bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Buttons ===== */
.btn-primary {
    background: var(--secondary);
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-block;
}
.btn-primary:hover { background: var(--primary); }

.btn-outline-light {
    border: 2px solid #fff;
    color: #fff;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    background: transparent;
    display: inline-block;
}
.btn-outline-light:hover { background: #fff; color: var(--primary); }

/* ===== Header ===== */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;  /* Prevent wrapping */
    gap: 10px;
}

.logo-wrapper {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-wrapper img {
    height: 90px;
    width: auto;
    display: block;
}

.logo-wrapper .logo-text {
    font-size: 1.2rem;
    white-space: nowrap;
}


.logo-wrapper .logo-text .hy { color: #C8102E; }

@media (max-width: 992px) {
    .logo-wrapper img { height: 60px; }
    .logo-wrapper .logo-text { font-size: 1.1rem; }
}


/* ===== Navigation ===== */

nav {
    flex-shrink: 0;
}

nav > ul {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li a {
    font-size: 0.9rem;
    white-space: nowrap;
    padding: 5px 0;
}

nav ul li a:hover { color: var(--secondary); }
nav ul li a.btn-primary { color: #fff; padding: 8px 20px; }

/* Dropdown */
nav ul li { position: relative; }
nav ul li ul.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: var(--shadow);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 200px;
}
nav ul li:hover ul.dropdown { display: block; }
nav ul li ul.dropdown li a { padding: 8px 20px; display: block; font-weight: 400; }

/* Mobile Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}
.menu-toggle span { width: 25px; height: 3px; background: #111; border-radius: 3px; }

/* ===== Hero ===== */
.hero {
    padding: 20px 10px;
    background: linear-gradient(rgba(14,58,93,0.65), rgba(14,58,93,0.75)), url('../images/hero/hero-bg.jpg') center/cover no-repeat;
    color: #fff;
    text-align: center;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-content { max-width: 1200px; }
.hero h1 {
    font-size: 2.3rem;        /* Reduced from 3rem */
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;        /* Reduced from 1.6rem */
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    margin-bottom: 15px;
}
.hero-description { 
    font-size: 1.1rem; line-height: 1.7;
     max-width: 900px; margin: 0 auto 25px; opacity: 0.9; }

/* ===== Stats ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}
.stat-item .number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    font-family: 'Poppins', sans-serif;
}
.stat-item .label { font-weight: 600; color: #111; }

/* ===== Stats Section ===== */
.stats-section {
    background: var(--bg);
    padding: 20px 0;
    border-bottom: 3px solid #eee;
}

/* ===== White & Grey Sections ===== */
.white-section { background: #fff; padding: 10px 0; }
.grey-section { background: var(--bg); padding: 10px 0; }

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(rgba(14,58,93,0.65), rgba(14,58,93,0.75));
    color: #fff;
    text-align: center;
    padding: 10px 0;
    width: 100%;
}
.cta-section h2 { color: #fff; font-size: 2.2rem; }
.cta-section p { margin: 20px auto; max-width: 600px; opacity: 0.9; }
.cta-section .btn-primary { background: var(--accent); }
.cta-section .btn-primary:hover { background: #fff; color: var(--primary); }

/* ===== Text Container ===== */
.text-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 10px;
    text-align: center;
}

/* ===== Cards ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.card {
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}
.card .icon { font-size: 3rem; }
.card:hover { transform: translateY(-8px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }

/* ===== Community Dropdown Button ===== */
.btn-community-dropdown {
    background: var(--secondary);
    color: #fff;
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
}
.btn-community-dropdown:hover { background: var(--primary); }

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}
.community-placeholder {
    background: #f0f4f8;
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* ===== Footer ===== */
footer {
    background: var(--primary);
    color: #fff;
    padding: 10px 0;
    text-align: center;
    border-top: 4px solid var(--secondary);
    font-size: 0.75rem;   /* Add this line – 13.6px */
    width: 100%;
}
footer a { color: #ddd; text-decoration: none; }
footer a:hover { color: var(--accent); }

/* ===== Contact Bar ===== */
.contact-bar {
    background: white;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}
.contact-details {
    font-size: 1rem;
    color: #333;
}
.contact-details i { color: var(--secondary); margin-right: 6px; }
.contact-details a { color: var(--primary); font-weight: 600; text-decoration: none; }
.contact-details .separator { margin: 0 12px; color: #ccc; }

@media (max-width: 576px) {
    .contact-details { font-size: 0.9rem; }
    .contact-details .separator { margin: 0 6px; }
}

/* ============================================
   CAROUSEL (Unified - No Duplication)
   ============================================ */
.carousel-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #f0f4f8;
}

.carousel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px 10px 20px;
    background: #f0f4f8;
    flex-wrap: wrap;
    gap: 10px;
}
.carousel-header .section-subtitle { margin: 0; text-align: left; font-size: 1.1rem; }

.carousel-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}
.carousel-controls .carousel-btn {
    position: static;
    transform: none;
    background: var(--secondary);
    color: #fff;
    border: none;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 50%;
    transition: var(--transition);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-controls .carousel-btn:hover { background: var(--primary); transform: scale(1.05); }
.carousel-controls .carousel-dots { display: flex; gap: 6px; padding: 0; }
.carousel-controls .carousel-dots .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}
.carousel-controls .carousel-dots .dot.active {
    background: var(--secondary);
    border-color: var(--primary);
    transform: scale(1.2);
}
.carousel-controls .carousel-dots .dot:hover { background: var(--secondary); }

.carousel-slides-wrapper { overflow: hidden; }
.carousel-slides { display: flex; transition: transform 0.8s ease-in-out; }
.carousel-slide {
    min-width: 100%;
    max-height: 65vh;
    object-fit: contain;
    display: block;
    background: #f0f4f8;
}

@media (min-width: 1400px) {
    .carousel-container { max-width: 1200px; }
}

/* Active navigation styles */
nav ul li a.active {
    color: var(--secondary) !important;
    font-weight: 700 !important;
}

/* Dropdown active styles */
nav ul li ul.dropdown li a.active {
    background: var(--bg);
    color: var(--secondary) !important;
    font-weight: 700 !important;
    border-left: 3px solid var(--secondary);
}

/* Home icon in navigation */
nav ul li a .home-icon {
    font-size: 1.2rem;
    vertical-align: middle;
}
nav ul li a .home-text {
    display: none;
}

/* DROPDOWN MENU - FIX */
nav li {
    position: relative;
}

nav li > .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;

    background: white;
    min-width: 220px;
    list-style: none;
    padding: 10px 0;
    margin: 0;

    box-shadow: 0 4px 20px rgba(0,0,0,.1);
    z-index: 9999;
}

nav li:hover > .dropdown {
    display: block;
}
/* Video wrapper for responsive iframes */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    box-shadow: var(--shadow);
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Force small logo on mobile */
@media (max-width: 768px) {
    .logo-wrapper img {
        height: 30px !important;
        width: auto !important;
        display: block !important;
    }
    .logo-wrapper .logo-text {
        font-size: 0.8rem !important;
    }
}
/* Push Contact link to the right */
nav ul li:last-child {
    margin-left: auto;
}

/* Right‑align the navigation menu */
nav ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}


/* Right-align the menu within the content container */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* ===== Mobile Responsive (All in one place) ===== */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    nav ul {
        display: none !important;
        flex-direction: column;
        background: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 10px;
        box-shadow: var(--shadow);
        gap: 15px;
    }
    nav ul.open { display: flex !important; }

    .hero h1 { font-size: 2rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .card-grid { grid-template-columns: 1fr; }

    .logo-wrapper img {
        height: 30px !important;
        width: auto !important;
        display: block !important;
    }
    .logo-wrapper .logo-text {
        font-size: 0.8rem !important;
    }

    .carousel-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 15px;
    }
    .carousel-header .section-subtitle { font-size: 0.95rem; }
    .carousel-controls .carousel-btn { width: 30px; height: 30px; font-size: 0.8rem; padding: 4px 10px; }
    .carousel-controls .carousel-dots .dot { width: 8px; height: 8px; }
    .carousel-container { max-width: 950px; }
    .carousel-slide { max-height: 70vh; }
}

@media (max-width: 768px) {
    .logo-wrapper img {
        height: 30px !important;
        width: auto !important;
    }
}