/* ==========================================================================
   ACADEMY 32 — UNIFIED FRONTEND STYLES
   Source: ui-ux-academy-32-courses-html/*.html
   Sections (in order):
     A. HOME            (index.html)
     B. NEWS LIST       (news_list.html)
     C. NEWS DETAILS    (news_details.html)
     D. SUCCESS STORIES — LIST  (Success_Story_list.html)
     E. SUCCESS STORIES — PAGE  (Success_Story_Page.html)
   Note: Each section keeps its original :root / shared rules. Later sections
   may override earlier ones; this matches the order they were authored.
   ========================================================================== */

/* ==========================================================================
   A. HOME (index.html)
   ========================================================================== */
/* =========================================
           1. CORE STYLES
           ========================================= */
:root {
    --brand-navy: #001f55;
    --brand-navy-light: #1a3668;
    --brand-purple: #4904dc;

    --bg-dark: var(--brand-navy);
    --bg-mid: #0b2a6b;
    --bg-light: #16367a;

    --primary-purple: var(--brand-purple);
    --accent-blue: #2575fc;
    --text-white: #ffffff;

    --glass-bg: rgba(0, 31, 85, 0.4);
    --glass-border: rgba(73, 4, 220, 0.3);

    --card-base-color: 0, 31, 85;
    --container-width: 1200px;

    --color-primary-main: var(--brand-purple);
    --color-heading: var(--brand-navy);
    --color-body: #555;

    --shadow-dark: 0 10px 30px rgba(0, 31, 85, 0.15);
    --transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --swiper-pagination-top: 3rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: #f4f7fa;
    color: var(--color-heading);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container-custom {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    position: relative;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
}

/* Mobile: stack the two columns (no lg reset existed -> stayed 50% on phones). */
@media (max-width: 991.98px) {
    .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Footer Grid System */
.footer-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    justify-content: space-between;
}

.col-footer-main {
    flex: 0 0 35%;
    max-width: 35%;
    padding: 0 15px;
}

.col-footer-link {
    flex: 0 0 20%;
    max-width: 20%;
    padding: 0 15px;
}

/* =========================================
           2. HEADER STYLES
           ========================================= */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    padding: 20px 0;
    transition: all var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header.sticky {
    position: fixed;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: 0 5px 25px rgba(0, 31, 85, 0.1);
    border-bottom: none;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 146px;
    height: 50px;
    object-fit: contain;
    transition: var(--transition);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

nav ul li {
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 0;
    transition: var(--transition);
}

nav ul li a.active {
    color: #fff;
    position: relative;
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-purple);
    border-radius: 2px;
    transition: var(--transition);
}

header.sticky nav ul li a {
    color: var(--color-heading);
}

header.sticky nav ul li a.active {
    color: var(--primary-purple);
}

nav ul li a:hover {
    color: #fff;
}

header.sticky nav ul li a:hover {
    color: var(--brand-navy);
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Updated .tool-btn with new styles (Rounded-2xl, Scale, Glow) */
.tool-btn {
    width: 38px; /* Reduced width */
    height: 38px; /* Reduced height */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px; /* Adjusted radius for smaller size */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.tool-btn:hover {
    background: #ffffff;
    color: var(--brand-navy);
    border-color: #ffffff;
    transform: scale(1.05); /* hover:scale-105 */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3); /* hover:shadow-glow */
}

.tool-btn:active {
    transform: scale(0.95); /* active:scale-95 */
}

header.sticky .tool-btn {
    color: var(--color-heading);
    border-color: rgba(0, 31, 85, 0.1);
}

header.sticky .tool-btn:hover {
    background: var(--brand-navy);
    color: #ffffff;
    border-color: var(--brand-navy);
    box-shadow: 0 0 15px rgba(0, 31, 85, 0.3); /* Adjusted glow for sticky */
}

/* Updated .login-btn with new styles */
.login-btn {
    background: #fff;
    color: var(--brand-navy);
    padding: 0 20px; /* Adjusted padding */
    height: 38px; /* Reduced height to match icons */
    border-radius: 12px; /* Adjusted radius */
    font-weight: 700;
    font-size: 14px;
    margin-left: 10px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.login-btn:hover {
    transform: translateY(-2px) scale(1.05); /* Combined hover effects */
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.4); /* Enhanced shadow */
}

.login-btn:active {
    transform: scale(0.95);
}

header.sticky .login-btn {
    background: var(--brand-navy);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 31, 85, 0.3);
}

header.sticky .login-btn:hover {
    background: var(--brand-navy-light);
    box-shadow: 0 5px 18px rgba(0, 31, 85, 0.4);
}

/* =========================================
           3. HERO SECTION
           ========================================= */
.hero {
    padding-top: 120px;
    padding-bottom: 60px;
    min-height: 90vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://static.vecteezy.com/system/resources/thumbnails/034/326/986/small_2x/abstract-geometric-background-with-lines-and-circles-vector.jpg') no-repeat center center;
    background-size: cover;
    filter: hue-rotate(-50deg) brightness(0.7) saturate(1.2);
    z-index: -2;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 31, 85, 0.6);
    z-index: -1;
}

.hero-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}


.top-content-wrapper {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    margin-bottom: 20px;
}

.vertical-line {
    width: 6px;
    min-height: 180px;
    background: linear-gradient(to bottom, var(--brand-purple), var(--brand-navy));
    border-radius: 50px;
    margin-left: 25px;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(73, 4, 220, 0.4);
}

.content-text-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.hero-content h1 {
    font-size: 2.2rem;
    font-weight: 900;
    margin: 0 0 15px 0;
    line-height: 1.4;
    color: #ffffff;
}

p.description {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 25px 0;
    max-width: 500px;
}

.meta-data {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    border: none;
}

.meta-item {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
}

.meta-item i {
    margin-left: 8px;
    color: var(--brand-purple);
    font-size: 1rem;
    background: #fff;
    padding: 5px;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    margin-right: 33px;
}

.btn-primary {
    background: var(--brand-navy);
    color: #fff;
    padding: 10px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0, 31, 85, 0.4);
    transition: 0.3s;
    border: none;
}

.btn-outline {
    background: transparent;
    color: #fff;
    padding: 10px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 31, 85, 0.6);
    background: var(--brand-navy-light);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* =========================================
           4. ABOUT SECTION
           ========================================= */
.edu-about-area {
    padding: 120px 0;
    position: relative;
    z-index: 1;
    background-color: #ffffff;
}

.about-image-gallery {
    position: relative;
    z-index: 2;
    padding-left: 50px;
}

.main-img-1 {
    border-radius: 20px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0px 30px 60px 0px rgba(0, 31, 85, 0.1);
    display: block;
    transform: scaleX(-1);
    position: relative;
    z-index: 10;
}

.scene-layer {
    position: absolute;
    z-index: 3;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.award-status {
    position: absolute;
    background: #fff;
    padding: 20px 25px;
    border-radius: 10px;
    box-shadow: 0px 15px 30px 0px rgba(0, 0, 0, 0.08);
    z-index: 15;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 3px solid var(--brand-purple);
    min-width: 220px;
}

.award-status .icon {
    width: 50px;
    height: 50px;
    background: rgba(73, 4, 220, 0.1);
    color: var(--brand-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.award-status .content h6 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: var(--brand-navy);
    line-height: 1.2;
}

.award-status .content span {
    font-size: 13px;
    color: #666;
    font-weight: 600;
}

.badge-programs {
    top: 40px;
    right: -30px;
}

.badge-experts {
    top: auto;
    right: auto;
    bottom: -30px;
    left: -40px;
}

.badge-experts .icon {
    background: rgba(0, 31, 85, 0.1);
    color: var(--brand-navy);
}

.certs-status {
    position: absolute; bottom: 80px; right: -50px;
    background: var(--brand-navy); color: white; padding: 15px 20px;
    border-radius: 10px; display: flex; align-items: center; gap: 12px;
    z-index: 13; box-shadow: 0px 15px 30px 0px rgba(0, 0, 0, 0.2);
}
.certs-status i {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; flex-shrink: 0;
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 10px;
    color: #fff;
    font-size: 20px;
}
.certs-status div { line-height: 1.2; }

.shape-group {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.shape {
    position: absolute;
}

.shape-1 {
    top: -30px;
    left: -60px;
    z-index: -1;
    opacity: 0.6;
}

.shape-2 {
    top: -40px;
    left: -40px;
    z-index: -1;
    opacity: 0.6;
}

.shape-3 {
    bottom: -40px;
    right: -40px;
    z-index: 1;
    opacity: 0.6;
}

.title-shape-circle {
    position: absolute;
    top: -15px;
    left: -20px;
    width: 80px;
    height: 80px;
    border: 6px solid rgba(73, 4, 220, 0.1);
    border-radius: 50%;
    z-index: -1;
}

.about-content {
    padding-right: 30px;
}

.section-title {
    position: relative;
}

.pre-title {
    color: var(--brand-purple);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 15px;
}

.title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 25px;
    color: var(--brand-navy);
}

.color-secondary {
    color: var(--brand-purple);
}

.about-description {
    color: #555;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 30px;
    text-align: justify;
}

.features-list {
    margin-bottom: 40px;
}

.features-list li {
    position: relative;
    padding-right: 30px;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--brand-navy);
}

.features-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 2px;
    color: var(--brand-purple);
}

