/* General Styles */
:root {
    --primary-color: #0A1931; /* Deep Navy Blue (for header, footer, main buttons) */
    --secondary-color: #1A5276; /* Darker Blue (for hover states, accents) */
    --accent-color: #007bff; /* Bright Blue (for primary CTAs, links) */
    --text-color: #333; /* Dark gray for main text */
    --light-gray: #f8f8f8; /* Light gray for section backgrounds */
    --white: #fff;
    --border-color: #eee;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif; /* Fallback to generic sans-serif */
    line-height: 1.6;
    color: var(--text-color);
    direction: rtl; /* For RTL support */
    text-align: right; /* Align text to the right */
    overflow-x: hidden; /* Prevent horizontal scroll on small screens */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

h1 { font-size: 3em; }
h2 { font-size: 2.5em; }
h3 { font-size: 2em; }
h4 { font-size: 1.5em; }

p {
    margin-bottom: 15px;
}

ul {
    list-style: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    margin-left: 10px; /* For spacing between buttons in LTR, adjust for RTL */
}

.primary-btn {
    background-color: var(--accent-color);
    color: var(--white);
    border: 2px solid var(--accent-color);
}

.primary-btn:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.secondary-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.outline-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.outline-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Header */
#header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* Prevent wrapping by default */
}

.logo {
    flex-shrink: 0; /* Ensure logo doesn't shrink */
    margin-right: auto; /* Push menu and button to the left */
}

.logo h1 {
    margin: 0;
    font-size: 1.8em;
    white-space: nowrap; /* Keep logo text in one line */
}

.logo a {
    color: var(--white);
    text-decoration: none;
}

.main-nav {
    display: flex;
    align-items: center;
    flex-grow: 1; /* Allow nav to take available space */
    justify-content: flex-end; /* Push nav content to the right */
}

.main-nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    flex-shrink: 1; /* Allow ul to shrink if necessary */
    flex-wrap: nowrap; /* Prevent menu items from wrapping on desktop */
}

.main-nav ul li {
    margin-left: 15px; /* Adjusted spacing for RTL navigation */
    white-space: nowrap; /* Keep menu items in one line */
}

.main-nav ul li a {
    color: var(--white);
    font-weight: bold;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: var(--accent-color);
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    bottom: -5px;
    right: 0; /* For RTL underline effect */
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 100%;
    left: 0; /* For RTL underline effect */
}

.main-nav .btn {
    margin-right: 15px; /* Space between nav links and button for RTL */
    margin-left: 0; /* Reset default button margin */
    flex-shrink: 0; /* Prevent button from shrinking */
    padding: 10px 20px; /* Slightly smaller button for tighter fit */
    font-size: 0.95em; /* Slightly smaller font for button */
}

/* Sections Padding */
.section-padding {
    padding: 80px 0;
}

.bg-light-gray {
    background-color: var(--light-gray);
}

/* Hero Section */
#hero {
    background: url('img/hero-background.jpg') no-repeat center center/cover; /* Replace with your actual image path */
    color: var(--white);
    text-align: center;
    padding-top: 100px; /* Adjust for fixed header */
    display: flex;
    align-items: center;
    min-height: 100vh; /* Full viewport height */
    position: relative;
    z-index: 1;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    z-index: -1;
}

#hero .hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0; /* Add internal padding */
}

#hero h1 {
    font-size: 4em;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

#hero h2 {
    font-size: 2.2em;
    color: var(--white);
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

#hero p {
    font-size: 1.2em;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-buttons .btn {
    font-size: 1.1em;
    padding: 15px 30px;
}

/* Services Highlights Section */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: center;
}

.highlight-item {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* To push read-more to bottom */
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.highlight-item img { /* If you use actual icon images */
    width: 60px;
    height: 60px;
    margin: 0 auto 20px; /* Center image */
}

.highlight-item h4 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.highlight-item p {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 20px;
}

.highlight-item .read-more {
    font-weight: bold;
    color: var(--accent-color);
    margin-top: auto; /* Push to bottom */
}

/* About Me Brief Section */
#about-brief {
    text-align: center;
}

