/* CSS Variables for Design System */
:root {
    --primary: hsl(120, 45%, 25%);
    --primary-dark: hsl(120, 45%, 20%);
    --gold: hsl(43, 56%, 65%);
    --gold-light: hsl(43, 56%, 75%);
    --background: hsl(0, 0%, 98%);
    --foreground: hsl(0, 0%, 15%);
    --muted: hsl(0, 0%, 96%);
    --muted-foreground: hsl(0, 0%, 45%);
    --border: hsl(0, 0%, 90%);
    --red: hsl(0, 84%, 60%);
    --white: hsl(0, 0%, 100%);
}

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

body {
    font-family: 'Noto Sans Arabic', 'Cairo', Arial, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    direction: rtl;
    text-align: right;
    line-height: 1.6;
}

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

/* Banner Styles */
.banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 20px 0;
    text-align: center;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.logo-container {
    display: flex;
    gap: 20px;
    align-items: center;
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    object-fit: cover;
}

.banner-text h1 {
    font-family: 'Amiri', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--gold);
}

.banner-text h2 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 400;
}

.banner-text p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Top Navigation */
.topbar {
    background-color: var(--primary);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.9rem;
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--gold);
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-icon {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.2);
}

/* Main Header */
.main-header {
    background-color: var(--white);
    border-bottom: 2px solid var(--border);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.main-nav {
    display: flex;
    gap: 30px;
}

.nav-item {
    color: var(--foreground);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-item:hover,
.nav-item.active {
    color: var(--primary);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
}

.search-container {
    display: flex;
    align-items: center;
    background-color: var(--muted);
    border-radius: 25px;
    padding: 5px;
    border: 2px solid var(--border);
}

.search-input {
    border: none;
    outline: none;
    background: transparent;
    padding: 8px 15px;
    font-size: 1rem;
    width: 300px;
    text-align: right;
}

.search-btn {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

/* News Ticker */
.news-ticker {
    background: linear-gradient(45deg, var(--gold-light), var(--gold));
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.ticker-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ticker-label {
    background-color: var(--red);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.ticker-text {
    display: flex;
    gap: 50px;
    animation: scroll 30s linear infinite;
    white-space: nowrap;
}

@keyframes scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Main Content */
.main-content {
    padding: 40px 0;
}

.main-content section {
    margin-bottom: 60px;
}

.main-content h2 {
    font-family: 'Amiri', serif;
    font-size: 2.2rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.main-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(45deg, var(--primary), var(--gold));
}

/* Circular Navigation */
.circular-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    justify-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.circular-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, var(--white), var(--muted));
    border: 2px solid var(--border);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: var(--foreground);
    text-decoration: none;
    padding: 20px 10px;
    justify-content: center;
}

.circular-nav .nav-item:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(45, 90, 39, 0.2);
}

.nav-icon {
    font-size: 2rem;
    margin-bottom: 5px;
}

.circular-nav .nav-item span {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Portal Access */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.portal-card {
    background-color: var(--white);
    border: 2px solid var(--border);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.portal-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(45, 90, 39, 0.15);
}

.portal-card h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-family: 'Amiri', serif;
}

.portal-card p {
    color: var(--muted-foreground);
    margin-bottom: 20px;
    line-height: 1.8;
}

.portal-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.portal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 90, 39, 0.3);
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.news-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--gold);
}

.news-card h3 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-family: 'Amiri', serif;
}

.news-card p {
    color: var(--muted-foreground);
    margin-bottom: 15px;
    line-height: 1.7;
}

.news-date {
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Video Section */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.video-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.video-thumbnail {
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

.play-button {
    font-size: 3rem;
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.video-card h3 {
    padding: 15px 20px 10px;
    color: var(--primary);
    font-size: 1.2rem;
    font-family: 'Amiri', serif;
}

.video-card p {
    padding: 0 20px 20px;
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 60px;
}

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

.footer-section h3 {
    color: var(--gold);
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-family: 'Amiri', serif;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--gold);
}

.newsletter {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.newsletter-input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

.newsletter-btn {
    background-color: var(--gold);
    color: var(--primary);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .banner-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .logo-container {
        gap: 15px;
    }
    
    .logo {
        width: 60px;
        height: 60px;
    }
    
    .banner-text h1 {
        font-size: 1.8rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .search-input {
        width: 200px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    
    .circular-nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .circular-nav .nav-item {
        width: 100px;
        height: 100px;
        padding: 15px 8px;
    }
    
    .nav-icon {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .banner-text h1 {
        font-size: 1.5rem;
    }
    
    .banner-text h2 {
        font-size: 1rem;
    }
    
    .main-content h2 {
        font-size: 1.8rem;
    }
    
    .circular-nav {
        grid-template-columns: 1fr 1fr;
    }
    
    .newsletter {
        flex-direction: column;
    }
}