@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&family=Tajawal:wght@300;400;500;700;900&display=swap');

:root {
    --primary: #0A1C37;       /* Dark Blue Logo Color */
    --primary-light: #15325E; /* Lighter Blue */
    --accent: #F5C618;        /* Yellow Logo Color */
    --accent-hover: #D8AD12;  /* Darker Yellow for Hover */
    --dark: #1E293B;          /* Charcoal text */
    --light-grey: #F8FAFC;    /* Soft background */
    --border-color: #E2E8F0;  /* Subtle divider */
    --white: #FFFFFF;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    --font-cairo: 'Cairo', sans-serif;
    --font-tajawal: 'Tajawal', sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    direction: rtl;
    text-align: right;
    font-family: var(--font-tajawal);
    background-color: var(--light-grey);
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-cairo);
    font-weight: 700;
    color: var(--primary);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Wrapper */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Header */
.section-title {
    position: relative;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    padding-bottom: 0.8rem;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 6px;
    font-family: var(--font-cairo);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 8px;
}

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

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

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

.btn-accent:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--primary);
    background-color: transparent;
    color: var(--primary);
}

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

/* Header / Navigation */
.site-header {
    background-color: var(--primary);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 0;
    font-size: 0.85rem;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-socials {
    display: flex;
    gap: 15px;
}

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

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

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-area img {
    width: 220px;
    height: auto;
}

.logo-text h1 {
    font-size: 1.3rem;
    color: var(--accent);
    line-height: 1.2;
}

.logo-text span {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    line-height: 1.3;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-menu a {
    font-family: var(--font-cairo);
    font-weight: 600;
    font-size: 1.05rem;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

.nav-menu a:hover,
.nav-menu li.active a {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.nav-menu a.nav-btn {
    display: inline-block;
    background-color: var(--accent);
    color: var(--primary) !important;
    padding: 6px 18px;
    border-radius: 30px;
    font-weight: 700;
    border: 2px solid var(--accent);
    border-bottom: 2px solid transparent !important;
    transition: var(--transition);
    line-height: 1.2;
}

.nav-menu a.nav-btn:hover {
    background-color: transparent;
    color: var(--accent) !important;
    border-color: var(--accent);
    border-bottom: 2px solid transparent !important;
    text-decoration: none;
}

.nav-menu li.active a.nav-btn {
    background-color: var(--accent);
    color: var(--primary) !important;
    border-color: var(--accent);
    border-bottom: 2px solid transparent !important;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: transparent;
    border: none;
    color: var(--white);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    background-color: var(--primary);
    color: var(--white);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(21, 50, 94, 0.4) 0%, transparent 80%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 0.8s ease;
}

.hero-badge {
    background-color: var(--accent);
    color: var(--primary);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-family: var(--font-cairo);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 20px;
}

.hero-title a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.hero-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-excerpt {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 3px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 1s ease;
}

.hero-image-wrapper img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-image-wrapper:hover img {
    transform: scale(1.05);
}

/* News Section */
.news-section {
    padding: 80px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(245, 198, 24, 0.4);
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.card-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary);
    color: var(--accent);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: var(--font-cairo);
    font-weight: 700;
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-date {
    font-size: 0.85rem;
    color: var(--light-grey);
    background-color: #f1f5f9;
    color: #64748b;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    align-self: flex-start;
    margin-bottom: 12px;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

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

.card-excerpt {
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    font-size: 0.85rem;
}

.read-more {
    font-family: var(--font-cairo);
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.read-more:hover {
    color: var(--accent-hover);
}

/* Program Section */
.program-section {
    background-color: var(--primary);
    color: var(--white);
    padding: 80px 0;
    position: relative;
}

.program-section .section-title {
    color: var(--white);
}

.program-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.program-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.program-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    transform: translateY(-5px);
}

.program-icon {
    width: 60px;
    height: 60px;
    background-color: var(--accent);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.program-card h3 {
    color: var(--accent);
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.program-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* Events & Agenda Section */
.events-section {
    padding: 80px 0;
    background-color: var(--white);
}

.events-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.event-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 30px;
    align-items: center;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 24px;
    border-right: 5px solid var(--accent);
    transition: var(--transition);
    box-shadow: 0 4px 20px -2px rgba(10, 28, 55, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-right-width: 5px;
}

.event-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -5px rgba(10, 28, 55, 0.1);
    background-color: #fafbfc;
    border-color: rgba(245, 198, 24, 0.3);
}

.event-date-box {
    background: linear-gradient(135deg, var(--primary), #0f172a);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 10px;
    width: 85px;
    height: 85px;
    box-shadow: 0 4px 12px rgba(10, 28, 55, 0.15);
}

.event-day {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
}

.event-month {
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 2px;
    font-family: var(--font-cairo);
}

.event-info h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 12px;
    line-height: 1.4;
    font-family: var(--font-heading);
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.event-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #f1f5f9;
    color: #475569;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.event-meta span:hover {
    background-color: #e2e8f0;
    color: var(--primary);
}

/* Custom event info layout with thumbnails */
.event-info-wrapper {
    display: flex;
    gap: 25px;
    align-items: center;
    width: 100%;
    direction: rtl;
    text-align: right;
}

.event-image-thumb {
    flex-shrink: 0;
    width: 110px;
    height: 145px; /* Perfect portrait flyer aspect ratio */
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.8);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.event-image-thumb:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(10, 28, 55, 0.15);
    border-color: var(--accent);
}

.event-image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-image-thumb:hover img {
    transform: scale(1.08);
}

.event-text-content {
    flex-grow: 1;
}

/* Event badges */
.event-badge-upcoming {
    background-color: #dcfce7 !important;
    color: #166534 !important;
    border: 1px solid #bbf7d0 !important;
    padding: 8px 18px !important;
    border-radius: 30px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    box-shadow: 0 2px 5px rgba(22, 101, 52, 0.05) !important;
    font-family: var(--font-cairo);
}

.event-badge-past {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
    padding: 8px 18px !important;
    border-radius: 30px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    box-shadow: 0 2px 5px rgba(71, 85, 105, 0.05) !important;
    font-family: var(--font-cairo);
}

@media (max-width: 768px) {
    .event-row {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }
    .event-info-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    .event-meta {
        justify-content: center;
    }
    .event-image-thumb {
        width: 140px;
        height: 185px;
    }
}

/* Candidates Section */
.candidates-section {
    padding: 80px 0;
}

.candidates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
}

.candidate-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    text-align: center;
}

.candidate-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(245, 198, 24, 0.4);
}

.candidate-img-wrapper {
    height: 280px;
    overflow: hidden;
    position: relative;
    background-color: #f1f5f9;
}

.candidate-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.candidate-details {
    padding: 25px 20px;
}

.candidate-name {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.candidate-role {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 15px;
    font-family: var(--font-cairo);
}

/* Candidate Modal Style (Optional Popup via JS) */
.candidate-bio {
    font-size: 0.9rem;
    color: #475569;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer Section */
.site-footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 60px 0 20px;
    border-top: 5px solid var(--accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget h3 {
    color: var(--accent);
    font-family: var(--font-cairo);
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent);
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent);
    padding-right: 5px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.footer-socials a:hover {
    background-color: var(--accent);
    color: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Post Detail Page & Single Pages */
.page-header-banner {
    background-color: var(--primary);
    color: var(--white);
    padding: 50px 0;
    margin-bottom: 50px;
}

.page-header-title {
    font-size: 2.2rem;
    color: var(--white);
}

.page-breadcrumbs {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 10px;
}

.main-content-layout {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.article-content {
    background-color: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.article-meta-info {
    display: flex;
    gap: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: #64748b;
}

.article-featured-img {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.article-body-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #334155;
}

.article-body-text p {
    margin-bottom: 20px;
}

.post-source-box {
    background-color: #f1f5f9;
    padding: 15px;
    border-right: 4px solid var(--accent);
    margin: 20px 0;
    direction: rtl;
    text-align: right;
    border-radius: 4px;
    font-family: var(--font-cairo), sans-serif;
}

.post-source-box a {
    color: var(--primary);
    font-weight: bold;
    text-decoration: none;
}

.post-source-box a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.article-body-text h3 {
    margin: 30px 0 15px;
    font-size: 1.45rem;
}

.article-body-text ul, .article-body-text ol {
    margin: 0 20px 20px 0;
}

.article-body-text li {
    margin-bottom: 8px;
}

.article-share-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.article-share-buttons .share-title {
    font-family: var(--font-cairo);
    font-weight: 700;
    color: var(--primary);
    margin-left: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    font-family: var(--font-cairo);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--white) !important;
    transition: var(--transition);
    cursor: pointer;
}

.share-btn i {
    font-size: 1rem;
}

.share-whatsapp {
    background-color: #25D366;
}

.share-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

.share-facebook {
    background-color: #1877F2;
}

.share-facebook:hover {
    background-color: #0E5ED2;
    transform: translateY(-2px);
}

.share-twitter {
    background-color: #000000;
}

.share-twitter:hover {
    background-color: #333333;
    transform: translateY(-2px);
}

.share-linkedin {
    background-color: #0A66C2;
}

.share-linkedin:hover {
    background-color: #004182;
    transform: translateY(-2px);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.tag-badge {
    background-color: #f1f5f9;
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.tag-badge:hover {
    background-color: var(--accent);
    color: var(--primary);
}

/* Sidebar Widgets */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background-color: var(--white);
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 12px;
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 8px;
}

.category-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
}

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

.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recent-post-item {
    display: flex;
    gap: 12px;
}

.recent-post-thumb {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 5px;
}

.recent-post-info span {
    font-size: 0.8rem;
    color: #64748b;
}

/* Lucide Icon fallbacks */
.icon-box {
    display: inline-block;
    vertical-align: middle;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Rules */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-image-wrapper img {
        height: 300px;
    }
    .main-content-layout {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary);
        padding: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: var(--shadow-lg);
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-menu a.nav-btn {
        text-align: center;
        margin-top: 10px;
        align-self: stretch;
    }
    .menu-toggle {
        display: block;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .event-row {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }
}

/* Contact Page Grid & Styling */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}

.contact-info-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info-card, .contact-form-card, .contact-map-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 35px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.contact-info-card h3, .contact-form-card h2, .contact-map-card h3 {
    font-family: var(--font-cairo);
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--primary);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
    display: inline-block;
}

.contact-info-card p, .contact-form-card p {
    color: #64748b;
    margin-bottom: 25px;
    line-height: 1.8;
}

.info-item-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.info-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(10, 28, 55, 0.05);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.info-item:hover .info-icon {
    background-color: var(--accent);
    color: var(--primary);
}

.info-text strong {
    display: block;
    color: var(--primary);
    margin-bottom: 3px;
    font-family: var(--font-cairo);
}

.info-text span {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-socials-list {
    display: flex;
    gap: 12px;
}

.c-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white) !important;
    font-size: 1.1rem;
    transition: var(--transition);
}

.c-social-link.fb { background-color: #1877F2; }
.c-social-link.tw { background-color: #000000; }
.c-social-link.yt { background-color: #FF0000; }

.c-social-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    opacity: 0.9;
}

.map-placeholder {
    height: 200px;
    background-color: #f8fafc;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

/* Responsiveness for contact page */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Form Fields & Controls */
.form-group {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
}

.form-group label {
    font-family: var(--font-cairo);
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
}

.form-control {
    width: 100% !important;
    display: block;
    padding: 14px 18px;
    font-family: var(--font-tajawal);
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark);
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.01);
}

.form-control:focus {
    outline: none;
    background-color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(10, 28, 55, 0.08), inset 0 2px 4px rgba(0,0,0,0.01);
}

.form-control::placeholder {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 400;
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

/* Alert Boxes on Frontend */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-tajawal);
    font-size: 0.95rem;
    line-height: 1.6;
}

.alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Dedicated Program Page Styling */
.program-page-intro {
    background-color: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    border-right: 5px solid var(--accent);
}

.program-page-intro p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #475569;
    font-weight: 500;
}

.program-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.program-page-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 35px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.program-page-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.program-page-icon {
    width: 55px;
    height: 55px;
    background-color: rgba(10, 28, 55, 0.05);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    transition: var(--transition);
}

.program-page-card:hover .program-page-icon {
    background-color: var(--accent);
    color: var(--primary);
}

.program-page-card h3 {
    font-family: var(--font-cairo);
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 800;
    border-bottom: 2px solid var(--light-grey);
    padding-bottom: 15px;
    margin: 0;
}

.program-page-card:hover h3 {
    border-bottom-color: var(--accent);
}

.program-page-card p {
    font-family: var(--font-tajawal);
    font-size: 1rem;
    color: #475569;
    line-height: 1.8;
    margin: 0;
}

/* Campaign PDF Download Banner */
.program-download-banner {
    background-color: var(--primary);
    color: var(--white);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-md);
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}

.program-download-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -30%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(245, 198, 24, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.program-download-banner h3 {
    color: var(--accent);
    font-family: var(--font-cairo);
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.program-download-banner p {
    color: rgba(255,255,255,0.85);
    max-width: 650px;
    margin: 0 auto 30px;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Mitaq Special Design Styles */
.mitaq-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 20px;
}

.mitaq-preamble-card {
    background-color: var(--light-grey);
    border-right: 5px solid var(--accent);
    border-radius: 8px;
    padding: 30px;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.mitaq-preamble-card .quote-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 3rem;
    color: rgba(245, 198, 24, 0.15);
    line-height: 1;
}

.mitaq-preamble-card h3 {
    font-family: var(--font-cairo);
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 700;
}

.mitaq-preamble-card p {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 15px;
}

.mitaq-preamble-card p:last-child {
    margin-bottom: 0;
}

.mitaq-preamble-card .preamble-highlight {
    font-weight: 600;
    color: var(--primary-light);
    border-top: 1px dashed var(--border-color);
    padding-top: 15px;
    margin-top: 15px;
}

.mitaq-section-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 35px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.mitaq-section-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(245, 198, 24, 0.3);
}

.mitaq-section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--light-grey);
    padding-bottom: 15px;
}

.mitaq-section-card:hover .mitaq-section-header {
    border-bottom-color: var(--accent);
}

.mitaq-number {
    background-color: var(--primary);
    color: var(--accent);
    font-family: var(--font-cairo);
    font-weight: 800;
    font-size: 1.2rem;
    padding: 6px 18px;
    border-radius: 6px;
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
    display: inline-block;
}

.mitaq-section-header h2 {
    font-family: var(--font-cairo);
    font-size: 1.6rem;
    color: var(--primary);
    margin: 0;
}

.section-intro {
    font-size: 1.05rem;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 30px;
    font-style: italic;
}

.mitaq-points-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.mitaq-point-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    border-radius: 8px;
    background-color: var(--light-grey);
    transition: var(--transition);
}

