/* =========================================================
   Rakhshinda Cinematic Maroon Legacy Theme
========================================================= */

:root {
    --primary-maroon: #7A1E2C;
    --deep-maroon: #4A0F19;
    --soft-maroon: #9F2D3D;
    --cream: #FFF7ED;
    --gold: #D97706;
    --soft-gold: #FCD34D;
    --dark-text: #1F2937;
    --white: #FFFFFF;

    --rgs-shadow: 0 28px 80px rgba(74, 15, 25, 0.18);
    --rgs-shadow-strong: 0 42px 120px rgba(74, 15, 25, 0.3);
}

/* Global Section Helpers */
.rgs-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.rgs-kicker::before {
    content: "";
    width: 34px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gold), var(--soft-gold));
}

.rgs-kicker-light {
    color: var(--soft-gold);
}

.rgs-section-title {
    color: var(--deep-maroon);
    font-size: clamp(2.1rem, 4.6vw, 4.2rem);
    line-height: 0.98;
    letter-spacing: -0.065em;
    font-weight: 950;
    margin: 0 0 20px;
}

.rgs-section-text {
    color: rgba(31, 41, 55, 0.72);
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0;
}

.rgs-text-light {
    color: rgba(255, 247, 237, 0.74);
}

.rgs-section-head {
    max-width: 780px;
    margin: 0 auto 56px;
}

/* Buttons */
.rgs-btn {
    position: relative;
    overflow: hidden;
    min-height: 54px;
    padding: 0 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 900;
    transition: all 0.34s ease;
}

.rgs-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    left: -130%;
    background: linear-gradient(120deg, transparent, rgba(255, 247, 237, 0.38), transparent);
    transition: left 0.7s ease;
}

.rgs-btn:hover::before {
    left: 130%;
}

.rgs-btn span,
.rgs-btn i {
    position: relative;
    z-index: 1;
}

.rgs-btn-gold {
    background: linear-gradient(135deg, var(--soft-gold), var(--gold));
    color: var(--deep-maroon);
    box-shadow: 0 20px 46px rgba(217, 119, 6, 0.28);
}

.rgs-btn-gold:hover {
    color: var(--deep-maroon);
    transform: translateY(-4px);
    box-shadow: 0 28px 70px rgba(217, 119, 6, 0.38);
}

.rgs-btn-outline {
    color: var(--cream);
    border: 1px solid rgba(255, 247, 237, 0.36);
    background: rgba(255, 247, 237, 0.08);
    backdrop-filter: blur(14px);
}

.rgs-btn-outline:hover {
    color: var(--cream);
    transform: translateY(-4px);
    border-color: rgba(252, 211, 77, 0.5);
    background: rgba(255, 247, 237, 0.14);
}

/* =========================================================
   Hero
========================================================= */

.rgs-cinematic-hero {
    position: relative;
    min-height: calc(100vh - 86px);
    overflow: visible;
    display: flex;
    align-items: center;
    padding: 110px 0 170px;
    background: var(--deep-maroon);
    z-index: 2;
}

.rgs-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.rgs-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.44;
    transform: scale(1.08);
    animation: rgsHeroImageMove 18s ease-in-out infinite alternate;
}

.rgs-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 26%, rgba(217, 119, 6, 0.26), transparent 28%),
        radial-gradient(circle at 82% 18%, rgba(122, 30, 44, 0.42), transparent 30%),
        linear-gradient(90deg, rgba(74, 15, 25, 0.96) 0%, rgba(74, 15, 25, 0.82) 48%, rgba(74, 15, 25, 0.56) 100%),
        linear-gradient(to top, rgba(74, 15, 25, 0.95), transparent 40%);
}

.rgs-hero-grain {
    position: absolute;
    inset: 0;
    opacity: 0.26;
    background-image: radial-gradient(rgba(255, 247, 237, 0.22) 0.7px, transparent 0.7px);
    background-size: 18px 18px;
    pointer-events: none;
}

.rgs-hero-marquee {
    position: absolute;
    left: 0;
    bottom: 36px;
    display: flex;
    gap: 34px;
    width: max-content;
    opacity: 0.12;
    animation: rgsMarquee 28s linear infinite;
    pointer-events: none;
}

.rgs-hero-marquee span {
    color: transparent;
    -webkit-text-stroke: 1px var(--cream);
    font-size: clamp(4rem, 12vw, 11rem);
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.08em;
    text-transform: uppercase;
}

.rgs-hero-content {
    position: relative;
    z-index: 3;
    max-width: 960px;
}

.rgs-hero-school-mark {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    padding: 9px 18px 9px 9px;
    border-radius: 999px;
    background: rgba(255, 247, 237, 0.1);
    border: 1px solid rgba(255, 247, 237, 0.18);
    backdrop-filter: blur(16px);
    color: var(--cream);
    font-weight: 850;
    margin-bottom: 26px;
}

.rgs-hero-school-mark img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255, 247, 237, 0.88);
}