/* Updated Calmer Discover Button */
.btn-discover {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 35px;
    background: transparent;
    color: var(--brand-navy);
    border: 1px solid rgba(0, 31, 85, 0.15);
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-discover:hover {
    color: var(--brand-purple);
    border-color: var(--brand-purple);
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.btn-discover i {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-discover:hover i {
    transform: rotate(45deg);
}

/* Improved Soft Register Button */
.btn-register-soft {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    width: 100%;
    border-radius: 12px;
    background: #f8f9fc;
    color: var(--brand-navy);
    border: 1px solid transparent;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-register-soft:hover {
    background: #fff;
    color: var(--brand-purple);
    border-color: rgba(73, 4, 220, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.btn-register-soft i {
    font-size: 12px;
    transition: transform 0.4s ease;
}

.btn-register-soft:hover i {
    transform: rotate(45deg);
}

/* =========================================
           X. FIELDS OF FOCUS SECTION (OPTION 1: CARDS)
           ========================================= */
.edu-fields-area {
    padding: 100px 0;
    background-color: #f4f7fa;
    position: relative;
    z-index: 1;
}

.fields-grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px; /* Increased gap */
    margin-top: 60px; /* More space for floating icons */
}

.field-card {
    background: #fff;
    border-radius: 20px;
    padding: 0 20px 30px 20px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: visible;
    border: 1px solid rgba(0, 0, 0, 0.03);
    margin-top: 30px;
}

/* Hover Effect */
.field-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 31, 85, 0.15);
    background-color: #fff;
    border-bottom: 4px solid var(--brand-purple);
}

.field-icon {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--brand-purple);
    margin-top: -40px;
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border: 4px solid #f4f7fa;
}

.field-card:hover .field-icon {
    transform: translateY(-15px) scale(1.1);
    background: var(--brand-purple);
    color: #fff;
    border-color: #fff;
    box-shadow: 0 15px 30px rgba(73, 4, 220, 0.3);
}

.field-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--brand-navy);
    margin-bottom: 10px;
    z-index: 1;
    transition: 0.3s;
}

.field-card:hover .field-title {
    color: var(--brand-purple);
}

/* Hidden Description by default */
.field-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    transform: translateY(10px);
}

.field-card:hover .field-desc {
    max-height: 200px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 5px;
    color: #555;
}

/* NEW CARD BUTTON */
.field-card-btn {
    margin-top: 15px;
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-navy);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    transition: 0.3s;
    /* Allow it to be visible but discreet until hover if desired, or animate it */
    opacity: 0;
    transform: translateY(10px);
    max-height: 0;
}

.field-card:hover .field-card-btn {
    opacity: 1;
    transform: translateY(0);
    max-height: 40px; /* Allocate space */
    color: var(--brand-purple);
}

@media (max-width: 992px) {
    .fields-grid-container {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 40px;
    }
}

@media (max-width: 576px) {
    .fields-grid-container {
        grid-template-columns: 1fr;
    }
}

/* =========================================
           5. EVENTS SECTION (MODERN CARD DESIGN)
           ========================================= */
.edu-event-area {
    padding: 120px 0;
    position: relative;
    background-color: #f8f9fc;
    z-index: 1;
}

.section-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding-bottom: 20px;
}

@media (max-width: 1100px) {
    .event-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .event-grid {
        grid-template-columns: 1fr;
    }
}

/* --- New Professional Card Design --- */
.event-card-modern {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.03);
    group: 'event-card';
    width: 100%;
    height: 100%;
}

.event-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 31, 85, 0.12);
}

/* Image Wrapper */
.event-thumb-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    flex-shrink: 0;
}

.event-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.event-card-modern:hover .event-thumb-wrapper img {
    transform: scale(1.1);
}

/* Overlay Gradient on Image */
.event-thumb-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 31, 85, 0.6), transparent 60%);
    opacity: 0.6;
    transition: opacity 0.3s;
}

.event-card-modern:hover .event-thumb-wrapper::after {
    opacity: 0.4;
}

/* Category Badge */
.event-cat-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--brand-navy);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.event-card-modern:hover .event-cat-badge {
    background: var(--brand-purple);
    color: #fff;
}

/* Floating Date */
.event-date-floating {
    position: absolute;
    top: 190px;
    left: 20px;
    background: #fff;
    width: 60px;
    height: 60px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    line-height: 1;
    transition: 0.3s;
    border-top: 3px solid var(--brand-purple);
}

.event-card-modern:hover .event-date-floating {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(73, 4, 220, 0.25);
}

.event-date-floating .day {
    font-size: 20px;
    font-weight: 800;
    color: var(--brand-navy);
}

.event-date-floating .month {
    font-size: 11px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    margin-top: 3px;
}

/* Card Content */
.event-content-body {
    padding: 20px;
    background: #fff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.event-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 13px;
    color: #777;
    margin-bottom: 12px;
    margin-left: 5px;
}

/* Price in Content */
.event-price-inline {
    font-weight: 800;
    color: var(--brand-purple);
    font-size: 14px;
    background: rgba(73, 4, 220, 0.08);
    padding: 4px 10px;
    border-radius: 20px;
}

.event-price-inline.free {
    color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
}

.event-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--brand-navy);
    margin-bottom: 15px;
    line-height: 1.5;
    transition: 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card-modern:hover .event-title {
    color: var(--brand-purple);
}

/* Footer / Button Area */
.event-footer {
    margin-top: auto;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.event-footer-details {
    display: flex;
    flex-direction: row;
    gap: 6px;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.event-info-item {
    font-size: 11px;
    font-weight: 700;
    color: #555;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.event-info-item i {
    color: var(--brand-purple);
    width: 14px;
    text-align: center;
}

/* Updated Button Arrow Link with Text and Animation */
.btn-arrow-link {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    background: #f4f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-navy);
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s ease;
    flex-shrink: 0;
    gap: 8px;
    text-decoration: none;
}

.btn-arrow-link:hover {
    background: var(--brand-navy);
    color: #fff;
}

.btn-arrow-link i {
    transition: transform 0.3s ease;
}

.btn-arrow-link:hover i {
    transform: rotate(45deg);
}

/* Animation specific */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-card-modern {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.event-card-modern:nth-child(1) {
    animation-delay: 0.1s;
}

.event-card-modern:nth-child(2) {
    animation-delay: 0.2s;
}

.event-card-modern:nth-child(3) {
    animation-delay: 0.3s;
}

.event-card-modern:nth-child(4) {
    animation-delay: 0.4s;
}

/* Fake Pagination for Events */
.static-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
}

.static-dot {
    width: 12px;
    height: 12px;
    background-color: #e0e0e0;
    border-radius: 50%;
    display: inline-block;
}

.static-dot.active {
    background-color: var(--brand-purple);
    width: 30px;
    border-radius: 10px;
}


/* =========================================
           6. NEWS SECTION (SPLIT EDITORIAL DESIGN - UPDATED)
           ========================================= */
.edu-news-area {
    padding: 80px 0;
    background: #fff;
    flex-grow: 1;
}

.editorial-wrapper {
    display: flex;
    gap: 40px;
    align-items: stretch;
    min-height: 550px;
}

/* Left Image Panel */
.news-preview-panel {
    flex: 1.6; /* Wider image area */
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: #000; /* Dark bg to enhance image fade */
}

.preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Set transition properties in JS class to allow instant reset */
    transform-origin: center center;
    opacity: 0.9;
}

/* BOTTOM SLIDE UP BOX - GLASSMORPHISM */
.preview-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 35px;

    /* Enhanced Glassmorphism - INCREASED TRANSPARENCY */
    background: rgba(255, 255, 255, 0.20); /* Changed from 0.35 to 0.20 for more see-through look */
    backdrop-filter: blur(30px); /* Increased blur from 25px to 30px to maintain readability */
    -webkit-backdrop-filter: blur(30px);
    border-top: 1px solid rgba(255, 255, 255, 0.5); /* Slightly softer border */

    border-radius: 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);

    transform: translateY(100%);
    opacity: 0;

    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10;
}

