/* =========================================================
   HANUMAT KRIPA FOUNDATION
   COMMON CSS
   ========================================================= */


/* =========================================================
   GLOBAL
   ========================================================= */

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


html {
    overflow-x: clip;
    scroll-behavior: smooth;
}


body {
    overflow-x: clip;
    font-family: 'Poppins', sans-serif;
    color: #26364a;
    background: #ffffff;
    line-height: 1.7;
}


img {
    max-width: 100%;
}


a {
    text-decoration: none;
}


button,
input,
textarea,
select {
    font-family: inherit;
}


.container {
    width: 90%;
    max-width: 1240px;
    margin: auto;
}

/* Top Strip for Social Media */
.top-bar {
    background-color: #1a252f;
    color: #f8f9fa;
    padding: 6px 0;
    font-size: 0.85rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links a {
    color: #ffffff;
    margin-left: 12px;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: #e67e22;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {

    position: sticky;

    top: 0;
    left: 0;

    width: 100%;

    background: rgba(255, 255, 255, 0.96);

    backdrop-filter: blur(10px);

    border-bottom: 1px solid #edf1f5;

    z-index: 1000;

    transition: 0.3s;
}


.site-header.scrolled {

    box-shadow: 0 5px 25px rgba(20, 45, 70, 0.10);

}


/* =========================================================
   NAVIGATION CONTAINER
   ========================================================= */

.nav-container {

    min-height: 84px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

}


/* =========================================================
   LOGO
   ========================================================= */

.logo {

    display: flex;

    align-items: center;

    color: #173d70;

    flex-shrink: 0;

}


.logo img {

    width: 58px;

    height: 58px;

    object-fit: contain;

    margin-right: 11px;

}


.logo-text h2 {

    color: #173d70;

    font-size: 19px;

    line-height: 1.2;

    font-weight: 700;

}


.logo-text span {

    color: #647386;

    font-size: 10px;

    letter-spacing: .3px;

}


/* =========================================================
   MAIN MENU
   ========================================================= */

.main-nav ul {

    display: flex;

    align-items: center;

    gap: 27px;

    list-style: none;

}


.main-nav a {

    position: relative;

    color: #26364a;

    font-size: 13px;

    font-weight: 600;

    padding: 30px 0;

    transition: .25s;

}


.main-nav a:hover {

    color: #c62828;

}


.main-nav a.active {

    color: #c62828;

}


.main-nav a.active::after {

    content: "";

    position: absolute;

    left: 0;

    right: 0;

    bottom: 21px;

    height: 2px;

    background: #c62828;

}


/* =========================================================
   DONATE BUTTON
   ========================================================= */

.header-donate {

    background: #c62828;

    color: #ffffff;

    padding: 12px 22px;

    border-radius: 5px;

    font-size: 12px;

    font-weight: 700;

    text-transform: uppercase;

    white-space: nowrap;

    transition: .25s;

}


.header-donate:hover {

    background: #a91f1f;

    transform: translateY(-1px);

}


/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.menu-toggle {

    display: none;

    border: none;

    background: transparent;

    color: #173d70;

    font-size: 29px;

    cursor: pointer;

}


/* =========================================================
   COMMON SECTIONS
   ========================================================= */

.section {

    padding: 85px 0;

}


.section-label {

    color: #c62828;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1.8px;

    margin-bottom: 8px;

}


.section-label.center {

    text-align: center;

}


.section-title {

    color: #173d70;

    font-size: 36px;

    line-height: 1.25;

    margin-bottom: 40px;

}


.center {

    text-align: center;

}


/* =========================================================
   COMMON BUTTONS
   ========================================================= */

.btn {

    display: inline-block;

    padding: 14px 27px;

    border-radius: 5px;

    font-size: 13px;

    font-weight: 700;

    transition: .25s;

}


.btn-primary {

    background: #c62828;

    color: #ffffff;

}


.btn-primary:hover {

    background: #a91f1f;

    transform: translateY(-2px);

}


.btn-outline {

    border: 1.5px solid #c62828;

    color: #c62828;

    background: #ffffff;

}


.btn-outline:hover {

    background: #c62828;

    color: #ffffff;

}


/* =========================================================
   HERO SECTION — NEW DESIGN
========================================================= */

.home-hero {
    min-height: 650px;
    padding-top: 84px;
    background: #f7f9fc;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 46% 54%;
    align-items: center;
    min-height: 566px;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 55px 30px 55px 0;
}

.hero-label {
    color: #c62828;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.8px;
    margin-bottom: 14px;
}

.hero-content h1 {
    color: #173d70;
    font-size: 52px;
    line-height: 1.18;
    margin-bottom: 22px;
}

.hero-content h1 span {
    display: block;
    color: #173d70;
}

.hero-description {
    max-width: 580px;
    color: #526276;
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    height: 520px;
    width: 100%;
    overflow: hidden;
    border-radius: 18px 0 0 18px;
    box-shadow: -15px 15px 35px rgba(0,0,0,.10);
}

.hero-image::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 25%;
    z-index: 1;
    background: linear-gradient(
        to right,
        #f7f9fc,
        rgba(247,249,252,0)
    );
}

