/* =========================================================
 * TaTu SRC Theme Stylesheet
 * Clean, professional university design
 * Primary: #21834e (Green) | Secondary: #E5BA41 (Gold)
 * ========================================================= */

:root {
    --tatu-primary: #21834e;
    --tatu-secondary: #E5BA41;
    --tatu-dark: #2c3e50;
    --tatu-light: #f8f9fa;
    --tatu-text: #495057;
    --tatu-border: #e9ecef;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--tatu-text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--tatu-primary);
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 75px 0;
}

/* =========================================================
 * BUTTONS
 * ========================================================= */
.btn-tatu {
    background-color: var(--tatu-secondary);
    color: var(--tatu-dark);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 6px;
    border: 2px solid var(--tatu-secondary);
    display: inline-block;
    transition: all 0.25s ease;
}

.btn-tatu:hover {
    background-color: #d4a935;
    border-color: #d4a935;
    color: var(--tatu-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 186, 65, 0.3);
}

.btn-tatu-outline {
    background-color: transparent;
    border: 2px solid var(--tatu-primary);
    color: var(--tatu-primary);
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 6px;
    display: inline-block;
    transition: all 0.25s ease;
}

.btn-tatu-outline:hover {
    background-color: var(--tatu-primary);
    color: #fff;
}

.btn-tatu-secondary {
    background-color: var(--tatu-primary);
    color: #fff;
    border: 2px solid var(--tatu-primary);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 6px;
    display: inline-block;
    transition: all 0.25s ease;
}

.btn-tatu-secondary:hover {
    background-color: transparent;
    color: var(--tatu-primary);
    transform: translateY(-2px);
}

/* =========================================================
 * NAVBAR (White) - FIXED SPACING
 * ========================================================= */
.navbar-custom {
    background-color: #ffffff;
    padding: 18px 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar-custom.scrolled {
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-custom .navbar-brand {
    color: var(--tatu-primary);
    font-weight: 700;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-custom .navbar-brand:hover {
    color: var(--tatu-primary);
}

.navbar-custom .navbar-brand span {
    color: var(--tatu-secondary);
}

.navbar-custom .navbar-brand img {
    height: 45px;
    width: auto;
}

/* === FIX: Use gap on the flex container for guaranteed spacing === */
.navbar-custom .navbar-nav {
    gap: 8px !important; /* Adds consistent space between each nav-item */
}

.navbar-custom .nav-link {
    color: var(--tatu-dark) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px !important; /* Explicit padding inside the clickable area */
    margin: 0 !important; /* Remove margin so 'gap' handles all spacing cleanly */
    border-radius: 6px;
    transition: all 0.2s ease;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--tatu-primary) !important;
    background-color: rgba(33, 131, 78, 0.05); /* Subtle hover background */
}

.navbar-custom .nav-link.active {
    font-weight: 700 !important;
    position: relative;
}

.navbar-custom .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--tatu-secondary);
    border-radius: 2px;
}

.navbar-toggler {
    border-color: var(--tatu-primary);
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(33, 131, 78, 0.25);
}

.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='%2321834e' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* =========================================================
 * PAGE BANNER (Interior Pages)
 * ========================================================= */
.page-banner {
    background-color: var(--tatu-primary);
    color: #fff;
    padding: 65px 0 55px;
    border-bottom: 4px solid var(--tatu-secondary);
}

.page-banner h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-banner p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.page-banner .breadcrumb {
    margin: 0 0 15px;
}

.page-banner .breadcrumb-item a {
    color: var(--tatu-secondary);
}

.page-banner .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.8);
}

.page-banner .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* =========================================================
 * SECTION HEADINGS
 * ========================================================= */
.section-head {
    margin-bottom: 45px;
}

.section-head.text-center {
    text-align: center;
}

.eyebrow {
    color: var(--tatu-primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 10px;
}

.section-head h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--tatu-dark);
    margin-bottom: 10px;
}

.section-head p {
    color: #6c757d;
    margin: 0;
}

/* =========================================================
 * HERO SLIDER (PERFECTLY CENTERED FIX)
 * ========================================================= */
.hero-carousel .carousel-item {
    height: 72vh;
    min-height: 480px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}

