:root {
    --primary-color: #21834e;
    --primary-hover: #fed106;
    --muted: #f5f6f8;
    --max-width: 1180px;
    --tatu-green: #21834e;
    --tatu-dark-green: #0d2b1a;
    --tatu-gold: #d4af37;
    --tatu-light-gold: #f4e4a6;
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}

/* ===== NAVIGATION STYLES ===== */
.navbar {
    padding: 0.5rem 0;
}

.navbar-brand {
    padding: 0;
}

.navbar-brand img.custom-logo {
    height: 50px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

/* Bootstrap Nav Link Styles - HIGH SPECIFICITY */
nav.navbar .navbar-nav .nav-item .nav-link {
    color: #fff !important; /* Changed to solid white */
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none !important;
    position: relative;
    font-size: 0.95rem;
}

nav.navbar .navbar-nav .nav-item .nav-link:hover,
nav.navbar .navbar-nav .nav-item .nav-link:focus {
    color: #fff !important; /* Changed to solid white */
    background-color: rgba(255, 255, 255, 0.1) !important;
    text-decoration: none !important;
    transform: translateY(-1px);
}

nav.navbar .navbar-nav .nav-item .nav-link.active {
    color: #fff !important; /* Changed to solid white */
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.15) !important;
    text-decoration: none !important;
}

/* Remove any potential underlines */
.navbar .nav-link::after {
    display: none !important;
}

/* Force remove text decoration in all states */
.navbar .nav-link {
    text-decoration: none !important;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link:active,
.navbar .nav-link:visited {
    text-decoration: none !important;
}

/* Navbar toggler */
.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.1rem rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== BUTTON STYLES ===== */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.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);
}

.text-primary {
    color: var(--primary-color) !important;
}

.tatu-green {
    background: #21834e !important;
}

.btn-gold {
    background: goldenrod !important;
}

.btn-success {
    background-color: var(--tatu-green);
    border-color: var(--tatu-green);
}

.btn-success:hover {
    background-color: var(--tatu-dark-green);
    border-color: var(--tatu-dark-green);
}

.btn-gold {
    background-color: var(--tatu-gold);
    border-color: var(--tatu-gold);
    color: #000;
}

.btn-gold:hover {
    background-color: var(--tatu-light-gold);
    border-color: var(--tatu-light-gold);
    color: #000;
}

/* ===== HERO SECTIONS ===== */
.homehero {
    background: linear-gradient(0deg, rgba(13,138,52,0.85), rgba(13,138,52,0.5)), url('img/myhero.jpg') center/cover no-repeat;
    color: white;
    padding: 120px 0;
}

.homehero .lead {
    opacity: 0.95;
}

.hero, .hero-section {
    background: linear-gradient(135deg, var(--tatu-green) 0%, var(--tatu-dark-green) 100%);
    color: white;
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero::before, .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero .container, .hero-section .container {
    position: relative;
    z-index: 2;
}

/* ===== COMPONENT STYLES ===== */
.card-exec img {
    object-fit: cover;
    height: 220px;
}

.section-muted {
    background: var(--muted);
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9999;
    display: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
}

.announcement {
    background: rgba(255,255,255,0.06);
    border-left: 4px solid var(--tatu-gold);
    padding: 14px;
    border-radius: 6px;
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.quick-links {
    background-color: #f8f9fa;
    padding: 3.5rem 0;
}

/* ===== GALLERY STYLES ===== */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 250px;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px 15px 10px;
    font-weight: 600;
}

/* ===== NEWS CARD STYLES ===== */
.news-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 8px;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.news-card .card-img-top {
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--tatu-dark-green);
    color: white;
    padding: 2rem 0;
}

footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* ===== PAGE CONTENT STYLING ===== */
.site-main {
    min-height: 50vh;
}

.page-title {
    color: var(--tatu-green);
    font-weight: 700;
    border-bottom: 3px solid var(--tatu-gold);
    padding-bottom: 10px;
}

/* Ensure content images look good */
.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.page-content .alignleft {
    float: left;
    margin: 0 20px 20px 0;
}

.page-content .alignright {
    float: right;
    margin: 0 0 20px 20px;
}

.page-content .aligncenter {
    display: block;
    margin: 20px auto;
}

/* ===== CUSTOM CAROUSEL STYLING ===== */
.carousel-container {
    height: 600px;
    overflow: hidden;
    position: relative;
}

