/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --font-family: 'Poppins', sans-serif;
    --transition: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    --arrow-size: 50px;
    --primary: #0d6efd;
    --secondary: #28a745;
    --dark: #0f172a;
    --light-bg: #f8fafc;
    --glass: rgba(255, 255, 255, 0.8);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #fff;
}

/* =========================================
   GLOBAL TYPOGRAPHY STANDARDIZATION
   ========================================= */
h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.main-title,
.page-header h1 {
    font-family: var(--font-family);
}

/* Base style for headings */
.section-title,
.main-title,
h1,
h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Base style for paragraphs across the entire site */
p,
.card p,
.program-content p,
.activities-content p,
.about-content p,
.footer-col p,
.list-text,
.mission-vision p {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
}

/* ========================================= */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-family: var(--font-family);
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.section-subtitle {
    font-family: var(--font-family);
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 40px;
    max-width: 600px;
    margin-inline: auto;
    text-align: center;
}

.row {
    display: flex;
    flex-wrap: wrap;
}

/* NAVBAR */
#navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

#navbar .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#navbar .logo {
    max-width: 350px;
    height: auto;
    padding: 5px 0;
}

#navbar .logo img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

#navbar .navbar nav {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

#navbar .navbar nav li {
    list-style: none;
}

#navbar .navbar nav a {
    color: black;
    margin-left: 30px;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
}

#navbar .navbar nav a:hover {
    color: #ffd700;
}

#navbar .donateBtn a {
    background: #28a745;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
    display: inline-block;
}

#navbar .donateBtn a:hover {
    background: #218838;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

/* HERO */
/* ── SLIDER WRAPPER ── */
#herosection .slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 1366px;
    user-select: none;
}

#herosection .slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16/7;
    border-radius: 20px;
    overflow: hidden;
}

/* ── SLIDES ── */
#herosection .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.04) translateX(40px);
    transition: opacity var(--transition), transform var(--transition);
    pointer-events: none;
}

#herosection .slide.active {
    opacity: 1;
    transform: scale(1) translateX(0);
    pointer-events: auto;
    z-index: 2;
}

#herosection .slide.exit-left {
    opacity: 0;
    transform: scale(0.96) translateX(-40px);
    z-index: 1;
}

#herosection .slide img,
#herosection .slide video {
    width: 100%;
    height: 85vh;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* slide caption */
#herosection .slide-caption {
    position: absolute;
    bottom: 25%;
    left: 5%;
    z-index: 3;
    transform: translateY(16px);
    opacity: 0;
    transition: opacity 0.5s 0.2s ease, transform 0.5s 0.2s ease;
}

#herosection .slide.active .slide-caption {
    opacity: 1;
    transform: translateY(0);
}

#herosection .slide-caption h2 {
    font-family: var(--font-family);
    font-size: clamp(1.6rem, 3vw, 3.2rem);
    color: #fff;
    line-height: 1;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

#herosection .slide-caption p {
    font-size: clamp(0.75rem, 1.5vw, 1rem);
    color: rgba(255, 255, 255, 0.78);
    margin-top: 8px;
    font-weight: 300;
    letter-spacing: 0.04em;
}

/* ── ARROWS ── */
#herosection .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: var(--arrow-size);
    height: var(--arrow-size);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

#herosection .arrow:hover {
    background: rgba(255, 107, 53, 0.75);
    border-color: #ff6b35;
    transform: translateY(-50%) scale(1.1);
}

#herosection .arrow:active {
    transform: translateY(-50%) scale(0.95);
}

#herosection .arrow-left {
    left: 5px;
}

#herosection .arrow-right {
    right: 5px;
}

#herosection .arrow svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #fff;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── DOTS ── */
#herosection .dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

#herosection .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    border: none;
    padding: 0;
    transition: background 0.3s, transform 0.3s, width 0.35s;
}

#herosection .dot.active {
    background: #ff6b35;
    width: 28px;
    border-radius: 5px;
    transform: scale(1);
}

#herosection .dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.55);
    transform: scale(1.2);
}

/* Welcome to IICPHC section start */
.about-section {
    padding: 60px 20px;
    text-align: center;
}

#about-section .main-title {
    font-family: var(--font-family);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: #1e293b;
}

#about-section .card-grid {
    display: flex;
    gap: 60px;
    justify-content: center;
    flex-wrap: wrap;
}

