/* ============================================================
   RESPONSIVE.CSS — Global mobile overrides for Ilakku website
   Loaded AFTER page-specific CSS to override rigid layouts.
   ============================================================ */

/* ─── GLOBAL OVERFLOW FIX ──────────────────────────────────── */
html, body {
    overflow-x: hidden !important;
    max-width: 100%;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* ─── GLOBAL IMAGE SAFETY ──────────────────────────────────── */
img {
    max-width: 100%;
    height: auto;
}

/* ============================================================
   TABLET BREAKPOINT  (≤ 991px)
   ============================================================ */
@media (max-width: 991px) {

    /* ── Navbar / Header ─────────────────────────────────── */
    .option {
        margin-left: 0 !important;
        margin-top: 0.5rem !important;
        display: flex !important;
        flex-wrap: wrap !important;
    }

    .navbar-nav {
        flex-direction: column !important;
        width: 100%;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem !important;
    }

    .butt {
        margin-left: 0 !important;
        margin-top: 0.5rem !important;
    }

    .bar {
        top: 0 !important;
    }

    /* ── Banner / Hero ────────────────────────────────────── */
    .heading {
        font-size: 36px !important;
    }

    .para {
        font-size: 18px !important;
        margin-left: 1rem !important;
        margin-right: 1rem !important;
        margin-bottom: 20px !important;
    }

    .overlay {
        margin-top: -30px !important;
    }

    /* ── Home page sections ───────────────────────────────── */
    .services,
    .services1 {
        margin-left: 15px !important;
        font-size: 22px !important;
    }

    .serv {
        margin-top: -40px !important;
    }

    .abpara {
        margin-left: 15px !important;
        margin-right: 15px !important;
    }

    .iname {
        margin-top: 40px !important;
        font-size: 2rem !important;
    }

    /* ── Counts / Stats ──────────────────────────────────── */
    .counts {
        font-size: 36px !important;
        margin-left: 15px !important;
    }

    .cnt {
        margin-left: 15px !important;
    }

    /* ── Why Choose / Boxes ───────────────────────────────── */
    .check,
    .users,
    .reply {
        font-size: 30px !important;
        margin-left: 15px !important;
    }

    .box,
    .box1,
    .box2 {
        margin-right: 0 !important;
        margin-bottom: 20px !important;
    }

    .boxes {
        margin-top: 40px !important;
    }

    .wchoose {
        width: 100% !important;
    }

    .names,
    .names1,
    .names2 {
        margin-left: 15px !important;
    }

    /* ── Bell / CTA Section ──────────────────────────────── */
    .bell {
        font-size: 50px !important;
        margin-left: 15px !important;
        margin-top: 20px !important;
    }

    .bhead {
        font-size: 28px !important;
    }

    .bnow {
        margin-left: 15px !important;
        margin-top: 20px !important;
    }

    /* ── 2nd Services / Cards ────────────────────────────── */
    .icons {
        margin-left: 15px !important;
    }

    .icons4 {
        margin-left: 15px !important;
    }

    .wch,
    .wch1,
    .wch2 {
        width: 100% !important;
        margin-left: 0 !important;
    }

    .sna,
    .sna1 {
        margin-left: 15px !important;
    }

    .now1 {
        margin-left: 15px !important;
    }

    .sym {
        margin-left: 15px !important;
    }

    /* ── Testimonials ────────────────────────────────────── */
    .testslide {
        margin-left: 15px !important;
        margin-right: 15px !important;
    }

    .usertest {
        width: 100% !important;
        margin-left: 0 !important;
    }

    .userpre {
        margin-left: 15px !important;
        margin-top: 20px !important;
    }

    .usernex {
        margin-right: 15px !important;
        margin-top: 20px !important;
    }

    .wtest {
        width: 100% !important;
    }

    .testu {
        font-size: 60px !important;
    }

    /* ── Forms (footer subscribe) ────────────────────────── */
    form {
        margin: 20px 15px !important;
    }

    .form1 {
        margin: 20px 15px !important;
    }

    .underline-input {
        width: 100% !important;
    }

    .underline-input2 {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .last {
        margin-left: 0 !important;
    }

    .button2 {
        margin-left: 0 !important;
        width: 100% !important;
    }

    /* ── Reports page ────────────────────────────────────── */
    .document {
        margin-left: 15px !important;
    }

    .card {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 300px !important;
        margin: 0 auto 20px auto !important;
    }

    .card1 {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 300px !important;
        margin: 0 auto 20px auto !important;
    }

    .card-footer,
    .card-footer1 {
        width: auto !important;
    }

    .title {
        margin-top: 30px !important;
    }

    .title1 {
        margin-top: 30px !important;
        text-align: left !important;
    }

    .subtitle1 {
        text-align: left !important;
    }

    .button3 {
        margin-left: 0 !important;
    }

    .button4 {
        margin-left: 0 !important;
    }

    .banner-img {
        margin: 0 !important;
        width: 100% !important;
        height: auto !important;
    }

    /* ── Reports para margin ─────────────────────────────── */
    .para {
        margin-left: 15px !important;
        margin-right: 15px !important;
    }

    /* ── Who We Are page ─────────────────────────────────── */
    .ovimg {
        margin-left: 0 !important;
        width: 100% !important;
        height: auto !important;
    }

    .ovpara {
        margin-left: 15px !important;
    }

    .ourv {
        font-size: 28px !important;
    }

    .mission {
        width: 100% !important;
        max-width: 300px !important;
        height: auto !important;
    }

    .fourimg {
        margin-left: 0 !important;
        margin-top: 20px !important;
        width: 100% !important;
        height: auto !important;
    }

    .wwarecontent {
        position: relative !important;
        padding: 20px !important;
    }

    /* ── Contact section ─────────────────────────────────── */
    .contact {
        margin-left: 15px !important;
    }

    /* ── Our team section ────────────────────────────────── */
    .trusteeimg {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 200px !important;
    }

    /* ── Get Involved page ───────────────────────────────── */
    .apply-btn {
        margin-left: 0 !important;
        margin-top: 0 !important;
    }

    .get {
        margin-left: 15px !important;
    }

    .vol {
        width: 100% !important;
        padding: 0 15px !important;
    }

    .container {
        width: 100% !important;
        max-width: 100% !important;
    }

    .time {
        margin-left: 15px !important;
    }

    /* ── Whatwedo page ────────────────────────────────────── */
    .banner1 {
        width: 100% !important;
        height: auto !important;
        margin-left: 0 !important;
    }

    .para1,
    .para2 {
        font-size: 30px !important;
        margin-left: 15px !important;
        margin-right: 15px !important;
    }

    ul.breadcrumb {
        margin-left: 15px !important;
    }

    .blog {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 200px !important;
    }

    /* ── Home page specific images ────────────────────────── */
    .ill_img {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .i_img,
    .i_img1,
    .i_img2,
    .i_img3 {
        margin-left: 0 !important;
    }

    /* ── Donation form ───────────────────────────────────── */
    .formunderline-input2 {
        margin-left: 0 !important;
    }

    .formpara1 {
        margin-left: 0 !important;
    }

    /* ── Missing: Get Involved page ──────────────────────── */
    .icons5 {
        margin-left: 15px !important;
    }

    .contribute {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .contribute1 {
        width: 100% !important;
    }

    .hovers {
        padding: 0 15px !important;
    }

    .intern-section {
        padding: 20px 15px !important;
    }

    .intern-box {
        padding: 15px !important;
    }

    /* ── Missing: What We Do page ────────────────────────── */
    .serv {
        margin-left: 0 !important;
    }

    .wch3 {
        width: 100% !important;
        margin-left: 0 !important;
    }

    .blog1,
    .blog2 {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .sna3 {
        margin-left: 0 !important;
    }

    /* ── Missing: Reports page ───────────────────────────── */
    .document1 {
        margin-left: 15px !important;
    }

    /* ── Missing: Who We Are page ────────────────────────── */
    .scroll-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    /* ── Global: Section padding ─────────────────────────── */
    section {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    section.container-fluid {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* ============================================================
   MOBILE BREAKPOINT  (≤ 767px)
   ============================================================ */
@media (max-width: 767px) {

    /* ── Typography scaling ───────────────────────────────── */
    .heading {
        font-size: 24px !important;
        margin-bottom: 40px !important;
    }

    .para {
        font-size: 16px !important;
        margin-bottom: 30px !important;
    }

    header h1 {
        font-size: 28px !important;
    }

    .iname {
        font-size: 1.6rem !important;
        margin-top: 20px !important;
    }

    .ipara {
        font-size: 16px !important;
    }

    .apara {
        font-size: 14px !important;
    }

    /* ── Navbar collapses to single column ────────────────── */
    .option {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0 !important;
    }

    .navbar-nav .nav-link {
        font-size: 14px !important;
        padding: 0.4rem 0.5rem !important;
    }

    .navbar ul {
        flex-direction: column !important;
    }

    .navbar ul li .dropdown {
        position: static !important;
        min-width: 100% !important;
    }

    /* ── Banner ─────────────────────────────────────────── */
    .overlay {
        margin-top: 0 !important;
    }

    .carousel-caption {
        padding: 10px !important;
    }

    /* ── Counts section ──────────────────────────────────── */
    .counts {
        font-size: 24px !important;
        margin-left: 10px !important;
    }

    .cnt {
        margin-left: 10px !important;
        font-size: 12px !important;
    }

    /* ── Why Choose boxes ─────────────────────────────────── */
    .check,
    .users,
    .reply {
        font-size: 22px !important;
        margin-left: 10px !important;
    }

    .awa {
        font-size: 30px !important;
        margin-left: 10px !important;
    }

    .third {
        margin-left: 10px !important;
    }

    .nams {
        margin-left: 10px !important;
    }

    /* ── Bell / CTA ──────────────────────────────────────── */
    .bell {
        font-size: 40px !important;
        margin-left: 10px !important;
    }

    .bhead {
        font-size: 22px !important;
    }

    .order {
        font-size: 14px !important;
    }

    .bnow {
        margin-left: 10px !important;
        padding: 12px !important;
        font-size: 14px !important;
    }

    /* ── Services cards ──────────────────────────────────── */
    .shead {
        font-size: 24px !important;
    }

    .shead1 {
        font-size: 24px !important;
    }

    .heads {
        font-size: 28px !important;
    }

    /* ── Testimonials ────────────────────────────────────── */
    .testslide {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 10px !important;
    }

    .usertest {
        font-size: 13px !important;
        padding: 0 5px !important;
    }

    .userpre,
    .usernex {
        margin-top: 10px !important;
        margin-left: 5px !important;
        margin-right: 5px !important;
        padding: 10px !important;
    }

    .testu {
        font-size: 40px !important;
    }

    /* ── Footer ──────────────────────────────────────────── */
    .footer .row {
        flex-direction: column !important;
    }

    .foot1 {
        padding: 10px !important;
    }

    .button2 {
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
    }

    .phone-code {
        width: 100px !important;
    }

    /* ── Reports page ────────────────────────────────────── */
    .document {
        margin-left: 10px !important;
        font-size: 24px !important;
    }

    .content {
        padding: 20px !important;
    }

    .title,
    .title1 {
        font-size: 24px !important;
        margin-top: 20px !important;
    }

    .subtitle,
    .subtitle1 {
        font-size: 18px !important;
    }

    .button3,
    .button4 {
        width: 100% !important;
        margin-left: 0 !important;
        text-align: center !important;
    }

    /* ── Who We Are page ─────────────────────────────────── */
    .ourv {
        font-size: 22px !important;
    }

    .ovpara {
        font-size: 16px !important;
        margin-left: 10px !important;
        margin-right: 10px !important;
    }

    .omicon {
        font-size: 60px !important;
        padding: 15px !important;
    }

    .fourheading {
        font-size: 22px !important;
    }

    .fourpara {
        font-size: 16px !important;
    }

    .wwheading {
        font-size: 20px !important;
    }

    .wwpara {
        font-size: 14px !important;
        line-height: 20px !important;
    }

    .wwarecontent {
        padding: 15px !important;
    }

    .scgheading {
        font-size: 22px !important;
    }

    .scroll-container img {
        width: 250px !important;
        height: 220px !important;
    }

    /* ── Get Involved page ───────────────────────────────── */
    .apply,
    .apply1 {
        font-size: 24px !important;
    }

    .apply-btn {
        margin-left: 0 !important;
        width: 100% !important;
        text-align: center !important;
        padding: 15px 20px !important;
    }

    .were,
    .were0,
    .were1 {
        font-size: 16px !important;
    }

    .time {
        margin-left: 15px !important;
        font-size: 16px !important;
    }

    .rows {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .intern-row {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .vol {
        width: 100% !important;
    }

    .donation-box {
        padding: 15px !important;
    }

    .frequency,
    .amount {
        flex-wrap: wrap !important;
    }

    .freq-btn,
    .amt-btn {
        flex: 1 1 45% !important;
        margin-bottom: 5px !important;
    }

    /* ── Our Team page ───────────────────────────────────── */
    .othead {
        font-size: 24px !important;
    }

    .otpara {
        font-size: 16px !important;
    }

    .trusteeimg {
        margin: 0 auto !important;
        display: block !important;
    }

    .otcard {
        margin-bottom: 20px !important;
    }

    .contact {
        margin-left: 15px !important;
        margin-bottom: 15px !important;
    }

    /* ── Donation page ───────────────────────────────────── */
    .formtitle {
        font-size: 24px !important;
        letter-spacing: normal !important;
    }

    .formpara {
        font-size: 14px !important;
    }

    .dbutton {
        max-width: 100% !important;
    }

    .formbg {
        max-width: 100% !important;
        padding: 15px !important;
    }

    /* ── Home: form area ─────────────────────────────────── */
    .mak {
        font-size: 1.8em !important;
    }

    .text {
        flex-direction: column !important;
    }

    .b1 {
        width: 100% !important;
        margin-left: 0 !important;
    }

    /* ── Bootstrap container override ────────────────────── */
    .container,
    .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* ── Global: All text sections need right padding ───── */
    .abpara {
        margin-right: 15px !important;
    }

    .ovpara {
        margin-right: 10px !important;
    }

    /* ── Force all fixed-width elements to cap at 100% ──── */
    .underline-input,
    .underline-input1,
    .underline-input2 {
        width: 100% !important;
        margin-left: 0 !important;
    }

    .phone-code {
        width: 80px !important;
    }

    /* ── Footer form fix for mobile ─────────────────────── */
    .footer form,
    .form1 {
        margin: 20px 10px !important;
    }

    .footer .row {
        flex-direction: column !important;
    }

    .foot1 {
        text-align: center !important;
        padding: 15px 10px !important;
    }

    .last {
        margin-left: 0 !important;
    }

    .button2 {
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
        width: 80% !important;
    }

    /* ── Get Involved: fixed-width overrides ──────────────── */
    .container {
        width: 100% !important;
        max-width: 100% !important;
    }

    .rows {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .intern-row {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .vol {
        width: 100% !important;
        padding: 0 10px !important;
    }

    .vol-box,
    .intern-box {
        padding: 15px !important;
    }

    .apply-btn {
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
        text-align: center !important;
        width: auto !important;
    }

    .time {
        margin-left: 0 !important;
        padding: 0 15px !important;
    }

    .donation-box {
        padding: 15px !important;
    }

    .frequency,
    .amount {
        flex-wrap: wrap !important;
    }

    .freq-btn,
    .amt-btn {
        flex: 1 1 45% !important;
    }

    .contribute {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .contribute1 {
        width: 100% !important;
    }

    /* ── What We Do: fixed-width overrides ────────────────── */
    .banner1 {
        width: 100% !important;
        height: auto !important;
        margin-left: 0 !important;
    }

    .blog,
    .blog1,
    .blog2 {
        width: 100% !important;
        max-width: 250px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .serv {
        margin-left: 0 !important;
    }

    .sna3 {
        margin-left: 0 !important;
    }

    .wch3 {
        width: 100% !important;
        margin-left: 0 !important;
    }

    /* ── Reports: fixed-width overrides ───────────────────── */
    .card,
    .card1 {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .document,
    .document1 {
        margin-left: 10px !important;
    }

    .button3,
    .button4 {
        margin-left: 0 !important;
        width: 100% !important;
    }

    /* ── Who We Are: fixed-width overrides ────────────────── */
    .ovimg {
        width: 100% !important;
        height: auto !important;
        margin-left: 0 !important;
    }

    .fourimg {
        width: 100% !important;
        height: auto !important;
        margin-left: 0 !important;
    }

    .mission {
        width: 100% !important;
        max-width: 250px !important;
        height: auto !important;
        margin: 0 auto !important;
    }

    .scroll-container {
        overflow-x: auto !important;
    }

    .scroll-container img {
        width: 200px !important;
        height: 180px !important;
    }

    /* ── Our Team: overrides ──────────────────────────────── */
    .trusteeimg {
        width: 100% !important;
        max-width: 180px !important;
        margin: 0 auto !important;
        display: block !important;
    }

    /* ── Donation: overrides ──────────────────────────────── */
    .formbg {
        max-width: 100% !important;
        padding: 15px !important;
    }

    .dbutton {
        max-width: 100% !important;
    }

    /* ── Home page: fixed-width overrides ─────────────────── */
    .b1 {
        width: 100% !important;
        margin-left: 0 !important;
    }

    .wch,
    .wch1,
    .wch2 {
        width: 100% !important;
        margin-left: 0 !important;
    }

    .ill_img {
        width: 100% !important;
        margin-left: 0 !important;
    }

    .wchoose {
        width: 100% !important;
    }

    .usertest {
        width: 100% !important;
    }

    .testslide {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 10px !important;
    }

    /* ── Carousel overflow fix ────────────────────────────── */
    .carousel {
        overflow: hidden !important;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 10% !important;
    }

    /* ── Global section padding ───────────────────────────── */
    section {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    section.container-fluid {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* ============================================================
   SMALL MOBILE BREAKPOINT  (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {

    .heading {
        font-size: 20px !important;
    }

    .iname {
        font-size: 1.3rem !important;
    }

    .bell {
        font-size: 30px !important;
    }

    .bhead {
        font-size: 18px !important;
    }

    .counts {
        font-size: 20px !important;
    }

    .check,
    .users,
    .reply {
        font-size: 18px !important;
    }

    .shead,
    .shead1 {
        font-size: 20px !important;
    }

    .heads {
        font-size: 22px !important;
    }

    .apply,
    .apply1 {
        font-size: 20px !important;
    }

    .ourv {
        font-size: 20px !important;
    }

    .formtitle {
        font-size: 20px !important;
    }

    .othead {
        font-size: 20px !important;
    }

    .scroll-container img {
        width: 200px !important;
        height: 180px !important;
    }
}
