@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&display=swap');

/* Override Theme Variables for this page */
:root {
    --primaryColor: #ce6148;
    --sust-primary: #ce6148;
    --sust-blue-dark: #0a58ca;
    --sust-blue-light: #ebf1f8;
    --sust-orange: #fd7e14;
    --sust-grey-text: #6c757d;
    --sust-dark-text: #212529;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #1e293b;
}

body.arabic-profile {
    font-family: "Cairo", sans-serif;
    direction: rtl;
    text-align: right;
    background-color: #fbfcff;
    /* Light bluish/grey match theme */
    color: var(--bodyColor);
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* RTL Helpers */
.arabic-profile .me-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

.arabic-profile .ms-2 {
    margin-right: 0.5rem !important;
    margin-left: 0 !important;
}

.arabic-profile .me-3 {
    margin-left: 1rem !important;
    margin-right: 0 !important;
}

.arabic-profile .float-end {
    float: left !important;
}

.arabic-profile .float-start {
    float: right !important;
}

.arabic-profile .text-end {
    text-align: left !important;
}

.arabic-profile .text-start {
    text-align: right !important;
}

/* Hero Section */
.hero.new-hero-style {
    background-color: #ce6148;
    background-image:
        linear-gradient(45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.05) 75%, rgba(255, 255, 255, 0.05)),
        linear-gradient(45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.05) 75%, rgba(255, 255, 255, 0.05));
    background-position: 0 0, 10px 10px;
    background-size: 20px 20px;
    padding: 100px 0 140px;
    position: relative;
}

/* Hero Section - Modern Redesign */
.hero-modern {
    padding: 120px 0 60px;
    position: relative;
    /* Formal Texture Background - Primary Color */
    background-color: #ce6148;
    background-image:
        radial-gradient(#b24a32 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    background-position: 0 0;
    overflow: hidden;
}

/* Decorative Circle/Shape (Optional extra) */
.hero-modern::before {
    content: "";
    position: absolute;
    top: -10%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
}

.hero-modern::after {
    content: "";
    position: absolute;
    bottom: 10%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    z-index: 0;
}

/* The "Card" Container */
.hero-content-card {
    background: rgba(255, 255, 255, 0.95);
    /* Slight transparency */
    backdrop-filter: blur(10px);
    /* Glassmorphism effect */
    border: 1px solid rgba(255, 255, 255, 0.6);
    /* Subtle border */
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    /* Stronger shadow */
    padding: 50px 40px;
    /* Increased padding */
    position: relative;
    overflow: visible;
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* Text Colors for Light Background */
.hero-name-large {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--sust-primary);
    /* Dark Blue for Name */
    margin-bottom: 0.5rem;
}

.hero-welcome {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--sust-grey-text);
    /* Muted for welcome/title */
    margin-bottom: 0.5rem;
}

.hero-role {
    font-size: 1.2rem;
    color: var(--sust-grey-text);
    /* Orange/Primary for Role */
    font-weight: 600;
    margin-bottom: 2rem !important;
}

/* Buttons for Light Background */
.hero-buttons .btn-primary {
    background-color: var(--sust-primary);
    border-color: var(--sust-primary);
    color: #fff;
    padding: 12px 30px;
    font-weight: 600;
}

.hero-buttons .btn-primary:hover {
    background-color: #e06c10;
    /* Darker orange */
}

.hero-buttons .btn-outline-primary {
    color: var(--sust-blue-dark);
    border-color: var(--sust-grey-text);
    padding: 12px 30px;
    font-weight: 600;
}

.hero-buttons .btn-outline-primary:hover {
    background-color: var(--sust-dark-text);
    color: #fff;
}


.hero-profile-frame {
    position: relative;
    margin-top: 0;
    margin-bottom: 0;
    text-align: center;

    /* Default CSS "Image" (Placeholder) */
    min-height: 350px;
    width: 100%;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;

    /* Abstract Pattern Background - Modern Dot Grid */
    background-color: #f8fafc;
    background-image:
        radial-gradient(#cbd5e1 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    background-position: 0 0;

    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Placeholder Icon (Visible if no image or transparent) */
/* Placeholder Icon (Visible if no image or transparent) */
/* Placeholder Icon (Visible if no image or transparent) */
.hero-profile-frame::before {
    content: "\ed04";
    /* icofont-user */
    font-family: "IcoFont";
    font-size: 6rem;
    /* Larger icon as requested */
    color: #94a3b8;
    /* Soft slate grey */
    opacity: 1;
    position: absolute;
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    background: #ffffff;
    width: 120px;
    /* Larger container */
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    /* Soft shadow */
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.hero-profile-frame img {
    border: none;
    padding: 0;
    background: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Cover the placeholder area */
    border-radius: 20px;
    box-shadow: none;
    transform: none;
    position: relative;
    z-index: 1;
    /* Sit above the placeholder */
}

/* Stats placeholder styling to match image */
.hero-stats-bar {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-top: 30px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
}

.hero-stat-item h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--sust-blue-dark);
    margin: 0;
}

.hero-stat-item p {
    color: var(--sust-grey-text);
    margin: 0;
    font-size: 0.9rem;
}

/* Inner Page Hero Variant */
.hero-inner.new-hero-style {
    background-color: #ce6148;
    background-image:
        radial-gradient(circle at 50% 50%, transparent 0%, transparent 20%, rgba(255, 255, 255, 0.05) 20%, rgba(255, 255, 255, 0.05) 40%, transparent 40%, transparent 60%, rgba(255, 255, 255, 0.03) 60%),
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.05) 10px, rgba(255, 255, 255, 0.05) 20px);
    background-position: 0 0, 10px 10px;
    background-size: 20px 20px;
    padding: 80px 0 100px;
    /* Reduced padding */
    position: relative;
    overflow: hidden;
    min-height: 300px;
    /* Reduced height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Texture Overlay */