.mitaq-point-item:hover {
    background-color: #f1f5f9;
    transform: translateY(-2px);
}

.point-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.mitaq-point-item:hover .point-icon {
    background-color: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
}

.point-content {
    flex: 1;
    min-width: 0;
}

.point-content h4 {
    font-family: var(--font-cairo);
    font-size: 1.1rem;
    color: var(--primary);
    margin: 0 0 10px 0;
    font-weight: 700;
}

.point-content p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.8;
    margin: 0;
}

.point-subtext {
    margin-top: 15px !important;
    padding-top: 15px;
    border-top: 1px dashed var(--border-color);
    color: #64748b !important;
    font-size: 0.9rem !important;
}

@media (max-width: 768px) {
    .mitaq-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .mitaq-point-item {
        flex-direction: column;
        gap: 15px;
    }
    .point-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   Candidates Page Layout & Interactive SVG Map
   ========================================================================= */

.candidates-page-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}

/* Map Section Styles */
.map-section {
    position: sticky;
    top: 110px;
    background-color: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
}

.map-section:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

#morocco-map-container {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

/* SVG Regions */
.region-group {
    cursor: pointer;
    transition: var(--transition);
}

.map-region {
    fill: #f1f5f9;
    stroke: #ffffff;
    stroke-width: 2px;
    stroke-linejoin: round;
    transition: fill 0.3s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.3s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s ease;
}

