/**
 * ==============================================================================
 * AL-ESRAA UNIVERSITY - HOME SECTIONS STYLESHEET (SERVICES, STATS & CARDS)
 * ==============================================================================
 */

/* ── Services Section Styles ── */
/* Section Base */
.alr-composite-services-section {
    background-color: #f8fafc;
}

/* College Brand Banner at Top */
.alr-services-top-banner {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(241, 245, 249, 0.9));
    border: 1px solid rgba(12, 52, 104, 0.08);
    box-shadow: 0 4px 18px rgba(12, 52, 104, 0.04);
}

.alr-banner-heading {
    color: #0c3468;
    font-size: 1.35rem;
}

/* Dark Ticker Bar */
.alr-services-ticker-bar {
    background: #1b1e26;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.alr-ticker-badge {
    background: linear-gradient(135deg, #a01a35, #c2185b);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
}

.alr-ticker-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: alrPulseDot 2s infinite ease-in-out;
}

@keyframes alrPulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

.alr-ticker-text {
    font-size: 0.88rem;
    color: #e2e8f0;
    font-weight: 500;
}

/* Section Title */
.alr-services-title {
    color: #0f172a;
    font-size: 1.45rem;
    letter-spacing: -0.2px;
}

.alr-title-underline {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #dfa82c, #0e8549);
    border-radius: 3px;
}

/* Service Card Item (Matches User Image Exactly) */
.alr-quick-service-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 14px;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    cursor: pointer;
    min-height: 58px;
}

.alr-quick-service-card:hover {
    border-color: #c2185b;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(194, 24, 91, 0.12);
}

.alr-card-title {
    font-weight: 700;
    font-size: 0.90rem;
    color: #1e293b;
    text-align: center;
    transition: color 0.2s ease;
}

.alr-quick-service-card:hover .alr-card-title {
    color: #c2185b;
}

.alr-card-icon-pill {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(194, 24, 91, 0.08);
    color: #c2185b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    transition: all 0.25s ease;
}

.alr-quick-service-card:hover .alr-card-icon-pill {
    background: #c2185b;
    color: #ffffff;
}

.alr-card-chevron {
    color: #94a3b8;
    font-size: 0.72rem;
    transition: all 0.25s ease;
}

.alr-quick-service-card:hover .alr-card-chevron {
    color: #c2185b;
    transform: translateX(-3px);
}

html[dir="ltr"] .alr-quick-service-card:hover .alr-card-chevron {
    transform: translateX(3px);
}

/* Dean / President Card (Matches User Image Exactly) */
.alr-dean-card-wrapper {
    max-width: 360px;
    position: relative;
    padding-bottom: 30px;
}

.alr-dean-portrait-box {
    width: 100%;
    height: 440px;
    border-radius: 20px !important;
    background: #e2e8f0;
}

.alr-dean-photo {
    object-fit: cover;
    object-position: center 20%;
    transition: transform 0.4s ease;
}

.alr-dean-card-wrapper:hover .alr-dean-photo {
    transform: scale(1.03);
}

.alr-dean-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.35) 100%);
    pointer-events: none;
}

/* Floating White Overlay Card */
.alr-dean-floating-card {
    position: relative;
    margin-top: -65px;
    margin-left: 15px;
    margin-right: 15px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 18px !important;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12) !important;
    z-index: 10;
    transition: all 0.3s ease;
}

.alr-dean-card-wrapper:hover .alr-dean-floating-card {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.16) !important;
}

.alr-dean-name {
    color: #b81e24;
    font-size: 1.15rem;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.alr-dean-title {
    color: #b81e24;
    font-size: 1.02rem;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.alr-dean-link:hover .alr-dean-name,
.alr-dean-link:hover .alr-dean-title {
    color: #821015;
    text-decoration: underline;
}

.alr-dean-speech {
    font-size: 0.90rem;
    line-height: 1.7;
    color: #334155;
    font-weight: 500;
}

/* Responsive Adaptations */
@media (max-width: 991px) {
    .alr-dean-card-wrapper {
        max-width: 380px;
        margin: 40px auto 0 auto;
    }
    .alr-dean-portrait-box {
        height: 380px;
    }
}

/* ── Official Statistics Section Styles ── */
/* Section Base */
.alr-official-stats-section {
    background: #f8fafc;
    position: relative;
    padding: 70px 0;
}

.stats-grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(12, 52, 104, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(12, 52, 104, 0.025) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}

.stats-ambient-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
}
.stats-ambient-glow-1 {
    top: -50px;
    right: 5%;
    background: #0984e3;
}
.stats-ambient-glow-2 {
    bottom: -50px;
    left: 5%;
    background: #00cec9;
}

/* Header */
.alr-stats-top-badge {
    background: rgba(12, 52, 104, 0.06);
    color: #0c3468;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(12, 52, 104, 0.1);
}

.alr-stats-main-title {
    color: #0c3468;
    font-size: 2rem;
    letter-spacing: -0.3px;
    font-family: 'Cairo', 'Reem Kufi', sans-serif;
}

.alr-stats-title-line {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3.5px;
    background: linear-gradient(90deg, #dfa82c, #0e8549);
    border-radius: 3px;
}

/* Individual Stat Box Card with Crystal Glass Effect on Hover */
.alr-stat-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 22px 26px;
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 110px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Glass Light Sheen / Beam Sweep on Hover */
.alr-stat-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -160%;
    width: 80%;
    height: 200%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 40%,
        rgba(255, 255, 255, 0.85) 50%,
        rgba(255, 255, 255, 0.4) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    transition: left 0.75s cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: none;
    z-index: 5;
    opacity: 0;
}

/* Glassmorphism Frosted State on Hover */
.alr-stat-box:hover {
    transform: translateY(-8px) scale(1.018);
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(18px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(190%) !important;
    border: 1px solid rgba(255, 255, 255, 0.95) !important;
    box-shadow: 
        0 22px 45px rgba(15, 23, 42, 0.09),
        0 4px 12px rgba(15, 23, 42, 0.04),
        inset 0 1px 2px rgba(255, 255, 255, 1),
        inset 0 -1px 2px rgba(0, 0, 0, 0.03) !important;
}

.alr-stat-box:hover::before {
    left: 170%;
    opacity: 1;
}

.alr-stat-clickable {
    cursor: pointer;
}

/* Circle Icon Box */
.alr-stat-circle-icon {
    width: 68px;
    height: 68px;
    min-width: 68px;
    border-radius: 50%;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    position: relative;
    z-index: 2;
}

.alr-stat-box:hover .alr-stat-circle-icon {
    transform: scale(1.12) rotate(6deg);
}

/* Text Content Side */
.alr-stat-title {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.alr-stat-clickable:hover .alr-stat-title {
    color: #0c3468;
}

.alr-stat-number-wrap {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.alr-stat-symbol {
    font-size: 1.3rem;
    font-weight: 700;
}

.alr-stat-desc {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.4;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 767.98px) {
    .alr-stat-box {
        padding: 18px 20px;
    }
    .alr-stat-circle-icon {
        width: 58px;
        height: 58px;
        min-width: 58px;
    }
    .alr-stat-circle-icon i {
        font-size: 1.25rem !important;
    }
    .alr-stat-number-wrap {
        font-size: 1.6rem;
    }
}


/* Home Card Custom Hover */
.card-custom:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important; }
