* {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family: 'Barlow Condensed', sans-serif;
}

/* General style css */
/* text sizes */
.hero-text {
    font-size: 70px;
    letter-spacing: 0.2px;
    font-weight: 400;
    line-height: 1;
}
.title-text {
    font-size: 55px;
    font-weight: 400;
    line-height: 1.15;
}
.m-title-text {
    font-size: 45px;
    font-weight: 200;
    padding: 3px;
}
.sub-heading {
    font-size: 30px;
    font-weight: 250;
}
.small-title-text {
    font-size: 22px;
}
.para-text {
    font-size: 17.5px;
    letter-spacing: 0.5px;
}

/* default colors */
.red-bg {
    background-color: #bc1400;
}
.red-text {
    color: #bc1400;
}
.blue-bg {
    background-color: #134989;
}
.light-blue-bg {
    background-color: #f1f9ff;
}
.blue-text {
    color: #134989;
}
.dark-bg {
    background-color: #1e1e1b;
}
.dark-text {
    color: #1e1e1b;
}

/* google font */
.barlow-condensed-thin {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 100;
    font-style: normal;
}
.barlow-condensed-extralight {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 200;
    font-style: normal;
}
.barlow-condensed-light {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 300;
    font-style: normal;
}
.barlow-condensed-regular {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 400;
    font-style: normal;
}
.barlow-condensed-medium {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 500;
    font-style: normal;
}
.barlow-condensed-semibold {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 600;
    font-style: normal;
}
.barlow-condensed-bold {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    font-style: normal;
}
.barlow-condensed-extrabold {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 800;
    font-style: normal;
}
.barlow-condensed-black {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 900;
    font-style: normal;
}
.barlow-condensed-thin-italic {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 100;
    font-style: italic;
}
.barlow-condensed-extralight-italic {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 200;
    font-style: italic;
}
.barlow-condensed-light-italic {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 300;
    font-style: italic;
}
.barlow-condensed-regular-italic {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 400;
    font-style: italic;
}
.barlow-condensed-medium-italic {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 500;
    font-style: italic;
}
.barlow-condensed-semibold-italic {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 600;
    font-style: italic;
}
.barlow-condensed-bold-italic {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    font-style: italic;
}
.barlow-condensed-extrabold-italic {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 800;
    font-style: italic;
}
.barlow-condensed-black-italic {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 900;
    font-style: italic;
}

/* Sidebar */
.disaster-sidebar {
    position: sticky;
    top: 115px;
    align-self: flex-start;
    flex: 0 0 230px;
    width: 230px;
    height: calc(100vh - 115px);
    max-height: calc(100vh - 115px);
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #e5e5e5;
    z-index: 900;
    padding-top: 25px !important;
}

