/* ==========================================================================
   RBProd Production Company Theme - Main Styles
   ========================================================================== */

/* Base Container Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Responsive Container */
@media (max-width: 768px) {
    .container {
        padding: 0 20px; /* Keep consistent 20px padding on mobile */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px; /* Only reduce to 15px on very small screens */
    }
}

/* Section Padding */
.section-padding {
    padding: 60px 0;
}

/* Ensure all main content has proper spacing */
.site-main {
    min-height: 60vh;
    padding-top: 80px; /* Account for fixed header */
}

/* Adjust main content when admin bar is present */
.admin-bar .site-main {
    padding-top: 112px; /* 80px header + 32px admin bar */
}

@media screen and (max-width: 782px) {
    .admin-bar .site-main {
        padding-top: 126px; /* 80px header + 46px mobile admin bar */
    }
}

/* Page content that doesn't have containers */
.site-main .page-content,
.site-main .post-content,
.site-main .entry-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Ensure WordPress content blocks are contained */
.wp-block-group,
.wp-block-columns,
.entry-content {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999; /* Lower than admin bar */
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Adjust header position when WordPress admin bar is present */
.admin-bar .site-header {
    top: 32px; /* Height of WordPress admin bar on desktop */
}

/* Adjust for mobile admin bar */
@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px; /* Height of WordPress admin bar on mobile */
    }
}

.header-container {
    padding: 1rem 0;
}

