
/* =====================================================
   SANSKRITI IAS - COMMON PAGE HEADER
===================================================== */

.si-page-header {
    --si-navy: #081c3b;
    --si-blue: #143761;
    --si-red: #e51d32;
    --si-gold: #efc482;

    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 28px 0 36px;
    color: #ffffff;

    background: linear-gradient(
        115deg,
        var(--si-navy) 0%,
        var(--si-blue) 65%,
        #092446 100%
    );
}

/* Decorative circular background */

.si-page-header::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -160px;
    right: -80px;

    width: 500px;
    height: 500px;

    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow:
        0 0 0 35px rgba(255, 255, 255, 0.025),
        0 0 0 70px rgba(255, 255, 255, 0.025),
        0 0 0 105px rgba(255, 255, 255, 0.02);

    pointer-events: none;
}

/* Decorative dot pattern */

.si-page-header::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;

    width: 38%;
    height: 100%;

    background-image: radial-gradient(
        rgba(255, 255, 255, 0.16) 1px,
        transparent 1px
    );

    background-size: 18px 18px;

    mask-image: linear-gradient(
        to right,
        transparent,
        #000
    );

    pointer-events: none;
}

/* Header container */

.si-page-header .container {
    position: relative;
}

/* Breadcrumb */

.si-page-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;

    margin: 0 0 20px;
    padding: 0;

    list-style: none;
    font-size: 13px;
    line-height: 1.5;
}

.si-page-breadcrumb li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
}

.si-page-breadcrumb li + li::before {
    content: "\203A";
    color: #8fa7c6;
    font-size: 17px;
}

.si-page-breadcrumb a {
    color: #c3d0e4;
    text-decoration: none;
    transition: color 0.2s ease;
}

.si-page-breadcrumb a:hover {
    color: var(--si-gold);
}

.si-page-breadcrumb i {
    font-size: 12px;
    margin-right: 3px;
}

/* Main content layout */

.si-page-header-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.si-page-header-text {
    flex: 1;
    min-width: 0;
    max-width: 1000px;
}

/* Small category label */

.si-page-label {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 14px;

    color: var(--si-gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.6;
    text-transform: uppercase;
}

.si-page-label::before {
    content: "";
    width: 25px;
    height: 3px;
    flex-shrink: 0;

    border-radius: 3px;
    background: var(--si-gold);
}

/* Title and description wrapper */

.si-page-heading {
    position: relative;
    padding-left: 18px;
}

/* Red vertical accent */

.si-page-heading::before {
    content: "";
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 0;

    width: 4px;
    border-radius: 5px;

    background: linear-gradient(
        to bottom,
        #ff4052,
        #c50929
    );
}

/* Main page title */

.si-page-header .si-page-title {
    margin: 0;
    padding: 0;

    color: #ffffff;
    font-size: clamp(24px, 2.4vw, 36px);
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: -0.5px;

    overflow-wrap: break-word;
}

/* Optional page subtitle */

.si-page-header .si-page-description {
    margin: 10px 0 0;
    padding: 0;

    color: #d3dfed;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
}

/* Right side decorative icon */

.si-page-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 115px;
    height: 115px;
    flex-shrink: 0;

    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);

    background: rgba(255, 255, 255, 0.035);

    transform: rotate(-8deg);
}

.si-page-header-icon i {
    font-size: 55px;
    color: rgba(255, 255, 255, 0.22);
    transform: rotate(8deg);
}

/* Bottom accent line */

.si-page-header-line {
    position: absolute;
    bottom: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background: linear-gradient(
        90deg,
        #e51d32 0%,
        #e51d32 35%,
        #efc482 100%
    );
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 991px) {

    .si-page-header {
        padding: 24px 0 30px;
    }

    .si-page-header .si-page-title {
        font-size: 28px;
    }

    .si-page-header-icon {
        width: 85px;
        height: 85px;
    }

    .si-page-header-icon i {
        font-size: 40px;
    }
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 767px) {

    .si-page-header {
        padding: 18px 0 24px;
    }

    .si-page-breadcrumb {
        font-size: 11px;
        gap: 7px;
        margin-bottom: 14px;
    }

    .si-page-breadcrumb li {
        gap: 7px;
    }

    .si-page-label {
        font-size: 9px;
        letter-spacing: 1.3px;
        margin-bottom: 10px;
    }

    .si-page-label::before {
        width: 17px;
        height: 2px;
    }

    .si-page-heading {
        padding-left: 12px;
    }

    .si-page-heading::before {
        width: 3px;
    }

    .si-page-header .si-page-title {
        font-size: 22px;
        line-height: 1.35;
        letter-spacing: -0.2px;
    }

    .si-page-header .si-page-description {
        font-size: 12px;
        line-height: 1.6;
        margin-top: 7px;
    }

    .si-page-header-icon {
        display: none;
    }

    .si-page-header::before {
        width: 300px;
        height: 300px;
        right: -170px;
        top: -80px;
    }

    .si-page-header::after {
        width: 60%;
        background-size: 14px 14px;
    }

    .si-page-header-line {
        height: 3px;
    }
}
