@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Reem+Kufi:wght@500;600;700&display=swap');

/* Core Design System Tokens - Inspired by Al-Rasheed University College Logo */
:root {
    /* Logo Royal Navy Blue */
    --primary-color: #0c3468;
    --primary-hover: #12478c;
    --primary-dark: #072044;
    --primary-rgb: 12, 52, 104;

    /* Logo Center Emerald Green ("وقل رب زدني علماً") */
    --accent-green: #0e8549;
    --accent-green-light: #15a85f;
    --accent-green-bg: rgba(14, 133, 73, 0.08);
    --accent-green-rgb: 14, 133, 73;

    /* Baghdadi / Mesopotamian Heritage Gold */
    --secondary-color: #c89218;
    --gold-light: #dfa82c;
    --gold-bg: rgba(200, 146, 24, 0.1);
    --gold-rgb: 200, 146, 24;

    /* UI Dimensions */
    --topbar-height: 42px;
    --navbar-height-scrolled: 75px;
}

html,
body {
    transition: padding-top 0.4s ease;
    overflow-x: hidden;
}

/* 1. Topbar Styles (Royal Heritage Iraqi Aesthetic) */
.topbar-custom {
    background: #082142;
    border-bottom: 2px solid var(--accent-green);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: var(--topbar-height);
    overflow: hidden;
    position: relative;
    z-index: 1060;
}

.topbar-custom a, .topbar-custom span, .topbar-custom small {
    color: #e2e8f0 !important;
    font-size: 0.82rem;
    font-weight: 500;
    transition: color 0.2s ease;
    white-space: nowrap !important;
}

.topbar-custom .topbar-separator {
    color: rgba(255, 255, 255, 0.18);
    margin: 0 8px;
    font-size: 0.8rem;
    white-space: nowrap !important;
}

.topbar-custom a:hover {
    color: var(--gold-light) !important;
}

.topbar-custom .text-gold {
    color: var(--gold-light) !important;
}

.topbar-custom .text-emerald {
    color: var(--accent-green-light) !important;
}

/* Scroll class toggled by JS */
body.scrolled {
    padding-top: var(--navbar-height-scrolled);
}

body.scrolled .topbar-custom {
    transform: translateY(-100%);
    height: 0;
    padding: 0 !important;
    opacity: 0;
    border-bottom: none;
}

/* 2. Navbar Styles (Default / Subpages) */
.navbar-custom {
    background-color: #ffffff !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(14, 133, 73, 0.15);
    box-shadow: 0 4px 20px rgba(12, 52, 104, 0.05);
    position: relative;
    z-index: 1050;
}

.navbar-custom .nav-link {
    color: #0c3468 !important;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--accent-green) !important;
}

/* Underline hover effect (Emerald to Gold gradient) */
.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    background: linear-gradient(90deg, var(--accent-green), var(--gold-light));
    border-radius: 3px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
    width: 70%;
}

/* Logo Block Styling */
.logo-block {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
    gap: 12px;
}

.college-logo {
    height: 52px;
    width: auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 10px rgba(12, 52, 104, 0.25));
}

.brand-text-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.college-name {
    font-family: 'Reem Kufi', 'Cairo', 'Tajawal', sans-serif;
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    letter-spacing: 0.2px;
    line-height: 1.25;
}

.college-sub {
    font-size: 0.74rem;
    color: #64748b;
    margin-top: 2px;
    line-height: 1.2;
    transition: all 0.4s ease;
    white-space: nowrap;
}

/* 3. Transparent Navbar (Specifically for Homepage when not scrolled) */
body.home-page:not(.scrolled) .navbar-custom {
    background-color: transparent !important;
    position: absolute;
    width: 100%;
    left: 0;
    right: 0;
    top: var(--topbar-height);
    border-bottom: none;
    box-shadow: none;
}