/* Animation States */
/* CSS Transitions for smooth effects */
.news-preview-panel.animate .preview-overlay {
    transform: translateY(0);
    opacity: 1;
    transition: all 1.4s cubic-bezier(0.23, 1, 0.32, 1); /* Slow, smooth slide up */
}

.news-preview-panel.animate .preview-img {
    transform: scale(1.15); /* Zoom In Effect */
    transition: transform 1.8s ease-out; /* Slow zoom over time */
}

/* State when NOT animated (reset) - Defined to ensure JS override works smoothly */
.news-preview-panel:not(.animate) .preview-overlay {
    transition: none !important; /* Instant reset */
    transform: translateY(100%);
    opacity: 0;
}

.news-preview-panel:not(.animate) .preview-img {
    transition: none !important; /* Instant reset */
    transform: scale(1);
}

.preview-meta {
    font-size: 13px;
    color: var(--brand-purple);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-meta::before {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--brand-purple);
    display: inline-block;
}

.preview-title {
    font-size: 26px;
    font-weight: 800;
    margin: 0;
    color: var(--brand-navy);
    line-height: 1.3;
}

.preview-desc {
    font-size: 15px;
    color: #000; /* Darkest black to ensure contrast on transparent glass */
    line-height: 1.7;
    margin: 5px 0 10px;
    font-weight: 500;
}

/* Read More Button inside Preview */
.preview-btn {
    align-self: flex-start;
    padding: 12px 30px;
    border-radius: 12px;
    background: var(--brand-navy);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    text-decoration: none;
}

.preview-btn:hover {
    background: var(--brand-purple);
    transform: translateX(-5px);
}

.preview-btn i {
    transition: transform 0.3s;
}

.preview-btn:hover i {
    transform: rotate(45deg);
}

/* Right List */
.news-list-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center list vertically */
}

.editorial-item {
    padding: 22px 20px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    border-radius: 12px;
}

.editorial-item:first-child {
    border-top: 1px solid #eee;
}

/* The Purple Line */
.editorial-item::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background-color: var(--brand-purple);
    transition: height 0.3s ease;
    border-radius: 2px;
}

.editorial-item:hover, .editorial-item.active {
    background: #f9f9fc;
    padding-right: 25px;
}

/* Expand Line on Hover/Active */
.editorial-item:hover::before, .editorial-item.active::before {
    height: 70%;
}

.item-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}

.item-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-navy);
    margin: 0;
    line-height: 1.5;
    transition: 0.3s;
}

.editorial-item:hover .item-title, .editorial-item.active .item-title {
    color: var(--brand-purple);
}

/* Responsive */
@media (max-width: 992px) {
    .editorial-wrapper {
        flex-direction: column-reverse;
        height: auto;
    }

    .news-preview-panel {
        height: 400px;
        min-height: 400px;
    }

    .preview-overlay {
        position: absolute !important;
        bottom: 0 !important;
        margin-top: 0;
        transform: translateY(100%);
    }

    .news-preview-panel.animate .preview-overlay {
        transform: translateY(0);
    }
}

/* =========================================
           7. SUCCESS STORIES (UPDATED)
           ========================================= */
#success-stories-standalone {
    --color-primary-new: var(--brand-purple);
    --color-secondary-new: var(--brand-navy);
    --color-heading-new: var(--brand-navy);
    --color-body-new: #525252;
    --color-white: #fff;
    --font-primary: 'Tajawal', sans-serif;
    --radius-small: 5px;

    background-color: #f9f9f9;
    padding: 80px 0;
    color: var(--color-body-new);
    font-family: var(--font-primary);
}

#success-stories-standalone h2,
#success-stories-standalone h5 {
    font-family: var(--font-primary);
    color: var(--color-heading-new);
    font-weight: 700;
    margin-top: 0;
}

/* Scoped Layout Grid */
#success-stories-standalone .custom-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 -15px;
}

#success-stories-standalone .col-text {
    width: 41.666667%;
    padding: 0 15px;
}

#success-stories-standalone .col-slider {
    width: 58.333333%;
    padding: 0 15px;
}

/* Mobile: stack heading above the slider; give the slider full width. */
@media (max-width: 991.98px) {
    #success-stories-standalone .col-text,
    #success-stories-standalone .col-slider {
        width: 100%;
    }
}

/* New Section Components */
#success-stories-standalone .section-title .pre-title {
    color: var(--color-primary-new);
    font-size: 15px;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

#success-stories-standalone .section-title .main-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--color-heading-new);
}

#success-stories-standalone .section-title .description {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--color-body-new);
}

/* Button Redesign - لون موحد مع هوفر خفيف */
#success-stories-standalone .edu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-navy);
    color: #fff;
    padding: 15px 35px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0, 31, 85, 0.2);
    transition: all 0.3s ease;
}

#success-stories-standalone .edu-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 31, 85, 0.4);
    background: var(--brand-navy-light);
    color: #fff;
}

#success-stories-standalone .edu-btn i {
    margin-right: 10px;
    transition: transform 0.3s;
}

#success-stories-standalone .edu-btn:hover i {
    transform: rotate(45deg);
}

/* Testimonial Card */
#success-stories-standalone .testimonial-grid {
    background: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
    transition: 0.3s;
    overflow: hidden;
    z-index: 1;
    text-align: right;
}

#success-stories-standalone .testimonial-grid::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background: none; /* was a broken external demo asset (SSL error) */
    filter: hue-rotate(240deg) brightness(0.8); /* Adjust hue to match navy */
    z-index: -1;
    opacity: 0.6;
    pointer-events: none;
    transform: scaleX(-1);
}

/* إزالة لون الحدود للقصة النشطة */
#success-stories-standalone .swiper-slide-active .testimonial-grid {
    border-color: transparent;
}

#success-stories-standalone .swiper-slide-active .testimonial-grid:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 31, 85, 0.1);
}

#success-stories-standalone .card-header-meta {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}

#success-stories-standalone .thumbnail {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e0e0e0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    margin-left: 15px;
}

#success-stories-standalone .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#success-stories-standalone .student-info {
    flex-grow: 1;
}

#success-stories-standalone .grid-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
}

#success-stories-standalone .subtitle {
    font-size: 13px;
    color: var(--color-primary-new);
    font-weight: 600;
}

#success-stories-standalone .qoute-icon {
    font-size: 24px;
    color: #e6e6e6;
    margin-right: auto;
}

#success-stories-standalone .testimonial-grid:hover .qoute-icon {
    color: var(--color-primary-new);
}

#success-stories-standalone .content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

#success-stories-standalone .content p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-body-new);
    margin-bottom: 20px;
    flex-grow: 1;
}

#success-stories-standalone .read-story-link {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--color-heading-new);
    margin-top: auto;
    transition: 0.3s;
}

#success-stories-standalone .read-story-link i {
    margin-right: 5px;
    font-size: 12px;
    color: var(--color-primary-new);
    transition: 0.3s;
}

#success-stories-standalone .read-story-link:hover {
    color: var(--color-primary-new);
}

#success-stories-standalone .read-story-link:hover i {
    margin-right: 8px;
}

#success-stories-standalone .swiper-testimonial-slider-wrapper {
    padding: 20px 10px 50px 10px;
    perspective: 1000px;
}

#success-stories-standalone .swiper-slide {
    width: 335px !important;
    height: 450px !important;
    transition: all 0.4s ease;
    opacity: 0.4;
}

#success-stories-standalone .swiper-slide-active {
    opacity: 1 !important;
    z-index: 10;
}

#success-stories-standalone .swiper-pagination {
    bottom: 15px !important;
    position: absolute;
    width: 100%;
    text-align: center;
}

#success-stories-standalone .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #d0d0d0;
    opacity: 1;
    margin: 0 6px !important;
}