.rgs-hero-content h1 {
    max-width: 1040px;
    color: var(--cream);
    font-size: clamp(3.25rem, 9vw, 8.9rem);
    line-height: 0.86;
    letter-spacing: -0.085em;
    font-weight: 950;
    margin: 0;
}

.rgs-hero-content h1 span {
    display: inline-block;
    color: var(--soft-gold);
    text-shadow: 0 0 34px rgba(252, 211, 77, 0.18);
}

.rgs-hero-content p {
    max-width: 690px;
    color: rgba(255, 247, 237, 0.78);
    font-size: 1.13rem;
    line-height: 1.82;
    margin: 28px 0 0;
}

.rgs-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}

.rgs-hero-bottom {
    position: absolute;
    z-index: 10;
    left: 12px;
    right: 12px;
    bottom: -58px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    border-radius: 34px;
    background: rgba(255, 247, 237, 0.96);
    border: 1px solid rgba(252, 211, 77, 0.28);
    box-shadow: 0 34px 90px rgba(74, 15, 25, 0.28);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.rgs-hero-bottom div {
    padding: 26px 24px;
    border-right: 1px solid rgba(122, 30, 44, 0.14);
}

.rgs-hero-bottom div:last-child {
    border-right: 0;
}

.rgs-hero-bottom strong {
    display: block;
    color: var(--primary-maroon);
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.rgs-hero-bottom span {
    display: block;
    margin-top: 8px;
    color: rgba(31, 41, 55, 0.66);
    font-weight: 800;
    font-size: 0.9rem;
}

.rgs-scroll-indicator {
    position: absolute;
    z-index: 5;
    right: 34px;
    bottom: 134px;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: rgba(255, 247, 237, 0.74);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    writing-mode: vertical-rl;
}

.rgs-scroll-indicator span {
    width: 2px;
    height: 54px;
    border-radius: 999px;
    background: linear-gradient(to bottom, var(--soft-gold), transparent);
    animation: rgsScrollLine 1.8s ease-in-out infinite;
}

/* =========================================================
   Legacy
========================================================= */

.rgs-legacy-section {
    position: relative;
    padding: 155px 0 100px;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 15%, rgba(217, 119, 6, 0.12), transparent 32%),
        var(--cream);
}

.rgs-legacy-section::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    left: -250px;
    bottom: -250px;
    border-radius: 50%;
    background: rgba(122, 30, 44, 0.08);
}

.rgs-legacy-year {
    position: relative;
    padding: 40px;
    min-height: 360px;
    border-radius: 42px;
    background:
        linear-gradient(135deg, rgba(122, 30, 44, 0.96), rgba(74, 15, 25, 0.96)),
        var(--primary-maroon);
    box-shadow: var(--rgs-shadow-strong);
    overflow: hidden;
}

.rgs-legacy-year::after {
    content: "";
    position: absolute;
    inset: auto -80px -110px auto;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(252, 211, 77, 0.16);
}

.rgs-legacy-year span {
    position: relative;
    z-index: 2;
    display: block;
    color: rgba(255, 247, 237, 0.72);
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.rgs-legacy-year strong {
    position: relative;
    z-index: 2;
    display: block;
    color: var(--soft-gold);
    font-size: clamp(5rem, 12vw, 9rem);
    line-height: 0.88;
    letter-spacing: -0.09em;
    font-weight: 950;
    margin-top: 32px;
}

.rgs-legacy-points {
    display: grid;
    gap: 14px;
    margin-top: 32px;
}

.rgs-legacy-points div {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(122, 30, 44, 0.14);
    box-shadow: 0 18px 44px rgba(74, 15, 25, 0.08);
    transition: all 0.3s ease;
}

.rgs-legacy-points div:hover {
    transform: translateX(8px);
    border-color: rgba(122, 30, 44, 0.32);
}

.rgs-legacy-points i {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--cream);
    background: linear-gradient(135deg, var(--primary-maroon), var(--deep-maroon));
}

.rgs-legacy-points span {
    color: var(--dark-text);
    font-weight: 850;
}

/* =========================================================
   Branch Preview
========================================================= */

.rgs-home-branch-preview-section {
    position: relative;
    padding: 96px 0;
    background:
        radial-gradient(circle at top left, rgba(122, 30, 44, 0.06), transparent 34%),
        linear-gradient(180deg, #fffdf9 0%, var(--cream) 100%);
    overflow: hidden;
}

.rgs-home-branch-heading {
    max-width: 780px;
    margin: 0 auto 44px;
}

.rgs-home-branch-heading .rgs-section-title {
    margin-bottom: 12px;
    color: var(--dark-text);
    letter-spacing: 0;
}

.rgs-home-branch-heading .rgs-section-text {
    max-width: 640px;
    margin: 0 auto;
    color: rgba(31, 41, 55, 0.72);
    line-height: 1.8;
}

.rgs-home-branch-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    align-items: stretch;
}