body.home-page:not(.scrolled) .navbar-custom .nav-link {
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

body.home-page:not(.scrolled) .navbar-custom .nav-link:hover,
body.home-page:not(.scrolled) .navbar-custom .nav-link.active {
    color: var(--gold-light) !important;
}

body.home-page:not(.scrolled) .college-name {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
}

body.home-page:not(.scrolled) .college-sub {
    color: rgba(255, 255, 255, 0.88) !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
}

body.home-page:not(.scrolled) .navbar-toggler {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

body.home-page:not(.scrolled) .navbar-toggler-icon {
    filter: invert(1);
}

/* Media query to shift transparent navbar to top 0 on small screens (since topbar is hidden) */
@media (max-width: 767.98px) {
    body.home-page:not(.scrolled) .navbar-custom {
        top: 0 !important;
    }
}

/* 4. Scrolled Navbar State (Luxurious Sapphire Navy with Glassmorphism) */
body.scrolled .navbar-custom {
    background: rgba(8, 33, 66, 0.96) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding-top: 8px;
    padding-bottom: 8px;
    box-shadow: 0 8px 30px rgba(5, 20, 42, 0.35);
    border-bottom: 2px solid;
    border-image: linear-gradient(to left, var(--accent-green) 0%, var(--gold-light) 50%, var(--primary-color) 100%) 1;
}

body.scrolled .navbar-custom .nav-link {
    color: #ffffff !important;
}

body.scrolled .navbar-custom .nav-link:hover,
body.scrolled .navbar-custom .nav-link.active {
    color: var(--gold-light) !important;
}

body.scrolled .college-logo {
    height: 42px;
}

body.scrolled .college-name {
    color: #ffffff !important;
    font-size: 1.02rem;
    opacity: 1;
    max-height: none;
    margin: 0;
}

body.scrolled .college-sub {
    display: none !important;
}

/* 5. Login Button (Royal Blue + Emerald Green Gradient Circular Icon) */
.btn-login-custom {
    background: linear-gradient(135deg, #0c3468 0%, #0e8549 100%);
    color: #ffffff !important;
    border-radius: 50% !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.15rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1.5px solid rgba(223, 168, 44, 0.5);
    box-shadow: 0 4px 15px rgba(12, 52, 104, 0.3);
    flex-shrink: 0;
}

.btn-login-custom:hover {
    background: linear-gradient(135deg, #12478c 0%, #15a85f 100%);
    border-color: var(--gold-light);
    color: #ffffff !important;
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 8px 22px rgba(14, 133, 73, 0.4);
}

.btn-login-custom i {
    margin: 0 !important;
    font-size: 1.15rem;
    line-height: 1;
}

.btn-login-custom .btn-login-text {
    display: none !important;
}

/* Login button transparent style */
body.home-page:not(.scrolled) .btn-login-custom {
    background: linear-gradient(135deg, rgba(12, 52, 104, 0.85) 0%, rgba(14, 133, 73, 0.85) 100%);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(223, 168, 44, 0.6);
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.home-page:not(.scrolled) .btn-login-custom:hover {
    background: linear-gradient(135deg, #0c3468 0%, #0e8549 100%);
    border-color: var(--gold-light);
    box-shadow: 0 8px 22px rgba(14, 133, 73, 0.5);
}

/* Login button scrolled style */
body.scrolled .btn-login-custom {
    background: linear-gradient(135deg, #0c3468 0%, #0e8549 100%);
    color: #ffffff !important;
    border: 1.5px solid rgba(223, 168, 44, 0.6);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.scrolled .btn-login-custom:hover {
    background: linear-gradient(135deg, #12478c 0%, #15a85f 100%);
    border-color: var(--gold-light);
    box-shadow: 0 8px 20px rgba(223, 168, 44, 0.4);
}

/* 6. Standard & Mega Dropdowns */
.navbar-custom .dropdown-menu {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-top: 3px solid var(--accent-green);
    box-shadow: 0 10px 30px rgba(12, 52, 104, 0.12);
    border-radius: 12px;
    margin-top: 8px;
}

.navbar-custom .dropdown-item {
    color: #0c3468 !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 20px;
    transition: all 0.2s ease;
}

.navbar-custom .dropdown-item:hover {
    background-color: var(--accent-green-bg);
    color: var(--accent-green) !important;
    padding-right: 25px;
}

/* Mega Menu Customizations (Royal Navy, Emerald Green, Baghdadi Gold) */
.navbar-custom .dropdown-mega {
    position: static !important;
}

.navbar-custom .dropdown-mega .dropdown-menu {
    width: 96%;
    max-width: 1350px;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) translateY(15px);
    margin: 0 auto;
    border-top: 3.5px solid var(--accent-green);
    border-bottom: 3.5px solid var(--gold-light);
    border-left: 1px solid rgba(12, 52, 104, 0.1);
    border-right: 1px solid rgba(12, 52, 104, 0.1);
    border-radius: 0 0 24px 24px;
    box-shadow: 0 25px 60px rgba(12, 52, 104, 0.22);
    padding: 30px 35px;
    background: #ffffff;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    z-index: 1050;
}

/* Hover effects for Desktop */
@media (min-width: 992px) {
    .navbar-custom .dropdown-mega:hover .dropdown-menu,
    .navbar-custom .dropdown-mega .dropdown-menu:hover {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}

.mega-column-title {
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 14px;
    border-bottom: 2px solid rgba(14, 133, 73, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.mega-column-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 35px;
    height: 2px;
    background: var(--gold-light);
}

.mega-column-title i {
    color: var(--accent-green);
    font-size: 1.1rem;
}

.mega-item-link {
    display: flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 10px;
    text-decoration: none !important;
    color: #1e293b;
    transition: all 0.25s ease;
    margin-bottom: 3px;
    border: 1px solid transparent;
}

.mega-item-link:hover {
    background: rgba(14, 133, 73, 0.07);
    border-color: rgba(14, 133, 73, 0.18);
    transform: translateX(-4px);
    color: var(--primary-color);
}

.mega-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(12, 52, 104, 0.06);
    color: var(--accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    margin-left: 10px;
    flex-shrink: 0;
    transition: all 0.25s ease;
    border: 1px solid rgba(12, 52, 104, 0.08);
}

.mega-item-link:hover .mega-item-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-green));
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(12, 52, 104, 0.25);
    transform: scale(1.08);
}

.mega-item-text {
    flex-grow: 1;
    overflow: hidden;
}

.mega-item-title {
    font-size: 0.88rem;
    font-weight: 700;
    display: block;
    line-height: 1.35;
    color: #1e293b;
    transition: color 0.2s ease;
}

.mega-item-link:hover .mega-item-title {
    color: var(--primary-color);
}

.mega-item-sub {
    font-size: 0.72rem;
    color: #64748b;
    display: block;
    line-height: 1.2;
    margin-top: 2px;
}

.mega-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    margin-right: 6px;
    flex-shrink: 0;
}

.mega-featured-card {
    background: linear-gradient(145deg, #082142 0%, #0c3468 60%, #0e8549 100%);
    border: 1.5px solid var(--gold-light);
    border-radius: 18px;
    padding: 24px 20px;
    color: #ffffff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 25px rgba(12, 52, 104, 0.2);
    position: relative;
    overflow: hidden;
}

.mega-featured-card::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(223, 168, 44, 0.22) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.mega-featured-badge {
    display: inline-block;
    background: rgba(223, 168, 44, 0.2);
    color: var(--gold-light);
    border: 1px solid var(--gold-light);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.mega-featured-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
}

.mega-featured-desc {
    font-size: 0.85rem;
    color: #e2e8f0;
    line-height: 1.6;
    margin-bottom: 18px;
}

.mega-featured-btn {
    background: linear-gradient(135deg, var(--gold-light) 0%, #c89218 100%);
    color: #0c3468 !important;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 8px 18px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(223, 168, 44, 0.35);
}

.mega-featured-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(223, 168, 44, 0.5);
    color: #082142 !important;
}

/* Mobile responsive adjustments */
@media (max-width: 991.98px) {
    .navbar-custom .dropdown-mega .dropdown-menu {
        position: static !important;
        width: 100% !important;
        left: 0 !important;
        transform: none !important;
        box-shadow: none !important;
        border-radius: 12px !important;
        padding: 15px !important;
        border: 1px solid rgba(14, 133, 73, 0.2) !important;
        margin-top: 10px !important;
    }
}

/* 7. Floating Social Icons */
.floating-social-sidebar {
    display: none !important;
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    flex-direction: column;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
}

.social-icon:hover {
    transform: scale(1.15) translateX(4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.social-icon.facebook { background-color: #1877f2; }
.social-icon.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-icon.telegram { background-color: #0088cc; }
.social-icon.youtube { background-color: #ff0000; }
.social-icon.email { background-color: #ea4335; }

/* Scrolled state sidebar icon resizing */
body.scrolled .floating-social-sidebar {
    left: 10px;
    gap: 8px;
}

body.scrolled .social-icon {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
}

/* 8. Slider full-screen (minus topbar height) & premium captions */
.carousel-item-ratio {
    width: 100%;
    height: calc(100vh - var(--topbar-height));
    overflow: hidden;
    position: relative;
    background-color: #000000;
}

.carousel-img-ratio {
    width: 100%;
    height: calc(100vh - var(--topbar-height));
    object-fit: cover;
    transition: transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (max-width: 767.98px) {
    .carousel-item-ratio,
    .carousel-img-ratio {
        height: 100vh;
    }
}

.carousel-item.active .carousel-img-ratio {
    transform: scale(1.03);
}

.carousel-caption-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(7, 27, 56, 0.95) 0%, rgba(9, 34, 71, 0.72) 45%, rgba(14, 133, 73, 0.15) 75%, transparent 100%);
    padding: 70px 50px 45px 50px;
    text-align: right;
    color: #ffffff;
    z-index: 10;
}

.carousel-caption-bottom h1 {
    font-size: 2.8rem;
    font-weight: 800;
    font-family: 'Cairo', sans-serif;
    margin-bottom: 15px;
    text-shadow: 0 3px 12px rgba(0,0,0,0.6);
    color: #ffffff;
    display: inline-block;
    position: relative;
}

.carousel-caption-bottom p {
    font-size: 1.18rem;
    max-width: 900px;
    line-height: 1.85;
    color: #f1f5f9;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    margin-bottom: 20px;
}

/* Inline More link inside details paragraph */
.slider-inline-more {
    font-size: 0.85rem;
    background: linear-gradient(135deg, var(--accent-green) 0%, #15a85f 100%) !important;
    color: #ffffff !important;
    padding: 5px 14px;
    border-radius: 20px;
    font-weight: 700;
    text-decoration: none;
    margin-right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 12px rgba(14, 133, 73, 0.35);
    transition: all 0.25s ease;
    border: none;
}

.slider-inline-more:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, #c89218 100%) !important;
    color: #0c3468 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(223, 168, 44, 0.4);
}

/* Carousel nav arrows & buttons */
.carousel-nav-arrow {
    width: 6% !important;
    opacity: 0.85 !important;
    transition: all 0.3s ease;
}
.carousel-nav-arrow:hover {
    opacity: 1 !important;
}
.carousel-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(12, 52, 104, 0.7);
    border: 1.5px solid rgba(223, 168, 44, 0.4);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.carousel-nav-arrow:hover .carousel-nav-btn {
    background: var(--accent-green);
    border-color: var(--gold-light);
    color: #ffffff;
    transform: scale(1.15);
    box-shadow: 0 10px 25px rgba(14, 133, 73, 0.4);
}

/* Beautiful circles for slider navigation indicators */
.carousel-indicators {
    bottom: 24px !important;
    z-index: 15;
    margin-bottom: 0;
}

.carousel-indicators [data-bs-target] {
    width: 13px !important;
    height: 13px !important;
    border-radius: 50% !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    background-color: transparent !important;
    opacity: 0.6;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 6px !important;
    padding: 0;
}

.carousel-indicators .active {
    background-color: var(--gold-light) !important;
    border-color: var(--gold-light) !important;
    opacity: 1;
    transform: scale(1.25);
    box-shadow: 0 0 12px rgba(223, 168, 44, 0.6);
}

/* Responsive menu adjustments to prevent wrapping and handle login icon */
@media (min-width: 992px) {
    /* Prevent the collapse container and navbar-nav from wrapping layout */
    .navbar-collapse {
        flex-wrap: nowrap !important;
    }
    .navbar-nav {
        flex-wrap: nowrap !important;
    }
}

/* Tablet & Small Laptops: Hide text, make login circular icon, scale down font/padding */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar-custom .nav-link {
        padding: 6px 8px !important;
        font-size: 0.8rem;
    }
    .college-name {
        font-size: 0.8rem;
    }
    .college-logo {
        height: 45px;
    }
    .btn-login-custom {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
    }
    .btn-login-custom .btn-login-text {
        display: none !important;
    }
    .btn-login-custom i {
        margin: 0 !important;
        font-size: 0.95rem;
    }
}

/* Medium/Large Laptops: Slight scaling down of padding/font to ensure everything fits on one line */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .navbar-custom .nav-link {
        padding: 8px 12px !important;
        font-size: 0.88rem;
    }
    .college-name {
        font-size: 0.9rem;
    }
    .college-logo {
        height: 52px;
    }
}

/* ==========================================================================
   9. Standard Section Title with Prestige Academic Architectural Styling
   ========================================================================== */
.section-title-container {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    margin-bottom: 6px;
    text-align: right;
}

html[dir="ltr"] .section-title-container {
    align-items: flex-start;
    text-align: left;
}

/* Optional Eyebrow Category Pill Badge */
.section-eyebrow-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 14px;
    border-radius: 50px;
    background: rgba(14, 133, 73, 0.08);
    color: var(--accent-green, #0e8549);
    border: 1px solid rgba(14, 133, 73, 0.22);
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
    width: fit-content;
}

.section-title-container h2 {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-weight: 800;
    font-size: 2.25rem;
    color: var(--primary-color, #0c3468);
    margin: 0 0 10px 0;
    position: relative;
    z-index: 2;
    letter-spacing: -0.4px;
    line-height: 1.3;
}

/* Modern Clean Academic Dual-Pill Accent Bar */
.section-title-line {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    margin-bottom: 6px;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    position: relative;
    border: none !important;
    overflow: visible;
}

/* Bar 1: Primary Navy-to-Emerald Gradient Pill */
.section-title-line::before {
    content: '' !important;
    display: inline-block !important;
    position: static !important;
    transform: none !important;
    width: 48px;
    height: 4.5px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color, #0c3468) 0%, var(--accent-green, #0e8549) 100%);
    box-shadow: 0 2px 6px rgba(12, 52, 104, 0.2);
}

/* Bar 2: Secondary Heritage Gold Pill */
.section-title-line::after {
    content: '' !important;
    display: inline-block !important;
    position: static !important;
    transform: none !important;
    width: 15px;
    height: 4.5px;
    border-radius: 10px;
    background: var(--gold-light, #dfa82c);
    box-shadow: 0 2px 6px rgba(223, 168, 44, 0.45);
}

/* Subtitle under title */
.section-subtitle-text,
.section-title-container + p,
.section-title-container ~ p {
    color: #64748b;
    font-size: 0.96rem;
    font-weight: 500;
    line-height: 1.65;
    margin-top: 6px;
    margin-bottom: 0;
}

/* ==========================================================================
   10. Services Section & Professional Heritage Grid Background
   ========================================================================== */
.services-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fafc 0%, #f0fbf5 100%);
    padding: 85px 0;
}

.services-grid-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(14, 133, 73, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(12, 52, 104, 0.035) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
    z-index: 0;
    pointer-events: none;
}

.services-grid-bg::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(223, 168, 44, 0.08) 0%, transparent 60%);
}

.services-container {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   11. Modern Services Cards: Neon Border (Emerald & Navy), Glass Hover & Pulse
   ========================================================================== */
.service-card-wrapper {
    position: relative;
    border-radius: 20px;
    padding: 2.5px;
    overflow: hidden;
    background: var(--border-color, rgba(14, 133, 73, 0.2));
    box-shadow: 0 10px 30px rgba(12, 52, 104, 0.05);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: block;
    text-decoration: none !important;
}

.service-card-neon {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        transparent 40%,
        var(--neon-color-dark) 65%,
        var(--neon-color-light) 85%,
        var(--gold-light) 95%,
        var(--neon-color-dark) 100%
    );
    animation: rotate-neon 4s linear infinite;
    z-index: 1;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

@keyframes rotate-neon {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.service-card-content {
    position: relative;
    z-index: 2;
    background: var(--card-bg, #ffffff);
    border-radius: 18px;
    padding: 26px 28px;
    height: 100%;
    min-height: 145px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    transition: background-color 0.4s, border-color 0.4s, box-shadow 0.4s;
    border: 1px solid rgba(14, 133, 73, 0.06);
}

.service-card-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    transition: none;
    z-index: 4;
}

.service-card-rosette {
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 130px;
    height: 130px;
    z-index: 1;
    opacity: 0.85;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease, opacity 0.4s, color 0.4s;
    color: var(--rosette-color, rgba(14, 133, 73, 0.16));
}

.service-card-rosette svg {
    width: 100%;
    height: 100%;
    transition: stroke 0.4s;
}

.service-card-info {
    position: relative;
    z-index: 3;
    padding-left: 0;
    text-align: right;
    width: 100%;
}

.service-card-title {
    font-family: 'Cairo', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--title-color, var(--primary-color));
    margin-bottom: 8px;
    transition: color 0.4s;
}

.service-card-desc {
    font-family: 'Cairo', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--desc-color, #475569);
    margin: 0;
    transition: color 0.4s;
}

.service-card-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 35px rgba(14, 133, 73, 0.18);
}

.service-card-wrapper:hover .service-card-neon {
    animation-duration: 2s;
    opacity: 1;
}

.service-card-wrapper:hover .service-card-content::before {
    left: 150%;
    transition: left 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card-wrapper:hover .service-card-rosette {
    transform: translateY(-50%) rotate(20deg) scale(1.1);
    color: var(--accent-green);
    opacity: 0.35;
}

.service-card-wrapper:hover .service-card-title {
    color: var(--accent-green);
}

/* Themes configuration for each service card - Emerald & Royal Sapphire */
.card-brand {
    --card-bg: #ffffff;
    --border-color: rgba(14, 133, 73, 0.28);
    --title-color: #0c3468;
    --desc-color: #475569;
    --neon-color-light: #0e8549; /* Logo Emerald */
    --neon-color-dark: #0c3468;  /* Logo Royal Blue */
    --neon-rgb: 14, 133, 73;
    --rosette-color: rgba(14, 133, 73, 0.16);
}

/* Unification & Modernization of Quick Links Cards */
.quick-link-card {
    background: #ffffff;
    border: 1px solid rgba(12, 52, 104, 0.08);
    border-bottom: 4px solid var(--accent-green) !important;
    border-radius: 18px;
    padding: 32px 24px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(12, 52, 104, 0.03);
}

.quick-link-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(14, 133, 73, 0.12) !important;
    border-color: rgba(14, 133, 73, 0.25);
    border-bottom: 4px solid var(--gold-light) !important;
}

.quick-link-card .icon-box {
    font-size: 2.6rem;
    color: var(--accent-green) !important;
    margin-bottom: 18px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.quick-link-card:hover .icon-box {
    transform: scale(1.12);
    color: var(--gold-light) !important;
}

.quick-link-card .card-title {
    font-family: 'Cairo', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color) !important;
    margin-bottom: 10px;
}

.quick-link-card .card-desc {
    font-family: 'Cairo', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.6;
    color: #475569 !important;
    margin: 0;
}

@media (max-width: 575.98px) {
    .service-card-info {
        padding-left: 0;
    }
    .service-card-content {
        padding: 20px;
        min-height: 120px;
    }
    .service-card-rosette {
        width: 100px;
        height: 100px;
        left: -35px;
    }
    .section-title-container h2 {
        font-size: 1.8rem;
    }
    .quick-link-card {
        padding: 24px 16px;
    }
}

/* ==========================================================================
   12. Professional Architectural Section Divider with University Medallion
   ========================================================================== */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 50px auto;
    width: 80%;
    max-width: 950px;
    z-index: 5;
    position: relative;
    pointer-events: none;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.section-divider-line {
    flex-grow: 1;
    height: 2px;
    border-radius: 5px;
}

.section-divider-left {
    background: linear-gradient(to left, rgba(14, 133, 73, 0.45) 0%, rgba(223, 168, 44, 0.3) 40%, rgba(12, 52, 104, 0.08) 80%, transparent 100%);
}

.section-divider-right {
    background: linear-gradient(to right, rgba(14, 133, 73, 0.45) 0%, rgba(223, 168, 44, 0.3) 40%, rgba(12, 52, 104, 0.08) 80%, transparent 100%);
}

.section-divider-crest,
.section-divider-diamonds {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 20px;
    gap: 12px;
}

/* Central Prestigious Medallion */
.crest-medallion,
.divider-diamond-main {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0c3468 0%, #072244 100%);
    border: 2px solid var(--gold-light, #dfa82c);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light, #dfa82c);
    font-size: 15px;
    box-shadow: 0 4px 14px rgba(12, 52, 104, 0.25), 0 0 12px rgba(223, 168, 44, 0.35);
    transition: all 0.3s ease;
    transform: none !important;
}

/* Flanking Jewelry Accent Beads */
.crest-accent-bead,
.divider-diamond-sub {
    transform: rotate(45deg);
    display: inline-block;
    border-radius: 2px;
}

.crest-bead-md,
.divider-diamond-sub:nth-child(2),
.divider-diamond-sub:nth-child(4) {
    width: 9px;
    height: 9px;
    background: var(--gold-light, #dfa82c);
    box-shadow: 0 0 8px rgba(223, 168, 44, 0.5);
}

.crest-bead-sm,
.divider-diamond-sub:nth-child(1),
.divider-diamond-sub:nth-child(5) {
    width: 6px;
    height: 6px;
    background: var(--accent-green, #0e8549);
    box-shadow: 0 0 6px rgba(14, 133, 73, 0.4);
}

@media (max-width: 767.98px) {
    .section-divider {
        margin: 35px auto;
        width: 90%;
    }
    .section-divider-crest,
    .section-divider-diamonds {
        margin: 0 12px;
        gap: 8px;
    }
    .crest-medallion,
    .divider-diamond-main {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
}

/* ==========================================================================
   13. Show More Services Button (iOS Premium tactile style)
   ========================================================================== */
.btn-more-services {
    background: linear-gradient(135deg, rgba(12, 52, 104, 0.06), rgba(14, 133, 73, 0.08));
    color: var(--primary-color);
    border: 1.5px solid rgba(14, 133, 73, 0.25);
    border-radius: 50px;
    padding: 13px 45px;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.1px;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(12, 52, 104, 0.04);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.btn-more-services:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-green));
    color: #ffffff !important;
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(14, 133, 73, 0.3);
}

.btn-more-services:active {
    transform: scale(0.96) translateY(0);
}

.btn-more-services i {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-more-services:hover i {
    transform: translateY(3px);
}

/* ==========================================================================
   14. Academic Department Cards (Iraqi University Prestige)
   ========================================================================== */
.dept-card-academic {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(12, 52, 104, 0.08);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(12, 52, 104, 0.03);
}

.dept-card-academic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-green) 50%, var(--gold-light));
    opacity: 0.9;
    transition: height 0.3s ease;
}

.dept-card-academic:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(12, 52, 104, 0.12);
    border-color: rgba(14, 133, 73, 0.3);
}

.dept-card-academic:hover::before {
    height: 6px;
}

.dept-icon-medallion {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(12, 52, 104, 0.05), rgba(14, 133, 73, 0.08));
    border: 2px solid rgba(223, 168, 44, 0.35);
    box-shadow: 0 6px 16px rgba(12, 52, 104, 0.06);
    transition: all 0.35s ease;
}

.dept-card-academic:hover .dept-icon-medallion {
    transform: scale(1.08) rotate(5deg);
    border-color: var(--accent-green);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-green));
    color: #ffffff !important;
}

.dept-card-title {
    font-family: 'Cairo', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.dept-card-academic:hover .dept-card-title {
    color: var(--accent-green);
}

.dept-card-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-green);
    margin-top: 15px;
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(14, 133, 73, 0.06);
    transition: all 0.3s ease;
}

.dept-card-academic:hover .dept-card-link {
    background: var(--accent-green);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(14, 133, 73, 0.3);
}

/* ==========================================================================
   15. Academic News Cards & Badges
   ========================================================================== */
.news-card-academic {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(12, 52, 104, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(12, 52, 104, 0.04);
}

.news-card-academic:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 45px rgba(12, 52, 104, 0.12);
    border-color: rgba(14, 133, 73, 0.25);
}

.news-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-img-wrapper img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.news-card-academic:hover .news-img-wrapper img {
    transform: scale(1.08);
}

.news-date-badge {
    background: rgba(14, 133, 73, 0.1) !important;
    color: var(--accent-green) !important;
    border: 1px solid rgba(14, 133, 73, 0.25);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 50px;
}

.news-views-badge {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 600;
}

.btn-news-read {
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color) !important;
    border-radius: 50px;
    padding: 7px 22px;
    font-weight: 700;
    font-size: 0.88rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    background: transparent;
    text-decoration: none !important;
}

.btn-news-read:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-green));
    border-color: var(--accent-green);
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(14, 133, 73, 0.3);
    transform: translateX(-3px);
}