#success-stories-standalone .swiper-pagination-bullet-active {
    background: var(--brand-purple);
    width: 30px;
    border-radius: 10px;
}

/* =========================================
           8. NEW SECTIONS: CTA & FOOTER
           ========================================= */
/* Services / CTA Section - FLOATING BOX STYLE */
.edu-cta-area {
    /* Split background: Top matches previous section, Bottom matches footer */
    background: linear-gradient(to bottom, #f9f9f9 50%, var(--brand-navy) 50%);
    padding: 80px 0;
    position: relative;
    z-index: 10;
}

.cta-main-box {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 31, 85, 0.15);
    padding: 0;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    /* Animation entry */
    animation: floatUp 1s ease-out;
}

@keyframes floatUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-single-item {
    flex: 1;
    padding: 50px 30px;
    text-align: center;
    border-left: 1px solid rgba(0, 0, 0, 0.05); /* Divider */
    position: relative;
    transition: all 0.4s ease;
}

.cta-single-item:last-child {
    border-left: none;
}

/* Hover Effect for individual sections */
.cta-single-item:hover {
    background: #f8f9fc;
}

.cta-single-item:hover .cta-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--brand-purple);
    color: #fff;
    box-shadow: 0 10px 20px rgba(73, 4, 220, 0.3);
}

/* Icon Styling */
.cta-icon {
    width: 80px;
    height: 80px;
    background: rgba(73, 4, 220, 0.08); /* Light purple bg */
    color: var(--brand-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cta-content h4 {
    font-size: 20px;
    font-weight: 800;
    color: var(--brand-navy);
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 14px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 25px;
    padding: 0 10px;
}

/* Button Styling */
.cta-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    color: var(--brand-purple);
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid rgba(73, 4, 220, 0.2);
    padding: 10px 25px;
    border-radius: 12px; /* Changed to match theme */
}

.cta-action-btn:hover {
    background: var(--brand-purple);
    color: #fff;
    transform: translateY(-2px);
}

.cta-action-btn i {
    transition: transform 0.3s ease;
}

.cta-action-btn:hover i {
    transform: rotate(45deg);
}

/* Footer Section */
.edu-footer-area {
    background-color: var(--brand-navy);
    color: #fff;
    padding-top: 80px;
    font-size: 14px;
}

.footer-top {
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widget h5 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--brand-purple);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.7);
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links li a:hover {
    color: #fff;
    padding-right: 5px;
}

.footer-links li a::before {
    content: '\f104';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 10px;
    opacity: 0.5;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 20px;
}

/* Updated Footer Social Icons - Matching Header Tool Buttons */
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    margin-bottom: 25px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.footer-social a:hover {
    background: #ffffff;
    color: var(--brand-navy);
    border-color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.payment-logos {
    display: flex;
    gap: 8px; /* Reduced gap */
    flex-wrap: wrap;
    align-items: center;
}

.payment-logos img {
    height: 26px; /* Reduced height */
    width: auto;
    background: #fff;
    padding: 3px 5px;
    border-radius: 5px;
    object-fit: contain;
}

.copyright-area {
    padding: 25px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

@media (max-width: 992px) {
    .cta-main-box {
        flex-direction: column;
    }

    .cta-single-item {
        border-left: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .cta-single-item:last-child {
        border-bottom: none;
    }

    .footer-widget {
        margin-bottom: 40px;
    }

    /* Reset footer columns on mobile */
    .col-footer-main, .col-footer-link {
        flex: 0 0 100%;
        max-width: 100%;
    }
}


/* ==========================================================================
   B. NEWS LIST (news_list.html)
   ========================================================================== */
/* =========================================
           1. CORE STYLES (SHARED)
           ========================================= */
:root {
    --brand-navy: #001f55;
    --brand-navy-light: #1a3668;
    --brand-purple: #4904dc;

    /* Updated to match Success_Story_list.html exactly */
    --bg-light: #f8f9fc;

    --text-white: #ffffff;
    --color-heading: var(--brand-navy);
    --primary-purple: var(--brand-purple);

    --container-width: 1200px;
    --transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-card: 0 10px 30px rgba(0, 31, 85, 0.08);
    --shadow-float: 0 20px 60px rgba(0, 31, 85, 0.15);
    --radius-md: 16px;
    --radius-lg: 24px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: var(--bg-light);
    color: var(--brand-navy);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    position: relative; /* Context for absolute positioning */
}

/* =========================================
           2. HEADER (MATCHING OTHER PAGES)
           ========================================= */
header {
    background: var(--brand-navy);
    padding: 15px 0;
    box-shadow: 0 5px 25px rgba(0, 31, 85, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

header.sticky {
    background: rgba(0, 31, 85, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    width: 146px;
    height: 50px;
    object-fit: contain;
}

nav ul {
    display: flex;
    gap: 25px;
    align-items: center;
}

nav ul li a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 600;
    padding: 5px 0;
    transition: var(--transition);
}

nav ul li a:hover, nav ul li a.active {
    color: #fff;
    border-bottom: 2px solid var(--brand-purple);
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tool-btn {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: transparent;
    transition: var(--transition);
}

.tool-btn:hover {
    background: #fff;
    color: var(--brand-navy);
    transform: scale(1.05);
}

.login-btn {
    background: #fff;
    color: var(--brand-navy);
    padding: 0 20px;
    height: 38px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* =========================================
           3. PAGE HERO (LIGHT VERSION WITH DEPTH)
           ========================================= */
.page-header {
    /* Updated Gradient to match Success_Story_list.html */
    background: linear-gradient(to bottom, #f8f9fc, #ffffff);

    /* Updated Padding to match Success_Story_list.html (130px bottom) */
    padding: 80px 0 130px;

    position: relative;
    color: var(--brand-navy); /* Dark Text */
    overflow: hidden;
    border-bottom: none;
}

/* Subtle background decorations for light mode */
.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle, rgba(73, 4, 220, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 200px;
    background: none; /* was a broken external demo asset (SSL error) */
    opacity: 0.4;
    pointer-events: none;
    filter: invert(0.8); /* Adjust shape color for light bg */
}

.breadcrumb {
    display: flex;
    gap: 10px;
    font-size: 14px;
    color: #888;
    font-weight: 500;
    margin-bottom: 20px;
}

.breadcrumb i {
    font-size: 10px;
    align-self: center;
    opacity: 0.5;
}

.breadcrumb a:hover {
    color: var(--brand-purple);
}

.page-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--brand-navy);
    margin-bottom: 10px;
}

.page-subtitle {
    color: #666;
    font-size: 16px;
    margin-top: 5px;
    max-width: 600px;
    line-height: 1.6;
}

/* Filter Tabs - Light Theme Style */
.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    background: #fff;
    border: 1px solid #e0e0e0;
    color: var(--brand-navy);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 31, 85, 0.05);
    border-color: var(--brand-navy);
}

.filter-btn.active {
    background: var(--brand-navy);
    color: #fff;
    border-color: var(--brand-navy);
    box-shadow: 0 5px 15px rgba(0, 31, 85, 0.15);
}

.search-box {
    position: relative;
    margin-right: auto;
}

.search-input {
    padding: 12px 45px 12px 20px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: var(--brand-navy);
    width: 250px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
}

.search-input::placeholder {
    color: #aaa;
}

.search-input:focus {
    border-color: var(--brand-purple);
    width: 280px;
    box-shadow: 0 0 0 3px rgba(73, 4, 220, 0.05);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

/* =========================================
           4. FEATURED NEWS (OVERLAPPING / INTEGRATED)
           ========================================= */
.featured-section-container {
    /* REDUCED OVERLAP: Kept at -70px as compromise, or adjust to -50px if needs strict match */
    margin-top: -70px;
    margin-bottom: 60px;
    position: relative;
    z-index: 10; /* Ensures it sits on top */
}

.featured-news-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-float); /* Stronger shadow for depth */
    height: 500px;
    background: #000; /* Fallback */
    border: 4px solid #fff; /* Crisp border to separate from header */
}

.featured-news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0.9;
}

.featured-news-wrapper:hover .featured-news-img {
    transform: scale(1.03);
    opacity: 0.8;
}

/* Gradient Overlay */
.featured-news-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 31, 85, 0.95) 10%, rgba(0, 31, 85, 0.4) 50%, transparent 100%);
    pointer-events: none;
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 50px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    z-index: 2;
}

