/* Global Variables & Reset */
:root {
    --primary-color: #2ecc71;
    /* Emerald Green */
    --secondary-color: #27ae60;
    /* Darker Green */
    --accent-color: #f1c40f;
    /* Sunflower Yellow - for highlights */
    --dark-color: #2c3e50;
    /* Midnight Blue */
    --light-color: #f8f9fa;
    /* Off-white */
    --text-color: #333;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --shadow-soft: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.15);
    --transition-fast: 0.3s ease;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fdfdfd;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--dark-color);
}

a {
    color: var(--primary-color);
    transition: var(--transition-fast);
    text-decoration: none;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

/* Bootstrap Overrides for Theme Alignment */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Navbar Modernization */
.navbar {
    background-color: white;
    box-shadow: var(--shadow-soft);
    padding: 1rem 2rem;
    transition: var(--transition-fast);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color) !important;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 70px;
    /* Increased from 50px */
    width: auto;
    margin-right: 15px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--dark-color) !important;
    margin: 0 10px;
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section Enhancements */
.carousel-item {
    height: 85vh;
    min-height: 600px;
    position: relative;
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    /* Darken image for better text readability */
}

.carousel-caption {
    bottom: 0;
    /* Reset bottom */
    top: 0;
    left: 0;
    right: 0;
    /* Already has d-flex h-100 in HTML for centering */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.carousel-caption h1 {
    font-size: 3.5rem;
    color: white;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.carousel-caption p {
    font-size: 1.2rem;
    color: #eee;
    margin-bottom: 30px;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 30px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-fast);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

/* Content Sections */
.content-section {
    padding: 60px 0;
}

.section-title {
    color: var(--primary-color);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 15px auto 0;
}

/* Footer Modernization */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

footer .social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin: 0 10px;
    font-size: 1.2rem;
    color: white;
    transition: var(--transition-fast);
}

footer .social-media a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

footer .footer-links {
    margin: 30px 0;
}

footer .footer-links a {
    color: #ccc;
    margin: 0 15px;
    font-size: 0.95rem;
}

footer .footer-links a:hover {
    color: white;
    text-decoration: underline;
}

/* Cards (for Team / Content) */
.custom-card {
    background: white;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-fast);
    height: 100%;
}

.custom-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.custom-card img {
    height: 300px;
    object-position: top;
    object-fit: cover;
    width: 100%;
}

.custom-card .card-body {
    padding: 25px;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
    .carousel-caption h1 {
        font-size: 2rem;
    }

    .carousel-item {
        height: 60vh;
        min-height: 400px;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }
}

/* News Ticker */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background-color: var(--dark-color);
    color: white;
    padding-left: 100%;
    box-sizing: content-box;
    height: 50px;
    /* Increased height */
    line-height: 50px;
    /* Increased line-height */
    border-bottom: 2px solid var(--accent-color);
    /* Added border for prominence */
}

.ticker {
    display: inline-block;
    white-space: nowrap;
    padding-right: 100%;
    box-sizing: content-box;
    animation: ticker 60s linear infinite;
    /* Slower animation (60s vs 30s) */
}

.ticker-item {
    display: inline-block;
    padding: 0 2rem;
    font-size: 1.1rem;
    /* Increased font size */
    font-weight: 600;
    /* Added bold weight */
    font-family: var(--font-heading);
    /* Switch to heading font for prominence */
    letter-spacing: 0.5px;
}

.ticker-item a {
    color: var(--accent-color);
    text-decoration: underline;
    font-weight: 700;
}

.ticker-item a:hover {
    color: white;
}

@keyframes ticker {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* Mobile Responsiveness Overrides */
@media (max-width: 768px) {

    /* Typography Overrides */
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .display-3 {
        font-size: 2rem;
    }

    .display-4 {
        font-size: 1.8rem;
    }

    p.lead {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    /* Layout Adjustments */
    .content-section {
        padding: 30px 0;
    }

    .navbar {
        padding: 0.5rem 1rem;
    }

    .navbar-brand img {
        height: 50px;
    }

    /* Smaller logo on mobile */
    .navbar-brand {
        font-size: 1.1rem;
    }

    /* Hero Carousel */
    .carousel-item {
        height: 60vh;
        min-height: 350px;
    }

    .carousel-caption h1 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .carousel-caption p {
        font-size: 0.95rem;
        margin-bottom: 15px;
        display: block;
        /* Ensure visibility */
    }

    .carousel-caption .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    /* Cards & Images */
    .custom-card img {
        height: 220px;
        /* Reduced height for stacked cards */
    }

    .card-body {
        padding: 15px;
    }

    /* Footer */
    footer {
        padding: 40px 0 20px;
    }

    /* Ticker Adjustments for Mobile */
    .ticker-wrap {
        height: 40px;
        line-height: 40px;
    }

    .ticker-item {
        font-size: 0.9rem;
        padding: 0 1rem;
    }

    .ticker {
        animation-duration: 40s;
        /* Slightly faster visual flow for smaller screens */
    }
}