/* ==========================================================================
   16. Prestige Footer (Al-Rasheed Royal Theme)
   ========================================================================== */
.footer-alrasheed {
    background: #071c38;
    color: #cbd5e1;
    position: relative;
    border-top: 3px solid;
    border-image: linear-gradient(to right, var(--accent-green) 0%, var(--gold-light) 50%, var(--primary-color) 100%) 1;
}

.footer-alrasheed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(14, 133, 73, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(223, 168, 44, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.footer-title-gold {
    font-family: 'Cairo', sans-serif;
    color: var(--gold-light) !important;
    font-weight: 800;
    position: relative;
    padding-bottom: 12px;
}

.footer-title-gold::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 45px;
    height: 2.5px;
    background: var(--accent-green);
    border-radius: 2px;
}

.footer-link-item {
    color: #94a3b8 !important;
    text-decoration: none !important;
    transition: all 0.25s ease;
    display: inline-block;
}

.footer-link-item:hover {
    color: var(--gold-light) !important;
    transform: translateX(-5px);
}

.footer-social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.footer-social-icon:hover {
    background: var(--accent-green);
    border-color: var(--gold-light);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 15px rgba(14, 133, 73, 0.4);
}

/* ==========================================================================
   14. Full LTR (Left-To-Right) Environment Polish
   ========================================================================== */
html[dir="ltr"] {
    text-align: left;
}

html[dir="ltr"] body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

html[dir="ltr"] .college-name,
html[dir="ltr"] .college-sub {
    font-family: 'Inter', sans-serif !important;
}

/* Slider bottom caption */
html[dir="ltr"] .carousel-caption-bottom {
    text-align: left !important;
    padding: 70px 60px 45px 60px;
}

html[dir="ltr"] .carousel-caption-bottom h1 {
    font-family: 'Inter', sans-serif !important;
    text-align: left !important;
}

html[dir="ltr"] .carousel-caption-bottom p {
    font-family: 'Inter', sans-serif !important;
    text-align: left !important;
}

html[dir="ltr"] .slider-inline-more {
    margin-right: 0 !important;
    margin-left: 10px !important;
}

/* Section Title Container & Line */
html[dir="ltr"] .section-title-container {
    text-align: left !important;
}

html[dir="ltr"] .section-title-container h2 {
    font-family: 'Inter', sans-serif !important;
    text-align: left !important;
}

html[dir="ltr"] .section-title-line {
    right: auto;
    left: 0;
    background: linear-gradient(to right, var(--accent-green) 0%, var(--gold-light) 40%, rgba(12, 52, 104, 0.15) 100%);
}

@keyframes title-spin-slow-ltr {
    0% { transform: translate(50%, -50%) rotate(0deg); }
    100% { transform: translate(50%, -50%) rotate(360deg); }
}

html[dir="ltr"] .section-title-line::after {
    left: auto !important;
    right: 0 !important;
    transform: translate(50%, -50%);
    animation: title-spin-slow-ltr 14s linear infinite !important;
}

/* Service Cards */
html[dir="ltr"] .service-card-info {
    text-align: left !important;
}

html[dir="ltr"] .service-card-title,
html[dir="ltr"] .service-card-desc {
    font-family: 'Inter', sans-serif !important;
    text-align: left !important;
}

html[dir="ltr"] .service-card-rosette {
    left: auto !important;
    right: -40px !important;
}

html[dir="ltr"] .services-grid-bg {
    right: 0;
    left: auto;
}

/* Academic Departments */
html[dir="ltr"] .dept-card-title,
html[dir="ltr"] .dept-card-academic p {
    font-family: 'Inter', sans-serif !important;
}

html[dir="ltr"] .dept-card-link:hover {
    transform: translateX(4px);
}

/* News Section */
html[dir="ltr"] .news-card-academic h5,
html[dir="ltr"] .news-card-academic p {
    font-family: 'Inter', sans-serif !important;
    text-align: left !important;
}

html[dir="ltr"] .btn-news-read:hover {
    transform: translateX(4px);
}

/* Mega Menu Polish */
html[dir="ltr"] .mega-column-title::after {
    right: auto;
    left: 0;
}

html[dir="ltr"] .mega-item-link:hover {
    transform: translateX(4px);
}

html[dir="ltr"] .mega-item-icon {
    margin-left: 0;
    margin-right: 10px;
}

html[dir="ltr"] .mega-badge {
    margin-right: 0;
    margin-left: 6px;
}

/* Department Colleges Page */
html[dir="ltr"] .dept-col-header {
    border-right: none !important;
    border-left: 6px solid;
}

/* Footer Polish */
html[dir="ltr"] .footer-title-gold {
    font-family: 'Inter', sans-serif !important;
    text-align: left !important;
}

html[dir="ltr"] .footer-title-gold::after {
    right: auto;
    left: 0;
}

html[dir="ltr"] .footer-link-item:hover {
    transform: translateX(5px);
}

/* Floating Social Media Sidebar */
html[dir="ltr"] .floating-social-sidebar {
    right: 20px;
    left: auto;
}

html[dir="ltr"] body.scrolled .floating-social-sidebar {
    right: 10px;
    left: auto;
}