.carousel-item {
    height: 600px;
    background-position: center;
    background-size: cover;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(13, 138, 52, 0.85), rgba(13, 138, 52, 0.5));
}

.carousel-caption {
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    text-align: center;
    width: 80%;
    left: 10%;
}

.carousel-caption h3 {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    margin-bottom: 1.5rem;
    color: white;
}

.carousel-caption p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
    margin-bottom: 2rem;
    color: #f0f0f0;
}

.btn-custom {
    background: linear-gradient(45deg, #0d8a34, #0a6e2a);
    border: none;
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #0a6e2a, #085c22);
}

/* Carousel control styling */
.carousel-control-prev, .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev:hover, 
.carousel-control-next:hover {
    background-color: rgba(13, 138, 52, 0.8);
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

/* Carousel indicator styling */
.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255,255,255,0.5);
    border: none;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background-color: white;
    transform: scale(1.3);
}

/* Caption animation */
.carousel-caption h3, 
.carousel-caption p, 
.carousel-caption .btn {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.carousel-item.active .carousel-caption h3 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.carousel-item.active .carousel-caption p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.carousel-item.active .carousel-caption .btn {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

/* ===== ABOUT US STYLES ===== */
.hero-section {
    background: linear-gradient(rgba(13,138,52,0.6), rgba(13,138,52,0.6)), url('img/heroimage.jpg') center/cover no-repeat;
    color: white;
    padding: 120px 0;
    text-align: center;
}

.section-title {
    color: #0D8A34;
    font-weight: 700;
    margin-bottom: 20px;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #0D8A34;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-container.left {
    left: 0;
}

.timeline-container.right {
    left: 50%;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: #FFD700;
    border: 4px solid #0D8A34;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-container.right::after {
    left: -16px;
}

/* Vision Mission Cards */
.vision-mission-card {
    padding: 2rem 1rem;
    height: 100%;
}

.vision-mission-card h4 {
    color: var(--tatu-green);
    margin-bottom: 1rem;
}

.vision-mission-card p {
    color: #666;
    line-height: 1.6;
}

/* ===== BLOG STYLES ===== */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/news-hero.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.hero-section h1 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    opacity: 0.9;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--tatu-gold);
}

.blog-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.blog-meta {
    color: #666;
    font-size: 0.9rem;
}

.entry-content blockquote {
    border-left: 4px solid var(--tatu-gold);
    padding-left: 1rem;
    margin: 2rem 0;
    font-style: italic;
    color: #555;
}

.post-navigation a {
    color: var(--tatu-green);
    text-decoration: none;
    font-weight: 500;
}

.post-navigation a:hover {
    color: var(--tatu-dark-green);
}

.news-card img {
    height: 220px;
    object-fit: cover;
}

.news-card:hover {
    transform: translateY(-5px);
    transition: 0.3s;
}

/* ===== CONTACT STYLES ===== */
.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 350px;
    border: 0;
    border-radius: 10px;
}

/* ===== EVENT STYLES ===== */
.event-card img {
    height: 200px;
    object-fit: cover;
}

.event-meta {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.meta-item {
    padding: 1rem;
}

.meta-item i {
    color: var(--tatu-green);
}

.registration-cta {
    background: linear-gradient(135deg, var(--tatu-green) 0%, var(--tatu-dark-green) 100%) !important;
}

.registration-cta .btn-warning {
    font-weight: 600;
    padding: 0.75rem 2rem;
}

.event-thumbnail img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.event-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.event-image {
    object-fit: cover;
    min-height: 200px;
}

.event-title {
    color: var(--tatu-dark-green);
    font-weight: 600;
    line-height: 1.3;
}

.event-meta .badge {
    font-size: 0.7rem;
    font-weight: 500;
}

.event-details {
    color: #666;
}

.event-excerpt {
    color: #555;
    line-height: 1.5;
}

.past-event {
    opacity: 0.9;
}

.past-event-image {
    filter: grayscale(30%);
    opacity: 0.7;
}

.past-event .event-title {
    color: #666;
}

.past-event-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
}

.event-filters .form-select {
    border-color: var(--tatu-green);
    font-size: 0.9rem;
}

.event-filters .form-select:focus {
    border-color: var(--tatu-dark-green);
    box-shadow: 0 0 0 0.2rem rgba(30, 126, 52, 0.25);
}