#about-brief h3 {
    margin-bottom: 20px;
}

#about-brief p {
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 1.1em;
    line-height: 1.8;
}

/* About Me Section */
#about .about-content {
    display: flex;
    align-items: flex-start; /* Align content to top */
    gap: 40px;
    flex-direction: row-reverse; /* Image on right for RTL */
}

#about .about-text {
    flex: 2; /* Takes more space */
}

#about .about-image {
    flex: 1; /* Takes less space */
    text-align: center;
}

#about .about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px; /* Slightly rounded corners for the photo */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#about .about-text h2 {
    margin-bottom: 25px;
}

#about .about-text h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}


/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-item {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.service-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.service-item p {
    font-size: 0.95em;
    color: #666;
}

/* Professional Roles Section */
.roles-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.roles-list li {
    background-color: var(--white);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    position: relative;
    padding-right: 35px; /* Space for custom bullet */
}

.roles-list li::before {
    content: '•'; /* Custom bullet point */
    color: var(--accent-color);
    font-size: 1.5em;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.roles-list li strong {
    color: var(--primary-color);
}

/* Blog/News Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.blog-post-item {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.blog-post-item img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
}

.blog-post-item h4 {
    margin: 15px 15px 10px;
    font-size: 1.3em;
}

.blog-post-item h4 a {
    color: var(--primary-color);
}

.blog-post-item .post-meta {
    font-size: 0.85em;
    color: #888;
    margin: 0 15px 10px;
    flex-grow: 1; /* Pushes read-more to bottom */
}

.blog-post-item p {
    font-size: 0.9em;
    color: #666;
    margin: 0 15px 20px;
    flex-grow: 1; /* Pushes read-more to bottom */
}

.blog-post-item .read-more {
    display: block;
    text-align: right; /* Align to right for RTL */
    font-weight: bold;
    color: var(--accent-color);
    padding: 0 15px 15px;
}

.text-center {
    text-align: center;
}

/* Contact Section */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.contact-detail {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: center; /* Center content within each detail block */
}

.contact-detail h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3em;
}

.contact-detail h4 i { /* For icon classes if used, e.g., <i class="icon-phone"></i> */
    color: var(--accent-color);
    font-size: 1.5em;
    margin-bottom: 10px;
    display: block;
}

.contact-detail p a {
    display: block; /* Each link on new line */
    margin-bottom: 5px;
    color: var(--text-color);
}

.contact-info-academic {
    background-color: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin-top: 30px;
}

.contact-info-academic h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-info-academic h4 i {
    color: var(--accent-color);
    font-size: 1.5em;
    margin-left: 10px;
}

.contact-info-academic p a {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

/* Contact Form (Optional Styling) */
.contact-form-container {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin-top: 40px;
    max-width: 700px;
    margin-left: auto; /* Align form to right for RTL */
}

.contact-form-container h3 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl; /* Ensure input text is RTL */
    text-align: right;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button[type="submit"] {
    width: auto;
    padding: 12px 40px;
    font-size: 1.1em;
    cursor: pointer;
    display: block; /* Make button full width or centered block */
    margin-right: auto; /* Push to left */
}


/* Footer */
#footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
    text-align: right; /* For RTL */
}

#footer .footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

#footer .footer-col h4 {
    color: var(--accent-color);
    margin-bottom: 20px;
}

#footer .footer-col p,
#footer .footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#footer .footer-col p a,
#footer .footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

#footer .footer-col p a:hover,
#footer .footer-col ul li a:hover {
    color: var(--white);
}

#footer .footer-col ul li {
    margin-bottom: 10px;
}

.social-icons {
    display: flex;
    justify-content: flex-start; /* Align social icons to the left for RTL */
    gap: 15px;
    margin-top: 15px;
}

.social-icons a img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
}

.social-icons a img:hover {
    transform: translateY(-3px);
}

#footer .copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.6);
}