.hero-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}



/* =========================================================
   COMMON CTA
   ========================================================= */

.home-cta {

    padding: 85px 0;

    text-align: center;

    background: #173d70;

    color: #ffffff;

}


.home-cta .section-label {

    color: #f5c542;

}


.home-cta h2 {

    font-size: 35px;

    line-height: 1.3;

    margin-bottom: 15px;

}


.home-cta p:not(.section-label) {

    max-width: 720px;

    margin: 0 auto 28px;

    color: #dce6f1;

    font-size: 15px;

}


.cta-buttons {

    display: flex;

    justify-content: center;

    gap: 15px;

}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {

    background: #0c2847;

    color: #ffffff;

}


.footer-grid {

    display: grid;

    grid-template-columns: 2fr 1fr 1fr;

    gap: 60px;

    padding: 55px 0 45px;

}


.footer-about h3 {

    font-size: 20px;

    margin-bottom: 8px;

}


.footer-about p {

    color: #b9c8d8;

    font-size: 13px;

    max-width: 450px;

    margin-bottom: 8px;

}


.footer-links h4 {

    font-size: 15px;

    margin-bottom: 15px;

}


.footer-links a {

    display: block;

    color: #b9c8d8;

    font-size: 13px;

    margin-bottom: 8px;

    transition: .2s;

}


.footer-links a:hover {

    color: #f5c542;

}


.footer-bottom {

    padding: 17px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;

    border-top: 1px solid rgba(255,255,255,.12);

    color: #9eb0c2;

    font-size: 12px;

}

.footer-darpan{
    display: flex;
   
}

.footer-darpan a{
   color: #9eb0c2;
   
}


/* =========================================================
   SCROLL TO TOP
   ========================================================= */

#topBtn {

    position: fixed;

    right: 25px;

    bottom: 25px;

    width: 46px;

    height: 46px;

    border: none;

    border-radius: 50%;

    background: #c62828;

    color: #ffffff;

    font-size: 20px;

    cursor: pointer;

    opacity: 0;

    visibility: hidden;

    transition: .3s;

    z-index: 1100;

}


#topBtn.show {

    opacity: 1;

    visibility: visible;

}


/* =========================================================
   COMMON RESPONSIVE
   ========================================================= */

@media (max-width: 1150px) {

    .main-nav ul {

        gap: 17px;

    }

    .main-nav a {

        font-size: 12px;

    }

    .header-donate {

        padding: 11px 17px;

    }

}


@media (max-width: 950px) {

    .main-nav {

        display: none;

    }


    .menu-toggle {

        display: block;

    }


    .header-donate {

        display: none;

    }


    #navbar.show {

        display: block;

        position: absolute;

        top: 84px;

        left: 0;

        width: 100%;

        background: #ffffff;

        border-top: 1px solid #edf1f5;

        box-shadow: 0 10px 25px rgba(0,0,0,.10);

        padding: 15px 5%;

    }


    #navbar.show ul {

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

    }


    #navbar.show li {

        border-bottom: 1px solid #edf1f5;

    }


    #navbar.show a {

        display: block;

        padding: 13px 5px;

    }


    #navbar.show a.active::after {

        display: none;

    }

}


