:root {
    /* Bold & Vibrant Color Palette */
    --primary-color: #0F2C59;
    --primary-light: #1a4a93;
    --accent-color: #D4AF37;
    --accent-glow: rgba(212, 175, 55, 0.4);
    --secondary-color: #f1f5f9;
    --text-main: #0f172a;
    /* Darker Slate-900 for primary readability */
    --text-light: #334155;
    /* Slate-700 for secondary text instead of light gray */
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --border-color: rgba(15, 44, 89, 0.08);

    /* Creative Gradients */
    --gradient-primary: linear-gradient(135deg, #0F2C59 0%, #1a4a93 100%);
    --gradient-accent: linear-gradient(135deg, #D4AF37 0%, #FFD700 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));

    /* Modern Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 25px 50px -12px rgba(15, 44, 89, 0.15);
    --glass-blur: 12px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

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

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.7;
    background-color: var(--bg-light);
    color: var(--text-main);
    overflow-x: hidden;
    scroll-behavior: smooth;
    direction: rtl;
    text-align: right;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 25px;
        /* Reduced padding on mobile for better content usage */
    }
}

/* Typography Enhancements */
h1,
h2,
h3,
h4 {
    color: var(--primary-color);
    line-height: 1.3;
    font-weight: 800;
}

/* Scroll Animations Trigger Classes */
.animate-on-scroll {
    opacity: 0;
    transition: var(--transition);
}

.animate-on-scroll.active {
    animation: fadeInUp 0.8s forwards;
}

/* Bold Glassmorphism Components */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

ul {
    list-style: none;
}

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


/* Main Header - Creative Glassmorphism */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(var(--glass-blur));
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    /* Removed individual padding, container class will handle it */
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(15, 44, 89, 0.05);
}

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

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.1) rotate(5deg);
}

.logo-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.logo-title {
    font-size: 0.75rem;
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: -5px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--accent-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
}

/* Buttons */
.btn {
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: none;
    font-size: 1.05rem;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--primary-color);
    box-shadow: 0 10px 25px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--accent-glow);
}

.btn-outline {
    color: var(--primary-color);
    margin-right: 15px;
}

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

/* Hero Section - Cinematic Redesign (Solid Integration) */
.hero {
    padding: 120px 0 0 0;
    background-color: #e5e9ef;
    /* Exact match to image background */
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-areas: "content image";
    /* Content Right, Image Left in RTL */
    align-items: flex-end;
    gap: 30px;
    height: 100%;
}

.hero-content {
    grid-area: content;
    padding-bottom: 80px;
    z-index: 10;
}

.hero-image {
    grid-area: image;
}

.hero h1.mp-name {
    font-size: 3.8rem;
    /* Reduced for better two-line fit */
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.2;
    /* Slightly more spacing for elegance */
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.mp-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    /* Darkened from primary-light for critical contrast */
    font-weight: 800;
    margin-bottom: 25px;
    opacity: 1;
    /* Removed opacity for maximum sharpness */
}

.hero-intro {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 40px;
    max-width: 650px;
    line-height: 1.9;
}

.hero-actions-vertical {
    display: flex;
    flex-direction: row;
    /* Horizontal actions for cinematic look */
    flex-wrap: wrap;
    gap: 20px;
}

.hero-actions-vertical .btn {
    width: auto;
    padding: 15px 30px;
}

.hero-image {
    display: flex;
    align-items: flex-start;
    /* Shift alignment to top */
    height: 100%;
    position: relative;
}

.hero-image .image-wrapper {
    position: relative;
    border-radius: 0;
    overflow: visible;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-top: -60px;
    /* Lift towards menu */
}

