/* =========================================
   1. GLOBAL VARIABLES & RESET
   ========================================= */
:root {
    --primary: #004d40;     /* Corporate Dark Green */
    --secondary: #00695c;   /* Lighter Teal */
    --accent: #ffb74d;      /* Gold/Orange Accent */
    --text: #333333;        /* Dark Grey Text */
    --light-bg: #f4f6f8;    /* Light Grey Background */
    --white: #ffffff;
    --max-width: 1200px;
    --font-main: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-main);
    color: var(--text);
    line-height: 1.6;
    background-color: var(--light-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* =========================================
   2. UTILITIES & LAYOUT
   ========================================= */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.5rem; color: var(--primary); margin-bottom: 10px; }
.section-title p { color: #666; max-width: 600px; margin: 0 auto; }

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--accent);
    color: var(--primary);
    padding: 12px 30px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.btn:hover { background-color: #ff9800; transform: translateY(-2px); }

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
header { background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; }
nav { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--primary); text-transform: uppercase; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-weight: 600; color: #555; }
.nav-links a:hover { color: var(--primary); }

/* =========================================
   4. HERO SECTIONS
   ========================================= */
.hero {
    background-color: var(--primary);
    background-image: linear-gradient(rgba(0,77,64,0.9), rgba(0,77,64,0.8)); 
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 140px 0;
    text-align: center;
}
.hero h1 { font-size: 3.5rem; margin-bottom: 20px; font-weight: 800; line-height: 1.2; }
.hero p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 30px; opacity: 0.9; }

/* =========================================
   5. CARDS & SLIDERS (UPDATED)
   ========================================= */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }

.card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.card-body { padding: 25px; flex: 1; display: flex; flex-direction: column; }
.card h3 { color: var(--primary); margin-bottom: 12px; font-size: 1.35rem; }
.card p { color: #666; margin-bottom: 20px; flex: 1; line-height: 1.6; }
.card-link { color: var(--secondary); font-weight: bold; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; }

/* Standard Image Fallback (Height Increased) */
.card-img {
    height: 350px; /* Taller image */
    width: 100%;
    object-fit: cover;
    background-color: #e0e0e0;
}

/* CSS SCROLL SLIDER (FIXED) */
.slider-container {
    width: 100%;
    height: 350px;
    
    /* FORCE HORIZONTAL LAYOUT */
    display: flex;           
    flex-wrap: nowrap;       /* This prevents images from dropping to the next line */
    overflow-x: auto;        /* Enables scrolling */
    
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    background: #000;
    scroll-behavior: smooth;
}

.slider-container::-webkit-scrollbar { 
    display: none; 
}

.slider-img {
    /* FORCE EXACT WIDTH */
    flex: 0 0 100%;          /* Don't grow, Don't shrink, stay at 100% width */
    width: 100%;
    
    height: 100%;
    object-fit: cover;
    scroll-snap-align: start;
}

/* Swipe Indicator Badge */
.slider-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    pointer-events: none;
    z-index: 10;
    backdrop-filter: blur(4px);
}

/* =========================================
   6. PROFESSIONAL FOOTER
   ========================================= */
footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 70px 0 0;
    margin-top: auto;
    font-size: 0.95rem;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 50px; margin-bottom: 50px; }

.footer-col h4 {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    font-weight: 700;
}
.footer-col h4::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--accent);
    margin-top: 8px;
    border-radius: 2px;
}

.footer-col p { color: rgba(255, 255, 255, 0.8); line-height: 1.8; }
.footer-col ul li { margin-bottom: 12px; }

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
}
.footer-col ul li a:hover { color: var(--white); transform: translateX(5px); }

.footer-col ul li a::before {
    content: '›';
    color: var(--accent);
    margin-right: 10px;
    font-size: 1.4rem;
    line-height: 0;
    position: relative;
    top: -2px;
}

.copyright {
    background-color: rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 20px 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 20px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2.2rem; }
    .grid { grid-template-columns: 1fr; }
    .slider-container, .card-img { height: 250px; } /* Slightly smaller on mobile to fit screen */
}