.region-group:hover .map-region,
.region-group.active .map-region {
    fill: var(--primary);
    stroke: var(--accent);
    stroke-width: 2px;
    filter: drop-shadow(0 4px 8px rgba(10, 28, 55, 0.3));
}

/* SVG Region Labels */
.map-region-label {
    font-family: var(--font-cairo);
    font-size: 12px;
    font-weight: 800;
    fill: var(--primary);
    stroke: #ffffff;
    stroke-width: 3px;
    stroke-linejoin: round;
    paint-order: stroke fill;
    text-anchor: middle;
    pointer-events: none;
    transition: fill 0.3s ease, font-size 0.3s ease, stroke 0.3s ease;
}

.region-group:hover .map-region-label,
.region-group.active .map-region-label {
    fill: var(--accent);
    stroke: var(--primary);
    stroke-width: 3px;
    font-size: 13px;
}

/* SVG Region Candidate Badges */
.map-region-badge {
    fill: var(--accent);
    stroke: #ffffff;
    stroke-width: 1.5px;
    transition: var(--transition);
}

.region-group:hover .map-region-badge,
.region-group.active .map-region-badge {
    fill: var(--white);
    stroke: var(--primary);
    stroke-width: 2px;
}

.map-region-badge-text {
    font-family: var(--font-tajawal);
    font-size: 10px;
    font-weight: 800;
    fill: var(--primary);
    text-anchor: middle;
    dominant-baseline: central;
    pointer-events: none;
    transition: var(--transition);
}