.hero.new-hero-style::before,
.hero-inner.new-hero-style::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle geometric overlay */
    background: repeating-linear-gradient(90deg,
            rgba(255, 255, 255, 0.03) 0px,
            rgba(255, 255, 255, 0.03) 1px,
            transparent 1px,
            transparent 20px);
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle gradient overlay for better text readability */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));
    z-index: 0;
}

/* Main Content Overlap */
.main-content-overlap {
    margin-top: -50px;
}

/* Section Header Decoration */
.section-header {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sust-dark-text);
    position: relative;
    display: inline-block;
}

.section-header::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--sust-primary);
    margin-top: 5px;
    border-radius: 2px;
}

/* Sticky Sidebar */
.sticky-sidebar {
    position: sticky;
    top: 100px;
    height: max-content;
    align-self: flex-start;
    /* Adjust based on header height */
    z-index: 90;
}

/* About Me Card Enhancements */
.about-me-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-me-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.leading-loose {
    line-height: 1.8;
}

/* Publication Card Enhancements */
.pub-card {
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 8px;
    margin: 0 -10px;
    /* offset padding */
}

.pub-card:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.pub-card img {
    transition: transform 0.3s ease;
}

.pub-card:hover img {
    transform: scale(1.05);
}

/* News Item Enhancements */
.news-item {
    transition: all 0.3s ease;
    border-width: 0 4px 0 0 !important;
    /* Right border for RTL */
}

.news-item:hover {
    background: #fff !important;
    transform: translateX(-5px);
    /* Slide slightly left */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.text-primary {
    color: var(--sust-primary) !important;
}

.btn-outline-primary {
    color: var(--sust-primary);
    border-color: var(--sust-primary);
}

.btn-outline-primary:hover {
    background-color: var(--sust-primary);
    border-color: var(--sust-primary);
    color: white;
}

/* Responsive Design */
@media (max-width: 991.98px) {

    /* Hero Adjustments */
    /* Hero Adjustments */
    /* Hero Adjustments */
    .hero {
        padding: 50px 0 60px;
        text-align: center;
    }

    .hero-name-large {
        font-size: 2.2rem;
        /* Slightly smaller to prevent bad wrapping */
    }

    .hero-welcome {
        font-size: 1.3rem;
    }

    .hero-role {
        font-size: 1rem;
        margin-bottom: 2rem !important;
    }

    .d-flex.gap-3 {
        justify-content: center;
        flex-wrap: wrap;
    }

    .d-flex.gap-3 .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .stats-bar-wrapper {
        margin-top: 0;
        margin-bottom: 40px;
    }

    .stats-card {
        margin-bottom: 15px;
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }

    .stats-icon {
        margin-right: 0;
        margin-top: 10px;
        order: -1;
        margin-bottom: 10px;
    }

    .section-title-arabic h2 {
        font-size: 1.8rem;
    }

    .about-box {
        padding: 25px;
        border-right: none;
        border-top: 5px solid var(--sust-blue-primary);
        text-align: center;
    }

    .about-box .d-flex {
        flex-direction: column;
    }

    .about-box .btn-sust-orange,
    .about-box .btn-sust-blue {
        width: 100%;
    }

    .hero-profile-frame {
        margin-bottom: 30px;
    }

    .hero-profile-frame img {
        max-width: 280px;
        /* Increased slightly */
        width: 80%;
        /* Ensure it doesn't overflow small screens */
    }
}

/* Prevent horizontal scroll globally for this page type */
body.arabic-profile {
    overflow-x: clip;
}

/* Modern Sidebar Menu */
.sidebar-menu-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Soft shadow like reference */
    padding: 30px 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.sidebar-section-title {
    background-color: #f3f4f6;
    /* Light grey section header */
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.sidebar-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-bottom: 25px;
}

.sidebar-menu-list li {
    margin-bottom: 5px;
    width:100%
}

.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    color: #4b5563;
    /* Dark grey text */
    text-decoration: none;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.sidebar-link i {
    font-size: 1.2rem;
    margin-left: 15px;
    /* RTL margin */
    color: #9ca3af;
    /* Lighter icon color */
    transition: color 0.3s ease;
}

.sidebar-link:hover {
    background-color: #f9fafb;
    color: var(--sust-dark-text);
}

.sidebar-link:hover i {
    color: var(--sust-dark-text);
}

.sidebar-link.active {
    background-color: #ebf5ff;
    /* Light blue bg like reference/branding */
    color: var(--sust-primary);
    /* Primary color text */
    font-weight: 700;
}

.sidebar-link.active i {
    color: var(--sust-primary);
}

.sidebar-badge {
    background-color: #8b5cf6;
    /* Purple badge from reference */
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 600;
}

/* Header User Profile - Beautified */
.headerarea__right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* Align right (left in RTL) */
    height: 100%;
}

