﻿:root { --primary: #0E3A5D; --secondary: #1F8A8C; --accent: #C8102E; --bg: #F7F9FC; }
* { 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; }
.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; 
    padding:1px 0; 
    position:sticky; 
    top:0; 
    z-index:1000; 
    box-shadow:0 2px 10px rgba(0,0,0,0.05); }
.header-inner { display:flex; justify-content:space-between; align-items:center; flex-wrap:nowrap; gap:20px; }

.logo img {
    max-height: 80px !important;
    width: auto !important;
}

nav ul { 
    list-style:none; 
    display:flex; 
    align-items:center; 
    gap:25px; /* <-- Space between each menu link */
    margin:0; 
    padding:0; 
    flex-wrap:nowrap; 
}
nav ul li a { color:#111; font-weight:500; text-decoration:none; font-size:0.95rem; white-space:nowrap; }
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:0 4px 20px rgba(0,0,0,0.08); 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; }

/* 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: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 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: 700px;
    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;  /* Changed from 2.8rem - Smaller numbers */
    font-weight: 700;
    color: var(--secondary);
    font-family: 'Poppins', sans-serif;
}
.stat-item .label { font-weight:600; color:#111; }

/* Services */
.card-grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:30px; }
.card { background:#fff; border-radius:12px; padding:30px; box-shadow:0 4px 20px rgba(0,0,0,0.08); text-align:center; }
.card .icon { font-size:3rem; }

/* Community Dropdown */
.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; }

/* Mobile */
.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; }

@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:20px; box-shadow:0 4px 20px rgba(0,0,0,0.08); 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; }
}

/* ============================================
   UNIFIED SECTION STYLES (No inline styles)
   ============================================ */

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

/* 2. Unified White Sections (Intro, Services) */
.white-section {
    background: #fff;
    padding: 30px 0;
}

/* 3. Unified Light Grey Sections */
.grey-section {
    background: var(--bg);
    padding: 30px 0;
}

/* 4. UNIFIED CTA SECTION (Matches the Hero Gradient) */
.cta-section {
    background: linear-gradient(rgba(14,58,93,0.65), rgba(14,58,93,0.75));
    color: #fff;
    text-align: center;
    padding: 30px 0;
}
.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);
}

/* 5. Text Width Limit (Unified) */
.text-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
    text-align: center;
}

/* ===== Footer ===== */
footer {
    background: var(--primary);
    color: #fff;
    padding: 20px 0;
    text-align: center;          /* Moved from inline HTML to CSS */
    border-top: 4px solid var(--secondary);  /* The Teal accent line */
}

footer a {
    color: #ddd;
    text-decoration: none;
}

footer a:hover {
    color: var(--accent);
}

/* ============================================
   CAROUSEL - LIMIT TO 90% OF SCREEN
   ============================================ */

.carousel-container {
    max-width: 85vw;          /* Limit to 90% of viewport width */
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #f0f4f8;
}

.carousel-slides {
    display: flex;
    transition: transform 0.8s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    max-height: 85vh;          /* Limit height to 80% of viewport height */
    object-fit: contain;       /* Show full image without cropping */
    display: block;
    background: #f0f4f8;
}

/* Make sure the container respects the max-width */
.carousel-container .container {
    max-width: 100%;
    padding: 0;
}

/* On very large screens, cap the max-width */
@media (min-width: 1400px) {
    .carousel-container {
        max-width: 1200px;
    }
}

/* On tablets and phones, keep it responsive */
@media (max-width: 768px) {
    .carousel-container {
        max-width: 90vw;
    }
    .carousel-slide {
        max-height: 70vh;
    }
}

/* ============================================
   CAROUSEL - TOP CONTROLS LAYOUT
   ============================================ */

.carousel-container {
    max-width: 85vw;
    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: 85vh;
    object-fit: contain;
    display: block;
    background: #f0f4f8;
}

@media (max-width: 768px) {
    .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;
    }
}


/* Logo + Text */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.logo-wrapper img { max-height: 80px; width: auto; display: block; }
.logo-wrapper .logo-text { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.4rem; color: var(--primary); line-height: 1.2; white-space: nowrap; }
.logo-wrapper .logo-text .hy { color: #C8102E; }
@media (max-width: 768px) {
    .logo-wrapper img { max-height: 50px; }
    .logo-wrapper .logo-text { font-size: 1rem; }
}


/* ============================================
   CONTACT BAR - STANDARDIZED
   ============================================ */
.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;
    }
}
