/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: #fff;
    background: #1d1c0a;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Star Background for Main Content */
.star-background {
    position: fixed;
    top: 100px;
    left: 0;
    width: 100%;
    height: calc(100vh - 100px);
    z-index: -1;
    background: transparent;
    pointer-events: none;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 20, 34, 0.7), rgba(25, 30, 44, 0.9));
    z-index: -2;
    animation: gentleFlow 15s infinite linear;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.sticky {
    background: rgba(10, 15, 29, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.logo {
    width: 150px;
    height: 70px;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav a:hover, .nav a.active {
    color: #FFC107;
}

.dropdown {
    position: relative;
}

.dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    background: none;
    border: none;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    color: #fff;
    padding: 0;
    transition: color 0.3s ease;
}

.dropdown .dropdown-toggle:hover {
    color: #FFC107;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background: rgba(10, 15, 29, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    min-width: 180px;
    z-index: 1001;
    top: 100%;
    right: 0;
    padding: 0.5rem 0;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0s ease 0.3s;
}

.dropdown:hover .dropdown-menu {
    display: block;
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.dropdown-menu li {
    list-style: none;
    padding: 0.5rem 1rem;
}

.dropdown-menu a {
    color: #fff;
    text-decoration: none;
    display: block;
}

.dropdown-menu a:hover {
    color: #03A9F4;
}

.controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-control {
    padding: 0.7rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #9C27B0;
    border-radius: 25px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    position: relative;
}

.btn-control:hover {
    background: #9C27B0;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(156, 39, 176, 0.4);
}

.btn-control i {
    margin-left: 0.5rem;
}

/* Improved User Greeting Styles */
.user-greeting {
    color: #FFC107 !important;
    margin-left: 1rem;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.2), rgba(255, 193, 7, 0.2));
    border-radius: 25px;
    border: 1px solid rgba(255, 193, 7, 0.3);
    box-shadow: 0 2px 10px rgba(255, 193, 7, 0.2);
    transition: all 0.3s ease;
    display: inline-flex !important; /* تأكد من أنها مرئية */
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    visibility: visible !important;
    opacity: 1 !important;
}

.user-greeting::before {
    content: "👋";
    font-size: 1.1rem;
}

.user-greeting:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.3), rgba(255, 193, 7, 0.3));
}

/* للتأكد من ظهورها في الوضع المحمول */
@media (max-width: 992px) {
    .user-greeting {
        display: none; /* يمكن إخفاؤها في المحمول إذا لزم الأمر */
    }
}

.notification-bell {
    position: relative;
}