/* Sidebar Links */
.sidebar-nav-scroll {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-link {
    display: block;
    font-size: 17px;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: normal;
}

.sidebar-link:hover,
.sidebar-link.active {
    background-color: #bc1400 !important;
    color: #ffffff !important;
}

@media (min-width: 1200px) {
    .content-main-area {
        min-width: 0;
        flex: 1;
    }

    .types-content,
    .disasters > .container,
    .causes > .container,
    .consequences-section,
    .rr-section > .rr-content {
        padding-left: 20px;
    }
}

/* Tablet & Mobile Sidebar */
@media (max-width: 1199.98px) {
    .disaster-sidebar {
        position: sticky;
        top: 95px;
        flex: 0 0 auto;
        width: 100%;
        height: auto;
        max-height: none;
        padding: 8px 12px !important;
        overflow: hidden;
        border: none;
        border-bottom: 1px solid #e5e5e5;
        border-radius: 0 !important;
        background-color: #ffffff;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06) !important;
        z-index: 900;
    }

    .sidebar-nav-scroll {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .sidebar-nav-scroll::-webkit-scrollbar {
        display: none;
    }

    .sidebar-link {
        flex: 0 0 auto;
        display: block;
        padding: 9px 15px !important;
        font-size: 17px;
        line-height: 1.2;
        white-space: nowrap;
        border-radius: 6px;
        color: #555b63;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

    .sidebar-link:hover,
    .sidebar-link.active {
        background-color: #bc1400 !important;
        color: #ffffff !important;
    }

    .content-main-area {
        width: 100%;
        min-width: 0;
    }
}

/* Smaller Mobile Screens */
@media (max-width: 575.98px) {
    .disaster-sidebar {
        padding: 7px 10px !important;
    }

    .sidebar-nav-scroll {
        gap: 5px;
    }

    .sidebar-link {
        padding: 9px 12px !important;
        font-size: 16px;
    }
}

#types,
#disasters,
#causes,
#consequences,
#response {
    scroll-margin-top: 130px;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 600px;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: url('https://images.unsplash.com/photo-1615092296061-e2ccfeb2f3d6?q=80&w=870&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=NHwxMjA3fDA%3D');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
.hero-content {
    width: 100%;
    text-align: start;
    color: white;
    position: relative;
    z-index: 1;
    padding: 90px 15px 20px;
}

/* Types of disaster section */
.types {
    min-height: 700px;
    display: flex;
    align-items: center;
    z-index: 1;
}
.disaster-card {
    height: 400px;
    perspective: 1000px;
    border: none;
    background: transparent;
    cursor: context-menu;
}
.disaster-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.7s ease;
}
.disaster-card:hover .disaster-card-inner {
    transform: rotateY(180deg);
}
.disaster-card-front,
.disaster-card-back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.disaster-card-front {
    background: #fff;
    text-align: center;
}
.disaster-card-front img {
    width: 100%;
    height: 65%;
    object-fit: cover;
}
.disaster-card-front h3 {
    font-size: 27px;
    padding: 0 10px;
}
.flip-hint {
    font-size: 13px;
    color: #777;
}
.disaster-card-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    color: white;
}
.natural-back {
    background: linear-gradient(145deg, #254d73, #101d35);
}
.manmade-back {
    background: linear-gradient(145deg, #743b32, #301c20);
}
.disaster-card-back h3 {
    font-size: 28px;
}
.disaster-line {
    width: 50px;
    height: 4px;
    background: #83baff;
    border-radius: 5px;
    margin: 15px 0;
}
.manmade-back .disaster-line {
    background: #ffad92;
}
.disaster-card-back .para-text {
    font-size: 16px;
    line-height: 1.7;
}
@media (max-width: 767px) {
    .disaster-card {
        height: 360px;
        margin-bottom: 20px;
    }
    .disaster-card-back {
        padding: 22px;
    }
    .disaster-card-back h3 {
        font-size: 24px;
    }
    .disaster-card-back .para-text {
        font-size: 14px;
    }
}
.eyebrow {
    color: #ffffff;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Disasters section */
.disasters {
    min-height: 900px;
    margin-top: 100px;
}
.disaster-box {
    background-color: #ac2516;
    color: white;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}
.disaster-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}
.disaster-text {
    width: 50%;
    padding: 20px;
}
.disaster-text h3 {
    margin: 0;
    font-size: 32px;
}
.disaster-img {
    width: 50%;
    height: 100%;
}
.disaster-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
    transition: transform 0.3s ease;
}
.disaster-box:hover .disaster-img img {
    transform: scale(1.04);
}
.blue-disaster-box {
    background-color: #0756a5;
    color: white;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}
.blue-disaster-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}
.blue-disaster-box:hover .disaster-img img {
    transform: scale(1.04);
}
.card-action {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.3s ease, color 0.3s ease;
}
.disaster-box:hover .card-action,
.blue-disaster-box:hover .card-action {
    color: #ffffff;
    transform: translateX(4px);
}

/* Modal style */
.modal-content {
    border-radius: 28px;
    border: none;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    background: #ffffff;
    animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalPop {
    0% { transform: scale(0.95); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.modal-header {
    padding: 24px 30px;
    border-bottom: none;
    position: relative;
}
.modal-header .btn-close {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 10px;
    transition: background-color 0.2s ease;
}
.modal-header .btn-close:hover {
    background-color: rgba(255, 255, 255, 0.4);
}
.modal-body {
    padding: 30px;
}

/* Info inside modal */
.disaster-info-card {
    background: #f8fafc;
    border-radius: 18px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
}
.disaster-safety-card {
    background: #fdf2f2;
    border-radius: 18px;
    padding: 20px;
    border-left: 6px solid #bc1400;
}
.modal-disaster-img {
    border-radius: 16px;
    object-fit: cover;
    width: 100%;
    height: 200px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.custom-safety-item {
    background: transparent !important;
    border: none !important;
    padding: 8px 0 !important;
    font-size: 15px;
    color: #334155;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.safety-bullet {
    background: #bc1400;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Responsive */
@media (max-width: 991px) {
    .disaster-box,
    .blue-disaster-box {
        height: 200px;
    }
}
@media (max-width: 576px) {
    .disaster-box,
    .blue-disaster-box {
        height: 200px;
    }
    .disaster-text {
        padding: 12px;
    }
    .disaster-text h3 {
        font-size: 24px;
    }
}

/* Causes of Disasters section */
.causes {
    margin-top: 100px;
    min-height: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Disaster Tabpane */
.disaster-tab-btn {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    color: #212529;
    font-size: 1.15rem;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}
.disaster-tab-btn:hover {
    background-color: #f8f9fa;
    border-color: rgba(255, 0, 0, 0.3);
}
.disaster-tab-btn.active {
    background-color: #d9381e !important;
    color: #ffffff !important;
    border-color: #d9381e !important;
    box-shadow: 0 0 18px rgba(255, 0, 0, 0.25);
}

/* Right content box */
.disaster-content-box {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.cause-img {
    width: 100%;
    height: 300px;
}

/* Responsiveness */
@media (max-width: 991.98px) {
    .disaster-content-box {
        min-height: 220px;
    }
}

/* Consequences section */
.consequences-section {
    min-height: 600px;
    margin-top: 50px;
    margin-bottom: 50px;
}
.consequence-card {
    border-radius: 50rem;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.consequence-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.3);
}
.consequence-icon-wrapper {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}
.consequence-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Responsiveness */
@media (max-width: 575.98px) {
    .consequence-icon-wrapper {
        width: 50px;
        height: 50px;
    }
}


/* Response & Recovery Section */
.rr-section {
    width: 100%;
    padding: 80px 30px;
    margin: 0;
    background: linear-gradient(135deg, #f4f4f6, #eef3fa);
    overflow: hidden;
}
.rr-content {
    max-width: 1200px;
    margin: 0 auto;
}
.rr-section .row {
    align-items: center;
    justify-content: space-between;
}
.rr-text {
    padding-right: 30px;
}
.rr-label {
    display: inline-block;
    margin-bottom: 14px;
    padding: 7px 14px;
    border-radius: 30px;
    background-color: #e1eaf7;
    color: #134989;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
}
.rr-section .sub-heading {
    font-size: 3rem;
    font-weight: 700;
    color: #15325c;
    margin-bottom: 18px;
    line-height: 1.1;
}
.rr-section .para-text {
    font-size: 1.15rem;
    color: #244b7a;
    line-height: 1.7;
    margin-bottom: 25px;
    max-width: 540px;
}
.rr-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 6px;
    background-color: #bc1400;
    color: white;
    font-size: 17px;
    text-decoration: none;
    transition: background-color 0.25s ease, transform 0.25s ease;
}
.rr-btn:hover {
    background-color: #941000;
    color: white;
    transform: translateY(-2px);
}
.rr-img-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    margin: 0 auto;
}
.rr-img-circle {
    position: absolute;
    width: 290px;
    height: 290px;
    top: 25px;
    left: 30px;
    border-radius: 50%;
    background-color: #0b1d3a;
    z-index: 1;
}
.rr-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 290px;
    height: 290px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
    box-shadow: 0 12px 30px rgba(11, 29, 58, 0.2);
}
.rr-img-tag {
    position: absolute;
    right: -10px;
    bottom: 20px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 16px;
    border-radius: 8px;
    background-color: white;
    color: #15325c;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}
.rr-img-tag i {
    color: #bc1400;
}
@media (max-width: 1199.98px) {
    .rr-section {
        padding: 65px 30px;
    }
    .rr-text {
        padding-right: 15px;
    }
}
@media (max-width: 991.98px) {
    .rr-section {
        padding: 55px 20px;
        text-align: center;
    }
    .rr-text {
        padding: 0 10px;
        margin-bottom: 35px;
    }
    .rr-section .para-text {
        margin-left: auto;
        margin-right: auto;
    }
    .rr-img-wrapper {
        margin: 0 auto;
    }
}
@media (max-width: 400px) {
    .rr-section {
        padding: 45px 15px;
    }
    .rr-section .sub-heading {
        font-size: 2.4rem;
    }
    .rr-img-wrapper {
        width: 260px;
        height: 260px;
    }
    .rr-img, .rr-img-circle {
        width: 235px;
        height: 235px;
    }
    .rr-img-circle {
        top: 20px;
        left: 20px;
    }
    .rr-img-tag {
        right: -5px;
        bottom: 10px;
        padding: 10px 12px;
        font-size: 14px;
    }
}
/* Emergency Information */
.disasters .row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

.disasters .row > div {
    display: flex;
    justify-content: center;
}

.disaster-box,
.blue-disaster-box {
    display: flex;
    width: 75%;
    height: 190px;
    margin: 0 auto;
    overflow: hidden;
}

.disaster-text {
    width: 55%;
    min-width: 0;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.disaster-img {
    width: 50%;
    height: 100%;
}

/* Tablet */
@media (max-width: 991.98px) {
    .disaster-box,
    .blue-disaster-box {
        width: 95%;
        height: 190px;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .disasters .row {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }

    .disaster-box,
    .blue-disaster-box {
        width: 100%;
        height: 165px;
    }
}

/* Small Phones */
@media (max-width: 575.98px) {
    .disaster-box,
    .blue-disaster-box {
        width: 100%;
        height: 145px;
    }
}


/* Footer */
.footer-section {
    padding: 50px;
}
.white-text {
    color: white;
    text-decoration: none;
}

/* Footer link cards */
.footer-link-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.18);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.footer-link-card:hover {
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.3);
    border-color: rgba(255, 0, 0, 0.25);
}

/* Footer headings & links */
.footer-link-card p {
    margin-bottom: 12px;
}
.footer-link-list > li {
    margin-bottom: 8px;
}
.footer-link {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
}
.footer-link:hover {
    transform: translateX(5px);
    color: rgba(255, 255, 255, 0.75);
}
.footer-link:focus-visible,
.footer-media-link:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
    border-radius: 3px;
}

/* Footer logo */
.footer-logo {
    width: 50px;
    height: auto;
    margin-right: 12px;
    transition: transform 0.25s ease;
}
.footer-logo:hover {
    transform: scale(1.06);
}

/* Social media icons */
.footer-media-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}
.footer-media-link:hover {
    color: rgba(255, 255, 255, 0.75);
    transform: translateY(-3px);
}

/* Divider */
.footer-line {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Bottom footer section */
.footer-ref-policy-text .footer-link:hover {
    transform: none;
    text-decoration: underline;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .footer-link,
    .footer-link-card,
    .footer-logo,
    .footer-media-link {
        transition: none;
    }
    .footer-link:hover,
    .footer-logo:hover,
    .footer-media-link:hover {
        transform: none;
    }
}