.rgs-home-branch-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(122, 30, 44, 0.12);
    box-shadow: 0 22px 60px rgba(43, 38, 37, 0.1);
    transition: transform 0.34s ease, box-shadow 0.34s ease, border-color 0.34s ease;
}

.rgs-home-branch-card:hover {
    transform: translateY(-8px);
    border-color: rgba(122, 30, 44, 0.24);
    box-shadow: 0 30px 80px rgba(43, 38, 37, 0.16);
}

.rgs-home-branch-image-wrap {
    position: relative;
    display: block;
    height: 285px;
    overflow: hidden;
    background: #f6efe4;
    text-decoration: none;
}

.rgs-home-branch-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.rgs-home-branch-card:hover .rgs-home-branch-image-wrap img {
    transform: scale(1.075);
}

.rgs-home-branch-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    gap: 22px;
    padding: 24px;
}

.rgs-home-branch-label {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--primary-maroon);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.rgs-home-branch-card h3 {
    margin: 0 0 10px;
    color: var(--dark-text);
    font-size: 1.48rem;
    font-weight: 950;
    letter-spacing: 0;
}

.rgs-home-branch-card p {
    margin: 0;
    color: rgba(31, 41, 55, 0.72);
    line-height: 1.7;
}

.rgs-home-branch-address {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 14px !important;
    font-size: 0.94rem;
}

.rgs-home-branch-address i {
    flex: 0 0 auto;
    margin-top: 4px;
    color: var(--primary-maroon);
}

.rgs-home-branch-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 4px;
}

.rgs-home-branch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 16px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 850;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.rgs-home-branch-btn:hover {
    transform: translateY(-2px);
}

.rgs-home-branch-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-maroon), var(--deep-maroon));
    box-shadow: 0 12px 26px rgba(122, 30, 44, 0.24);
}

.rgs-home-branch-btn-primary:hover {
    color: #fff;
    box-shadow: 0 16px 34px rgba(122, 30, 44, 0.32);
}

.rgs-home-branch-btn-outline {
    color: var(--primary-maroon);
    background: rgba(122, 30, 44, 0.06);
    border: 1px solid rgba(122, 30, 44, 0.14);
}

.rgs-home-branch-btn-outline:hover {
    color: #fff;
    background: var(--primary-maroon);
    border-color: var(--primary-maroon);
}

@media (prefers-reduced-motion: reduce) {
    .rgs-home-branch-card,
    .rgs-home-branch-image-wrap img,
    .rgs-home-branch-btn {
        transition: none;
    }
}

/* =========================================================
   Build Section
========================================================= */

.rgs-build-section {
    padding: 110px 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(122, 30, 44, 0.08), transparent 30%),
        var(--cream);
}

.rgs-sticky-title {
    position: sticky;
    top: 120px;
}

.rgs-build-list {
    display: grid;
    gap: 18px;
}

.rgs-build-item {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 82px 1fr 42px;
    gap: 22px;
    align-items: center;
    padding: 28px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(122, 30, 44, 0.14);
    box-shadow: 0 20px 54px rgba(74, 15, 25, 0.08);
    transition: all 0.35s ease;
}

.rgs-build-item::before {
    content: "";
    position: absolute;
    inset: 0;
    left: -120%;
    background: linear-gradient(120deg, transparent, rgba(255, 247, 237, 0.9), transparent);
    transition: left 0.75s ease;
}

.rgs-build-item:hover::before {
    left: 120%;
}

.rgs-build-item:hover {
    transform: translateY(-7px);
    border-color: rgba(122, 30, 44, 0.34);
    box-shadow: 0 32px 82px rgba(74, 15, 25, 0.14);
}

.rgs-build-item > span {
    position: relative;
    z-index: 1;
    color: transparent;
    -webkit-text-stroke: 1px var(--primary-maroon);
    font-size: 3rem;
    font-weight: 950;
    line-height: 1;
}

.rgs-build-item h3 {
    position: relative;
    z-index: 1;
    color: var(--deep-maroon);
    font-size: 1.55rem;
    font-weight: 950;
    letter-spacing: -0.045em;
    margin: 0 0 8px;
}

.rgs-build-item p {
    position: relative;
    z-index: 1;
    color: rgba(31, 41, 55, 0.68);
    line-height: 1.7;
    margin: 0;
}

.rgs-build-item > i {
    position: relative;
    z-index: 1;
    color: var(--gold);
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.rgs-build-item:hover > i {
    transform: translateX(8px);
}

/* =========================================================
   Portal
========================================================= */

.rgs-portal-section {
    position: relative;
    overflow: hidden;
    padding: 120px 0;
    background:
        radial-gradient(circle at 14% 24%, rgba(217, 119, 6, 0.25), transparent 30%),
        radial-gradient(circle at 84% 70%, rgba(252, 211, 77, 0.12), transparent 28%),
        linear-gradient(135deg, var(--deep-maroon) 0%, var(--primary-maroon) 58%, #2b0710 100%);
}

.rgs-portal-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 247, 237, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 247, 237, 0.045) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, black, transparent);
}