.region-group:hover .map-region-badge-text,
.region-group.active .map-region-badge-text {
    fill: var(--primary);
}

/* List Section & Horizontal Candidate Cards */
.list-section .candidate-card {
    text-align: right;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition) !important;
}

.list-section .candidate-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--shadow-md) !important;
    border-color: var(--accent) !important;
}

.list-section .candidate-img-wrapper {
    height: 90px !important;
    width: 90px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    border: 2px solid var(--border-color) !important;
    background-color: #f1f5f9 !important;
}

.list-section .candidate-img-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.list-section .candidate-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.list-section .candidate-name {
    font-family: var(--font-cairo);
    font-size: 1.2rem;
    color: var(--primary);
    margin: 0 0 6px 0;
    font-weight: 700;
}

.list-section .candidate-role {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 8px;
}

.list-section .candidate-bio {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* Responsiveness for Candidate split page */
@media (max-width: 992px) {
    .candidates-page-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .map-section {
        position: static !important;
        top: 0 !important;
        max-width: 500px;
        margin: 0 auto 20px;
    }
}

@media (max-width: 576px) {
    .list-section .candidate-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 25px 20px;
    }
    
    .list-section .candidate-details {
        align-items: center;
    }
    
    .list-section .candidate-location {
        justify-content: center !important;
    }
}