.featured-badge {
    background: var(--brand-purple);
    color: #fff;
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(73, 4, 220, 0.4);
}

.featured-badge i {
    font-size: 10px;
}

.featured-title {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.25;
    max-width: 900px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.featured-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin-bottom: 30px;
    line-height: 1.6;
    font-weight: 400;
}

.btn-read-feat {
    background: #fff;
    color: var(--brand-navy);
    padding: 14px 35px;
    border-radius: 14px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-read-feat:hover {
    transform: translateY(-3px);
    background: var(--brand-purple);
    color: #fff;
    box-shadow: 0 15px 30px rgba(73, 4, 220, 0.3);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}

.page-link {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--brand-navy);
    cursor: pointer;
    transition: 0.3s;
}

.page-link:hover, .page-link.active {
    background: var(--brand-navy);
    color: #fff;
    border-color: var(--brand-navy);
    transform: scale(1.05);
}

/* =========================================
           6. FOOTER STYLES (IMPORTED & UNIFIED)
           ========================================= */
.edu-footer-area {
    background-color: var(--brand-navy);
    color: #fff;
    padding-top: 80px;
    font-size: 14px;
    margin-top: auto;
}

.footer-top {
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer Grid System - Single Row Layout */
.footer-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    justify-content: space-between;
}

.col-footer-main {
    flex: 0 0 35%;
    max-width: 35%;
    padding: 0 15px;
}

.col-footer-link {
    flex: 0 0 20%;
    max-width: 20%;
    padding: 0 15px;
}

.footer-widget h5 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--brand-purple);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.footer-links li a:hover {
    color: #fff;
    padding-right: 5px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    margin-bottom: 25px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: #fff;
    color: var(--brand-navy);
    transform: scale(1.05);
}

.payment-logos {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.payment-logos img {
    height: 26px;
    width: auto;
    background: #fff;
    padding: 3px 5px;
    border-radius: 5px;
}

.copyright-area {
    padding: 25px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

@media (max-width: 992px) {
    .page-header {
        padding-bottom: 80px;
    }

    /* Adjusted */
    .featured-section-container {
        margin-top: -40px;
    }

    /* Adjusted */
    .featured-title {
        font-size: 28px;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .col-footer-main, .col-footer-link {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 30px;
    }
}

@media (max-width: 600px) {
    .page-header {
        padding-bottom: 60px;
    }

    /* Adjusted */
    .featured-section-container {
        margin-top: -30px;
    }

    /* Adjusted */
    .featured-news-wrapper {
        height: 400px;
        border-width: 2px;
    }

    .featured-content {
        padding: 30px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .filter-tabs {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 10px;
        flex-wrap: nowrap;
    }

    .search-box {
        width: 100%;
        margin-top: 15px;
    }

    .search-input {
        width: 100%;
    }
}

/* ==========================================================================
   C. NEWS DETAILS (news_details.html)
   ========================================================================== */
/* =========================================
           1. CORE STYLES (UNIFIED WITH SUCCESS STORIES)
           ========================================= */
:root {
    --brand-navy: #001f55;
    --brand-navy-light: #1a3668;
    --brand-purple: #4904dc;
    --primary-purple: var(--brand-purple);
    --color-heading: var(--brand-navy);
    --color-body: #555;
    --transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --container-width: 1200px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow-sm: 0 10px 30px rgba(0, 31, 85, 0.05);
    --shadow-md: 0 15px 45px rgba(0, 31, 85, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: #f8f9fc; /* Unified Background */
    color: var(--color-heading);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* =========================================
           2. HEADER (STICKY & MODERN)
           ========================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0, 31, 85, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    width: 140px;
    height: 48px;
    object-fit: contain;
}

nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav ul li a {
    color: var(--brand-navy);
    font-size: 15px;
    font-weight: 700;
    transition: var(--transition);
}

nav ul li a:hover, nav ul li a.active {
    color: var(--brand-purple);
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tool-btn {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(0, 31, 85, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-navy);
    background: transparent;
    cursor: pointer;
    transition: 0.3s;
}

.tool-btn:hover {
    background: var(--brand-navy);
    color: #fff;
    transform: translateY(-2px);
}

.login-btn {
    background: var(--brand-navy);
    color: #fff;
    padding: 0 22px;
    height: 38px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    transition: 0.3s;
}

.login-btn:hover {
    background: var(--brand-purple);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(73, 4, 220, 0.2);
}

/* =========================================
           3. PAGE HEADER (MATCHING SUCCESS STORY HERO)
           ========================================= */
.page-intro {
    background: linear-gradient(to bottom, #f8f9fc, #ffffff); /* Unified Gradient */
    padding: 160px 0 100px;
    text-align: right;
    position: relative;
}

.breadcrumb {
    display: flex;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 15px;
    color: #666;
    font-weight: 500;
}

.breadcrumb a:hover {
    color: var(--brand-purple);
}

.breadcrumb i {
    font-size: 10px;
    align-self: center;
    opacity: 0.5;
}

.cat-tag-container {
    margin-bottom: 20px;
}

.cat-tag {
    background: rgba(73, 4, 220, 0.1);
    color: var(--brand-purple);
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    display: inline-block;
}

.main-news-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--brand-navy);
    line-height: 1.3;
    max-width: 900px;
}

/* =========================================
           4. MAIN CONTENT AREA (OVERLAPPING HERO)
           ========================================= */
.content-section {
    margin-top: -60px;
    padding-bottom: 80px;
    position: relative;
    z-index: 10;
}

.layout-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
}

/* Article Styling */
.article-main-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 50px;
    box-shadow: var(--shadow-md);
}

.article-meta-bar {
    display: flex;
    gap: 25px;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #777;
}

.article-meta-bar span i {
    color: var(--brand-purple);
    margin-left: 8px;
}

.featured-img-wrapper {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 20px 40px rgba(0, 31, 85, 0.1);
}

.featured-img-wrapper img {
    width: 100%;
    display: block;
    transition: 0.6s;
}

.featured-img-wrapper:hover img {
    transform: scale(1.03);
}

.article-text {
    font-size: 18px;
    color: #444;
    text-align: justify;
}

.article-text p {
    margin-bottom: 25px;
}

.article-text h2 {
    color: var(--brand-navy);
    font-weight: 800;
    margin: 45px 0 20px;
    font-size: 28px;
}

.styled-quote {
    background: #f8f9fc;
    border-right: 6px solid var(--brand-purple);
    padding: 35px;
    border-radius: 12px;
    margin: 40px 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--brand-navy);
    position: relative;
    overflow: hidden;
    font-style: italic;
}

/* Tags & Share */
.article-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tags-group {
    display: flex;
    gap: 10px;
}

.tag-item {
    background: #f4f7fa;
    color: var(--brand-navy);
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 10px;
    transition: 0.3s;
}

.tag-item:hover {
    background: var(--brand-purple);
    color: #fff;
}

.share-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-label {
    font-weight: 800;
    font-size: 14px;
    color: var(--brand-navy);
}

.share-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    transition: 0.3s;
}

.share-icon.x {
    background: #000;
}

.share-icon.in {
    background: #0077b5;
}

.share-icon.wa {
    background: #25D366;
}

.share-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* =========================================
           5. SIDEBAR STYLING
           ========================================= */
.sidebar-item {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.sidebar-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--brand-navy);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-title::after {
    content: '';
    flex-grow: 1;
    height: 2px;
    background: #f0f0f0;
    border-radius: 2px;
}

.sidebar-title::before {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--brand-purple);
    border-radius: 3px;
}

/* Related Cards */
.related-card {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    transition: 0.3s;
    padding: 10px;
    border-radius: 12px;
}

.related-card:hover {
    background: #f8f9fc;
}

.related-img {
    width: 85px;
    height: 85px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.related-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--brand-navy);
    line-height: 1.4;
    margin-bottom: 5px;
}

.related-card:hover h4 {
    color: var(--brand-purple);
}

.related-date {
    font-size: 12px;
    color: #999;
    display: block;
}

/* Most Read */
.most-read-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.rank-number {
    font-size: 24px;
    font-weight: 900;
    color: rgba(73, 4, 220, 0.1);
    line-height: 1;
    transition: 0.3s;
}

.most-read-item:hover .rank-number {
    color: var(--brand-purple);
    opacity: 0.3;
}

