/* ============================================================
   TOP-LINK CARDS  — Modern AI-inspired action strip
   ============================================================ */

/* Strip wrapper — floats just below the slider */
.tl-modern {
    position: relative;
    z-index: 20;
    margin-top: -44px;          /* pull up over the bottom of the slider */
    margin-bottom: 0;
    padding: 0 60px;
}

.tl-modern-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1060px;
    margin: 0 auto;
}

/* ── Base card ── */
.tl-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    text-decoration: none !important;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.tl-card:hover {
    transform: translateY(-4px);
    text-decoration: none !important;
}

/* Animated glow blob behind card */
.tl-card-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    filter: blur(36px);
    opacity: 0.35;
    top: -30px;
    right: -20px;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.tl-card:hover .tl-card-glow {
    opacity: 0.6;
    transform: scale(1.2);
}

/* ── Volunteer card — deep blue gradient ── */
.tl-card--volunteer {
    background: linear-gradient(135deg, #1b3a6b 0%, #2d5fa8 100%);
    box-shadow: 0 8px 28px rgba(29, 64, 120, 0.45);
}
.tl-card--volunteer:hover {
    box-shadow: 0 14px 36px rgba(29, 64, 120, 0.60);
}
.tl-card--volunteer .tl-card-glow { background: #528ac8; }

/* ── Selfie card — rich orange gradient ── */
.tl-card--selfie {
    background: linear-gradient(135deg, #a84c00 0%, #f69221 100%);
    box-shadow: 0 8px 28px rgba(180, 80, 0, 0.40);
}
.tl-card--selfie:hover {
    box-shadow: 0 14px 36px rgba(180, 80, 0, 0.58);
}
.tl-card--selfie .tl-card-glow { background: #ffb347; }

/* ── Suggestion card — teal-green gradient ── */
.tl-card--suggest {
    background: linear-gradient(135deg, #0d5c4a 0%, #17a67d 100%);
    box-shadow: 0 8px 28px rgba(13, 90, 74, 0.42);
}
.tl-card--suggest:hover {
    box-shadow: 0 14px 36px rgba(13, 90, 74, 0.58);
}
.tl-card--suggest .tl-card-glow { background: #2ed8a8; }

/* ── Icon circle ── */
.tl-card-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
}
.tl-card:hover .tl-card-icon {
    background: rgba(255,255,255,0.25);
    transform: scale(1.1) rotate(-5deg);
}
.tl-card-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* ── Text ── */
.tl-card-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}
.tl-card-body strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    font-family: 'Merriweather', serif;
    line-height: 1.3;
    white-space: normal;
}
.tl-card-body small {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.72);
    font-weight: 400;
    line-height: 1.3;
}

/* ── Arrow ── */
.tl-card-arrow {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    transition: background 0.3s ease, transform 0.3s ease;
}
.tl-card:hover .tl-card-arrow {
    background: rgba(255,255,255,0.30);
    transform: translateX(3px);
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .tl-modern { padding: 0 20px; margin-top: -36px; }
    .tl-card-body strong { font-size: 12px; white-space: normal; }
}

@media (max-width: 767px) {
    .tl-modern { padding: 12px 16px; margin-top: 0; }
    .tl-modern-inner { grid-template-columns: 1fr; gap: 10px; }
    .tl-card { padding: 14px 16px; }
}

/* ============================================================
   Button/link */

.transition-btn {
  background: #528ac8;
  padding: 15px 35px !important;
  color: #fff;
  text-decoration: none !important;
  -webkit-border-radius: 2px;
  -moz-border-radius: 2px;
  border-radius: 2px;
  display: inline-block;
  margin-top: 20px;
}
.transition-btn:hover {
  background: #f69221;
  color: #fff;
}

/* swf_form  */

.swd-form {
  padding: 20px;
  background: #fff;
  box-shadow: 0px 5px 30px 0px rgb(38 30 0 / 10%);
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  position: relative;
}

.swd-form::after {
  content: url(../images/selfieform.png);
  position: absolute;
  top: 10px;
  z-index: 1;
  width: 15px;
  right: -15px;
  z-index: -1;
}
.inner_content h3 {
  font-size: 20px;
  color: #bbbaba;
  text-transform: none;
  font-weight: 300;
}
.swd-form textarea.form-control,
.swd-form input.form-control,
.swd-form select.form-control {
  border-radius: 0px;
  margin-bottom: 5px;
  border: 1px solid #fff;
  margin-bottom: 0px;
}

.swd-form .form-control {
  border-radius: 1px;
  margin-bottom: 5px;
  border: 0;
  box-shadow: 0 1px 0 0 #ffd09b;
}

.swd-form .iti {
  position: relative;
  display: inline-block;
  border: 1px solid transparent;
  width: 100%;
  border-radius: 0;
}

.swd-form .upload-btn-wrapper {
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.swd-form .btn {
  border: 1px solid #ffd09b;
  color: gray;
  background-color: white;
  padding: 12px 15px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: bold;
}

.swd-form .upload-btn-wrapper input[type="file"] {
  font-size: 100px;
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
}

.swd-form input[type="submit"] {
  padding: 15px 15px;
  background: #f69221;
  border: 0 none;
  cursor: pointer;
  -webkit-border-radius: 2px;
  border-radius: 2px;
  color: #fff;
  font-weight: 600;
}
.swd-form input[type="submit"]:hover {
  padding: 15px 15px;
  background: #000;
  border: 0 none;
  cursor: pointer;
  -webkit-border-radius: 2px;
  border-radius: 2px;
  color: #fff;
  font-weight: 600;
}


/* Input image preview box  */

.img_preview{
    max-width: 200px !important;
    height:auto !important;
    display:block !important;
}

/* ============================================================
   MODERN HEADER  (two-tier: topbar + main nav)
   ============================================================ */

/* Reset old float-based header overrides */
header .extra_margin,
header .menu_sec,
header .logo_swd,
header .menu_sec .top_contact_sec,
header .menu_sec .menu_sec_swd { all: unset; }

#site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    font-family: 'Merriweather Sans', 'Merriweather', sans-serif;
    transition: box-shadow 0.3s ease;
}

/* ── Top Bar ── */
.header-topbar {
    background: #040c1a;
    border-bottom: 1px solid rgba(0, 210, 255, 0.12);
    padding: 0;
}

.header-topbar-inner {
    max-width: 100%;
    padding: 9px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #b8c8da;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.25s ease;
}
.topbar-link:hover { color: #f69221; text-decoration: none; }

.topbar-link .menu_icon {
    width: 16px;
    height: 20px;
    display: inline-block;
    background-image: url(../images/icons.svg);
    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: 100%;
    vertical-align: middle;
    filter: brightness(1.4);
}
.topbar-link .menu_icon[data-icon="email"] { background-position: 0 4px; }
.topbar-link .menu_icon[data-icon="phone"] { background-position: 0 -18px; }

.topbar-divider {
    display: inline-block;
    width: 1px;
    height: 16px;
    background: rgba(255,255,255,0.15);
    margin: 0 12px;
}

.topbar-right {}

.donate-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #f69221 0%, #e07a10 100%);
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 6px 18px;
    border-radius: 30px;
    text-decoration: none !important;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 3px 14px rgba(246, 146, 33, 0.35);
}
.donate-pill:hover {
    background: linear-gradient(135deg, #528ac8 0%, #3a6fa8 100%);
    box-shadow: 0 6px 20px rgba(82, 138, 200, 0.4);
    transform: translateY(-1px);
    text-decoration: none !important;
    color: #fff !important;
}
.donate-pill-icon {
    width: 18px;
    height: auto;
    filter: brightness(10);
}

/* ── Main Nav Bar ── */
.header-main {
    position: relative;
    background: linear-gradient(180deg, #0a1628 0%, #081220 100%);
    box-shadow: 0 1px 0 rgba(0, 210, 255, 0.10);
    padding: 0;
    transition: box-shadow 0.3s ease, padding 0.3s ease, background 0.3s ease;
    /* NO overflow:hidden — that would clip mega panels and mobile overlay */
}

/* AI dot grid overlay */
.header-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(82, 138, 200, 0.22) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
    animation: dotsDrift 30s linear infinite;
}

/* Glowing bottom scan-line */
.header-main::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right,
        transparent 0%,
        rgba(0, 210, 255, 0.70) 38%,
        rgba(246, 146, 33, 0.50) 62%,
        transparent 100%
    );
    animation: headerLineGlow 4s ease-in-out infinite;
    z-index: 1;
}
@keyframes headerLineGlow {
    0%, 100% { opacity: 0.45; }
    50%       { opacity: 1.00; }
}

.header-main-inner {
    padding: 8px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    z-index: 2;
}

/* Logo in new structure */
.header-main-inner .logo_swd {
    flex-shrink: 0;
    float: none !important;
    width: auto !important;
    margin-left: 25px;
}
.header-main-inner .logo_swd a { display: block; }
.header-main-inner .logo_swd img {
    max-width: 140px;
    height: auto;
    transition: max-width 0.3s ease;
    display: block;
}

/* Nav wrapper */
.header-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
}
.header-nav nav {
    position: relative;
    display: flex;
    align-items: center;
}