/* Interviews & Videos Section */
#videos .section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.1em;
    color: #666;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.video-item {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio (height / width * 100) */
    background-color: #000; /* Fallback for no image */
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.video-thumbnail:hover img {
    opacity: 0.8; /* Dim image slightly on hover */
}

.video-thumbnail .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4em;
    color: var(--white);
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 2px solid var(--white);
}

.video-thumbnail .play-icon:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.05);
}

.video-item h4 {
    margin: 15px 15px 10px;
    font-size: 1.3em;
}

.video-item h4 a {
    color: var(--primary-color);
}

.video-item .video-meta {
    font-size: 0.85em;
    color: #888;
    margin: 0 15px 10px;
}

.video-item p {
    font-size: 0.9em;
    color: #666;
    margin: 0 15px 15px;
    flex-grow: 1; /* Pushes content to fill space */
}


/* Responsive Design */

/* --- NEW MEDIA QUERIES FOR HEADER --- */
/* Ensure header items fit well on larger screens */
@media (min-width: 1201px) { /* For screens wider than 1200px */
    #header .container {
        max-width: 1300px; /* Give a bit more space for header items on very large screens */
        padding: 0 30px;
    }
    .main-nav ul li {
        margin-left: 20px; /* Restore original spacing */
    }
    .main-nav .btn {
        margin-right: 25px; /* More space for button */
        padding: 12px 25px; /* Restore original button size */
        font-size: 1em; /* Restore original font size */
    }
}

@media (max-width: 1200px) { /* For screens 993px to 1200px */
    #header .container {
        padding: 0 15px; /* Reduce horizontal padding */
    }
    .main-nav ul li {
        margin-left: 12px; /* Further reduce spacing between items */
    }
    .main-nav .btn {
        padding: 10px 20px; /* Smaller button */
        font-size: 0.95em; /* Smaller font for button */
    }
}

/* --- END NEW MEDIA QUERIES FOR HEADER --- */


@media (max-width: 992px) {
    #hero h1 {
        font-size: 3.5em;
    }
    #hero h2 {
        font-size: 2em;
    }
    #hero p {
        font-size: 1.1em;
    }
    #about .about-content {
        flex-direction: column-reverse; /* Image above text on smaller screens */
        align-items: center;
    }
    #about .about-text, #about .about-image {
        flex: none; /* Remove flex sizing */
        width: 100%; /* Take full width */
    }
    #about .about-image img {
        margin-bottom: 30px;
    }
    /* On tablets and smaller desktops, allow nav to wrap if needed */
    .main-nav {
        margin-right: 10px; /* Reduce space */
    }
    .main-nav ul {
        flex-wrap: wrap; /* Allow links to wrap if too many */
        justify-content: flex-end; /* Push links to the right */
        flex-grow: 0; /* Let nav not grow beyond its content on wrap */
    }
    .main-nav ul li {
        margin-left: 10px; /* Adjust spacing */
        margin-bottom: 5px; /* Add slight vertical margin if they wrap */
    }
    .main-nav .btn {
        margin-right: 10px; /* Adjust button spacing */
        margin-top: 5px; /* Add slight top margin if it wraps */
    }
    .logo {
        margin-right: 15px; /* Adjust space from menu toggle */
    }
}


