/* UDMM Website Styles */

/* Global Styles */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
}

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

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

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

ul {
    list-style: none;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 15px;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a:hover {
    color: var(--primary-color);
}

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

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

.lang-switch {
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
}

.lang-switch:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn.primary {
    background-color: white;
    color: var(--primary-color);
}

.btn.primary:hover {
    background-color: var(--light-color);
}

.btn.secondary {
    background-color: var(--secondary-color);
    color: white;
    margin: 0 0.5rem;
}

.btn.secondary:hover {
    background-color: #34495e;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: white;
}

.features .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-item {
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Call to Action Section */
.call-to-action {
    background-color: var(--light-color);
    padding: 5rem 0;
    text-align: center;
}

.call-to-action h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.call-to-action p {
    max-width: 800px;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer Styles */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-info h3,
.footer-links h3,
.footer-language h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-links ul li,
.footer-language ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a,
.footer-language ul li a {
    color: #bdc3c7;
}

.footer-links ul li a:hover,
.footer-language ul li a:hover,
.footer-language ul li a.active {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: #bdc3c7;
}

/* Page Header */
.page-header {
    background-color: var(--secondary-color);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    margin-bottom: 0.5rem;
}

/* Content Section */
.content-section {
    padding: 3rem 0;
}

.content-container {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.content-container h2 {
    color: var(--secondary-color);
    margin: 2rem 0 1rem;
}

.content-container h2:first-child {
    margin-top: 0;
}

.content-container p {
    margin-bottom: 1rem;
}

.content-container ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.content-container ul li {
    margin-bottom: 0.5rem;
}

/* Academic Platforms */
.academic-platforms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.platform {
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.platform i {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.platform h3 {
    margin-bottom: 0.5rem;
}

.platform p {
    margin-bottom: 1.5rem;
}

/* Papers Grid */
.papers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.paper-item {
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.paper-item:hover {
    transform: translateY(-5px);
}

.paper-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.paper-item .meta {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.paper-item p {
    margin-bottom: 1.5rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn.secondary {
        margin: 0.5rem;
    }
}

/* RTL Support for Arabic */
[lang="ar"] {
    direction: rtl;
    text-align: right;
}

[lang="ar"] nav ul li {
    margin-right: 1.5rem;
    margin-left: 0;
}

[lang="ar"] .footer-content {
    text-align: right;
}