/* ── Scrolled / Sticky state ── */
#site-header.scrolled .header-topbar {
    max-height: 0;
    overflow: hidden;
    padding: 0;
    border: none;
    transition: max-height 0.35s ease, padding 0.35s ease;
}
#site-header.scrolled .header-main {
    background: rgba(6, 15, 30, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.50), 0 0 0 1px rgba(0, 210, 255, 0.10);
}
#site-header.scrolled .header-main-inner .logo_swd img {
    max-width: 120px;
}

/* Animate topbar collapse */
.header-topbar {
    max-height: 60px;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

/* ============================================================
   CLEAN BANNER SLIDER
   ============================================================ */

.banner-clean {
    position: relative;
    margin-top: 0 !important;
    min-height: unset !important;
    padding-top: 110px;   /* fallback; JS overrides with exact header height */
    background: #000;
}

/* Slide images — fixed 1380×500 design ratio */
.banner-slide-img {
    display: block;
    width: 100%;
    height: 500px;          /* exact design height on wide screens */
    max-height: 500px;
    object-fit: cover;
    object-position: center center;
}

/* Owl dots */
.banner-clean .owl-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
    align-items: center;
}
.banner-clean .owl-dot span {
    display: block;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.40);
    border: 1.5px solid rgba(255, 255, 255, 0.60);
    transition: all 0.3s ease;
}
.banner-clean .owl-dot.active span {
    width: 30px;
    border-radius: 5px;
    background: #f69221;
    border-color: #f69221;
}