.most-read-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: #444;
    line-height: 1.5;
}

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-light) 100%);
    color: #fff;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.news-input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: none;
    outline: none;
    margin-bottom: 15px;
    font-family: inherit;
    font-size: 14px;
}

.news-btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: var(--brand-purple);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.news-btn:hover {
    background: #fff;
    color: var(--brand-navy);
    transform: scale(1.02);
}

/* View All Button */
.btn-view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(0, 31, 85, 0.1);
    border-radius: 12px;
    color: var(--brand-navy);
    font-weight: 800;
    margin-top: 10px;
    transition: 0.3s;
    background: #fff;
}

.btn-view-all:hover {
    background: var(--brand-navy);
    color: #fff;
    border-color: var(--brand-navy);
}

.btn-view-all i {
    transition: transform 0.3s;
}

.btn-view-all:hover i {
    transform: rotate(45deg);
}

/* =========================================
           6. FOOTER STYLES (UNIFIED)
           ========================================= */
.edu-footer-area {
    background-color: var(--brand-navy);
    color: #fff;
    padding-top: 80px;
    font-size: 14px;
    margin-top: auto;
}

.footer-top {
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    justify-content: space-between;
}

.col-footer-main {
    flex: 0 0 35%;
    max-width: 35%;
    padding: 0 15px;
}

.col-footer-link {
    flex: 0 0 20%;
    max-width: 20%;
    padding: 0 15px;
}

.footer-widget h5 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--brand-purple);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links li a:hover {
    color: #fff;
    padding-right: 5px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin: 25px 0;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: 0.3s;
}

.footer-social a:hover {
    background: #fff;
    color: var(--brand-navy);
}