.header__user__profile {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 6px 12px 6px 6px;
    border-radius: 40px;
    border: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    margin-right: 15px;
    /* Spacing from menu */
}

.header__user__profile:hover {
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    /* Deeper shadow on hover */
    transform: translateY(-1px);
}

.user__profile__img {
    flex-shrink: 0;
    position: relative;
    width: 42px;
    height: 42px;
}

.user__profile__img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    /* White border ring */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.user__profile__name {
    padding-left: 10px;
    /* RTL flip needed? padding-right in RTL */
    padding-right: 12px;
    text-align: right;
}

.user__profile__name span:first-child {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sust-blue-dark);
    line-height: 1.2;
}

.user__profile__name span:last-child {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 500;
}

/* Dropdown Arrow */
.header__user__profile::after {
    content: "\efcd";
    /* Icofont arrow down */
    font-family: "IcoFont";
    font-size: 0.8rem;
    color: #cbd5e1;
    margin-right: 10px;
}

.mobile-off-canvas-active .header-mobile-aside-wrap .mobile-menu-wrap {
    background-color: #fff;
    border: 0;
}

ol.breadcrumb {
    list-style: none !important;
    display: flex !important;
    padding: 0 !important;
    margin: 0 !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
}
ol.breadcrumb li {
    list-style: none !important;
    display: inline-block !important;
}
ol.breadcrumb li.breadcrumb-item + li::before {
    content: "/" !important;
    padding-left: 8px !important;
    color: #6c757d !important;
}
/* Fix invisible/unclear heading texts inside cards and content areas */
.main-content-overlap h1, 
.main-content-overlap h2, 
.main-content-overlap h3, 
.main-content-overlap h4, 
.main-content-overlap h5, 
.main-content-overlap h6 {
    color: #1e293b !important; /* Dark Slate Gray for maximum readability */
    font-weight: 700 !important;
}

/* Fix Bootstrap blue button overrides to match primary university color (#ce6148) */
.btn-primary, .btn-primary:active, .btn-primary:focus {
    background-color: var(--primaryColor, #ce6148) !important;
    border-color: var(--primaryColor, #ce6148) !important;
    color: #fff !important;
}

.btn-primary:hover {
    background-color: #b84c34 !important;
    border-color: #b84c34 !important;
}

.btn-outline-primary {
    color: var(--primaryColor, #ce6148) !important;
    border-color: var(--primaryColor, #ce6148) !important;
    background-color: transparent !important;
}

.btn-outline-primary:hover, .btn-outline-primary:active, .btn-outline-primary:focus {
    background-color: var(--primaryColor, #ce6148) !important;
    border-color: var(--primaryColor, #ce6148) !important;
    color: #fff !important;
}

/* Fix link and icon colors (replace blue with theme color) */
.text-primary {
    color: var(--primaryColor, #ce6148) !important;
}

.main-content-overlap a:not(.btn) {
    color: var(--primaryColor, #ce6148);
    text-decoration: none;
}

.main-content-overlap a:not(.btn):hover {
    color: #b84c34;
    text-decoration: underline;
}


/* Hard reset to solve body/html scroll cutting off before footer */
html {
    height: auto !important;
    overflow-y: auto !important;
}

body, body.body__wrapper, body.arabic-profile, body.ltr-profile {
    height: auto !important;
    min-height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    position: relative !important;
}


/* Align English text items (like Google Scholar) properly in Arabic sidebar */
.arabic-profile .sidebar-link span {
    display: flex !important;
    align-items: center !important;
    flex-direction: row !important;
    text-align: right !important;
}

/* Fix disconnected Arabic text by resetting letter-spacing on Arabic content */
body, h1, h2, h3, h4, h5, h6, p, span, a, button, input, select, textarea {
    letter-spacing: normal !important;
}

/* Staff Links Card */
.link-item-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border-color: #e9ecef !important;
    background-color: #ffffff !important;
}
.link-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(206, 97, 72, 0.3) !important;
}

/* Staff Academic Books */
.academic-book-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}
.academic-book-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06) !important;
}
.book-cover-box {
    width: 65px;
    height: 85px;
    background: #f8f9fa;
}
.book-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.book-cover-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ce6148 0%, #8e321e 100%);
}
.book-details-text {
    color: #6b7280;
    font-size: 0.85rem;
    line-height: 1.5;
}