.rgs-portal-bg-text {
    position: absolute;
    right: -4vw;
    top: 1vw;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 247, 237, 0.1);
    font-size: clamp(8rem, 22vw, 24rem);
    font-weight: 950;
    letter-spacing: -0.11em;
    line-height: 1;
    pointer-events: none;
}

.rgs-portal-board {
    position: relative;
    z-index: 2;
    padding: 22px;
    border-radius: 38px;
    background: rgba(255, 247, 237, 0.1);
    border: 1px solid rgba(255, 247, 237, 0.18);
    box-shadow: 0 42px 110px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(20px);
    transform: rotate(-1deg);
    transition: all 0.45s ease;
}

.rgs-portal-board:hover {
    transform: rotate(0deg) translateY(-8px);
}

.rgs-board-top {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 0 18px;
}

.rgs-board-top span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--soft-gold);
}

.rgs-board-top span:nth-child(2) {
    background: var(--gold);
}

.rgs-board-top span:nth-child(3) {
    background: var(--cream);
}

.rgs-board-top strong {
    margin-left: auto;
    color: var(--cream);
    font-size: 0.9rem;
    font-weight: 900;
}

.rgs-portal-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.rgs-portal-cards div {
    padding: 22px;
    border-radius: 26px;
    background: rgba(255, 247, 237, 0.11);
    border: 1px solid rgba(255, 247, 237, 0.14);
    transition: all 0.3s ease;
}

.rgs-portal-cards div:hover {
    transform: translateY(-6px);
    background: rgba(255, 247, 237, 0.16);
    border-color: rgba(252, 211, 77, 0.34);
}

.rgs-portal-cards i {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--soft-gold);
    color: var(--deep-maroon);
    margin-bottom: 18px;
    font-size: 1.25rem;
}

.rgs-portal-cards strong {
    display: block;
    color: var(--cream);
    font-size: 1.15rem;
    font-weight: 950;
}

.rgs-portal-cards span {
    display: block;
    margin-top: 6px;
    color: rgba(255, 247, 237, 0.68);
    font-weight: 700;
}

.rgs-portal-chart {
    height: 150px;
    display: flex;
    align-items: end;
    gap: 13px;
    padding: 22px;
    margin-top: 16px;
    border-radius: 28px;
    background: rgba(255, 247, 237, 0.09);
    border: 1px solid rgba(255, 247, 237, 0.12);
}

.rgs-portal-chart span {
    flex: 1;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(to top, var(--gold), var(--soft-gold));
    animation: rgsBarPulse 2.9s ease-in-out infinite;
}

/* =========================================================
   Life / Gallery
========================================================= */

.rgs-life-section {
    position: relative;
    overflow: hidden;
    padding: 112px 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(122, 30, 44, 0.07), transparent 32%),
        radial-gradient(circle at 88% 80%, rgba(252, 211, 77, 0.12), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, var(--cream) 100%);
}

.rgs-life-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: 118px;
    gap: 20px;
    align-items: stretch;
}

.rgs-life-card {
    position: relative;
    overflow: hidden;
    display: block;
    min-height: 100%;
    border: 1px solid rgba(122, 30, 44, 0.12);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow:
        0 24px 60px rgba(74, 15, 25, 0.12),
        0 1px 0 rgba(255, 255, 255, 0.85) inset;
    text-decoration: none;
    transform: translateY(0);
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease;
    will-change: transform;
}

.rgs-life-card-1 {
    grid-column: 1 / span 5;
    grid-row: 1 / span 3;
}

.rgs-life-card-2 {
    grid-column: 6 / span 3;
    grid-row: 1 / span 2;
}

.rgs-life-card-3 {
    grid-column: 9 / span 4;
    grid-row: 1 / span 2;
}

.rgs-life-card-4 {
    grid-column: 6 / span 4;
    grid-row: 3 / span 2;
}

.rgs-life-card-5 {
    grid-column: 10 / span 3;
    grid-row: 3 / span 2;
}

.rgs-life-card-6 {
    grid-column: 1 / span 5;
    grid-row: 4 / span 2;
}

.rgs-life-section .rgs-life-card img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform 0.44s cubic-bezier(0.22, 1, 0.36, 1);
    user-select: none;
    -webkit-user-drag: none;
}

.rgs-life-card:hover,
.rgs-life-card:focus-visible {
    border-color: rgba(122, 30, 44, 0.24);
    box-shadow:
        0 34px 82px rgba(74, 15, 25, 0.18),
        0 0 0 4px rgba(252, 211, 77, 0.12);
    transform: perspective(900px) translateY(-8px) rotateX(1.5deg);
    outline: none;
}

.rgs-life-section .rgs-life-card:hover img,
.rgs-life-section .rgs-life-card:focus-visible img {
    transform: scale(1.075);
}

