/* General Styles */
:root {
    --primary-color: #0779bf; /* Blue from SGS site */
    --secondary-color: #f7a300; /* Gold */
    --text-color: #333333;
    --light-bg: #f9f9fb;
    --dark-bg: #1c2331;
    --font-family: 'Tajawal', sans-serif;
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    direction: rtl;
    line-height: 1.6;
}

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

a:hover {
    color: var(--secondary-color);
}

/* Header */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.topbar {
    background-color: var(--dark-bg);
    color: #ffffff;
    padding: 10px 0;
    font-size: 0.9em;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.topbar a {
    color: #ffffff;
    margin-right: 15px;
}

.topbar a:hover {
    color: var(--secondary-color);
}

.header-main {
    padding: 20px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.branding {
    display: flex;
    align-items: center;
}

.branding img {
    max-height: 100px;
    max-width: 250px;
    width: auto;
    height: auto;
    margin-left: 15px;
    object-fit: contain;
}

.branding .site-title {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--primary-color);
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-navigation li {
    position: relative;
    margin-right: 20px;
}

.main-navigation a {
    color: var(--text-color);
    font-weight: 500;
    padding: 10px 0;
    display: block;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

.main-navigation .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    border-radius: 4px;
    z-index: 100;
}

.main-navigation li:hover > .sub-menu {
    display: block;
    animation: fadeIn 0.3s ease;
}

.main-navigation .sub-menu li {
    margin: 0;
    border-bottom: 1px solid #eeeeee;
}

.main-navigation .sub-menu a {
    padding: 10px 15px;
}

.main-navigation .sub-menu a::after {
    display: none;
}

.main-navigation .sub-menu a:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 500px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1c2331 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3em;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary-color);
    color: #ffffff;
    border-radius: 30px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(247, 163, 0, 0.4);
    transition: var(--transition);
}

.btn:hover {
    background-color: #e09300;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 163, 0, 0.6);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2em;
    color: var(--primary-color);
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* About Section */
.about-box {
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: justify;
    font-size: 1.1em;
}

/* Publications */
.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.pub-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    padding-bottom: 20px;
}

.pub-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.pub-icon {
    height: 150px;
    background-color: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.pub-title {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--text-color);
}

/* Footer */
.site-footer {
    background-color: var(--dark-bg);
    color: #ffffff;
    padding: 40px 0 20px;
    text-align: center;
}

.site-footer a {
    color: var(--secondary-color);
}

.social-links {
    margin: 20px 0;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 50%;
    margin: 0 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .header-main .container {
        flex-direction: column;
    }
    
    .main-navigation ul {
        flex-direction: column;
        text-align: center;
        margin-top: 20px;
    }
    
    .main-navigation li {
        margin: 0;
        border-bottom: 1px solid #eeeeee;
    }
    
    .hero h1 {
        font-size: 2em;
    }
}
