body {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: #f4f4f4;
    color: #333;
}

h1,
h2,
h3 {
    color: #760b0d;
}


header {
    background-image: url('../images/nav.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    position: relative;
    height: 500px;
}

nav {
    width: 100%;
    border-radius: 8px;
}

nav ul {
    padding: 0;
    list-style: none;
    text-align: center;
    margin: 0;
}

nav ul li {
    display: inline;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    padding: 1rem;
    display: inline-block;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.459);
}

main {
    padding: 20px;
    max-width: 1200px;
    margin: 20px auto;
    background: #fff;
}

#hero {
    text-align: center;
    padding: 50px 20px;
}

#hero form {
    max-width: 500px;
    margin: 20px auto;
    display: flex;
}

#hero input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
}

#hero button {
    padding: 8px 15px;
    border: none;
    background: #ccc;
    color: #333;
    cursor: pointer;
}

footer {
    text-align: center;
    padding: 20px;
    background: #760b0d;
    color: #fff;
}

.social-media a {
    color: #fff;
    margin: 0 10px;
    font-size: 24px;
    text-decoration: none;
}

.social-media a:hover {
    color: #ddd;
}

.bilingual-section {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.arabic-text {
    width: 48%;
    text-align: right;
}

.english-text {
    width: 48%;
    text-align: left;
}

.header-bg {
    background-image: url('../images/nav.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px;
    color: white;
    position: relative;
}

.header-bg nav ul {
    background-color: rgba(0, 0, 0, 0.5);
    /* لتوضيح القوائم على الخلفية */
    padding: 10px;
    border-radius: 8px;
}

.header-bg h1 {
    color: white;
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
}

.header-bg img {
    filter: brightness(100%);
    /* تأكد أن الشعار ظاهر على الخلفية */
}

.author img {
    width: 150px !important;
    height: 150px !important;
    object-fit: cover;
    /* لتعبئة الإطار دون تشويه الصورة */
    border-radius: 10px;
    /* اختياري: لتدوير الزوايا */
    display: block;
    margin: 0 auto 10px auto;
    /* توسيط الصورة */
}

.author {
    text-align: center;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin: 10px;
    background-color: #f9f9f9;
}

.author-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Responsive Nav */
.nav-toggle-checkbox {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    font-size: 2rem;
    color: #fdfcfc;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px;
    border-radius: 5px;
}

@media (max-width: 992px) {
    header {
        padding: 0 10px 0 10px;
        min-height: 250px;
        height: auto;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center top;
    }

    nav {
        height: auto;
    }

    .nav-toggle-label {
        display: block;
        position: absolute;
        top: 10px;
        right: 20px;
        z-index: 1000;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(0, 0, 0, 0.5);
        position: absolute;
        top: 60px;
        left: 0;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
    }

    .nav-toggle-checkbox:checked~nav ul {
        display: flex;
        transform: translateY(0);
    }

    .nav-toggle-checkbox:checked~nav ul {
        display: flex;
    }

    nav ul li {
        display: block;
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid #555;
    }
}

/* Publication Cards */
.publications-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.publication-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.publication-card h3 {
    margin-top: 0;
}

.publication-card a {
    text-decoration: none;
    color: #760b0d;
}

/* Animations */
.animate {
    opacity: 0;
    transition: opacity 1s, transform 1s;
}

.animate.fade-in {
    opacity: 1;
}

.animate.fade-in-left {
    transform: translateX(-50px);
}

.animate.fade-in-right {
    transform: translateX(50px);
}

.animate.fade-in-top {
    transform: translateY(-50px);
}

.animate.fade-in-bottom {
    transform: translateY(50px);
}

.animate.zoom-in {
    transform: scale(0.8);
}

.animate.slide-up {
    transform: translateY(30px);
}

.animate.animated {
    opacity: 1;
    transform: none;
}

/* Login Page Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f4f4f4;
}

.login-form {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-form h2 {
    margin-bottom: 20px;
    color: #760b0d;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.login-form button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background: #760b0d;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-form button:hover {
    background: #5a080a;
}

.error {
    color: #d9534f;
    background: #f2dede;
    border: 1px solid #ebccd1;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Author Page Styles */
.author-profile {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.author-photo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #760b0d;
    object-fit: cover;
}

.author-details h1 {
    margin-top: 0;
}

.author-email {
    font-size: 1.1em;
    margin-bottom: 15px;
}

.author-email a {
    color: #333;
    text-decoration: none;
}

.author-email i {
    color: #760b0d;
    margin-left: 8px;
}

.author-bio h4 {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.scholar-button {
    display: inline-block;
    background-color: #760b0d;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    border: 2px solid #760b0d;
    transition: background-color 0.3s;
}

.scholar-button:hover {
    background-color: #9a1e22;
}

.scholar-button i {
    margin-left: 8px;
}

.publications-list .publication-item {
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
