/* =========================================================
   Vithu Trust Fund — front-end UI enhancements
   Loaded after style.css / responsive.css. Additive only:
   it refines the existing theme, it does not replace it.
   ========================================================= */

:root {
    --vtf-radius: 18px;
    --vtf-radius-sm: 12px;
    --vtf-shadow-sm: 0 2px 10px rgba(16, 42, 67, 0.06);
    --vtf-shadow: 0 10px 30px rgba(16, 42, 67, 0.10);
    --vtf-shadow-lg: 0 20px 50px rgba(16, 42, 67, 0.16);
    --vtf-ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
    color: #5b6472;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

::selection {
    background: var(--theme-primary);
    color: #fff;
}

a, button { transition: color .25s ease, background-color .25s ease, box-shadow .25s ease, transform .25s ease; }

/* Visible keyboard focus everywhere (mouse clicks unaffected) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(14, 117, 192, .45);
    outline-offset: 3px;
    border-radius: 6px;
}

img { height: auto; }

/* ---------- Buttons ---------- */
.common-btn {
    padding: 13px 28px;
    letter-spacing: .2px;
    box-shadow: 0 8px 20px rgba(39, 91, 143, .22);
}

.common-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(14, 117, 192, .28);
}

.common-btn:active { transform: translateY(-1px); }

/* ---------- Section titles ---------- */
.section-title .sub-title {
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(14, 117, 192, .08);
    font-size: 13px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.section-title h2 {
    line-height: 1.2;
    letter-spacing: -.5px;
}

.section-title p { color: var(--theme-text-muted); }

/* ---------- Top bar & navbar ---------- */
.header-area .header-flags li a,
.header-area .right ul li a { opacity: .9; }

.header-area .header-flags li a:hover,
.header-area .right ul li a:hover { opacity: 1; }

.navbar-area.sticky-top { z-index: 1020; }

.main-nav {
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
    box-shadow: 0 1px 0 rgba(16, 42, 67, .06), 0 6px 20px rgba(16, 42, 67, .05);
}

.main-nav nav .navbar-nav .nav-item a { position: relative; }

.main-nav nav .navbar-nav .nav-item .dropdown-menu {
    border: 0;
    border-radius: var(--vtf-radius-sm);
    overflow: hidden;
    box-shadow: var(--vtf-shadow-lg);
}

/* Header CTA (shown in place of "Donate" while donations are off) */
.side-nav a.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    padding: 10px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-dark-primary));
    color: #fff;
    font-size: 15px;
    box-shadow: 0 8px 20px rgba(14, 117, 192, .25);
}

.side-nav a.nav-cta i { animation: none; margin-left: 0; }

.side-nav a.nav-cta:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(14, 117, 192, .32);
}

/* ---------- Hero ---------- */
.video-banner-area .video-overlay {
    background: linear-gradient(100deg, rgba(10, 35, 66, .82) 0%, rgba(10, 35, 66, .55) 45%, rgba(10, 35, 66, .15) 100%);
}

.video-banner-content .hero-eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.video-banner-content h1 {
    line-height: 1.12;
    letter-spacing: -1px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, .25);
}

.video-banner-content p {
    max-width: 560px;
    opacity: .92;
}

.video-banner-content .banner-btn-area {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.video-banner-content .banner-btn-area .banner-btn { margin-right: 0; }

.video-banner-content .banner-btn-area .banner-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, .75);
    padding: 11px 26px;
    box-shadow: none;
}

.video-banner-content .banner-btn-area .banner-btn-outline:hover {
    background: #fff;
    color: var(--theme-dark-primary);
    border-color: #fff;
}

/* ---------- About ---------- */
.about-img img {
    border-radius: var(--vtf-radius);
    box-shadow: var(--vtf-shadow-lg);
}

.about-content .about-btn-area {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.about-content .about-btn-area .common-btn { margin-right: 0; }

/* ---------- Feature cards ---------- */
.feature-item {
    height: calc(100% - 30px);
    border-radius: var(--vtf-radius);
    box-shadow: var(--vtf-shadow);
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--vtf-shadow-lg);
}

/* ---------- Values ---------- */
.benefit-item {
    height: calc(100% - 30px);
    border: 1px solid rgba(14, 117, 192, .14);
    border-radius: var(--vtf-radius);
    box-shadow: var(--vtf-shadow-sm);
}

.benefit-item:hover {
    transform: translateY(-6px);
    border-color: rgba(14, 117, 192, .35);
    box-shadow: var(--vtf-shadow);
}

/* ---------- Projects ---------- */
.project-card {
    border-radius: var(--vtf-radius) !important;
    box-shadow: var(--vtf-shadow-sm);
    transition: transform .35s var(--vtf-ease), box-shadow .35s var(--vtf-ease);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--vtf-shadow-lg);
}

.project-card .card-title a:hover { color: var(--theme-primary) !important; }

/* ---------- Events ---------- */
.event-item {
    border-radius: var(--vtf-radius);
    overflow: hidden;
    box-shadow: var(--vtf-shadow);
}

/* ---------- Work steps ---------- */
.work-content ul li {
    transition: transform .3s var(--vtf-ease);
}

.work-content ul li:hover { transform: translateX(6px); }

.work-img img {
    border-radius: var(--vtf-radius);
    box-shadow: var(--vtf-shadow-lg);
}

/* ---------- Blog ---------- */
.blog-item {
    height: calc(100% - 30px);
    border-radius: var(--vtf-radius);
    overflow: hidden;
    box-shadow: var(--vtf-shadow-sm);
}

.blog-item:hover {
    transform: translateY(-6px);
    border-radius: var(--vtf-radius);
    box-shadow: var(--vtf-shadow-lg);
}

.blog-item .top { overflow: hidden; }

.blog-item .top img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .6s var(--vtf-ease);
}

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

.blog-item .bottom h3 {
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- Footer ---------- */
.footer-area {
    background: linear-gradient(180deg, var(--theme-dark-primary) 0%, #1d4670 100%);
}

.footer-area .footer-links ul li a:hover { padding-left: 4px; }

.footer-area .footer-details {
    border-top: 1px solid rgba(255, 255, 255, .12);
}

/* ---------- Go-to-top ---------- */
.go-top {
    right: 20px;
    bottom: 20px;
    border-radius: 50%;
    box-shadow: var(--vtf-shadow);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .video-banner-content h1 { font-size: 40px; }
    .section-title h2 { font-size: 32px; }
}

@media (max-width: 575px) {
    .video-banner-content h1 { font-size: 30px; }
    .video-banner-content p { font-size: 16px; }
    .video-banner-content .hero-eyebrow { font-size: 11px; }
    .video-banner-content .banner-btn-area .common-btn { flex: 1 1 100%; text-align: center; }
    .section-title h2 { font-size: 26px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