.poster-image {
    width: 135%;
    /* Enlarged as requested */
    height: auto;
    display: block;
    transform-origin: top right;
    animation: scaleIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.image-overlay {
    display: none;
    /* Removed overlay for clean integration */
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.title-line {
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section - Bold Redesign */
.about {
    padding: 150px 0;
    position: relative;
    background: #fdfdfd;
    overflow: hidden;
}

.about::before {
    content: "عن النائب";
    position: absolute;
    top: 50px;
    right: -100px;
    font-size: 15rem;
    font-weight: 900;
    color: rgba(15, 44, 89, 0.03);
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
    transform: rotate(-5deg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 100px;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.about-text {
    position: relative;
    padding-right: 40px;
    border-right: 8px solid var(--accent-color);
}

.about-text p {
    font-size: 1.35rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-weight: 500;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 50px;
}

.about-highlights li {
    background: white;
    padding: 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 15px 15px 0px rgba(15, 44, 89, 0.05);
    border: 2px solid #eee;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.about-highlights li:hover {
    transform: translateX(-15px) translateY(-5px);
    box-shadow: 25px 25px 0px rgba(221, 163, 33, 0.1);
    border-color: var(--accent-color);
}

.about-highlights i {
    background: var(--accent-color);
    color: white;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-top: 50px;
}

.stat-card {
    background: var(--primary-color);
    color: white;
    padding: 40px;
    border-radius: 0 40px 0 40px;
    position: relative;
    transition: all 0.5s ease;
    overflow: hidden;
}

.stat-card::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.stat-card:nth-child(2) {
    background: var(--accent-color);
    margin-right: 40px;
}

.stat-card:hover {
    transform: scale(1.05);
    border-radius: 40px 0 40px 0;
}

.stat-value {
    display: block;
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.stat-label {
    display: block;
    font-size: 1.1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* End of About Section Bold Redesign */

/* News Section */
.news {
    padding: 100px 0;
    background-color: var(--bg-light);
}

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

.news-card {
    background-color: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-10px);
}

.card-image .img-placeholder {
    height: 200px;
    background-color: #ddd;
    background-image: linear-gradient(45deg, var(--primary-color) 0%, #1A374D 100%);
    opacity: 0.1;
}

.card-content {
    padding: 25px;
}

.card-date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.news-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.news-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.read-more {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    padding: 100px 0;
}

.contact-box {
    background-color: var(--primary-color);
    border-radius: 20px;
    padding: 60px;
    color: white;
    text-align: center;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-items {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.contact-items .item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
}

.social-links a:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Page Content */
.page-content {
    padding: 60px 0;
    min-height: 60vh;
}

.page-header {
    margin-bottom: 40px;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 20px;
}

.page-header h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 15px;
}

.page-header .subtitle {
    color: var(--text-main);
    /* Use solid dark text for subtitles */
    font-size: 1.2rem;
    font-weight: 500;
}

.subtitle {
    color: var(--text-main) !important;
    opacity: 1 !important;
}

.badge {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 0.95rem;
    /* Increased for readability */
    font-weight: 900;
    /* Maximize weight */
    text-transform: uppercase;
    margin-bottom: 20px;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Asymmetrical Bio/Career Layout - Bold Redesign */
.bio-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 80px;
    align-items: start;
    position: relative;
    padding: 60px 0;
}

.bio-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 80px;
    align-items: start;
    position: relative;
    padding: 60px 0;
}

/* Page Watermarks */
.watermark-career::after {
    content: "المسار السياسي";
}

.watermark-speeches::after {
    content: "الكلمة والبيان";
}

.watermark-issues::after {
    content: "قضايا الأمة";
}

.watermark-constituency::after {
    content: "الدائرة الغربية";
}

.watermark-prophet::after {
    content: "فداك أبي وأمي";
}

.watermark-media::after {
    content: "منبر الحق";
}

.watermark-contact::after {
    content: "تواصل معنا";
}

.bio-layout::after,
.watermark-section::after {
    position: absolute;
    top: -50px;
    left: -50px;
    font-size: 10rem;
    font-weight: 900;
    color: rgba(15, 44, 89, 0.03);
    /* Slightly increased from 0.02 for better but subtle visibility */
    z-index: -1;
    white-space: nowrap;
    transform: rotate(2deg);
    pointer-events: none;
}

.watermark-section {
    position: relative;
}

.bio-section {
    position: relative;
    padding-bottom: 80px;
}

.bio-section:nth-child(even) .card {
    transform: translateX(-40px);
    border-left: 10px solid var(--accent-color);
    border-right: 1px solid var(--border-color);
}

.card {
    background: white;
    padding: 60px;
    border-radius: 0 40px 0 40px;
    box-shadow: 20px 20px 0px rgba(15, 44, 89, 0.03);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
}

.card:hover {
    box-shadow: 30px 30px 0px rgba(15, 44, 89, 0.05);
    transform: translateY(-8px) !important;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: var(--secondary-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.bio-section h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 25px;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.bio-section h3::after {
    content: "";
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 40px;
    height: 4px;
    background: var(--accent-color);
}

.bio-section p {
    font-size: 1.25rem;
    color: #334155;
    /* Darker for better contrast */
    line-height: 2;
    font-weight: 400;
}

/* Creative Timeline */
.timeline {
    position: relative;
    padding-right: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.2;
}

.timeline-item {
    position: relative;
    padding-bottom: 50px;
}

.timeline-marker {
    position: absolute;
    top: 0;
    right: -8px;
    width: 19px;
    height: 19px;
    background: var(--bg-white);
    border: 4px solid var(--accent-color);
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 10px var(--accent-glow);
}

.timeline-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.timeline-date {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: block;
}

.privacy-card {
    background-color: var(--bg-light);
    border-right: 5px solid var(--primary-color);
    padding: 40px;
    border-radius: 15px;
}

/* Sidebar Styling */
.bio-sidebar {
    position: sticky;
    top: 120px;
}

.sticky-card {
    padding: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 40px 0 40px 0;
    box-shadow: 30px 30px 0px rgba(212, 175, 55, 0.1);
    position: relative;
    overflow: hidden;
}

.sticky-card::before {
    content: "";
    position: absolute;
    top: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.sidebar-img {
    width: 100%;
    border-radius: 20px;
    margin-bottom: 40px;
    border: 5px solid rgba(255, 255, 255, 0.1);
}

.sidebar-info strong {
    color: var(--accent-color);
    display: block;
    font-size: 1rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.sidebar-info span {
    font-size: 1.4rem;
    font-weight: 700;
}


/* Constituency Page Styles */
.constituency-hero {
    margin-bottom: 50px;
}

.city-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.city-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.img-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 44, 89, 0.8);
    color: white;
    padding: 15px 25px;
    font-size: 1rem;
    font-weight: 600;
}

.districts-list {
    margin-top: 15px;
}

.districts-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle separation on dark background */
    color: rgba(255, 255, 255, 0.95);
    /* High contrast white text */
    font-weight: 600;
}

.districts-list i {
    color: var(--accent-color);
}

/* Prophet Page Theme - Majestic & Calm */
.prophet-page-theme {
    background-color: #ffffff;
    background-image: radial-gradient(#f0f4f8 1px, transparent 1px);
    background-size: 40px 40px;
}

.majestic-header {
    text-align: center;
    margin-bottom: 80px;
}

.majestic-header h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-top: 20px;
    font-weight: 900;
}

.badge-gold {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.prophet-content {
    max-width: 800px;
    margin: 0 auto;
}

.devotional-block {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.02);
    margin-bottom: 40px;
    border: 1px solid rgba(15, 44, 89, 0.05);
    position: relative;
    text-align: center;
}

.block-decoration {
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 0 auto 25px;
    border-radius: 2px;
}

.devotional-block h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.devotional-block p {
    font-size: 1.3rem;
    line-height: 2.2;
    color: var(--text-color);
    text-align: justify;
    text-align-last: center;
}

.prophet-footer-note {
    text-align: center;
    padding: 60px 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.accent-icon {
    color: var(--accent-color);
    margin-bottom: 15px;
}

/* Speeches & Interventions Redesign */
.speeches-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.speech-item {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.speech-card {
    padding: 40px;
    border-radius: 25px;
    background: white;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.speech-card:hover {
    box-shadow: var(--shadow-lg);
}

.speech-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

.video-box {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(15, 44, 89, 0.2);
    border: 3px solid white;
}

.video-box iframe {
    width: 100%;
    aspect-ratio: 16/9;
}

/* Issues Grid Bold Style */
.issues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.issue-card {
    padding: 50px;
    text-align: center;
    border-radius: 30px;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.issue-card:hover {
    box-shadow: var(--shadow-lg);
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-10px);
}

.issue-card:hover h3,
.issue-card:hover p {
    color: white;
}

.issue-card:hover .card-icon {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

@media (max-width: 992px) {
    .speech-item {
        grid-template-columns: 1fr;
    }
}

/* Slide up animation */
.slide-up {
    animation: slideUp 0.8s ease forwards;
    opacity: 0;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Media Page Styles */
.media-section {
    margin-bottom: 60px;
}

.section-subtitle {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.section-subtitle h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

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

.video-grid {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

.media-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.media-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.media-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

.media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 44, 89, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: var(--transition);
}

.media-item:hover .media-overlay {
    opacity: 1;
}

.media-overlay h4 {
    color: white;
    font-size: 1.1rem;
}

.gallery-img {
    width: 100%;
    height: 100%;
    /* Changed to 100% to fit aspect-ratio */
    object-fit: cover;
    display: block;
}

.img-placeholder-gallery {
    height: 100%;
    /* Changed to 100% to fit aspect-ratio */
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    border: 2px dashed var(--border-color);
}

/* Prophet Defense Majestic Style */
.prophet-defense-content {
    background: var(--gradient-primary);
    color: white;
    padding: 80px;
    border-radius: 40px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.prophet-defense-content h2 {
    color: var(--accent-color);
    font-size: 2.8rem;
    margin-bottom: 30px;
}

.prophet-defense-content p {
    font-size: 1.3rem;
    line-height: 2;
    max-width: 900px;
    margin: 0 auto;
}

/* Contact Page Styles */
.form-intro {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Contact Page Bold Style */
.contact-form-mock {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 40px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(15, 44, 89, 0.1);
}

.facebook-link-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f0f2f5;
    border-radius: 12px;
    text-decoration: none;
    color: var(--primary-color);
    margin-top: 20px;
    transition: var(--transition);
}

.facebook-link-card:hover {
    background: #e4e6eb;
    transform: translateY(-2px);
}

.facebook-link-card i {
    color: #1877f2;
    width: 32px;
    height: 32px;
}

.fb-text {
    display: flex;
    flex-direction: column;
}

.fb-text strong {
    font-size: 1rem;
}

.fb-text span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.contact-info-list {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--bg-light);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
}

.info-item i {
    color: var(--accent-color);
}

.w-full {
    width: 100%;
}

@media (max-width: 768px) {
    .bio-layout {
        grid-template-columns: 1fr;
    }

    .bio-sidebar {
        order: -1;
    }
}

.main-footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 40px;
    }

    .hero h1.mp-name {
        font-size: 2.8rem;
    }

    .page-header h1 {
        font-size: 3rem !important;
    }
}

@media (max-width: 768px) {
    .hero h1.mp-name {
        font-size: 2.2rem;
    }

    .page-header h1 {
        font-size: 2.4rem !important;
    }

    .mp-title {
        font-size: 1.4rem;
    }
}

/* Grid & Layout Utilities */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.quick-values {
    margin-top: -80px;
    margin-bottom: 80px;
    position: relative;
    z-index: 10;
}

.value-item {
    padding: 40px;
    text-align: center;
    transition: var(--transition);
}

.value-item:hover {
    transform: translateY(-10px);
}

.value-item i {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    margin: 0 auto 25px;
    box-shadow: 0 10px 20px rgba(15, 44, 89, 0.2);
}

.value-item h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.value-item p {
    color: var(--text-light);
    font-size: 1rem;
}

@media (max-width: 1100px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 40px;
    }

    .hero-content {
        padding-bottom: 40px;
    }
}

@media (max-width: 1200px) {
    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        font-size: 0.85rem;
    }
}


.hero-subtitle {
    margin: 0 auto 30px;
}

.news-grid {
    grid-template-columns: repeat(2, 1fr);
}

.about-stats {
    margin-top: 40px;
}

@media (max-width: 992px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        height: calc(100vh - 90px);
        background: white;
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        gap: 40px;
        z-index: 1000;
        transition: var(--transition);
    }

    .nav-links.active {
        display: flex;
        animation: fadeInUp 0.5s forwards;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        grid-template-areas: "content" "image";
        text-align: center;
        padding-top: 40px;
    }

    .hero-image {
        order: 2;
        /* Image below text on mobile */
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .contact-box {
        padding: 40px 20px;
    }
}

/* Video Grid Redesign */
.horizontal-scroll-section {
    position: relative;
    width: 100%;
    margin-bottom: 50px;
}

.horizontal-scroll-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 20px 5px 40px 5px;
}

.horizontal-scroll-wrapper .media-card {
    /* Reset flex properties */
    flex: unset;
    min-width: unset;
    width: 100%;
}

@media (max-width: 768px) {
    .horizontal-scroll-wrapper {
        grid-template-columns: 1fr;
    }
}