.payment-logos {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.payment-logos img {
    height: 26px;
    width: auto;
    background: #fff;
    padding: 3px 5px;
    border-radius: 5px;
}

.copyright-area {
    padding: 25px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

@media (max-width: 992px) {
    .col-footer-main, .col-footer-link {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 40px;
    }

    .layout-grid {
        grid-template-columns: 1fr;
    }

    .main-news-title {
        font-size: 32px;
    }
}

/* ==========================================================================
   D. SUCCESS STORIES — LIST (Success_Story_list.html)
   ========================================================================== */
/* =========================================
           1. CORE STYLES
           ========================================= */
:root {
    --brand-navy: #001f55;
    --brand-navy-light: #1a3668;
    --brand-purple: #4904dc;

    --bg-light: #f8f9fc;
    --text-white: #ffffff;
    --text-body: #555;
    --color-heading: var(--brand-navy);
    --primary-purple: var(--brand-purple);

    --container-width: 1200px;
    --transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: var(--bg-light);
    color: var(--brand-navy);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container-custom {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    position: relative;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* =========================================
           2. HEADER STYLES
           ========================================= */
header {
    background: var(--brand-navy);
    padding: 15px 0;
    box-shadow: 0 5px 25px rgba(0, 31, 85, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

header.sticky {
    background: rgba(0, 31, 85, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    border-bottom: none;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    width: 146px;
    height: 50px;
    object-fit: contain;
    transition: var(--transition);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

nav ul li {
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 0;
    transition: var(--transition);
}

nav ul li a.active {
    color: #fff;
    position: relative;
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-purple);
    border-radius: 2px;
    transition: var(--transition);
}

nav ul li a:hover {
    color: #fff;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tool-btn {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.tool-btn:hover {
    background: #ffffff;
    color: var(--brand-navy);
    border-color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.login-btn {
    background: #fff;
    color: var(--brand-navy);
    padding: 0 20px;
    height: 38px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    margin-left: 10px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.login-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.4);
}

/* =========================================
           3. PAGE HERO SECTION
           ========================================= */
.page-hero {
    /* Updated Background Gradient for Contrast */
    background: linear-gradient(to bottom, #f8f9fc, #ffffff);

    /* Reduced bottom padding to match the reduced negative margin (180px -> 130px) */
    padding: 80px 0 130px;
    text-align: right;
    position: relative;
    overflow: hidden;
    color: var(--brand-navy);
    z-index: 1;
}

.hero-shape {
    position: absolute;
    opacity: 0.1;
    pointer-events: none;
}

.shape-1 {
    top: -20px;
    left: -20px;
    width: 150px;
}

.shape-2 {
    bottom: 20px;
    right: -30px;
    width: 200px;
}

.hero-breadcrumb {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-breadcrumb i {
    font-size: 10px;
    color: #ccc;
}

.hero-breadcrumb a:hover {
    color: var(--brand-purple);
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--brand-navy);
    margin-bottom: 15px;
}

.hero-desc {
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 0;
    line-height: 1.6;
}

/* =========================================
           4. FILTER BAR
           ========================================= */
.filter-section {
    padding: 0;
    background: transparent;
}

.filter-container {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 40px;
    align-items: center;
}

.filter-btn {
    padding: 10px 25px;
    background: transparent;
    border: 1px solid rgba(0, 31, 85, 0.15);
    border-radius: 12px;
    color: var(--brand-navy);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--brand-navy);
    color: #fff;
    border-color: var(--brand-navy);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 31, 85, 0.15);
}

.filter-btn i {
    font-size: 12px;
}

.year-select-wrapper {
    position: relative;
    margin-right: 15px;
    padding-right: 15px;
    border-right: 2px solid rgba(0, 0, 0, 0.1);
}

.year-select {
    padding: 10px 35px 10px 20px;
    border-radius: 12px;
    border: 1px solid rgba(0, 31, 85, 0.15);
    background: transparent;
    color: var(--brand-navy);
    font-weight: 700;
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    min-width: 120px;
    transition: 0.3s;
}

.year-select:focus {
    outline: none;
    border-color: var(--brand-purple);
    box-shadow: 0 0 0 3px rgba(73, 4, 220, 0.1);
}

.year-select:hover {
    transform: scale(1.02);
    border-color: var(--brand-navy);
}

.select-arrow {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand-purple);
    pointer-events: none;
    font-size: 12px;
}

/* =========================================
           5. STORIES GRID (Overlap Effect)
           ========================================= */
.stories-grid-area {
    /* Reduced overlap from -100px to -50px */
    margin-top: -50px;
    padding-bottom: 100px;
    position: relative;
    z-index: 2; /* Ensures it sits on top of the hero padding */
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.story-card-modern {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
    /* Enhanced shadow for depth perception against light bg */
    box-shadow: 0 20px 40px rgba(0, 31, 85, 0.08);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
}

.story-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 31, 85, 0.15);
    border-color: rgba(73, 4, 220, 0.1);
}

.card-img-wrapper {
    height: 240px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.story-card-modern:hover .card-img-wrapper img {
    transform: scale(1.1);
}

.card-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 31, 85, 0.7), transparent 60%);
    opacity: 0.6;
}

.card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 13px;
}

.category-badge {
    color: var(--brand-purple);
    background: rgba(73, 4, 220, 0.08);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
}

.year-text {
    color: #888;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--brand-navy);
    margin-bottom: 12px;
    line-height: 1.4;
    transition: 0.3s;
}

.story-card-modern:hover .card-title {
    color: var(--brand-purple);
}

.card-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.card-footer-action {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.btn-read-story {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    color: var(--brand-navy);
    transition: 0.3s;
}

.btn-read-story i {
    color: var(--brand-purple);
    transition: 0.3s;
}

.story-card-modern:hover .btn-read-story {
    color: var(--brand-purple);
}

.story-card-modern:hover .btn-read-story i {
    transform: translateX(-5px);
}

/* Pagination */
.pagination-area {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.page-num {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background: #fff;
    color: var(--brand-navy);
    border: 1px solid #eee;
    cursor: pointer;
    transition: 0.3s;
}

.page-num:hover, .page-num.active {
    background: var(--brand-navy);
    color: #fff;
    border-color: var(--brand-navy);
    transform: scale(1.05);
}

/* =========================================
           6. FOOTER STYLES
           ========================================= */
.edu-footer-area {
    background-color: var(--brand-navy);
    color: #fff;
    padding-top: 80px;
    font-size: 14px;
    margin-top: auto;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    justify-content: space-between;
}

.col-footer-main {
    flex: 0 0 35%;
    max-width: 35%;
    padding: 0 15px;
}

.col-footer-link {
    flex: 0 0 20%;
    max-width: 20%;
    padding: 0 15px;
}

.footer-top {
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widget h5 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--brand-purple);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.7);
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links li a:hover {
    color: #fff;
    padding-right: 5px;
}

.footer-links li a::before {
    content: '\f104';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 10px;
    opacity: 0.5;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    margin-bottom: 25px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: transparent;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: #ffffff;
    color: var(--brand-navy);
    border-color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.payment-logos {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.payment-logos img {
    height: 26px;
    width: auto;
    background: #fff;
    padding: 3px 5px;
    border-radius: 5px;
    object-fit: contain;
}

.copyright-area {
    padding: 25px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

@media (max-width: 992px) {
    .page-hero {
        padding-bottom: 80px;
        text-align: center;
    }

    /* Remove overlap on tablet/mobile for simpler layout */
    .stories-grid-area {
        margin-top: 0;
    }

    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .col-footer-main, .col-footer-link {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 30px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-breadcrumb, .filter-container {
        justify-content: center;
    }

    .year-select-wrapper {
        border-right: none;
        margin-right: 0;
        padding-right: 0;
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .year-select {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .stories-grid {
        grid-template-columns: 1fr;
    }

    .filter-container {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
}


/* ==========================================================================
   E. SUCCESS STORIES — PAGE (Success_Story_Page.html)
   ========================================================================== */
/* =========================================
           1. CORE STYLES (IMPORTED FROM HOME)
           ========================================= */
:root {
    --brand-navy: #001f55;
    --brand-navy-light: #1a3668;
    --brand-purple: #4904dc;

    --bg-dark: var(--brand-navy);
    --bg-mid: #0b2a6b;
    --bg-light: #16367a;

    --primary-purple: var(--brand-purple);
    --accent-blue: #2575fc;
    --text-white: #ffffff;

    --glass-bg: rgba(0, 31, 85, 0.4);

    --container-width: 1200px;

    --color-heading: var(--brand-navy);
    --color-body: #555;

    --shadow-dark: 0 10px 30px rgba(0, 31, 85, 0.15);
    --transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: #f8f9fc;
    color: var(--color-heading);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container-custom {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    position: relative;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Footer Grid System */
.footer-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    justify-content: space-between;
}

.col-footer-main {
    flex: 0 0 35%;
    max-width: 35%;
    padding: 0 15px;
}

.col-footer-link {
    flex: 0 0 20%;
    max-width: 20%;
    padding: 0 15px;
}

/* =========================================
           2. HEADER STYLES (Dark Version for Internal Page)
           ========================================= */
header {
    position: relative; /* Changed from absolute for internal page readability or keep absolute with hero */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--brand-navy); /* Solid background for this page */
    padding: 15px 0;
    box-shadow: 0 5px 25px rgba(0, 31, 85, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    width: 146px;
    height: 50px;
    object-fit: contain;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 0;
    transition: var(--transition);
}

nav ul li a:hover, nav ul li a.active {
    color: #fff;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tool-btn {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    background: transparent;
    transition: all 0.3s;
}

.tool-btn:hover {
    background: #ffffff;
    color: var(--brand-navy);
    transform: scale(1.05);
}

.login-btn {
    background: #fff;
    color: var(--brand-navy);
    padding: 0 20px;
    height: 38px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.4);
}

/* =========================================
           3. STORY HERO SECTION
           ========================================= */
.story-hero {
    padding: 80px 0 120px;
    background: linear-gradient(to bottom, #f8f9fc, #ffffff);
    position: relative;
    overflow: hidden;
}

/* REMOVED .story-hero::before gradient blob here */

.story-header-content {
    display: flex;
    align-items: flex-start;
    gap: 50px;
    position: relative;
    z-index: 2;
}

.story-hero-text {
    flex: 1;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    font-weight: 500;
}

.breadcrumb i {
    font-size: 12px;
    color: #ccc;
}

.breadcrumb a:hover {
    color: var(--brand-purple);
}

.story-cat-badge {
    display: inline-block;
    background: rgba(73, 4, 220, 0.1);
    color: var(--brand-purple);
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 15px;
}

.story-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--brand-navy);
    margin-bottom: 20px;
}

.story-subtitle {
    font-size: 20px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: 500;
}

.story-meta-row {
    display: flex;
    align-items: center;
    gap: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-text h6 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: var(--brand-navy);
}

.author-text span {
    font-size: 13px;
    color: #777;
}

.meta-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

.meta-date i {
    color: var(--brand-purple);
}

/* Hero Image - Updated Animation */
.story-hero-img-wrapper {
    flex: 0 0 45%;
    max-width: 45%;
    position: relative;
}

@keyframes subtleFloat {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}

.main-story-img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0, 31, 85, 0.15);
    /* Removed rotation, added creative float animation */
    animation: subtleFloat 6s ease-in-out infinite;
    border: 5px solid rgba(255, 255, 255, 0.8);
    transition: all 0.5s ease;
    position: relative;
    z-index: 1;
}

.main-story-img:hover {
    box-shadow: 0 30px 70px rgba(73, 4, 220, 0.25);
    border-color: #fff;
    transform: scale(1.02); /* Subtle scale on hover */
}

.award-float {
    position: absolute;
    bottom: 30px;
    right: -20px;
    background: #fff;
    padding: 15px 25px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: floatY 4s ease-in-out infinite; /* Slightly different timing */
    animation-delay: 1s; /* Delay to unsync from main image */
    z-index: 2;
}

@keyframes floatY {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.award-icon {
    width: 45px;
    height: 45px;
    background: #FFD700;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.award-text h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--brand-navy);
}

.award-text span {
    font-size: 12px;
    color: #666;
}

/* =========================================
           4. CONTENT BODY
           ========================================= */
.story-body-section {
    padding: 0 0 80px;
    margin-top: -60px; /* Overlap hero */
    position: relative;
    z-index: 5;
}

.content-container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 60px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    position: relative;
}

.story-content p {
    font-size: 18px;
    line-height: 1.9;
    color: #444;
    margin-bottom: 25px;
    text-align: justify;
}

.highlight-quote {
    border-right: 4px solid var(--brand-purple);
    background: #f9f9fc;
    padding: 30px;
    border-radius: 12px 0 0 12px;
    margin: 40px 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--brand-navy);
    line-height: 1.6;
    font-style: italic;
}

.highlight-quote i {
    color: var(--brand-purple);
    font-size: 24px;
    margin-left: 10px;
    opacity: 0.5;
}

.content-img-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
}

.content-img-grid img {
    width: 100%;
    border-radius: 12px;
    height: 250px;
    object-fit: cover;
    transition: 0.3s;
}

.content-img-grid img:hover {
    transform: scale(1.03);
}

/* Share Section */
.share-area {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.share-title {
    font-weight: 700;
    color: var(--brand-navy);
    font-size: 16px;
}

.social-share-btns {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    transition: 0.3s;
}

.share-btn.twitter {
    background: #000;
}

/* X Corp */
.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.copy {
    background: #555;
    cursor: pointer;
    position: relative;
}

.share-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* =========================================
           5. RELATED STORIES (BOTTOM SECTION)
           ========================================= */
.related-stories-area {
    background: #f4f7fa;
    padding: 100px 0;
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.related-title h3 {
    font-size: 32px;
    font-weight: 800;
    color: var(--brand-navy);
    margin-bottom: 10px;
}

.related-title p {
    color: #666;
    font-size: 16px;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    border: 1px solid rgba(0, 31, 85, 0.1);
    border-radius: 12px;
    color: var(--brand-navy);
    font-weight: 700;
    transition: 0.3s;
}

.btn-view-all:hover {
    background: var(--brand-navy);
    color: #fff;
}

.btn-view-all:hover i {
    transform: rotate(45deg);
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.story-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: 0.4s;
    display: flex;
    flex-direction: column;
    position: relative;
}

.story-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 31, 85, 0.1);
}

.card-thumb {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s;
}

.story-card:hover .card-thumb img {
    transform: scale(1.1);
}

.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-purple);
}

.card-details {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-details h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 15px;
    line-height: 1.4;
}

.card-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-navy);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    transition: 0.3s;
}

.card-link i {
    color: var(--brand-purple);
    transition: 0.3s;
}

.card-link:hover {
    color: var(--brand-purple);
}

.card-link:hover i {
    margin-right: 5px;
}