.hero-carousel .carousel-item::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Slider Overlay Variants */
.hero-carousel .carousel-item.overlay-gradient::before {
    background: linear-gradient(135deg, rgba(33, 131, 78, 0.85) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-carousel .carousel-item.overlay-dark::before {
    background: rgba(0, 0, 0, 0.6);
}

.hero-carousel .carousel-item.overlay-light::before {
    background: rgba(255, 255, 255, 0.3);
}

.hero-carousel .carousel-item.overlay-none::before {
    background: none;
}

/* BULLETPROOF CENTERED CAPTION: Overrides Bootstrap defaults completely */
.hero-carousel .carousel-caption {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important; /* Perfectly centers horizontally and vertically */
    z-index: 2;
    width: 90% !important;
    max-width: 800px !important;
    padding: 0 20px !important;
    text-align: center !important;
    margin: 0 !important;
}

/* Ensure paragraph text also centers under the heading */
.hero-carousel .carousel-caption p {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 600px !important;
}

/* Override any Bootstrap .text-left or .text-start classes specifically for the slider */
.hero-carousel .carousel-caption.text-left,
.hero-carousel .carousel-caption.text-start,
.hero-carousel .carousel-caption.text-right {
    text-align: center !important;
}

.hero-carousel .carousel-caption h1 {
    font-size: 3.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 18px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-carousel .carousel-caption p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 28px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
}

/* Slider Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 48px;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    opacity: 1;
    transition: background 0.25s;
    z-index: 3;
}

.carousel-control-prev {
    left: 25px;
}

.carousel-control-next {
    right: 25px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--tatu-secondary);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 18px;
    height: 18px;
    filter: invert(30%) sepia(60%) saturate(1000%) hue-rotate(110deg);
}

.carousel-indicators {
    bottom: 25px;
    z-index: 3;
}

.carousel-indicators button {
    width: 28px !important;
    height: 3px !important;
    border-radius: 2px;
    border: none !important;
    background-color: rgba(255, 255, 255, 0.6) !important;
    transition: all 0.3s;
}

.carousel-indicators button.active {
    width: 48px !important;
    background-color: var(--tatu-secondary) !important;
}

/* =========================================================
 * PRESIDENT / WELCOME SECTION
 * ========================================================= */
#welcome {
    background-color: #fff;
}

.president-photo {
    text-align: center;
}

.president-photo img {
    width: 100%;
    max-width: 380px;
    height: 440px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.president-info {
    margin-top: 20px;
    text-align: center;
}

.president-info h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--tatu-dark);
    margin-bottom: 4px;
}

.president-info p {
    color: var(--tatu-primary);
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0;
}

.welcome-content h2 {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--tatu-dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.welcome-content p {
    line-height: 1.85;
    margin-bottom: 16px;
}

.welcome-content .signature-line {
    border-top: 1px solid var(--tatu-border);
    padding-top: 18px;
    margin-top: 25px;
    font-size: 0.9rem;
    color: #6c757d;
}

/* =========================================================
 * NEWS CARDS
 * ========================================================= */
.news-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    height: 100%;
    position: relative;
    transition: transform 0.25s, box-shadow 0.25s;
    background: #fff;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.news-card img,
.news-card .card-img-top {
    height: 210px;
    width: 100%;
    object-fit: cover;
}

.news-card .card-body {
    padding: 25px;
}

.news-meta {
    color: var(--tatu-primary);
    font-size: 0.82rem;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.news-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--tatu-dark);
    margin: 10px 0 12px;
    line-height: 1.4;
}

.news-card .card-title a {
    color: var(--tatu-dark);
}

.news-card .card-title a:hover {
    color: var(--tatu-primary);
}

.news-card .card-text {
    font-size: 0.93rem;
    margin-bottom: 18px;
    color: var(--tatu-text);
}

.read-link {
    color: var(--tatu-primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.read-link:hover {
    color: var(--tatu-dark);
}

/* Filter Bar (News / Gallery) */
.filter-bar,
.gallery-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 35px;
}

.gallery-filter-bar {
    justify-content: center;
}

.filter-btn {
    border: 1px solid var(--tatu-border);
    background: #fff;
    color: var(--tatu-text);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
}

.filter-btn:hover {
    border-color: var(--tatu-primary);
    color: var(--tatu-primary);
}

.filter-btn.active {
    background: var(--tatu-primary);
    border-color: var(--tatu-primary);
    color: #fff;
}

/* =========================================================
 * EVENT CARDS
 * ========================================================= */
#events {
    background-color: var(--tatu-light);
}

.event-img-card {
    position: relative;
    height: 340px;
    border-radius: 8px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: var(--tatu-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s, box-shadow 0.25s;
}

.event-img-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16);
}

.event-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.15));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    color: #fff;
}

.event-overlay h4 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: #fff;
}

.event-meta {
    font-size: 0.92rem;
    margin-bottom: 7px;
    display: flex;
    align-items: center;
}