.calendar-cta {
    background: linear-gradient(135deg, var(--tatu-green) 0%, var(--tatu-dark-green) 100%);
}

.calendar-cta .btn-light {
    color: var(--tatu-dark-green);
    font-weight: 600;
}

.calendar-cta .btn-warning {
    font-weight: 600;
}

.no-events-message {
    padding: 3rem 1rem;
}

.no-events-message i {
    font-size: 4rem;
}

.badge.bg-secondary {
    background-color: #6c757d !important;
}

.badge.bg-success {
    background-color: var(--tatu-green) !important;
}

.badge.bg-warning {
    background-color: var(--tatu-gold) !important;
    color: var(--tatu-dark) !important;
}

.event-item {
    transition: all 0.3s ease;
}

.event-item.hidden {
    display: none;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--tatu-gold);
}

.related-events .card {
    transition: transform 0.3s ease;
}

.related-events .card:hover {
    transform: translateY(-5px);
}

.related-events .card-img-top {
    height: 200px;
    object-fit: cover;
}

.event-navigation .btn {
    min-width: 150px;
}

.badge.bg-secondary {
    background-color: var(--tatu-green) !important;
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
}

.badge.bg-secondary:hover {
    background-color: var(--tatu-dark-green) !important;
}

/* ===== EXECUTIVES STYLES ===== */
.executives .card {
    border: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.executives .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.executives .card img {
    border-radius: 50%; 
    width: 300px;
    height: 300px;
  object-fit: cover;
    margin: 20px auto 10px;
}

.blog-content img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

.blog-meta {
    color: gray;
    font-size: 0.9rem;
}

.full-executive-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 10px;
    border-top: 4px solid var(--tatu-green);
}

.full-executive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.full-executive-image {
    border-radius: 8px;
    width: 100%;
}

.full-executive-position {
    font-weight: 600;
    color: var(--tatu-green) !important;
    font-size: 0.9rem;
    min-height: 20px;
}

.full-executive-bio {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666;
    margin-bottom: 1rem;
}

.structure-item {
    padding: 1.5rem 1rem;
}

.structure-item i {
    color: var(--tatu-green);
}

.structure-item h5 {
    color: var(--tatu-dark-green);
    font-weight: 600;
}

.structure-item p {
    color: #666;
    font-size: 0.9rem;
}

.executive-structure-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid var(--tatu-gold);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 991.98px) {
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .nav-item {
        margin: 0.2rem 0;
    }
    
    nav.navbar .navbar-nav .nav-item .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0.1rem 0;
    }
    
    .navbar-brand img.custom-logo {
        height: 40px;
        max-width: 150px;
    }
}

@media (max-width: 768px) {
    .hero, .hero-section, .homehero {
        padding: 80px 0;
    }
    
    .hero h1, .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1.display-4 {
        font-size: 2rem;
    }

    .carousel-container, .carousel-item {
        height: 500px;
    }
    
    .carousel-caption h3 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }

    .event-card .row {
        flex-direction: column;
    }
    
    .event-card .col-md-5 {
        height: 200px;
    }
    
    .event-filters {
        text-align: left !important;
        margin-top: 1rem;
    }
    
    .event-filters .form-select {
        width: 100% !important;
        margin-bottom: 0.5rem;
    }
    
    .calendar-cta .btn {
        width: 100%;
        margin-bottom: 1rem;
    }

    .event-thumbnail img {
        height: 250px;
    }
    
    .meta-item {
        margin-bottom: 1rem;
    }
    
    .registration-cta .btn {
        width: 100%;
    }

    .full-executive-image {
        height: 200px !important;
    }
    
    .structure-item {
        margin-bottom: 2rem;
    }
    
    .full-executive-card {
        margin-bottom: 2rem;
    }

    .vision-mission-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand img.custom-logo {
        height: 35px;
        max-width: 130px;
    }

    .homehero, .hero, .hero-section {
        padding: 80px 0;
    }

    .carousel-container, .carousel-item {
        height: 400px;
    }
    
    .carousel-caption h3 {
        font-size: 1.5rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
    
    .btn-custom {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .carousel-control-prev, .carousel-control-next {
        width: 40px;
        height: 40px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }
    
    .event-meta .badge {
        display: block;
        margin-bottom: 0.25rem;
        width: fit-content;
    }

    .full-executive-image {
        height: 180px !important;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
}