.header-inner {
    padding: 0 10px; /* Extra padding to prevent edge touching */
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.site-branding {
    flex-shrink: 0;
}

.custom-logo-wrapper img {
    max-height: 50px;
    width: auto;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
}

.site-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.site-description {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

/* Navigation Styles */
.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a:focus {
    color: #007cba;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #007cba;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #1a1a1a;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Header Contact */
.header-contact {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
}

.header-contact a {
    color: #666;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.header-contact a:hover {
    color: #007cba;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 124, 186, 0.8), rgba(0, 90, 135, 0.6));
    z-index: 1;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    color: white;
}

.hero-inner {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-down {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    text-decoration: none;
    animation: bounce 2s infinite;
}

.scroll-text {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Section Headers */
.section-header {
    margin-bottom: 3rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-features {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    gap: 1rem;
}

.feature-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: #007cba;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.about-media {
    position: relative;
}

.video-thumbnail {
    position: relative;
    background-color: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.play-button {
    width: 80px;
    height: 80px;
    background-color: rgba(0, 124, 186, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.play-button:hover {
    transform: scale(1.1);
}

/* Productions Grid - Enhanced with specificity */
.productions-showcase .productions-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 2rem !important;
    margin-top: 2rem !important;
}

.productions-showcase .production-item {
    background: #fff !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.productions-showcase .production-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2) !important;
}

.productions-showcase .production-thumbnail {
    position: relative !important;
    aspect-ratio: 16/10 !important;
    overflow: hidden !important;
}

.productions-showcase .production-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}

.productions-showcase .production-item:hover .production-thumbnail img {
    transform: scale(1.05) !important;
}

.production-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 124, 186, 0.9), rgba(0, 90, 135, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.production-item:hover .production-overlay {
    opacity: 1;
}

.production-info {
    color: white;
    text-align: center;
}

.production-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.production-client,
.production-year {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Placeholder Productions */
.production-item.placeholder .production-thumbnail {
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content {
    text-align: center;
    color: #666;
}

.placeholder-content i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-item {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background-color: #f8f9fa;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: #007cba;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    transition: background-color 0.3s ease;
}

.service-item:hover .service-icon {
    background-color: #005a87;
}

.service-item h3 {
    margin-bottom: 1rem;
    color: #1a1a1a;
}

/* Contact CTA Section */
.contact-cta-section {
    background-color: #f8f9fa;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.contact-item {
    text-align: center;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: #007cba;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.contact-details h4 {
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.contact-details a {
    color: #007cba;
    text-decoration: none;
    font-weight: 600;
}

.contact-cta-buttons {
    margin-top: 2rem;
}

/* Page Headers */
.page-header {
    background-color: #f8f9fa;
    padding: 8rem 0 4rem;
    text-align: center;
    margin-top: 80px;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-excerpt,
.page-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* About Page Styles */
.company-story {
    background-color: white;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-media img {
    width: 100%;
    border-radius: 10px;
}

.mission-values {
    background-color: #f8f9fa;
}

.mission-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.mission-item {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.mission-icon {
    width: 80px;
    height: 80px;
    background-color: #007cba;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.mission-item ul {
    list-style: none;
    padding: 0;
}

.mission-item li {
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.mission-item li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #007cba;
    font-weight: bold;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.team-member {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-photo {
    aspect-ratio: 1;
    overflow: hidden;
}

.photo-placeholder {
    background-color: #f8f9fa;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #ccc;
}

.member-info {
    padding: 1.5rem;
}

.member-name {
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.member-position {
    color: #007cba;
    font-weight: 600;
    margin-bottom: 1rem;
}

.member-bio {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.member-social a {
    width: 35px;
    height: 35px;
    background-color: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s ease;
}

.member-social a:hover {
    background-color: #007cba;
    color: white;
}

/* Awards Section */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.award-item {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.award-icon {
    width: 80px;
    height: 80px;
    background-color: #ffd700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

.award-item h4 {
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.award-item p {
    color: #666;
    font-size: 0.9rem;
}

/* Footer Styles */
.site-footer {
    background-color: #1a1a1a;
    color: white;
    margin-top: 4rem;
}

.footer-main {
    padding: 4rem 0 2rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widget-title {
    color: #007cba;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.company-info .company-address,
.company-info .company-phone,
.company-info .company-email {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.company-info a {
    color: #ccc;
    text-decoration: none;
}

.company-info a:hover {
    color: #007cba;
}

.footer-navigation {
    border-top: 1px solid #333;
    padding-top: 2rem;
    margin-top: 2rem;
}

.footer-menu {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.footer-menu a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-menu a:hover {
    color: #007cba;
}

.footer-bottom {
    background-color: #111;
    padding: 1.5rem 0;
    border-top: 1px solid #333;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #999;
    padding: 0 10px; /* Extra padding to prevent edge touching */
}

.footer-bottom-content a {
    color: #ccc;
}

.footer-bottom-content a:hover {
    color: #007cba;
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-methods {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.contact-method {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.method-icon {
    width: 60px;
    height: 60px;
    background-color: #007cba;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.method-details h4 {
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.method-details a {
    color: #007cba;
    text-decoration: none;
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.method-details p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.business-hours p {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

/* Contact Form */
.contact-form-container {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1a1a1a;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007cba;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.4;
}

.btn-block {
    width: 100%;
}

.form-messages {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    display: none;
}

.form-messages.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-messages.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* FAQ Section */
.faq-grid {
    display: grid;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    margin: 0;
    background-color: #f8f9fa;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #e9ecef;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: bold;
    color: #007cba;
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 200px;
}

/* Productions Archive */
.productions-filter {
    background-color: #f8f9fa;
    padding: 2rem 0;
}

.filter-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.productions-filter .filter-btn {
    padding: 0.5rem 1.5rem !important;
    background-color: white !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 25px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    color: #666 !important;
}

.productions-filter .filter-btn:hover,
.productions-filter .filter-btn.active {
    background-color: #007cba !important;
    color: white !important;
    border-color: #007cba !important;
}

/* Production buttons and actions */
.productions-showcase .btn {
    display: inline-block !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.productions-showcase .btn-primary {
    background: #dc2626 !important;
    color: white !important;
}

.productions-showcase .btn-primary:hover {
    background: #b91c1c !important;
    color: white !important;
}

.productions-showcase .production-placeholder {
    background: #f8f9fa !important;
    height: 200px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #666 !important;
}

.productions-showcase .production-card {
    background-color: white !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.productions-showcase .production-info {
    padding: 1.5rem !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.productions-showcase .production-title a {
    color: #1a1a1a !important;
    text-decoration: none !important;
}

.production-title a:hover {
    color: #007cba;
}

.production-client {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.client-label {
    font-weight: 600;
}

.production-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #666;
}

.production-year {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.production-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.productions-showcase .category-tag {
    padding: 0.25rem 0.75rem !important;
    background-color: #dc2626 !important;
    color: white !important;
    font-size: 0.75rem !important;
    border-radius: 15px !important;
    text-decoration: none !important;
    display: inline-block !important;
    margin-right: 0.5rem !important;
}

.productions-showcase .category-tag:hover {
    background-color: #b91c1c !important;
    color: white !important;
}

.production-excerpt {
    flex-grow: 1;
    margin-bottom: 1rem;
}

.production-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.overlay-content {
    display: flex;
    gap: 1rem;
}

.overlay-content a {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #007cba;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.overlay-content a:hover {
    background-color: white;
    transform: scale(1.1);
}

/* Pagination */
.pagination-wrapper {
    margin-top: 3rem;
    text-align: center;
}

.page-numbers {
    display: inline-flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-numbers .page-numbers {
    padding: 0.5rem 1rem;
    background-color: white;
    color: #666;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.page-numbers .page-numbers:hover,
.page-numbers .current {
    background-color: #007cba;
    color: white;
}

/* Single Production Page */
.production-header {
    background-color: #f8f9fa;
    padding: 8rem 0 4rem;
    margin-top: 80px;
}

.production-breadcrumbs {
    margin-bottom: 2rem;
}

.breadcrumb {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.breadcrumb li::after {
    content: '/';
    margin-left: 0.5rem;
    color: #999;
}

.breadcrumb li:last-child::after {
    display: none;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #007cba;
}

.breadcrumb .current {
    color: #1a1a1a;
    font-weight: 500;
}

.production-title {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.production-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    gap: 0.5rem;
}

.meta-label {
    font-weight: 600;
    color: #666;
}

.meta-value {
    color: #1a1a1a;
}

.meta-categories {
    display: flex;
    gap: 0.5rem;
}

.category-link {
    padding: 0.25rem 0.75rem;
    background-color: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 15px;
    font-size: 0.85rem;
}

.category-link:hover {
    background-color: #005a87;
}

/* Production Media */
.production-media {
    margin: 2rem 0;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.production-image img {
    width: 100%;
    border-radius: 10px;
}

/* Production Content Layout */
.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.production-description {
    margin-bottom: 2rem;
}

.production-gallery {
    margin-top: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.gallery-item img {
    width: 100%;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Production Sidebar */
.production-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-section {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
}

.sidebar-section h4 {
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.project-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-item strong {
    font-size: 0.9rem;
    color: #666;
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background-color: white;
    color: #666;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.share-btn:hover {
    background-color: #007cba;
    color: white;
}

/* Related Productions */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.related-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.related-item:hover {
    transform: translateY(-5px);
}

.related-thumbnail {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.related-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 124, 186, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.related-item:hover .related-overlay {
    opacity: 1;
}

.related-content {
    padding: 1rem;
}

.related-content h4 {
    margin-bottom: 0.5rem;
}

.related-content h4 a {
    color: #1a1a1a;
    text-decoration: none;
}

.related-content h4 a:hover {
    color: #007cba;
}

.related-client {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Post Navigation */
.post-navigation {
    background-color: #f8f9fa;
    padding: 2rem 0;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-links a {
    display: block;
    padding: 1.5rem;
    background-color: white;
    border-radius: 10px;
    text-decoration: none;
    color: #1a1a1a;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.nav-label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.nav-title {
    font-weight: 600;
    color: #1a1a1a;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-contact {
        display: none;
    }
    
    .about-content,
    .story-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .main-navigation.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu {
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }
    
    .nav-menu li {
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .productions-grid,
    .services-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .filter-controls {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
    
    .nav-links {
        flex-direction: column;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .production-title {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 40px 0;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
    }
    
    .production-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Extra protection against edge touching on small screens */
    .header-inner,
    .footer-bottom-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .site-title {
        font-size: 1.3rem; /* Slightly smaller title on very small screens */
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-down {
        animation: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
    
    .production-overlay {
        background: rgba(0, 0, 0, 0.9);
    }
}

/* WordPress Admin Bar Critical Fixes */
#wpadminbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 99999 !important;
    display: block !important;
    visibility: visible !important;
}

body.admin-bar {
    margin-top: 32px !important;
}

body.admin-bar .site-header {
    top: 32px !important;
}

body.admin-bar .site-main {
    padding-top: 112px !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar {
        margin-top: 46px !important;
    }
    
    body.admin-bar .site-header {
        top: 46px !important;
    }
    
    body.admin-bar .site-main {
        padding-top: 126px !important;
    }
}