@media (prefers-reduced-motion: reduce) {
    .rgs-life-card,
    .rgs-life-section .rgs-life-card img {
        transition: none;
    }

    .rgs-life-card:hover,
    .rgs-life-card:focus-visible {
        transform: none;
    }
}

/* =========================================================
   Parent Section
========================================================= */

.rgs-parent-section {
    padding: 105px 0;
    background:
        radial-gradient(circle at 12% 24%, rgba(122, 30, 44, 0.09), transparent 32%),
        var(--cream);
}

.rgs-parent-card-main {
    height: 100%;
    padding: 42px;
    border-radius: 38px;
    background: var(--deep-maroon);
    color: var(--cream);
    box-shadow: var(--rgs-shadow-strong);
    position: relative;
    overflow: hidden;
}

.rgs-parent-card-main::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    right: -90px;
    bottom: -110px;
    border-radius: 50%;
    background: rgba(252, 211, 77, 0.13);
}

.rgs-parent-card-main h2 {
    position: relative;
    z-index: 1;
    color: var(--cream);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
    letter-spacing: -0.06em;
    font-weight: 950;
}

.rgs-parent-card-main p {
    position: relative;
    z-index: 1;
    color: rgba(255, 247, 237, 0.74);
    line-height: 1.78;
    margin: 18px 0 24px;
}

.rgs-inline-link {
    position: relative;
    z-index: 1;
    color: var(--soft-gold);
    font-weight: 900;
    text-decoration: none;
}

.rgs-parent-grid {
    height: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.rgs-parent-mini {
    padding: 28px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(122, 30, 44, 0.14);
    box-shadow: 0 20px 55px rgba(74, 15, 25, 0.08);
    transition: all 0.32s ease;
}

.rgs-parent-mini:hover {
    transform: translateY(-8px);
    border-color: rgba(122, 30, 44, 0.34);
    box-shadow: 0 32px 82px rgba(74, 15, 25, 0.14);
}

.rgs-parent-mini i {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--cream);
    background: linear-gradient(135deg, var(--primary-maroon), var(--deep-maroon));
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.rgs-parent-mini strong {
    display: block;
    color: var(--deep-maroon);
    font-size: 1.2rem;
    font-weight: 950;
}

.rgs-parent-mini span {
    display: block;
    margin-top: 6px;
    color: rgba(31, 41, 55, 0.65);
    font-weight: 750;
}

/* =========================================================
   Admission CTA
========================================================= */

.rgs-admission-cta {
    padding: 100px 0;
    background: #ffffff;
}

.rgs-cta-box {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 38px;
    padding: 52px;
    border-radius: 44px;
    background:
        radial-gradient(circle at 12% 24%, rgba(252, 211, 77, 0.18), transparent 32%),
        linear-gradient(135deg, var(--primary-maroon), var(--deep-maroon));
    box-shadow: var(--rgs-shadow-strong);
}

.rgs-cta-box::after {
    content: "ADMISSION";
    position: absolute;
    right: -18px;
    bottom: -18px;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 247, 237, 0.12);
    font-size: clamp(5rem, 13vw, 12rem);
    font-weight: 950;
    letter-spacing: -0.1em;
    pointer-events: none;
}

.rgs-cta-box h2 {
    position: relative;
    z-index: 1;
    color: var(--cream);
    font-size: clamp(2.2rem, 4.8vw, 4.4rem);
    line-height: 0.95;
    letter-spacing: -0.07em;
    font-weight: 950;
    margin: 0 0 18px;
}

.rgs-cta-box p {
    position: relative;
    z-index: 1;
    max-width: 720px;
    color: rgba(255, 247, 237, 0.74);
    line-height: 1.8;
    margin: 0;
}

.rgs-cta-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex-shrink: 0;
}

/* =========================================================
   FAQ
========================================================= */

.rgs-faq-section {
    padding: 105px 0;
    background:
        radial-gradient(circle at 85% 10%, rgba(122, 30, 44, 0.08), transparent 34%),
        var(--cream);
}

.rgs-accordion {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 15px;
}

.rgs-accordion .accordion-item {
    overflow: hidden;
    border: 1px solid rgba(122, 30, 44, 0.16);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 45px rgba(74, 15, 25, 0.08);
}

.rgs-accordion .accordion-button {
    padding: 22px 24px;
    color: var(--deep-maroon);
    font-weight: 950;
    background: transparent;
    box-shadow: none;
}

.rgs-accordion .accordion-button:not(.collapsed) {
    color: var(--primary-maroon);
    background: rgba(122, 30, 44, 0.08);
}

.rgs-accordion .accordion-button:focus {
    box-shadow: none;
}

.rgs-accordion .accordion-body {
    color: rgba(31, 41, 55, 0.72);
    line-height: 1.75;
    padding: 0 24px 24px;
}

/* =========================================================
   Animations
========================================================= */