.event-meta i {
    color: var(--tatu-secondary);
    margin-right: 10px;
    font-size: 1.05rem;
}

.event-date-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #fff;
    color: var(--tatu-primary);
    padding: 10px 15px;
    border-radius: 6px;
    text-align: center;
    line-height: 1.2;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.event-date-tag strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.event-date-tag span {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Event Info Box (Single Event) */
.event-info-box {
    background: #fff;
    border: 1px solid var(--tatu-border);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 25px;
}

.info-row {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--tatu-border);
}

.info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-row > i {
    color: var(--tatu-primary);
    font-size: 1.3rem;
    margin-top: 3px;
    min-width: 24px;
}

.info-row small {
    display: block;
    color: #6c757d;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.info-row strong {
    color: var(--tatu-dark);
    font-weight: 600;
}

/* Schedule Timeline */
.schedule-item {
    position: relative;
    border-left: 2px solid var(--tatu-border);
    padding: 0 0 28px 25px;
    margin-left: 6px;
}

.schedule-item:last-child {
    padding-bottom: 0;
}

.schedule-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--tatu-primary);
}

.schedule-item small {
    color: var(--tatu-primary);
    font-weight: 600;
    font-size: 0.85rem;
}

.schedule-item h6 {
    font-weight: 600;
    color: var(--tatu-dark);
    margin: 5px 0;
}

.schedule-item p {
    font-size: 0.92rem;
    margin: 0;
    color: var(--tatu-text);
}

/* =========================================================
 * EXECUTIVE CARDS
 * ========================================================= */
.exec-card {
    text-align: center;
    background: #fff;
    border: 1px solid var(--tatu-border);
    border-radius: 8px;
    padding: 35px 20px;
    height: 100%;
    transition: box-shadow 0.25s;
}

.exec-card:hover {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.exec-card img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--tatu-light);
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.exec-card h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--tatu-dark);
    margin-bottom: 5px;
}

.exec-card .position {
    color: var(--tatu-primary);
    font-weight: 500;
    font-size: 0.92rem;
    margin-bottom: 5px;
}

.exec-card .term {
    color: #6c757d;
    font-size: 0.82rem;
    margin-bottom: 15px;
}

.exec-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--tatu-light);
    color: #6c757d;
    margin: 0 4px;
    transition: all 0.2s;
}

.exec-socials a:hover {
    background: var(--tatu-primary);
    color: #fff;
}

/* =========================================================
 * INFO CARDS (Mission, Vision, Values)
 * ========================================================= */
.info-card {
    border: 1px solid var(--tatu-border);
    border-radius: 8px;
    padding: 30px;
    height: 100%;
    background: #fff;
    transition: box-shadow 0.25s;
}

.info-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.info-card > i {
    font-size: 1.8rem;
    color: var(--tatu-primary);
    margin-bottom: 18px;
    display: block;
}

.info-card h5 {
    font-weight: 600;
    color: var(--tatu-dark);
    margin-bottom: 12px;
}

.info-card p {
    font-size: 0.95rem;
    margin: 0;
    color: var(--tatu-text);
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-list li {
    padding: 8px 0;
    color: var(--tatu-text);
}

.check-list i {
    color: var(--tatu-primary);
    margin-right: 10px;
}

/* =========================================================
 * ARTICLE / SINGLE POST
 * ========================================================= */
.article-cover {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
}

.article-meta {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--tatu-border);
}

.article-meta span {
    margin-right: 18px;
}

.article-meta i {
    color: var(--tatu-primary);
    margin-right: 6px;
}

.article-body {
    font-size: 1.02rem;
    line-height: 1.9;
    color: var(--tatu-text);
}

.article-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tatu-dark);
    margin: 30px 0 15px;
}

.article-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--tatu-dark);
    margin: 25px 0 12px;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.article-body blockquote {
    border-left: 4px solid var(--tatu-secondary);
    background: var(--tatu-light);
    padding: 20px 25px;
    margin: 25px 0;
    font-style: italic;
    color: var(--tatu-dark);
    border-radius: 0 6px 6px 0;
}

.article-body img {
    border-radius: 8px;
    margin: 20px 0;
}

/* =========================================================
 * SIDEBAR
 * ========================================================= */
.sidebar-card {
    border: 1px solid var(--tatu-border);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    background: #fff;
}

.sidebar-card h5 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--tatu-dark);
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--tatu-light);
}

.sidebar-news {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--tatu-border);
    color: var(--tatu-text);
    transition: color 0.2s;
}

.sidebar-news:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-news:hover {
    color: var(--tatu-primary);
}