@media (max-width: 768px) {
    h1 { font-size: 2.5em; }
    h2 { font-size: 2em; }
    h3 { font-size: 1.7em; }
    h4 { font-size: 1.3em; }

    #header .container {
        flex-wrap: wrap; /* Allow logo and toggle to wrap */
        justify-content: space-between;
    }
    .logo {
        flex-grow: 1; /* Allow logo to take available space */
        order: 1; /* Keep logo first */
    }
    .menu-toggle {
        display: block; /* Show on mobile */
        font-size: 2em;
        background: none;
        border: none;
        color: var(--white);
        cursor: pointer;
        padding: 5px;
        order: 2; /* Keep toggle second */
    }

    .main-nav {
        flex-basis: 100%; /* Nav takes full width below logo/toggle */
        order: 3; /* Push nav to the bottom */
        margin-top: 20px;
        background-color: var(--primary-color); /* Background for dropdown menu */
        padding: 15px 0;
        border-top: 1px solid rgba(255,255,255,0.1);
        display: none; /* Hidden by default, toggled by JS */
        flex-direction: column; /* Stack menu items vertically */
        align-items: flex-end; /* Align items to the right */
        margin-right: 0; /* Reset margin for mobile */
    }
    .main-nav.active { /* Class added by JS to show menu */
        display: flex;
    }

    .main-nav ul {
        flex-direction: column; /* Stack links vertically */
        width: 100%; /* Full width in mobile menu */
        align-items: flex-end; /* Align links to the right */
    }

    .main-nav ul li {
        margin: 10px 20px; /* Adjust spacing */
        width: calc(100% - 40px); /* Account for padding */
        text-align: right;
    }
    .main-nav ul li a {
        display: block; /* Make links clickable across full width */
        padding: 8px 0;
    }

    .main-nav .btn {
        display: block; /* Show button in mobile menu */
        margin: 20px auto 10px; /* Center button in mobile menu */
        width: 80%; /* Make button wider */
    }

    #hero {
        padding-top: 120px; /* Adjust padding for smaller header */
        min-height: 80vh;
    }
    #hero h1 {
        font-size: 2.8em;
    }
    #hero h2 {
        font-size: 1.5em;
    }
    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-buttons .btn {
        margin: 10px 0;
        width: 80%; /* Make buttons wider on mobile */
    }

    .highlights-grid,
    .services-grid,
    .contact-info-grid,
    .blog-grid,
    .footer-columns,
    .video-grid { /* Added video-grid to responsive stack */
        grid-template-columns: 1fr;
    }

    .highlight-item, .service-item, .contact-detail, .blog-post-item, .video-item {
        margin-bottom: 20px;
    }
    .social-icons {
        justify-content: center; /* Center social icons on small screens */
    }
}
/* Article Page Styles */
#article-header {
    padding: 120px 0 40px; /* Adjusted padding to look good with breadcrumbs */
    background-color: var(--light-gray);
    border-bottom: 1px solid var(--border-color);
    text-align: right;
}

#article-header .breadcrumbs {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 10px;
}

#article-header .breadcrumbs a {
    color: var(--secondary-color);
}

.article-title {
    font-size: 2.8em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.article-meta {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 30px;
}

.article-container {
    max-width: 800px; /* Limit article content width for better readability */
    margin: 0 auto; /* Center the content */
}

.article-featured-image {
    display: block; /* Make it a block element to apply margin: auto */
    width: 100%; /* Take full width of its container (article-container) */
    max-width: 800px; /* Explicitly limit max width to match article-container */
    height: auto; /* Maintain aspect ratio */
    max-height: 450px; /* Max height for featured image, adjust if still too big */
    object-fit: cover; /* Crop if necessary to fit max-height */
    border-radius: 8px;
    margin: 0 auto 40px auto; /* Center horizontally and add bottom margin */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.article-content h3 {
    margin-top: 35px;
    margin-bottom: 15px;
    color: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

.article-content p {
    font-size: 1.1em;
    line-height: 1.9;
    margin-bottom: 25px;
    color: var(--text-color);
}

.article-image {
    text-align: center;
    margin: 40px 0;
}

.article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.image-caption {
    font-size: 0.9em;
    color: #777;
    margin-top: 10px;
}

.article-video {
    margin: 40px 0;
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio for video iframe */
    height: 0;
    overflow: hidden; /* Hide overflow from iframe borders */
}

.article-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.video-caption {
    font-size: 0.9em;
    color: #777;
    margin-top: 10px;
    text-align: center;
}

/* Responsive adjustments for article page */
@media (max-width: 768px) {
    #article-header h1 {
        font-size: 2.2em;
    }
    .article-container {
        padding: 0 10px; /* Reduce padding on very small screens */
    }
    .article-content p {
        font-size: 1em;
        line-height: 1.7;
    }
}