@keyframes rgsHeroImageMove {
    from {
        transform: scale(1.08) translateX(0);
    }

    to {
        transform: scale(1.16) translateX(-18px);
    }
}

@keyframes rgsMarquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes rgsScrollLine {
    0%, 100% {
        transform: scaleY(0.35);
        opacity: 0.45;
    }

    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

@keyframes rgsBarPulse {
    0%, 100% {
        transform: scaleY(1);
        opacity: 0.86;
    }

    50% {
        transform: scaleY(1.08);
        opacity: 1;
    }
}

/* =========================================================
   Responsive
========================================================= */

@media (max-width: 1199px) {
    .rgs-life-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 210px;
        gap: 18px;
    }

    .rgs-life-card-1,
    .rgs-life-card-2,
    .rgs-life-card-3,
    .rgs-life-card-4 {
        grid-column: auto;
        grid-row: auto;
    }

    .rgs-life-card-5,
    .rgs-life-card-6 {
        grid-column: auto;
        grid-row: auto;
    }

    .rgs-life-card-1,
    .rgs-life-card-4 {
        grid-row: span 2;
    }
}

@media (max-width: 991px) {
    .rgs-cinematic-hero {
        min-height: auto;
        padding: 92px 0 150px;
    }

    .rgs-hero-bottom {
        grid-template-columns: repeat(2, 1fr);
        bottom: -86px;
    }

    .rgs-hero-bottom div:nth-child(2) {
        border-right: 0;
    }

    .rgs-legacy-section {
        padding-top: 170px;
    }

    .rgs-scroll-indicator {
        display: none;
    }

    .rgs-sticky-title {
        position: static;
    }

    .rgs-cta-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .rgs-cta-actions {
        width: 100%;
    }

    .rgs-home-branch-preview-section {
        padding: 76px 0;
    }

    .rgs-home-branch-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rgs-home-branch-image-wrap {
        height: 250px;
    }
}

@media (max-width: 767px) {
    .rgs-cinematic-hero {
        padding: 72px 0 170px;
    }

    .rgs-hero-content h1 {
        font-size: clamp(3rem, 17vw, 5.2rem);
    }

    .rgs-hero-content p {
        font-size: 1rem;
    }

    .rgs-hero-buttons {
        flex-direction: column;
    }

    .rgs-btn {
        width: 100%;
    }

    .rgs-hero-bottom {
        grid-template-columns: 1fr;
        bottom: -240px;
    }

    .rgs-hero-bottom div {
        border-right: 0;
        border-bottom: 1px solid rgba(122, 30, 44, 0.12);
        padding: 20px;
    }

    .rgs-hero-bottom div:last-child {
        border-bottom: 0;
    }

    .rgs-legacy-section {
        padding-top: 300px;
    }

    .rgs-home-branch-preview-section {
        padding: 60px 0;
    }

    .rgs-home-branch-heading {
        margin-bottom: 32px;
    }

    .rgs-home-branch-card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .rgs-home-branch-card {
        border-radius: 22px;
    }

    .rgs-home-branch-image-wrap {
        height: 230px;
    }

    .rgs-home-branch-card-body {
        padding: 20px;
    }

    .rgs-home-branch-actions {
        flex-direction: column;
    }

    .rgs-home-branch-btn {
        width: 100%;
    }

    .rgs-build-item {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .rgs-build-item > i {
        display: none;
    }

    .rgs-portal-cards {
        grid-template-columns: 1fr;
    }

    .rgs-life-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 150px;
        gap: 12px;
    }

    .rgs-life-card {
        border-radius: 22px;
        box-shadow: 0 16px 34px rgba(74, 15, 25, 0.12);
    }

    .rgs-life-card-1 {
        grid-column: span 2;
        grid-row: span 2;
    }

    .rgs-life-card-2,
    .rgs-life-card-3,
    .rgs-life-card-4,
    .rgs-life-card-5,
    .rgs-life-card-6 {
        grid-column: auto;
        grid-row: auto;
    }

    .rgs-life-card:hover,
    .rgs-life-card:focus-visible {
        transform: translateY(-4px);
    }

    .rgs-parent-grid {
        grid-template-columns: 1fr;
    }

    .rgs-parent-card-main,
    .rgs-cta-box {
        padding: 32px;
        border-radius: 32px;
    }
}

@media (max-width: 480px) {
    .rgs-life-grid {
        grid-auto-rows: 132px;
        gap: 10px;
    }

    .rgs-life-card {
        border-radius: 18px;
    }

    .rgs-hero-school-mark {
        border-radius: 22px;
        align-items: flex-start;
    }

    .rgs-hero-school-mark span {
        font-size: 0.84rem;
    }

    .rgs-section-title {
        font-size: clamp(2rem, 12vw, 3rem);
    }

    .rgs-legacy-year {
        min-height: 280px;
        padding: 30px;
        border-radius: 32px;
    }

    .rgs-legacy-year strong {
        font-size: 5.3rem;
    }

}