.sidebar-news img {
    width: 80px;
    height: 68px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.sidebar-news h6 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--tatu-dark);
    line-height: 1.45;
    margin-bottom: 5px;
}

.sidebar-news small {
    color: #6c757d;
    font-size: 0.78rem;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    border-bottom: 1px solid var(--tatu-border);
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    padding: 11px 0;
    color: var(--tatu-text);
    font-size: 0.92rem;
    transition: color 0.2s;
}

.category-list a:hover {
    color: var(--tatu-primary);
}

.category-list span {
    color: #6c757d;
    font-size: 0.82rem;
}

/* =========================================================
 * CONTACT PAGE
 * ========================================================= */
.contact-card {
    border: 1px solid var(--tatu-border);
    border-radius: 8px;
    padding: 25px;
    height: 100%;
    background: #fff;
    transition: box-shadow 0.25s;
}

.contact-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.contact-card i {
    font-size: 1.5rem;
    color: var(--tatu-primary);
    margin-bottom: 12px;
    display: block;
}

.contact-card h6 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6c757d;
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-card p {
    color: var(--tatu-dark);
    font-weight: 500;
    margin: 0;
    font-size: 0.95rem;
}

.contact-card a {
    color: var(--tatu-dark);
}

.contact-card a:hover {
    color: var(--tatu-primary);
}

/* Form Styles */
.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--tatu-dark);
    margin-bottom: 6px;
}

.form-control,
.form-select {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px 15px;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--tatu-primary);
    box-shadow: 0 0 0 0.2rem rgba(33, 131, 78, 0.12);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Map */
.map-embed {
    width: 100%;
    height: 350px;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* =========================================================
 * GALLERY
 * ========================================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 1;
    background: var(--tatu-light);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(33, 131, 78, 0.95) 0%, rgba(33, 131, 78, 0.3) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h6 {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 5px;
}

.gallery-overlay small {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem;
}

.gallery-overlay .zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tatu-primary);
    font-size: 1.3rem;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    text-align: center;
    color: #fff;
    margin-top: 20px;
    font-size: 0.95rem;
}

.lightbox-caption h6 {
    font-weight: 600;
    margin-bottom: 5px;
}

.lightbox-caption small {
    color: rgba(255, 255, 255, 0.7);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* =========================================================
 * CALLOUT / CTA SECTION
 * ========================================================= */
.callout {
    background: var(--tatu-primary);
    color: #fff;
    padding: 45px 0;
}

.callout h3 {
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.callout p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.callout .btn-tatu {
    background-color: var(--tatu-secondary);
    border-color: var(--tatu-secondary);
    color: var(--tatu-dark);
}

.callout .btn-tatu:hover {
    background-color: #fff;
    border-color: #fff;
    color: var(--tatu-primary);
}

/* =========================================================
 * FLOATING SOCIAL MEDIA SIDEBAR
 * ========================================================= */
.floating-social {
    position: fixed;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 6px;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid var(--tatu-border);
    border-left: none;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 10px;
}

.floating-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    color: var(--tatu-text);
    font-size: 1.2rem;
    position: relative;
    transition: all 0.25s ease;
}

.floating-social a:hover {
    background: var(--tatu-primary);
    color: #fff;
    transform: scale(1.08);
}

.floating-social a:nth-child(even):hover {
    background: var(--tatu-secondary);
    color: var(--tatu-dark);
}

/* Tooltip */
.floating-social a::after {
    content: attr(data-label);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(-5px);
    background: var(--tatu-dark);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s;
    pointer-events: none;
}

.floating-social a:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* =========================================================
 * FOOTER
 * ========================================================= */
footer {
    background: var(--tatu-dark);
    color: #adb5bd;
    padding: 60px 0 0;
}

footer h5 {
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 20px;
}

footer p {
    font-size: 0.92rem;
}

footer a {
    color: #adb5bd;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--tatu-secondary);
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 10px;
    font-size: 0.92rem;
}

footer ul i {
    color: var(--tatu-secondary);
    margin-right: 8px;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    margin-top: 50px;
    text-align: center;
    font-size: 0.88rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom span {
    color: var(--tatu-secondary);
    font-weight: 600;
}

/* =========================================================
 * WORDPRESS NATIVE STYLES
 * ========================================================= */
/* Pagination */
.navigation.pagination,
.nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0 0;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--tatu-border);
    border-radius: 6px;
    color: var(--tatu-text);
    font-weight: 500;
    transition: all 0.2s;
}

.page-numbers.current,
.page-numbers:hover {
    background: var(--tatu-primary);
    border-color: var(--tatu-primary);
    color: #fff;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 8px;
}