@media (max-width: 600px) {

    .container {

        width: 92%;

    }


    .nav-container {

        min-height: 74px;

    }


    .logo img {

        width: 46px;

        height: 46px;

    }


    .logo-text h2 {

        font-size: 15px;

    }


    .logo-text span {

        font-size: 8px;

    }


    #navbar.show {

        top: 74px;

    }


    .section {

        padding: 65px 0;

    }


    .section-title {

        font-size: 29px;

    }


    .home-cta h2 {

        font-size: 28px;

    }


    .cta-buttons {

        flex-direction: column;

        align-items: stretch;

    }


    .cta-buttons .btn {

        text-align: center;

    }

}
/* Logo foundation subline */
.logo-text-next {
    text-align: center;
    color: #b10404;
    font-size: 10px;
    line-height: 1.1;
    font-weight: 600;
}

/* updated responsive  */

@media (max-width: 1100px) {
    .two-column {
        gap: 45px;
    }

    .program-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1050px) {
    .hero-content h1 {
        font-size: 44px;
    }

    .hero-description {
        font-size: 15px;
    }
}

@media (max-width: 800px) {
    .home-hero {
        padding-top: 74px;
        min-height: auto;
    }

    .hero-container {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-content {
        padding: 65px 0 40px;
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        height: 430px;
        border-radius: 16px;
        margin-bottom: 45px;
    }

    .hero-image::before {
        display: none;
    }

    .two-column {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .program-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .involvement-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .section {
        padding: 65px 0;
    }

    .title {
        font-size: 29px;
        margin-bottom: 32px;
    }

    .title.left {
        text-align: left;
    }

    .program-grid,
    .impact-grid {
        grid-template-columns: 1fr;
    }

    .impact-card {
        padding: 25px 18px;
    }

    .promise-section h2 {
        font-size: 22px;
    }
}

@media (max-width: 550px) {
    .hero-content h1 {
        font-size: 35px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        text-align: center;
    }

    .hero-image {
        height: 330px;
    }
}


/* =========================================================
   STATIC ACTION PANELS - GitHub Pages friendly replacement
   ========================================================= */
.contact-action-panel,
.donation-action-panel,
.volunteer-action-panel {
    background: #ffffff;
    border: 1px solid #e4eaf0;
    border-radius: 12px;
    padding: 34px 34px 32px;
    min-height: 610px;
    box-shadow: 0 12px 35px rgba(20, 45, 70, 0.07);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.action-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff3df;
    color: #e67e22;
    font-size: 22px;
    margin-bottom: 20px;
}

.action-kicker {
    color: #0b5cab;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.contact-action-panel h3,
.donation-action-panel h3,
.volunteer-action-panel h3 {
    color: #082d52;
    font-size: 25px;
    line-height: 1.35;
    margin-bottom: 13px;
}

.contact-action-panel > p:not(.action-kicker),
.donation-action-panel > p:not(.action-kicker),
.volunteer-action-panel > p:not(.action-kicker) {
    color: #667789;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 25px;
}

.action-list {
    border-top: 1px solid #e8edf2;
    margin-bottom: 25px;
}

.action-list > div {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 13px;
    padding: 15px 0;
    border-bottom: 1px solid #e8edf2;
}

.action-list > div > span {
    color: #0b5cab;
    font-size: 12px;
    font-weight: 700;
    padding-top: 2px;
}

.action-list strong {
    display: block;
    color: #26364a;
    font-size: 14px;
    margin-bottom: 2px;
}

.action-list small {
    display: block;
    color: #718092;
    font-size: 12px;
    line-height: 1.55;
}

.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
}

.action-buttons .btn {
    text-align: center;
}

.action-buttons .btn-secondary {
    background: transparent;
    border: 2px solid #0b5cab;
    color: #0b5cab;
}

.action-buttons .btn-secondary:hover {
    background: #0b5cab;
    color: #fff;
}

@media (max-width: 600px) {
    .contact-action-panel,
    .donation-action-panel,
    .volunteer-action-panel {
        min-height: 0;
        padding: 28px 20px;
    }

    .contact-action-panel h3,
    .donation-action-panel h3,
    .volunteer-action-panel h3 {
        font-size: 22px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        width: 100%;
    }
}


/* Final responsive safeguard: prevent tiny horizontal page drift on mobile
   without changing the established layout or component sizing. */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

img, svg, video, iframe {
    max-width: 100%;
}

.container,
section,
header,
main,
footer,
.grid,
[class*="grid"],
[class*="layout"] {
    min-width: 0;
}

p, h1, h2, h3, h4, h5, h6, a, span {
    overflow-wrap: break-word;
}