/* =========================================================
   Hero V2 - Maroon Editorial + Right Visual
========================================================= */

.rgs-hero-v2 {
    min-height: calc(100vh - 86px);
    padding: 96px 0 46px;
    overflow: hidden;
    background: var(--deep-maroon);
}

.rgs-hero-v2 .container {
    position: relative;
    z-index: 5;
}

.rgs-hero-content-v2 {
    max-width: 650px;
}

.rgs-hero-content-v2 h1 {
    max-width: 680px;
    color: var(--cream);
    font-size: clamp(2.65rem, 5.2vw, 5.25rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
    font-weight: 900;
    margin: 0;
}

.rgs-hero-content-v2 h1 span {
    display: block;
    margin-top: 10px;
    color: var(--soft-gold);
    font-size: 0.72em;
    line-height: 1.08;
    letter-spacing: -0.045em;
    text-shadow: 0 0 34px rgba(252, 211, 77, 0.15);
}

.rgs-hero-content-v2 p {
    max-width: 590px;
    color: rgba(255, 247, 237, 0.78);
    font-size: 1.04rem;
    line-height: 1.82;
    margin: 24px 0 0;
}

.rgs-hero-content-v2 .rgs-hero-buttons {
    margin-top: 32px;
}

.rgs-hero-school-mark {
    margin-bottom: 22px;
}

.rgs-hero-mini-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.rgs-hero-mini-trust div {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border-radius: 999px;
    color: rgba(255, 247, 237, 0.82);
    background: rgba(255, 247, 237, 0.08);
    border: 1px solid rgba(255, 247, 237, 0.16);
    backdrop-filter: blur(14px);
    font-size: 0.86rem;
    font-weight: 850;
}

.rgs-hero-mini-trust i {
    color: var(--soft-gold);
}

/* Right Visual */
.rgs-hero-visual-v2 {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rgs-visual-ring {
    position: absolute;
    width: 470px;
    height: 470px;
    border-radius: 50%;
    border: 1px dashed rgba(252, 211, 77, 0.28);
    animation: rgsRotateSlow 26s linear infinite;
}

.rgs-visual-glow {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: rgba(217, 119, 6, 0.22);
    filter: blur(70px);
    opacity: 0.7;
}

.rgs-school-photo-card {
    position: relative;
    z-index: 3;
    width: min(100%, 440px);
    padding: 14px;
    border-radius: 38px;
    background: rgba(255, 247, 237, 0.12);
    border: 1px solid rgba(255, 247, 237, 0.18);
    box-shadow: 0 42px 110px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
    transform: rotate(2deg);
    transition: all 0.45s ease;
}

.rgs-school-photo-card:hover {
    transform: rotate(0deg) translateY(-8px);
    box-shadow: 0 52px 130px rgba(0, 0, 0, 0.34);
}

.rgs-photo-frame {
    position: relative;
    height: 420px;
    border-radius: 28px;
    overflow: hidden;
    background: var(--deep-maroon);
}

.rgs-photo-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(74, 15, 25, 0.64), transparent 55%),
        radial-gradient(circle at 80% 18%, rgba(252, 211, 77, 0.22), transparent 34%);
}

.rgs-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.04);
    transition: transform 0.75s ease;
}

.rgs-school-photo-card:hover .rgs-photo-frame img {
    transform: scale(1.12);
}

.rgs-photo-caption {
    padding: 18px 8px 6px;
}

.rgs-photo-caption span {
    display: block;
    color: var(--soft-gold);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.rgs-photo-caption strong {
    display: block;
    margin-top: 7px;
    color: var(--cream);
    font-size: 1.1rem;
    line-height: 1.28;
    font-weight: 850;
}

/* Floating Visual Cards */
.rgs-visual-card {
    position: absolute;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 247, 237, 0.94);
    border: 1px solid rgba(252, 211, 77, 0.24);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
    animation: rgsFloatSoft 5s ease-in-out infinite;
}

.rgs-visual-card i {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-maroon), var(--deep-maroon));
    color: var(--soft-gold);
    flex-shrink: 0;
}

.rgs-visual-card strong {
    display: block;
    color: var(--deep-maroon);
    font-weight: 950;
    line-height: 1.1;
}

.rgs-visual-card span {
    display: block;
    margin-top: 4px;
    color: rgba(31, 41, 55, 0.64);
    font-size: 0.78rem;
    font-weight: 750;
}

.rgs-visual-card-top {
    top: 54px;
    left: 6px;
}

.rgs-visual-card-mid {
    right: 2px;
    top: 210px;
    animation-delay: 1s;
}

/* Mini Portal Panel */
.rgs-portal-mini-panel {
    position: absolute;
    z-index: 6;
    left: 22px;
    bottom: 54px;
    width: 290px;
    padding: 14px;
    border-radius: 24px;
    background: rgba(74, 15, 25, 0.86);
    border: 1px solid rgba(252, 211, 77, 0.24);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(16px);
    animation: rgsFloatSoft 5.5s ease-in-out infinite;
    animation-delay: 1.4s;
}