/* Navigation arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.40);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
    outline: none;
}
.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.70);
    border-color: rgba(255, 255, 255, 0.70);
}
.slider-prev { left: 18px; }
.slider-next { right: 18px; }

/* Responsive — scale down from 1380×500 proportionally */
@media (max-width: 1199px) {
    /* ~87% of 500 */
    .banner-slide-img { height: 435px; max-height: 435px; }
}
@media (max-width: 991px) {
    /* ~72% of 500 */
    .banner-slide-img { height: 360px; max-height: 360px; }
    .slider-arrow { width: 38px; height: 38px; font-size: 18px; }
    .slider-prev { left: 10px; }
    .slider-next { right: 10px; }
}
@media (max-width: 767px) {
    .banner-clean { padding-top: 60px; }
    /* ~55% of 500 — fits portrait phone well */
    .banner-slide-img { height: 280px; max-height: 280px; }
    .slider-arrow { width: 32px; height: 32px; font-size: 15px; }
    .slider-prev { left: 6px; }
    .slider-next { right: 6px; }
}
@media (max-width: 480px) {
    /* small phones */
    .banner-slide-img { height: 200px; max-height: 200px; }
}
@media (max-width: 380px) {
    .banner-slide-img { height: 160px; max-height: 160px; }
    .slider-arrow { display: none; }
}

/* ── Header responsive ── */
@media (max-width: 991px) {
    .header-topbar-inner { padding: 8px 20px; }
    .header-main-inner   { padding: 8px 20px; }
}
@media (max-width: 767px) {
    .header-topbar { display: none; }
    .header-main-inner { padding: 10px 16px; }
    .header-main-inner .logo_swd img { max-width: 130px; }
    .header-nav nav { min-height: 44px; }
    /* Ensure dot-grid pseudo-el stays behind burger button */
    .header-main::before { background-size: 20px 20px; }
}

/* Legacy override */
.slider.banner-ai { margin-top: 0 !important; min-height: unset !important; }