.search-form .search-field {
    flex: 1;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 0.95rem;
}

.search-form .search-submit {
    background: var(--tatu-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.search-form .search-submit:hover {
    background: #1a6b3f;
}

/* WordPress Block Styles */
.wp-block-image img {
    border-radius: 8px;
}

.wp-block-quote {
    border-left: 4px solid var(--tatu-secondary);
    background: var(--tatu-light);
    padding: 20px 25px;
    margin: 25px 0;
    font-style: italic;
}

.wp-block-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.wp-block-table th,
.wp-block-table td {
    border: 1px solid var(--tatu-border);
    padding: 10px 15px;
    text-align: left;
}

.wp-block-table th {
    background: var(--tatu-light);
    font-weight: 600;
    color: var(--tatu-dark);
}

/* Comments */
.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    padding: 20px 0;
    border-bottom: 1px solid var(--tatu-border);
}

.comment-author {
    font-weight: 600;
    color: var(--tatu-dark);
}

.comment-metadata {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 10px;
}

/* Skip Link (Accessibility) */
.visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.visually-hidden-focusable:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 10000;
    padding: 12px 24px;
    background: var(--tatu-primary);
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
}

/* =========================================================
 * RESPONSIVE DESIGN (FIXED MOBILE NAV SPACING)
 * ========================================================= */
@media (max-width: 991px) {
    .welcome-content {
        padding-left: 0 !important;
        margin-top: 40px;
    }

    .president-photo img {
        max-width: 340px;
        height: 400px;
    }

    .navbar-collapse {
        background: #fff;
        padding: 15px;
        margin-top: 15px;
        border-radius: 8px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    }

    /* Mobile menu link spacing */
    .navbar-custom .navbar-nav {
        gap: 4px !important;
    }

    .navbar-custom .nav-link {
        padding: 12px 15px !important;
        border-bottom: 1px solid var(--tatu-border);
        border-radius: 0;
    }
    
    .navbar-custom .nav-link:last-child {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    section {
        padding: 55px 0;
    }

    .page-banner {
        padding: 45px 0 40px;
    }

    .page-banner h1 {
        font-size: 1.9rem;
    }

    .hero-carousel .carousel-item {
        height: 65vh;
        min-height: 420px;
    }

    .hero-carousel .carousel-caption {
        padding: 0 15px !important;
        width: 95% !important;
    }

    .hero-carousel .carousel-caption h1 {
        font-size: 2.2rem;
    }

    .hero-carousel .carousel-caption p {
        font-size: 1rem;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }

    .carousel-control-prev {
        left: 12px;
    }

    .carousel-control-next {
        right: 12px;
    }

    .section-head h2 {
        font-size: 1.7rem;
    }

    .article-cover {
        height: 250px;
    }

    /* Floating social becomes horizontal pill at bottom */
    .floating-social {
        left: 50%;
        top: auto;
        bottom: 15px;
        transform: translateX(-50%);
        flex-direction: row;
        border: 1px solid var(--tatu-border);
        border-radius: 50px;
        padding: 8px 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }

    .floating-social a {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    .floating-social a::after {
        display: none;
    }

    .footer-bottom {
        padding-bottom: 85px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .gallery-overlay {
        padding: 15px;
    }

    .gallery-overlay h6 {
        font-size: 0.85rem;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

@media (max-width: 400px) {
    .floating-social {
        padding: 6px 10px;
        gap: 4px;
    }

    .floating-social a {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .hero-carousel .carousel-caption h1 {
        font-size: 1.8rem;
    }

    .section-head h2 {
        font-size: 1.5rem;
    }
}

/* =========================================================
 * PRINT STYLES
 * ========================================================= */
@media print {
    .floating-social,
    .navbar-custom,
    .carousel-control-prev,
    .carousel-control-next,
    .carousel-indicators,
    footer {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}

/* =========================================================
 * PAGINATION (Updated)
 * ========================================================= */
nav .page-numbers,
nav ul.page-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 40px 0 0;
}

nav ul.page-numbers li {
    display: inline-block;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--tatu-border);
    border-radius: 6px;
    color: var(--tatu-text);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.page-numbers:hover {
    background: var(--tatu-light);
    border-color: var(--tatu-primary);
    color: var(--tatu-primary);
}

.page-numbers.current,
.page-numbers.dots {
    background: var(--tatu-primary);
    border-color: var(--tatu-primary);
    color: #fff;
    cursor: default;
}

.page-numbers.dots {
    background: transparent;
    border: none;
    color: #adb5bd;
    padding: 0 8px;
}