.rgs-mini-panel-top {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.rgs-mini-panel-top span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--soft-gold);
}

.rgs-mini-panel-top span:nth-child(2) {
    background: var(--gold);
}

.rgs-mini-panel-top span:nth-child(3) {
    background: var(--cream);
}

.rgs-mini-panel-top strong {
    margin-left: auto;
    color: var(--cream);
    font-size: 0.78rem;
    font-weight: 900;
}

.rgs-mini-panel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
}

.rgs-mini-panel-grid div {
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 247, 237, 0.1);
    border: 1px solid rgba(255, 247, 237, 0.12);
}

.rgs-mini-panel-grid i {
    color: var(--soft-gold);
    display: block;
    margin-bottom: 6px;
}

.rgs-mini-panel-grid span {
    color: rgba(255, 247, 237, 0.82);
    font-size: 0.75rem;
    font-weight: 800;
}

/* Stats V2 */
.rgs-hero-bottom-v2 {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 40px;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    border-radius: 30px;
    background: rgba(255, 247, 237, 0.94);
    border: 1px solid rgba(252, 211, 77, 0.28);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(18px);
}

.rgs-hero-bottom-v2 div {
    padding: 22px 24px;
    border-right: 1px solid rgba(122, 30, 44, 0.14);
}

.rgs-hero-bottom-v2 div:last-child {
    border-right: 0;
}

.rgs-hero-bottom-v2 strong {
    display: block;
    color: var(--primary-maroon);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.rgs-hero-bottom-v2 span {
    display: block;
    margin-top: 8px;
    color: rgba(31, 41, 55, 0.66);
    font-weight: 800;
    font-size: 0.88rem;
}

@keyframes rgsRotateSlow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes rgsFloatSoft {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-14px);
    }
}

/* Responsive */
@media (max-width: 1199px) {
    .rgs-hero-content-v2 h1 {
        font-size: clamp(2.45rem, 5vw, 4.4rem);
    }

    .rgs-school-photo-card {
        width: min(100%, 400px);
    }

    .rgs-photo-frame {
        height: 390px;
    }
}

@media (max-width: 991px) {
    .rgs-hero-v2 {
        min-height: auto;
        padding: 76px 0 56px;
        text-align: center;
    }

    .rgs-hero-content-v2 {
        max-width: 760px;
        margin: 0 auto;
    }

    .rgs-hero-content-v2 h1,
    .rgs-hero-content-v2 p {
        margin-left: auto;
        margin-right: auto;
    }

    .rgs-hero-buttons,
    .rgs-hero-mini-trust {
        justify-content: center;
    }

    .rgs-hero-visual-v2 {
        min-height: 570px;
        margin-top: 16px;
    }

    .rgs-hero-bottom-v2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .rgs-hero-bottom-v2 div:nth-child(2) {
        border-right: 0;
    }

    .rgs-hero-bottom-v2 div:nth-child(1),
    .rgs-hero-bottom-v2 div:nth-child(2) {
        border-bottom: 1px solid rgba(122, 30, 44, 0.12);
    }
}

@media (max-width: 767px) {
    .rgs-hero-v2 {
        padding: 62px 0 46px;
    }

    .rgs-hero-content-v2 h1 {
        font-size: clamp(2.35rem, 11vw, 3.5rem);
        line-height: 1.02;
    }

    .rgs-hero-content-v2 h1 span {
        font-size: 0.78em;
    }

    .rgs-hero-buttons {
        flex-direction: column;
    }

    .rgs-btn {
        width: 100%;
    }

    .rgs-hero-visual-v2 {
        min-height: auto;
        display: block;
        padding-top: 24px;
    }

    .rgs-visual-ring,
    .rgs-visual-glow {
        display: none;
    }

    .rgs-school-photo-card {
        width: 100%;
        transform: none;
        border-radius: 30px;
    }

    .rgs-photo-frame {
        height: 320px;
        border-radius: 22px;
    }

    .rgs-visual-card,
    .rgs-portal-mini-panel {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        width: 100%;
        margin-top: 14px;
        animation: none;
    }

    .rgs-hero-bottom-v2 {
        grid-template-columns: 1fr;
        margin-top: 28px;
    }

    .rgs-hero-bottom-v2 div {
        border-right: 0;
        border-bottom: 1px solid rgba(122, 30, 44, 0.12);
        padding: 20px;
    }

    .rgs-hero-bottom-v2 div:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 420px) {
    .rgs-hero-school-mark {
        border-radius: 20px;
        align-items: flex-start;
        text-align: left;
    }

    .rgs-hero-school-mark span {
        font-size: 0.82rem;
    }

    .rgs-photo-frame {
        height: 270px;
    }

    .rgs-mini-panel-grid {
        grid-template-columns: 1fr;
    }
}
