/* ==========================================================================
   Masterpiece Luxury Scholar Hero Section Styles (Clip_path_group Theme)
   ========================================================================== */
.hero-master-section {
    position: relative;
    background-color: #073826;
    background-image: radial-gradient(110% 100% at 70% 30%, #0E6E4C 0%, #0B5A3E 45%, #063927 100%);
    overflow: hidden;
    padding: 75px 0 65px;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}

@media (max-width: 991.98px) {
    .hero-master-section {
        padding: 50px 0 60px;
        min-height: auto;
    }
}

/* Luxury Widescreen Container */
.hero-master-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding-left: 28px;
    padding-right: 28px;
    position: relative;
    z-index: 3;
}

/* Ambient Canvas & SVG Backdrop */
.hero-master-backdrop {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.hero-master-svg-pattern {
    position: absolute;
    inset: 0;
    background-image: url("../images/Clip_path_group.svg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
    filter: brightness(1.7) contrast(1.15);
}

.hero-master-radial-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 2;
}

.hero-master-radial-glow.glow-emerald {
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(14, 110, 76, 0.45) 0%, transparent 70%);
    top: -120px;
    left: -120px;
}

.hero-master-radial-glow.glow-gold {
    width: 620px;
    height: 620px;
    background: radial-gradient(circle, rgba(240, 160, 75, 0.25) 0%, rgba(240, 160, 75, 0.06) 45%, transparent 70%);
    top: 10%;
    right: 5%;
}

/* Subtle Architectural Arch Outline in Background */
.hero-master-backdrop-arch {
    position: absolute;
    top: -50px;
    right: 8%;
    width: 650px;
    height: 750px;
    border: 1.5px solid rgba(240, 160, 75, 0.12);
    border-radius: 325px 325px 0 0;
    pointer-events: none;
    z-index: 2;
}

/* --- Left Column: Text & Content --- */
.hero-col-text {
    padding-right: 20px;
}

.hero-master-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(245, 199, 116, 0.4);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 6px 14px 6px 14px;
    margin-bottom: 24px;
    backdrop-filter: blur(12px);
}

.hero-master-badge-gem {
    color: #F5C774;
    font-size: 15px;
    animation: gemSpin 6s linear infinite;
}

@keyframes gemSpin {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.25); opacity: 1; }
}