#about-section .card {
    background: #ffffff;
    padding: 35px;
    width: 320px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.02);
    text-align: center;
}

#about-section .icon-box {
    font-size: 45px;
    margin-bottom: 25px;
    color: var(--primary);
    background: #f0f7ff;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-inline: auto;
    transition: all 0.3s ease;
}

#about-section .card:hover .icon-box {
    background: var(--primary);
    color: #fff;
    transform: rotate(10deg);
}

#about-section .card h2 {
    color: #0d6efd;
    margin-bottom: 10px;
    font-family: var(--font-family);
}

#about-section .card p {
    color: #555;
    line-height: 1.6;
}

#about-section .card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

/* Welcome to IICPHC section end */

/* Our Programmes section start */
.program-section {
    padding: 80px 20px;
    background: #fff;
    text-align: center;
}

#program-section .program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

#program-section .program-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

#program-section .program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

#program-section .program-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

#program-section .program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
}

#program-section .program-card:hover .program-image img {
    transform: scale(1.1);
}

#program-section .program-content {
    padding: 25px;
    text-align: left;
}

#program-section .program-content h3 {
    font-size: 20px;
    color: #1e293b;
    margin-bottom: 12px;
}

#program-section .program-content p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

#program-section .program-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #0d6efd;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
}

#program-section .program-btn:hover {
    background: #0b5ed7;
}

/* Our Programmes section end */

/* Our Impact section start */
.impact-section {
    padding: 100px 20px;
    background: radial-gradient(circle at top left, #f8fafc, #eff6ff);
    text-align: center;
}

#impact-section .impact-grid {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

#impact-section .impact-card {
    background: #fff;
    padding: 25px;
    width: 220px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

#impact-section .impact-card:hover {
    transform: translateY(-8px);
}

#impact-section .counter {
    font-size: 36px;
    color: #0d6efd;
    margin-bottom: 10px;
}

#impact-section .impact-card p {
    color: #555;
}

#impact-section .impact-image {
    margin-top: 50px;
}

#impact-section .impact-image img {
    width: 300px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Our Impact section end */

/* Trusted & Recognization section start */
.trust-section {
    padding: 80px 20px;
    background: linear-gradient(to right, #ffffff, #f1f5f9);
}

#trust-section .trust-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    max-width: 1100px;
    margin: auto;
}

/* Left */
#trust-section .trust-left {
    max-width: 450px;
}

#trust-section .trust-left h2 {
    font-size: 36px;
    color: #0f172a;
}

#trust-section .trust-left p {
    color: #555;
    margin: 20px 0;
    line-height: 1.6;
}

#trust-section .trust-badge {
    display: inline-block;
    background: #22c55e;
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
}

/* Right */
#trust-section .trust-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#trust-section .trust-box {
    background: #ffffff;
    padding: 20px;
    border-left: 5px solid #0d6efd;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

#trust-section .trust-box:hover {
    transform: translateX(8px);
}

#trust-section .trust-box h3 {
    margin: 0;
    color: #0d6efd;
}

#trust-section .trust-box p {
    margin: 5px 0 0;
    color: #555;
}

/* Trusted & Recognization section end */

/* Footer section start */
.footer {
    background: #0f172a;
    color: #fff;
    padding-top: 50px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    padding: 0 20px 40px;
}

.footer-col {
    width: 220px;
}

.footer-col:first-child {
    width: 340px;
}

.footer-col h3,
.footer-col h4 {
    margin-bottom: 15px;
    color: #38bdf8;
}

.footer-col p {
    color: #cbd5f5;
    line-height: 1.6;
    padding-bottom: 5px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #cbd5f5;
    text-decoration: none;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: #38bdf8;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    margin-right: 10px;
    font-size: 18px;
    color: #fff;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-5px);
    color: #fff;
}

.footerlogo {
    margin-bottom: 20px;
}

.footerlogo img {
    width: 100%;
    max-width: 340px;
    height: auto;
    border-radius: 10px;
    background-color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding: 15px;
    background: #020617;
    font-size: 14px;
    color: #94a3b8;
}

/* Footer section end */


/* Utility Classes for Responsive Visibility */
/* Show only on Desktop (769px and up) */
.only-desktop {
    display: block !important;
}

.only-mobile {
    display: none !important;
}