/* ==========================================
   Visual Identity (Brand Guidelines) Styles
   ========================================== */
.brand-container {
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 60px;
}

.brand-section {
    background-color: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.brand-section-title {
    font-size: 1.6rem;
    margin-bottom: 25px;
    color: var(--primary);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-section-title span {
    font-size: 0.9rem;
    font-weight: normal;
    color: #64748b;
    text-transform: uppercase;
    font-family: var(--font-tajawal);
}

/* Colors Grid */
.brand-colors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.color-swatch-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.color-swatch-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.color-preview {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-details {
    padding: 20px;
}

.color-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.color-name-fr {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 15px;
}

.color-meta {
    font-family: monospace;
    font-size: 0.95rem;
    background: #f1f5f9;
    padding: 8px 12px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--dark);
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    font-size: 1rem;
    transition: var(--transition);
    padding: 4px;
    border-radius: 4px;
}

.copy-btn:hover {
    color: var(--accent-hover);
    background-color: #e2e8f0;
}

/* Fonts Specimen */
.font-specimen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.font-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    background: var(--white);
}

.font-specimen-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.font-specimen-use {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 20px;
}

.font-preview-large {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 15px;
}

.font-preview-text {
    font-size: 1rem;
    color: #475569;
}

/* Logo Grid & Preview Styles */
.brand-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.logo-showcase-card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--white);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.logo-preview-container {
    position: relative;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

.logo-preview-box {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: var(--transition);
}

/* Backgrounds types */
.logo-preview-box.checkerboard {
    background-color: #f8fafc;
    background-image: linear-gradient(45deg, #cbd5e1 25%, transparent 25%),
                      linear-gradient(-45deg, #cbd5e1 25%, transparent 25%),
                      linear-gradient(45deg, transparent 75%, #cbd5e1 75%),
                      linear-gradient(-45deg, transparent 75%, #cbd5e1 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.logo-preview-box.light {
    background-color: #ffffff;
}

.logo-preview-box.dark {
    background-color: #0A1C37; /* Brand Primary color */
}

.logo-preview-box img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-showcase-card:hover .logo-preview-box img {
    transform: scale(1.05);
}

/* Switcher controls */
.preview-bg-switcher {
    display: flex;
    gap: 5px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 6px;
    position: absolute;
    top: 15px;
    left: 15px; /* RTL aware top left floating */
    z-index: 10;
    border: 1px solid var(--border-color);
}

.switcher-btn {
    border: none;
    background: none;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    font-family: var(--font-cairo);
    font-weight: 600;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.switcher-btn:hover {
    color: var(--primary);
    background-color: rgba(255, 255, 255, 0.5);
}

.switcher-btn.active {
    background-color: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.logo-details-panel {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.logo-title-ar {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2px;
}

.logo-title-fr {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 12px;
}

.logo-desc {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.logo-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
}

.brand-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
    font-family: var(--font-cairo);
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
    border: none;
}

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

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

.brand-btn-outline {
    border: 1px solid var(--border-color);
    background-color: transparent;
    color: #475569;
}

.brand-btn-outline:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    color: var(--primary);
}

/* Dos and Don'ts Section */
.guidelines-dos-donts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.guidelines-box {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
}

.guidelines-box.dos {
    border-top: 4px solid #10b981; /* Green */
    background-color: rgba(16, 185, 129, 0.02);
}

.guidelines-box.donts {
    border-top: 4px solid #ef4444; /* Red */
    background-color: rgba(239, 68, 68, 0.02);
}

.guidelines-box h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.guidelines-box.dos h4 {
    color: #10b981;
}

.guidelines-box.donts h4 {
    color: #ef4444;
}

.guidelines-list {
    list-style: none;
}

.guidelines-list li {
    position: relative;
    padding-right: 25px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.6;
}

/* Custom list markers for RTL layout */
.guidelines-box.dos .guidelines-list li::before {
    content: '\f00c'; /* FontAwesome check */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    color: #10b981;
}

.guidelines-box.donts .guidelines-list li::before {
    content: '\f00d'; /* FontAwesome times */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    color: #ef4444;
}

/* Toast message for color copy */
.toast-msg {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: var(--primary);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 30px;
    z-index: 1100;
    font-family: var(--font-cairo);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,0.1);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast-msg.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Responsiveness */
@media (max-width: 768px) {
    .guidelines-dos-donts {
        grid-template-columns: 1fr;
    }
    .brand-section {
        padding: 25px 20px;
    }
    .brand-section-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