.hero-master-badge-title {
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.hero-master-badge-sub {
    background: linear-gradient(135deg, #F5C774 0%, #E29E38 100%);
    color: #072B1C;
    font-size: 10.5px;
    font-weight: 800;
    padding: 3.5px 11px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-master-title {
    margin-bottom: 20px;
    word-break: keep-all;
    hyphens: none;
}

.hero-master-name {
    display: block;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: clamp(38px, 4.4vw, 58px);
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.15;
    letter-spacing: -0.5px;
    white-space: normal;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

.hero-master-name .text-nowrap {
    white-space: nowrap !important;
}

.hero-master-tagline {
    display: block;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: clamp(21px, 2.4vw, 32px);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 12px;
    background: linear-gradient(135deg, #FFF1D6 0%, #F5C774 45%, #EAA842 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 10px rgba(245, 199, 116, 0.25));
}

.hero-master-lead {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    max-width: 630px;
    margin-bottom: 34px;
    letter-spacing: 0.1px;
}

/* Hero CTA Buttons - Professional, Elegant & Harmonious */
.hero-master-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 38px;
}

.btn-hero-master-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #F5C774 0%, #E29E38 100%) !important;
    color: #072B1C !important;
    font-weight: 700 !important;
    font-size: 14.5px !important;
    letter-spacing: 0.2px !important;
    border-radius: 50px !important;
    padding: 13px 26px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(226, 158, 56, 0.35) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
}

.btn-hero-master-primary:hover {
    transform: translateY(-2px) scale(1.02) !important;
    background: linear-gradient(135deg, #FAD692 0%, #EAA842 100%) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32), 0 4px 12px rgba(234, 168, 66, 0.45) !important;
    color: #052115 !important;
}

.btn-hero-master-primary i {
    color: #072B1C;
    font-size: 16px;
    transition: transform 0.25s ease;
}

.btn-hero-master-primary:hover i {
    transform: translateX(4px);
}

.btn-hero-master-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
    font-size: 14.5px !important;
    letter-spacing: 0.15px !important;
    border-radius: 50px !important;
    padding: 11px 24px 11px 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    backdrop-filter: blur(12px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16) !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.btn-hero-master-secondary:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: #F5C774 !important;
    color: #FFFFFF !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22) !important;
}

.btn-hero-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #F8D588 0%, #EAA842 100%);
    color: #072B1C;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.btn-hero-icon i.fa-play {
    padding-left: 2px;
    font-size: 11px;
}

.btn-hero-icon i.fa-envelope {
    font-size: 12px;
}

.btn-hero-master-secondary:hover .btn-hero-icon,
.btn-hero-master-outline:hover .btn-hero-icon {
    transform: scale(1.1);
}

.btn-hero-master-outline {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
    color: #FFFFFF !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.15px !important;
    border-radius: 50px !important;
    padding: 11px 24px 11px 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    backdrop-filter: blur(12px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16) !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.btn-hero-master-outline:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: #F5C774 !important;
    color: #FFFFFF !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22) !important;
}

/* Metric / Counter Stats Ribbon (Crisp White Card with Golden Top Bar) */
.hero-master-metrics {
    background: #FFFFFF;
    border: 1px solid rgba(226, 158, 56, 0.28);
    border-top: 4px solid #E29E38;
    border-radius: 20px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    width: 100%;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.hero-master-metric-box {
    text-align: center;
    flex: 1 1 0;
    min-width: 0;
    padding: 0 4px;
    transition: transform 0.25s ease;
}

.hero-master-metric-box:hover {
    transform: translateY(-2px);
}

.hero-metric-number {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(24px, 2.1vw, 31px);
    font-weight: 800;
    color: #073826;
    line-height: 1;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2.5px;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.hero-metric-number .metric-plus {
    color: #073826;
    font-weight: 800;
    font-size: clamp(19px, 1.7vw, 25px);
}

.hero-metric-label {
    font-size: clamp(10px, 0.82vw, 11.5px);
    color: #475569;
    font-weight: 700;
    margin-top: 6px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0;
}

.hero-metric-divider {
    width: 1px;
    height: 38px;
    background: rgba(11, 90, 62, 0.12);
    margin: 0 6px;
    flex-shrink: 0;
}


/* --- Right Column: Scholar Portrait Showcase --- */
.hero-col-visual {
    position: relative;
}

.hero-master-visual-stage {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    padding: 24px 15px;
}

.hero-arch-aura {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -15%);
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, rgba(240, 160, 75, 0.3) 0%, rgba(14, 110, 76, 0.22) 50%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    filter: blur(45px);
    pointer-events: none;
}

.hero-arch-frame-ring {
    position: absolute;
    top: 10px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 2px dashed rgba(240, 160, 75, 0.45);
    border-radius: 260px 260px 42px 42px;
    z-index: 2;
    pointer-events: none;
}

.hero-arch-portrait-card {
    position: relative;
    z-index: 3;
    border-radius: 240px 240px 36px 36px;
    overflow: hidden;
    border: 3.5px solid transparent;
    background: linear-gradient(#084832, #053323) padding-box, linear-gradient(145deg, #FFE4BF 0%, #F0A04B 40%, #B87622 75%, #F0A04B 100%) border-box;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.48), 0 0 50px rgba(240, 160, 75, 0.25);
}

.hero-arch-portrait-img {
    width: 100%;
    height: 520px;
    max-height: 540px;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    filter: contrast(1.04) brightness(1.02);
}

.hero-arch-portrait-card:hover .hero-arch-portrait-img {
    transform: scale(1.04);
}

.hero-arch-portrait-gradient {
    display: none;
}

/* Floating Luxury Glassmorphic Badges */
.hero-floating-card {
    position: absolute;
    z-index: 5;
    background: rgba(4, 38, 26, 0.92);
    backdrop-filter: blur(18px);
    border: 1.5px solid rgba(240, 160, 75, 0.5);
    border-radius: 18px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 20px rgba(240, 160, 75, 0.16);
    text-align: left;
    transition: all 0.3s ease;
    animation: floatBadge 4.5s ease-in-out infinite alternate;
}

.hero-floating-card:hover {
    border-color: #F0A04B;
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.55), 0 0 25px rgba(240, 160, 75, 0.3);
}

@keyframes floatBadge {
    0% { transform: translateY(0); }
    100% { transform: translateY(-9px); }
}

.badge-azhar {
    top: 13%;
    left: -32px;
}

.badge-rabita {
    bottom: 12%;
    right: -24px;
    animation-delay: -2.25s;
}

.hero-floating-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.hero-floating-icon.icon-emerald {
    background: linear-gradient(135deg, rgba(14, 110, 76, 0.95) 0%, rgba(6, 57, 39, 0.95) 100%);
    color: #F8E7C9;
    border: 1px solid rgba(240, 160, 75, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.hero-floating-icon.icon-gold {
    background: linear-gradient(135deg, #F0A04B 0%, #C97D22 100%);
    color: #042115;
    box-shadow: 0 4px 16px rgba(240, 160, 75, 0.45);
}

.hero-floating-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.25;
}

.hero-floating-subtitle {
    font-size: 11px;
    color: #F0A04B;
    font-weight: 600;
    margin-top: 2px;
}

/* Floating Stars */
.hero-star {
    position: absolute;
    color: #F0A04B;
    font-size: 18px;
    pointer-events: none;
    z-index: 4;
    animation: starPulse 3s ease-in-out infinite alternate;
}

.star-tl {
    top: 25px;
    right: 25px;
}

.star-br {
    bottom: 35px;
    left: 15px;
    font-size: 22px;
    animation-delay: -1.5s;
}

@keyframes starPulse {
    0% { opacity: 0.45; transform: scale(0.85); }
    100% { opacity: 1; transform: scale(1.25); }
}

/* ==========================================================================
   Responsive Breakpoints for Scholar Hero Section
   ========================================================================== */

/* --- Tablets & Medium Screens (max-width: 991.98px) --- */
@media (max-width: 991.98px) {
    .hero-master-section {
        padding: 48px 0 55px;
        min-height: auto;
    }

    .hero-master-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-col-text {
        padding-right: 0;
        margin-top: 10px;
    }

    .hero-master-visual-stage {
        max-width: 380px;
        margin: 0 auto 20px;
        padding: 16px 10px;
    }

    .hero-arch-portrait-img {
        height: 400px;
        max-height: 420px;
    }

    .badge-azhar {
        top: 8%;
        left: -10px;
    }

    .badge-rabita {
        bottom: 6%;
        right: -10px;
    }

    .hero-master-metrics {
        max-width: 100%;
        padding: 16px 14px;
    }
}

/* --- Phablets & Mobile Landscape (max-width: 767.98px) --- */
@media (max-width: 767.98px) {
    .hero-master-section {
        padding: 30px 0 28px !important;
        min-height: auto;
    }

    .hero-master-container {
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box !important;
    }

    /* Reset row horizontal margins so container 20px padding is preserved */
    .hero-master-section .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .hero-col-text {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        width: 100% !important;
    }

    .hero-col-visual {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
    }

    .hero-master-visual-stage {
        max-width: 270px;
        margin: 0 auto 16px;
        padding: 10px 6px;
    }

    .hero-arch-aura {
        width: 250px;
        height: 250px;
        filter: blur(35px);
    }

    .hero-arch-portrait-card {
        border-radius: 145px 145px 24px 24px;
        border-width: 2.5px;
    }

    .hero-arch-frame-ring {
        top: 5px;
        left: 4px;
        right: 4px;
        bottom: 4px;
        border-radius: 155px 155px 28px 28px;
    }

    .hero-arch-portrait-img {
        height: 280px;
        max-height: 295px;
    }

    /* Hide floating badges on mobile to keep scholar portrait clear & dignified */
    .hero-floating-card {
        display: none !important;
    }

    .hero-master-name {
        font-size: clamp(28px, 7.5vw, 38px);
    }

    .hero-master-tagline {
        font-size: clamp(17px, 4.6vw, 22px);
    }

    .hero-master-lead {
        font-size: 14px;
        line-height: 1.65;
        margin-bottom: 22px;
    }

    /* Refined Luxury Action Buttons on Mobile: 2 Rows */
    .hero-master-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px 10px !important;
        width: 100% !important;
        margin-bottom: 24px !important;
    }

    .btn-hero-master-primary {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        height: 48px !important;
        justify-content: center !important;
        padding: 0 20px !important;
        font-size: 14.5px !important;
        font-weight: 700 !important;
        letter-spacing: 0.3px !important;
        border-radius: 50px !important;
        background: linear-gradient(135deg, #F8D588 0%, #EAA842 50%, #D48B28 100%) !important;
        color: #052417 !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(226, 158, 56, 0.4) !important;
        border: 1px solid rgba(255, 255, 255, 0.4) !important;
    }

    .btn-hero-master-primary i {
        font-size: 14px !important;
        color: #052417 !important;
        margin-left: 6px !important;
    }

    .btn-hero-master-secondary,
    .btn-hero-master-outline {
        width: 100% !important;
        height: 46px !important;
        justify-content: center !important;
        padding: 0 10px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        gap: 8px !important;
        border-radius: 50px !important;
        background: rgba(255, 255, 255, 0.12) !important;
        border: 1.5px solid rgba(245, 199, 116, 0.45) !important;
        color: #FFFFFF !important;
        backdrop-filter: blur(12px) !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
        white-space: nowrap !important;
    }

    .btn-hero-icon {
        width: 26px !important;
        height: 26px !important;
        background: linear-gradient(135deg, #F8D588 0%, #EAA842 100%) !important;
        color: #072B1C !important;
        border-radius: 50% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
    }

    .btn-hero-icon i.fa-play {
        font-size: 9.5px !important;
        padding-left: 1.5px !important;
        color: #072B1C !important;
    }

    .btn-hero-icon i.fa-envelope {
        font-size: 10.5px !important;
        color: #072B1C !important;
    }

    /* Metrics Ribbon: Floating Rounded Card with 20px Side Margins */
    .hero-master-metrics {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 14px 8px !important;
        padding: 16px 14px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 18px !important;
        border: 1px solid rgba(226, 158, 56, 0.28) !important;
        border-top: 4px solid #E29E38 !important;
        background: #FFFFFF !important;
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.22) !important;
        margin-top: 24px !important;
        margin-bottom: 6px !important;
    }

    .hero-master-metric-box {
        text-align: center;
        min-width: 0;
        padding: 2px 2px;
    }

    .hero-metric-divider {
        display: none !important;
    }

    .hero-metric-number {
        font-family: 'Outfit', sans-serif !important;
        font-size: 24px !important;
        font-weight: 800 !important;
        color: #073826 !important;
        line-height: 1 !important;
        justify-content: center !important;
        white-space: nowrap !important;
    }

    .hero-metric-number .metric-plus {
        font-size: 18px !important;
        color: #073826 !important;
    }

    .hero-metric-label {
        font-size: clamp(9px, 2.5vw, 10.5px) !important;
        line-height: 1.25 !important;
        white-space: nowrap !important;        /* Strictly ONE LINE */
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        color: #475569 !important;
        font-weight: 700 !important;
        margin-top: 4px !important;
        text-align: center !important;
        letter-spacing: -0.15px !important;
        display: block !important;
    }
}

/* --- Smartphones (max-width: 575.98px) --- */
@media (max-width: 575.98px) {
    .hero-master-section {
        padding: 24px 0 24px !important;
    }

    .hero-master-container {
        padding-left: 18px !important;
        padding-right: 18px !important;
        box-sizing: border-box !important;
    }

    .hero-master-section .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .hero-col-text,
    .hero-col-visual {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    /* Visual Showcase on Mobile */
    .hero-master-visual-stage {
        max-width: 240px;
        margin: 0 auto 16px;
        padding: 6px 2px;
    }

    .hero-arch-aura {
        width: 220px;
        height: 220px;
        top: 20%;
        filter: blur(35px);
    }

    .hero-arch-portrait-card {
        border-radius: 130px 130px 22px 22px;
        border-width: 2.5px;
    }

    .hero-arch-frame-ring {
        top: 5px;
        left: 4px;
        right: 4px;
        bottom: 4px;
        border-radius: 140px 140px 26px 26px;
    }

    .hero-arch-portrait-img {
        height: 250px;
        max-height: 260px;
    }

    /* Completely hide overlapping badges on small screens */
    .hero-floating-card {
        display: none !important;
    }

    .hero-star {
        font-size: 13px;
    }

    .star-tl {
        top: 10px;
        right: 10px;
    }

    .star-br {
        bottom: 12px;
        left: 6px;
        font-size: 14px;
    }

    /* Left Column Content on Mobile */
    .hero-master-badge {
        display: inline-flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px;
        padding: 5px 14px;
        border-radius: 30px;
        margin-bottom: 12px;
        max-width: 100%;
        white-space: nowrap;
    }

    .hero-master-badge-title {
        font-size: 11px;
        letter-spacing: 0.3px;
        white-space: nowrap;
    }

    .hero-master-title {
        margin-bottom: 12px;
    }

    .hero-master-name {
        font-size: clamp(24px, 6.8vw, 32px);
        line-height: 1.15;
    }

    .hero-master-tagline {
        font-size: clamp(15px, 4.2vw, 19px);
        margin-top: 5px;
    }

    .hero-master-lead {
        font-size: 13px;
        line-height: 1.6;
        margin-bottom: 20px;
        color: rgba(255, 255, 255, 0.88);
    }

    /* Action Buttons on Mobile: Balanced 2-Row Layout */
    .hero-master-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px 8px !important;
        width: 100% !important;
        margin-bottom: 22px !important;
    }

    .btn-hero-master-primary {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        height: 48px !important;
        justify-content: center !important;
        padding: 0 18px !important;
        font-size: 14px !important;
    }

    .btn-hero-master-secondary,
    .btn-hero-master-outline {
        width: 100% !important;
        height: 44px !important;
        justify-content: center !important;
        padding: 0 8px !important;
        font-size: 12.5px !important;
        gap: 6px !important;
    }

    /* Metrics 2x2 Grid on Mobile: STRICTLY ONE LINE, Floating Rounded Card */
    .hero-master-metrics {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px 6px !important;
        padding: 14px 10px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 16px !important;
        border: 1px solid rgba(226, 158, 56, 0.28) !important;
        border-top: 3.5px solid #E29E38 !important;
        background: #FFFFFF !important;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22) !important;
        margin-top: 20px !important;
        margin-bottom: 4px !important;
    }

    .hero-master-metric-box {
        text-align: center;
        min-width: 0;
        padding: 2px;
    }

    .hero-metric-divider {
        display: none !important;
    }

    .hero-metric-number {
        font-size: 22px !important;
        justify-content: center;
    }

    .hero-metric-number .metric-plus {
        font-size: 16px !important;
    }

    .hero-metric-label {
        font-size: clamp(8.5px, 2.4vw, 10px) !important;
        line-height: 1.25 !important;
        white-space: nowrap !important;        /* STRICTLY ONE LINE */
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        margin-top: 3px !important;
        text-align: center;
        letter-spacing: -0.15px;
        display: block !important;
    }
}

/* Extra Small Phones (max-width: 359.98px) */
@media (max-width: 359.98px) {
    .hero-master-visual-stage {
        max-width: 220px;
    }

    .hero-arch-portrait-img {
        height: 230px;
    }

    .btn-hero-master-secondary,
    .btn-hero-master-outline {
        font-size: 11.5px !important;
        padding: 0 4px !important;
        gap: 5px !important;
    }

    .btn-hero-icon {
        width: 22px !important;
        height: 22px !important;
    }

    .hero-metric-number {
        font-size: 20px !important;
    }

    .hero-metric-label {
        font-size: 8px !important;
    }
}

/* Mobile RTL Adjustments */
@media (max-width: 575.98px) {
    [dir="rtl"] .badge-azhar {
        left: auto !important;
        right: -12px !important;
    }

    [dir="rtl"] .badge-rabita {
        right: auto !important;
        left: -12px !important;
    }

    [dir="rtl"] .hero-master-visual-stage {
        text-align: center !important;
    }
}

/* --- RTL Language Support (Urdu & Arabic) --- */
[dir="rtl"] .hero-master-title,
[dir="rtl"] .hero-master-lead {
    text-align: right !important;
}

[dir="rtl"] .hero-col-text {
    padding-right: 0;
    padding-left: 20px;
}

[dir="rtl"] .hero-floating-card {
    text-align: right !important;
}

[dir="rtl"] .badge-azhar {
    left: auto;
    right: -32px;
}

[dir="rtl"] .badge-rabita {
    right: auto;
    left: -24px;
}

[dir="rtl"] .btn-hero-master-primary i {
    transform: rotate(180deg);
}

[dir="rtl"] .btn-hero-master-primary:hover i {
    transform: rotate(180deg) translateX(4px);
}

/* Arabic Typography */
[lang="ar"] .hero-master-badge-title,
[lang="ar"] .hero-master-name,
[lang="ar"] .hero-master-tagline,
[lang="ar"] .hero-master-lead,
[lang="ar"] .hero-metric-label,
[lang="ar"] .btn-hero-master-primary,
[lang="ar"] .btn-hero-master-secondary,
[lang="ar"] .btn-hero-master-outline,
[lang="ar"] .hero-floating-details {
    font-family: 'Tajawal', sans-serif !important;
    letter-spacing: 0 !important;
}

/* Urdu Typography (BBC Reith Qalam for crisp digital screen legibility) */
[lang="ur"] .hero-master-badge-title,
[lang="ur"] .hero-master-name,
[lang="ur"] .hero-master-tagline,
[lang="ur"] .hero-master-lead,
[lang="ur"] .hero-metric-label,
[lang="ur"] .btn-hero-master-primary,
[lang="ur"] .btn-hero-master-secondary,
[lang="ur"] .btn-hero-master-outline,
[lang="ur"] .hero-floating-details {
    font-family: 'BBC Reith Qalam', 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', sans-serif !important;
    letter-spacing: 0 !important;
}

[lang="ur"] .hero-metric-label {
    font-size: clamp(10.5px, 0.82vw, 12px) !important;
    line-height: 1.45 !important;
    font-weight: 700 !important;
}

[lang="ar"] .hero-metric-label {
    font-size: clamp(10px, 0.82vw, 11.5px) !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
}

@media (max-width: 767.98px) {
    [dir="rtl"] .hero-metric-label {
        font-size: clamp(9px, 2.4vw, 10.5px) !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}
