@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ========== THEME VARIABLES (Light Default) ========== */
body.theme-light {
    --bg-body: #f8f9fa;
    --bg-header: #ffffff;
    --bg-navbar: #2c3e50;
    --text-color: #2d3748;
    --text-muted: #6c757d;
    --card-bg: #ffffff;
    --border-color: #e9ecef;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
body.theme-dark {
    --bg-body: #1a202c;
    --bg-header: #2d3748;
    --bg-navbar: #1a202c;
    --text-color: #e2e8f0;
    --text-muted: #a0aec0;
    --card-bg: #2d3748;
    --border-color: #4a5568;
    --primary-gradient: linear-gradient(135deg, #4a6fa5 0%, #6b4e71 100%);
}
body.theme-blue {
    --bg-body: #eef2f9;
    --bg-header: #ffffff;
    --bg-navbar: #2c3e50;
    --text-color: #2c3e50;
    --text-muted: #5a6e8a;
    --card-bg: #ffffff;
    --border-color: #e0e7f0;
    --primary-gradient: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}
body.theme-green {
    --bg-body: #e8f5e9;
    --bg-header: #ffffff;
    --bg-navbar: #2c3e50;
    --text-color: #2c3e50;
    --text-muted: #5a6e8a;
    --card-bg: #ffffff;
    --border-color: #d4e5d4;
    --primary-gradient: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}
body.theme-purple {
    --bg-body: #f3e5f5;
    --bg-header: #ffffff;
    --bg-navbar: #2c3e50;
    --text-color: #2c3e50;
    --text-muted: #5a6e8a;
    --card-bg: #ffffff;
    --border-color: #e5d5e8;
    --primary-gradient: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-body);
    color: var(--text-color);
    transition: background 0.4s ease, color 0.4s ease;
}

/* ========== HEADER & NAVBAR (Dark Gradient) ========== */
.site-header {
    background: var(--bg-header);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}
.header-top {
    padding: 15px 0;
}
.logo-primary img,
.logo-secondary img {
    max-height: 60px;
    width: auto;
}
.site-identity {
    line-height: 1.2;
}
.subheading {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
}
.site-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-color);
}
.slogan {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-muted);
}

/* Navigation (Dark Background) */
.navbar {
    background: var(--bg-navbar);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 0;
}
.navbar-nav .nav-link {
    padding: 12px 18px;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    transition: all 0.3s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #fff;
    background: rgba(255,255,255,0.1);
}
.dropdown-menu {
    background: var(--bg-navbar);
    border: 1px solid rgba(255,255,255,0.1);
}
.dropdown-item {
    color: rgba(255,255,255,0.85);
}
.dropdown-item:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
@media (max-width: 767.98px) {
    .navbar-collapse {
        background: var(--bg-navbar);
        padding: 15px;
        border-radius: 10px;
        margin-top: 10px;
    }
    .navbar-nav .nav-link {
        padding: 8px 15px;
    }
}

/* ========== AUTO SLIDING NEWS TICKER ========== */
.news-ticker {
    background: var(--bg-navbar);
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 8px 0;
    overflow: hidden;
    position: relative;
}
.ticker-wrap {
    display: flex;
    align-items: center;
    white-space: nowrap;
}
.ticker-label {
    background: var(--primary-gradient);
    padding: 4px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-right: 20px;
    flex-shrink: 0;
    color: #fff;
}
.ticker-items {
    display: inline-flex;
    animation: ticker 30s linear infinite;
}
.ticker-item {
    margin-right: 40px;
    font-size: 0.9rem;
}
.ticker-item a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color 0.2s;
}
.ticker-item a:hover {
    color: #fff;
}
@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
.news-ticker:hover .ticker-items {
    animation-play-state: paused;
}
@media (max-width: 768px) {
    .ticker-items { animation-duration: 20s; }
    .ticker-item { font-size: 0.8rem; margin-right: 25px; }
}

/* ========== SWIPE CAROUSEL FOR NEWS ========== */
.news-carousel {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    display: flex;
    gap: 20px;
    padding: 10px 0;
    scrollbar-width: thin;
}
.news-carousel::-webkit-scrollbar {
    height: 6px;
}
.news-carousel::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 10px;
}
.news-carousel::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}
.news-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.news-card .card-body {
    padding: 1.2rem;
}
.news-card .badge {
    margin-bottom: 0.8rem;
}
.news-card h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.news-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
@media (max-width: 768px) {
    .news-card { flex: 0 0 280px; }
}

/* ========== SECTION TITLES ========== */
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    color: var(--text-color);
}
.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-gradient);
}

/* ========== GENERAL CARDS ========== */
.card {
    background: var(--card-bg);
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1), box-shadow 0.3s, background 0.3s;
    overflow: hidden;
}
.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 35px rgba(0,0,0,0.12);
}
.card-img-top {
    height: 200px;
    object-fit: cover;
}
.btn {
    transition: transform 0.2s, background 0.2s;
}
.btn:hover {
    transform: translateY(-2px);
}
.btn-primary {
    background: var(--primary-gradient);
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 500;
}
.btn-primary:hover {
    filter: brightness(1.05);
}
.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* ========== STAFF CARD ========== */
.staff-card {
    text-align: center;
    padding: 1rem;
}
.staff-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid var(--primary-color);
}

/* ========== GALLERY CARD ========== */
.gallery-card {
    position: relative;
    overflow: hidden;
}
.gallery-card img {
    transition: transform 0.5s;
}
.gallery-card:hover img {
    transform: scale(1.05);
}
.gallery-card .card-body {
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(100%);
    transition: transform 0.3s;
}
.gallery-card:hover .card-body {
    transform: translateY(0);
}
.gallery-card .card-body .card-title,
.gallery-card .card-body .card-text {
    color: #fff;
}

/* ========== MESSAGE CARD ========== */
.message-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.message-card:hover {
    transform: translateY(-5px);
}
.message-card .row {
    margin: 0;
}
.message-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 200px;
}
.message-card .card-body {
    padding: 1.5rem;
}
.message-card h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.message-content {
    margin-top: 1rem;
    line-height: 1.6;
}

/* ========== FOOTER ========== */
footer {
    background: var(--bg-navbar);
    color: rgba(255,255,255,0.85);
    padding: 3rem 0 1rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
footer a {
    color: var(--primary-color);
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}

/* ========== THEME SWITCHER ========== */
.theme-switcher-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}
.theme-switcher-wrapper .dropdown-toggle {
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 8px 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
}
.theme-switcher-wrapper .dropdown-menu {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}
.theme-switcher-wrapper .dropdown-item {
    color: var(--text-color);
}
.theme-switcher-wrapper .dropdown-item:hover {
    background: var(--bg-body);
    color: var(--primary-color);
}

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}
.whatsapp-float img {
    width: 60px;
    transition: transform 0.3s;
}
.whatsapp-float img:hover {
    transform: scale(1.1);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }
    .card-img-top {
        height: 150px;
    }
    .staff-card img {
        width: 100px;
        height: 100px;
    }
    .message-card .row {
        flex-direction: column;
    }
    .message-card img {
        height: 200px;
    }
    .site-name {
        font-size: 1.2rem;
    }
    .subheading, .slogan {
        font-size: 0.7rem;
    }
    .logo-primary img,
    .logo-secondary img {
        max-height: 40px;
    }
}