/* Responsive */
@media (max-width: 992px) {
    .story-header-content {
        flex-direction: column-reverse;
    }

    .story-hero-img-wrapper {
        max-width: 100%;
        width: 100%;
    }

    .content-container {
        padding: 30px;
        width: 90%;
    }

    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-img-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .stories-grid {
        grid-template-columns: 1fr;
    }

    .story-title {
        font-size: 32px;
    }
}

/* =========================================
           6. FOOTER STYLES (IMPORTED)
           ========================================= */
.edu-footer-area {
    background-color: var(--brand-navy);
    color: #fff;
    padding-top: 80px;
    font-size: 14px;
    margin-top: auto;
}

.footer-top {
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widget h5 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--brand-purple);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.footer-links li a:hover {
    color: #fff;
    padding-right: 5px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    margin-bottom: 25px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: #fff;
    color: var(--brand-navy);
    transform: scale(1.05);
}

.payment-logos {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.payment-logos img {
    height: 26px;
    width: auto;
    background: #fff;
    padding: 3px 5px;
    border-radius: 5px;
}

.copyright-area {
    padding: 25px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}


/* ==========================================================================
   F. SHARED HELPERS (originally inline in show pages)
   ========================================================================== */
.page-content img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   HEADER EXTENSIONS — Academy 32 themed
   (Search panel, Mobile menu, Favorites/Cart badges, User avatar)
   ========================================================================== */

/* ---------- Tool button badge (favorites, cart) ---------- */
.tool-btn--badge {
    position: relative;
}

.tool-btn__badge {
    position: absolute;
    top: -6px;
    inset-inline-start: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--brand-purple);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(73, 4, 220, 0.4);
    border: 2px solid var(--brand-navy);
    transition: var(--transition);
}

header.sticky .tool-btn__badge {
    border-color: #fff;
}

/* ---------- User avatar dropdown ---------- */
.user-dropdown {
    position: relative;
}

.user-avatar {
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: transparent;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    cursor: pointer;
}

.user-avatar::after {
    display: none;
}

.user-avatar:hover {
    background: #fff;
    border-color: #fff;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.user-avatar .user-photo {
    display: block;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 11px;
}

.user-avatar .notification-dot {
    position: absolute;
    top: 2px;
    inset-inline-end: 2px;
    width: 9px;
    height: 9px;
    background: #ff3b5c;
    border: 2px solid var(--brand-navy);
    border-radius: 50%;
}

header.sticky .user-avatar {
    border-color: rgba(0, 31, 85, 0.1);
}

header.sticky .user-avatar .notification-dot {
    border-color: #fff;
}

.user-dropdown .dropdown-menu {
    background: #fff;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 10px 35px rgba(0, 31, 85, 0.18);
    padding: 8px;
    margin-top: 12px;
    min-width: 220px;
}

.user-dropdown .dropdown-menu .dropdown-item {
    color: var(--color-heading);
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 10px;
    transition: var(--transition);
}

.user-dropdown .dropdown-menu .dropdown-item:hover {
    background: rgba(73, 4, 220, 0.08);
    color: var(--brand-purple);
}

/* ---------- Search dropdown panel ---------- */
.header-search-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 31, 85, 0.15);
    padding: 20px 0;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 999;
}

.header-search-panel.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.header-search-form {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f4f7fa;
    border: 1px solid rgba(0, 31, 85, 0.08);
    border-radius: 14px;
    padding: 6px 6px 6px 18px;
    transition: var(--transition);
}

.header-search-form:focus-within {
    border-color: var(--brand-purple);
    box-shadow: 0 0 0 3px rgba(73, 4, 220, 0.15);
}

.header-search-form__icon {
    color: var(--brand-navy);
    font-size: 16px;
    opacity: 0.6;
}

.header-search-form input[type="search"] {
    flex: 1;
    border: 0;
    background: transparent;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-heading);
    padding: 12px 0;
    outline: none;
}

.header-search-form input[type="search"]::placeholder {
    color: #8a98ad;
}

.header-search-form__submit {
    background: var(--brand-navy);
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 10px 22px;
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
    cursor: pointer;
}

.header-search-form__submit:hover {
    background: var(--brand-purple);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(73, 4, 220, 0.35);
}

/* ---------- Mobile hamburger toggle ---------- */
.tool-btn.mobile-toggle {
    flex-direction: column;
    gap: 4px;
    margin-inline-end: 10px;
}

.tool-btn.mobile-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: var(--transition);
}

.tool-btn.mobile-toggle.is-active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.tool-btn.mobile-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.tool-btn.mobile-toggle.is-active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Mobile menu panel ---------- */
.mobile-menu-panel {
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    width: 85%;
    max-width: 340px;
    height: 100vh;
    background: var(--brand-navy);
    z-index: 1100;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow-y: auto;
    padding: 90px 0 30px;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.25);
}

[dir="rtl"] .mobile-menu-panel {
    transform: translateX(100%);
}

[dir="ltr"] .mobile-menu-panel {
    transform: translateX(-100%);
}

.mobile-menu-panel.is-open {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 18px;
    inset-inline-end: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    z-index: 2;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.18);
}

body.mobile-menu-open {
    overflow: hidden;
}

body.mobile-menu-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 31, 85, 0.5);
    z-index: 1099;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
}

.mobile-menu-list li {
    margin: 0;
}

.mobile-menu-list li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 4px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
}

.mobile-menu-list li > a:hover,
.mobile-menu-list li > a.active {
    color: #fff;
    padding-inline-start: 8px;
}

.mobile-menu-list .dropdown-menu {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    float: none !important;
    display: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0 0 8px 12px;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    width: 100%;
}

.mobile-menu-list li.dropdown.is-open > .dropdown-menu {
    display: block;
    max-height: 600px;
}

.mobile-menu-list li.dropdown > a .fa-angle-down {
    transition: transform 0.3s ease;
}

.mobile-menu-list li.dropdown.is-open > a .fa-angle-down {
    transform: rotate(180deg);
}

.mobile-menu-list .dropdown-menu .dropdown-item {
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 0;
    font-size: 14px;
    background: transparent;
}

.mobile-menu-list .dropdown-menu .dropdown-item:hover {
    color: #fff;
}

.mobile-menu-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-actions .login-btn {
    flex: 1;
    min-width: 120px;
}

/* Ghost variant of login-btn (used for register on mobile) */
.login-btn--ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: none;
}

.login-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    box-shadow: none;
    transform: translateY(-2px);
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 991.98px) {
    .header-tools {
        gap: 6px;
    }

    .logo-img {
        width: 110px;
        height: 40px;
    }
}

@media (max-width: 575.98px) {
    .login-btn {
        padding: 0 14px;
        font-size: 13px;
    }
}


/* SEARCH OVERLAY STYLES */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 31, 85, 0.95); /* Deep Navy Overlay */
    backdrop-filter: blur(15px); /* Strong Blur */
    -webkit-backdrop-filter: blur(15px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container-box {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 800px;
    text-align: center;
    padding: 20px;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transition-delay: 0.1s;
}

.search-overlay.active .search-container-box {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.search-title {
    color: #fff;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.search-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.search-form {
    position: relative;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    transition: 0.3s;
}

.search-form:focus-within {
    border-color: var(--brand-purple);
}

.search-form input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 20px 0;
    font-size: 24px;
    color: #fff;
    outline: none;
    font-weight: 700;
    font-family: inherit;
}

.search-form input::placeholder {
    color: rgba(255,255,255,0.3);
    font-weight: 400;
}

.search-form button {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--brand-purple);
    font-size: 24px;
    cursor: pointer;
    transition: 0.3s;
}

.search-form button:hover {
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.search-close {
    position: absolute;
    top: 40px;
    left: 40px;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    transition: 0.3s;
    z-index: 20;
}

.search-close:hover {
    color: var(--brand-purple);
    transform: rotate(90deg);
}

.search-tags {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.search-tags span { color: rgba(255,255,255,0.5); }

.search-tags a {
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    transition: 0.3s;
    text-decoration: none;
}

.search-tags a:hover {
    background: #fff;
    color: var(--brand-navy);
    border-color: #fff;
}

/* Decorative Shapes */
.search-decor-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: 1;
    animation: floatShape 10s infinite alternate ease-in-out;
}

.shape-1 {
    top: 10%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: var(--brand-purple);
}

.shape-2 {
    bottom: 10%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: var(--accent-blue);
    animation-delay: -5s;
}

@keyframes floatShape {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 30px); }
}