.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #FF5722;
    color: #fff;
    font-size: 0.8rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.notification-popover {
    position: absolute;
    top: 60px;
    right: 20px;
    width: 300px;
    max-height: 400px;
    background: rgba(10, 15, 29, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    flex-direction: column;
}

.notification-popover.active {
    display: flex;
}

.popover-header {
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
    padding: 1rem;
    border-radius: 15px 15px 0 0;
    color: #fff;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popover-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.popover-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.popover-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notification-message {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #fff;
}

.popover-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.popover-footer .submit-btn {
    padding: 0.8rem 1.2rem;
    background: #9C27B0;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popover-footer .submit-btn:hover {
    background: #FFC107;
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100%;
    background: rgba(10, 15, 29, 0.98);
    backdrop-filter: blur(15px);
    z-index: 1002;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 2rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav {
    margin-top: 3rem;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav li {
    margin-bottom: 1rem;
}

.mobile-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    display: block;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease;
}

.mobile-nav a:hover {
    color: #FFC107;
}

.mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    font-family: 'Cairo', sans-serif;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.mobile-dropdown-menu {
    padding-right: 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-dropdown-menu.active {
    max-height: 300px;
}

.mobile-dropdown-menu li {
    margin-bottom: 0.5rem;
}

.mobile-dropdown-menu a {
    font-size: 0.95rem;
    padding: 0.5rem 0;
    border-bottom: none;
}

.mobile-controls {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-controls .btn-control {
    justify-content: center;
    text-align: center;
}

/* Main Content */
.main-content {
    min-height: 100vh;
    position: relative;
    z-index: 1;
    background: transparent;
    flex: 1;
    padding-top: 100px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Media Center Section */
.media-center-section {
    padding: 6rem 0 2rem;
    max-width: 1300px;
    margin: 0 auto;
    z-index: 1;
}

.media-container {
    padding: 3rem;
    background: rgba(15, 20, 35, 0.9);
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    margin: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h1 {
    font-size: 3.5rem;
    color: #9C27B0;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 800;
    text-shadow: 0 0 12px rgba(156, 39, 176, 0.5);
    margin-bottom: 1rem;
}

.section-line {
    width: 120px;
    height: 6px;
    background: linear-gradient(90deg, #9C27B0, #03A9F4);
    margin: 1rem auto;
    border-radius: 4px;
}

.intro-text {
    font-size: 1.3rem;
    color: #e8ecef;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.8;
    text-align: center;
}

/* Media Categories */
.media-categories {
    margin-bottom: 3rem;
}

.categories-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.category-btn {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #9C27B0;
    border-radius: 30px;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.4s ease;
    white-space: nowrap;
}

.category-btn:hover, .category-btn.active {
    background: #9C27B0;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(156, 39, 176, 0.5);
}

/* Media Content */
.media-content {
    width: 100%;
}

.media-category {
    display: none;
    animation: fadeInUp 0.6s ease-out;
}

.media-category.active {
    display: block;
}

.category-title {
    font-size: 2.5rem;
    color: #03A9F4;
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 2px solid #03A9F4;
    padding-bottom: 1rem;
    display: inline-block;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.news-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(156, 39, 176, 0.3);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #9C27B0;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

.news-content {
    padding: 1.5rem;
}

.news-content h3 {
    font-size: 1.5rem;
    color: #FFC107;
    margin-bottom: 1rem;
}

.news-content p {
    color: #e8ecef;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    color: #03A9F4;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #FFC107;
}

/* Media Coverage Section */
.media-coverage {
    margin-bottom: 3rem;
}

/* Videos Grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.video-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(156, 39, 176, 0.3);
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.video-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.1);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(156, 39, 176, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-button i {
    color: #fff;
    font-size: 1.5rem;
    margin-left: 3px;
}

.video-card:hover .play-button {
    background: #FFC107;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-duration {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

.video-content {
    padding: 1.5rem;
}

.video-content h4 {
    font-size: 1.3rem;
    color: #FFC107;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.video-content p {
    color: #e8ecef;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.video-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.video-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #03A9F4;
    font-size: 0.9rem;
}

.video-stats i {
    color: #9C27B0;
    font-size: 0.8rem;
}

/* Reports Section */
.reports-container {
    margin-bottom: 3rem;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.report-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(3, 169, 244, 0.3);
    position: relative;
    overflow: hidden;
}

.report-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #03A9F4, #9C27B0);
}

.report-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(3, 169, 244, 0.2);
}

.report-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.report-header h3 {
    font-size: 1.4rem;
    color: #FFC107;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.report-date {
    color: #03A9F4;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.report-date::before {
    content: '📅';
    font-size: 1rem;
}

.report-content p {
    color: #e8ecef;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.report-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(156, 39, 176, 0.2);
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
    background: rgba(156, 39, 176, 0.1);
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: #FFC107;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.85rem;
    color: #03A9F4;
    font-weight: 600;
}

.download-report {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #03A9F4, #9C27B0);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
}

.download-report:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(3, 169, 244, 0.4);
    background: linear-gradient(135deg, #0288D1, #7B1FA2);
}

.download-report i {
    font-size: 1.1rem;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 2rem;
}

.load-more-btn {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #9C27B0;
    border-radius: 30px;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Cairo', sans-serif;
    position: relative;
    overflow: hidden;
}

.load-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.load-more-btn:hover::before {
    left: 100%;
}

.load-more-btn:hover {
    background: #9C27B0;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(156, 39, 176, 0.5);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.load-more-btn:disabled:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.load-more-btn i {
    transition: transform 0.3s ease;
}

.load-more-btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.video-modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.modal-video {
    width: 100%;
    height: 450px;
}

.close-modal {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.close-modal:hover {
    background: #9C27B0;
}

/* Footer - Updated Design */
.footer {
    background: linear-gradient(135deg, rgba(10, 15, 29, 0.9), rgba(25, 30, 44, 0.7));
    color: #fff;
    padding: 2rem 0 0 0;
    position: relative;
    width: 100%;
    margin-top: auto;
    box-shadow: inset 0 -2px 10px rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(156, 39, 176, 0.2);
    z-index: 10;
    text-align: right;
    direction: rtl;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 2rem 2rem 2rem;
}

.footer-section {
    padding: 1rem;
    text-align: right;
    direction: rtl;
}

.footer-section h3 {
    font-size: 1.3rem;
    color: #9C27B0;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background: #9C27B0;
}

/* Logo and Social Media Section */
.logo-social-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    text-align: right;
}

.footer-logo img {
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
    width: 150px;
    height: auto;
}

.footer-logo:hover img {
    filter: brightness(0.8) invert(0.9);
}

/* Social Media Buttons */
.example-2 {
    list-style: none;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.example-2 .icon-content {
    margin: 0 5px;
    position: relative;
}

.example-2 .icon-content .tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    padding: 6px 10px;
    border-radius: 15px;
    opacity: 0;
    visibility: hidden;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.example-2 .icon-content:hover .tooltip {
    opacity: 1;
    visibility: visible;
    top: -50px;
}

.example-2 .icon-content a {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 20%;
    color: #4d4d4d;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
}

.example-2 .icon-content a:hover {
    box-shadow: 3px 2px 45px 0px rgb(0 0 0 / 50%);
}

.example-2 .icon-content a i,
.example-2 .icon-content a .x-icon {
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.example-2 .icon-content a:hover {
    color: white;
}

.example-2 .icon-content a .filled {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: #000;
    transition: all 0.3s ease-in-out;
}

.example-2 .icon-content a:hover .filled {
    height: 100%;
}

.example-2 .icon-content a[data-social="x"] .filled,
.example-2 .icon-content a[data-social="x"] ~ .tooltip {
    background-color: #000000;
}

.example-2 .icon-content a[data-social="x"]:hover .filled {
    background-color: #000000;
}

.example-2 .icon-content a[data-social="x"]:hover .x-icon {
    color: #ffffff;
}

.example-2 .icon-content a[data-social="x"]:hover {
    background-color: #000000;
}

.example-2 .icon-content a[data-social="x"] {
    background-color: #ffffff;
}

.example-2 .icon-content a[data-social="x"] .x-icon {
    color: #000000;
    transition: color 0.3s ease-in-out;
}

.example-2 .icon-content a[data-social="x"]:hover ~ .tooltip {
    background-color: #000000;
    color: #ffffff;
}

.example-2 .icon-content a[data-social="instagram"] .filled,
.example-2 .icon-content a[data-social="instagram"] ~ .tooltip {
    background-color: #E4405F;
}

.example-2 .icon-content a[data-social="youtube"] .filled,
.example-2 .icon-content a[data-social="youtube"] ~ .tooltip {
    background-color: #CD201F;
}

.example-2 .icon-content a[data-social="snapchat"] .filled,
.example-2 .icon-content a[data-social="snapchat"] ~ .tooltip {
    background-color: #FFFC00;
}

/* Programmers Section */
.programmers-section {
    margin-top: 1rem;
    text-align: right;
}

.programmers-section h4 {
    font-size: 1.2rem;
    color: #9C27B0;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.programmers-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #9C27B0, transparent);
}

.programmers-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.programmer-link {
    color: #FFC107;
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.programmer-link:hover {
    color: #03A9F4;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* تحديث: جعل أيقونة الواتساب بنفس اللون الذهبي */
.programmer-link i {
    color: #FFC107 !important; /* اللون الذهبي */
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.programmer-link:hover i {
    color: #03A9F4 !important; /* يتغير إلى الأزرق عند التمرير */
}

/* Map Section */
.map-section iframe {
    width: 100%;
    height: 200px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Contact Information Section */
.contact-info p {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-start;
    text-align: right;
}

.contact-info i {
    color: #9C27B0;
}

/* Working Hours Section */
.working-hours {
    margin-top: 1rem;
}

.working-hours .section-heading {
    color: #9C27B0;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    border-top: 2px solid #9C27B0;
    padding-top: 0.5rem;
    display: inline-block;
}

.working-hours p {
    color: #e8ecef;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-start;
    text-align: right;
}

/* تحديث: جعل أيقونة الساعة باللون الأزرق */
.working-hours i {
    color: #03A9F4 !important; /* اللون الأزرق */
    width: 20px;
}

/* Contact Form Section */
.contact-form-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    width: 100%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #9C27B0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FFC107;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* تحديث: زر الإرسال بنفس تنسيق OurSections */
.submit-btn {
    padding: 0.8rem;
    background: #9C27B0;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    width: 100%;
}

.submit-btn:hover {
    background: #FFC107;
    transform: translateY(-2px);
}

/* Copyright Section */
.footer-copyright {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    font-size: 0.9rem;
    color: #ccc;
    text-align: center;
    direction: rtl;
}

/* Additional Styles for Hidden Items */
.news-grid .news-card:nth-child(n+4),
.videos-grid .video-card:nth-child(n+4),
.reports-grid .report-card:nth-child(n+4) {
    display: none;
}

/* Show all items when show-all class is added */
.news-grid.show-all .news-card,
.videos-grid.show-all .video-card,
.reports-grid.show-all .report-card {
    display: block;
}

/* Load More Button States */
.load-more-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.load-more-btn.hidden {
    display: none;
}

/* Chatbot Styles - نفس تنسيق paths.css */
.chatbot-container {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 350px;
    max-height: 500px;
    background: rgba(10, 15, 29, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    z-index: 2000;
    border: 1px solid rgba(156, 39, 176, 0.3);
}

.chatbot-container.active {
    display: flex;
}

.chatbot-header {
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
    padding: 1rem;
    border-radius: 15px 15px 0 0;
    color: #fff;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Cairo', sans-serif;
}

.chatbot-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.chatbot-close:hover {
    transform: scale(1.2);
}

.chatbot-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 300px;
}

.chatbot-message {
    max-width: 80%;
    padding: 0.8rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Cairo', sans-serif;
    line-height: 1.4;
}

.chatbot-message.bot {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    align-self: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chatbot-message.user {
    background: #9C27B0;
    color: #fff;
    align-self: flex-end;
    border: 1px solid rgba(156, 39, 176, 0.5);
}

.chatbot-input {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chatbot-input input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #9C27B0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.chatbot-input input:focus {
    outline: none;
    border-color: #FFC107;
    background: rgba(255, 255, 255, 0.15);
}

.chatbot-input input::placeholder {
    color: #ccc;
}

.chatbot-input button {
    padding: 0.8rem 1.2rem;
    background: #9C27B0;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
}

.chatbot-input button:hover {
    background: #FFC107;
    transform: translateY(-2px);
}

.chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
    border-radius: 50%;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(156, 39, 176, 0.4);
    z-index: 2000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-toggle:hover {
    background: linear-gradient(135deg, #FFC107, #FFA000);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.5);
}

/* Scrollbar styling for chatbot messages */
.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: #9C27B0;
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #7B1FA2;
}

/* إزالة الشات بوت القديم */
.chat-bot, .chat-box {
    display: none !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gentleFlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* ===== جرس الإشعارات - أضف هذا في كل CSS ===== */
.notification-bell { position: relative; cursor: pointer; }
.notification-count {
    position: absolute; top: -8px; right: -8px; background: #ff4444; color: white;
    border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center;
    justify-content: center; font-size: 12px; font-weight: bold; animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }

.notification-popover {
    position: fixed; top: 70px; right: 20px; width: 350px; max-height: 500px; background: #1a1a1a;
    border: 1px solid #333; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 10000; display: none; flex-direction: column; overflow: hidden;
}
.notification-header {
    display: flex; justify-content: space-between; align-items: center; padding: 15px;
    background: #2a2a2a; border-bottom: 1px solid #333;
}
.mark-read-btn {
    background: #4CAF50; color: white; border: none; padding: 5px 10px; border-radius: 5px;
    cursor: pointer; font-size: 12px;
}
.notification-messages { max-height: 400px; overflow-y: auto; padding: 10px; }
.notification-message {
    padding: 12px; margin-bottom: 8px; background: #2a2a2a; border-radius: 8px;
    border-left: 3px solid #9C27B0; transition: all 0.3s ease;
}
.notification-message.unread {
    background: #333; box-shadow: 0 2px 10px rgba(156, 39, 176, 0.3);
}
.notification-message.unread::after {
    content: 'جديد'; position: absolute; top: 5px; right: 10px; background: #ff4444;
    color: white; padding: 2px 6px; border-radius: 10px; font-size: 10px;
}
.popover-close { background: none; border: none; color: #ccc; font-size: 20px; cursor: pointer; }

/* Responsive Design - Mobile First Approach */
@media (max-width: 1200px) {
    .header {
        padding: 1.5rem 3%;
    }
    
    .section-header h1 {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .controls {
        display: none;
    }
    
    .mobile-controls {
        display: flex;
    }
    
    .section-header h1 {
        font-size: 2.5rem;
    }
    
    .intro-text {
        font-size: 1.2rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1rem 5%;
    }
    
    .logo {
        width: 120px;
        height: 60px;
    }
    
    .media-center-section {
        padding: 5rem 0 1rem;
    }
    
    .media-container {
        padding: 2rem;
        margin: 0 1rem;
        border-radius: 20px;
    }
    
    .section-header h1 {
        font-size: 2.2rem;
    }
    
    .intro-text {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .categories-nav {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .category-btn {
        width: 100%;
        max-width: 250px;
        padding: 0.8rem 1.5rem;
        font-size: 1.1rem;
    }
    
    .category-title {
        font-size: 2rem;
    }
    
    .news-grid, .videos-grid, .reports-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .news-card, .video-card, .report-card {
        margin: 0 auto;
        max-width: 400px;
    }
    
    .report-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-item {
        padding: 0.8rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .load-more-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section h3::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .logo-social-section {
        align-items: center;
    }
    
    .example-2 {
        justify-content: center;
    }
    
    .chatbot-container {
        width: 90%;
        right: 5%;
        bottom: 70px;
    }
    
    .chatbot-toggle {
        right: 1rem;
        bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .header {
        padding: 0.8rem 3%;
    }
    
    .logo {
        width: 100px;
        height: 50px;
    }
    
    .media-center-section {
        padding: 4rem 0 1rem;
    }
    
    .media-container {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .section-header h1 {
        font-size: 1.8rem;
        padding: 0 1rem;
    }
    
    .intro-text {
        font-size: 1rem;
    }
    
    .category-title {
        font-size: 1.8rem;
    }
    
    .news-content h3, .video-content h4, .report-header h3 {
        font-size: 1.3rem;
    }
    
    .report-stats {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        padding: 1rem;
    }
    
    .stat-item {
        padding: 0.6rem;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .chatbot-container {
        width: 95%;
        right: 2.5%;
        bottom: 60px;
        max-height: 400px;
    }
    
    .chatbot-header {
        font-size: 0.8rem;
        padding: 0.8rem;
    }
    
    .chatbot-messages {
        padding: 0.8rem;
        max-height: 250px;
    }
    
    .chatbot-message {
        font-size: 0.85rem;
        padding: 0.6rem;
    }
    
    .chatbot-input {
        padding: 0.8rem;
    }
    
    .chatbot-input input {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
    
    .chatbot-input button {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .chatbot-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        bottom: 15px;
        right: 15px;
    }
    
    .notification-popover {
        width: 300px;
        right: 10px;
    }
    
    .mobile-menu {
        width: 85%;
    }
}

@media (max-width: 400px) {
    .section-header h1 {
        font-size: 1.6rem;
    }
    
    .intro-text {
        font-size: 0.9rem;
    }
    
    .category-title {
        font-size: 1.6rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .mobile-menu {
        width: 90%;
        padding: 1.5rem;
    }
}
/* أنماط إضافية للمركز الإعلامي */
.media-admin-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-admin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.categories-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.category-btn {
    background: var(--light);
    border: 2px solid transparent;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.media-category {
    display: none;
}

.media-category.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}