/* ============================================
   Responsive Enhancements & Spacing Fixes
   Motherland Sports Academy
   ============================================ */

/* Reduce excessive section spacing */
.spad {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
}

/* Further reduce spacing on mobile */
@media (max-width: 767px) {
    .spad {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }
}

/* Breadcrumb spacing adjustment */
.breadcrumb-option.spad {
    padding-top: 120px !important;
    padding-bottom: 50px !important;
}

@media (max-width: 991px) {
    .breadcrumb-option.spad {
        padding-top: 100px !important;
        padding-bottom: 40px !important;
    }
}

@media (max-width: 767px) {
    .breadcrumb-option.spad {
        padding-top: 80px !important;
        padding-bottom: 30px !important;
    }
}

/* Section spacing improvements */
section {
    margin-bottom: 0;
}

section + section {
    margin-top: 0;
}

/* Hero section responsive improvements */
.hero__item {
    min-height: 500px !important;
    padding-top: 180px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

.hero__item .container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero__item .row {
    width: 100%;
    display: flex;
    align-items: center;
}

.hero__text {
    position: relative;
    z-index: 2;
}

@media (max-width: 991px) {
    .hero__item {
        min-height: 450px !important;
        padding-top: 0 !important;
        padding-bottom: 50px !important;
    }
    
    .hero__item .container {
        padding-top: 80px;
        padding-bottom: 40px;
    }
}

@media (max-width: 767px) {
    .hero__item {
        min-height: 400px !important;
        padding-top: 0 !important;
        padding-bottom: 40px !important;
        align-items: center !important;
    }
    
    .hero__item .container {
        padding-top: 70px;
        padding-bottom: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero__item .row {
        justify-content: center;
        text-align: center;
    }
    
    .hero__text {
        text-align: center;
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
    }
    
    .hero__text h2 {
        font-size: 32px !important;
        line-height: 42px !important;
        margin-bottom: 20px !important;
        text-align: center !important;
    }
    
    .hero__text span {
        font-size: 14px !important;
        margin-bottom: 15px !important;
        text-align: center !important;
        display: block !important;
    }
    
    .hero__text .primary-btn {
        margin: 0 auto;
        display: block;
        width: auto;
        max-width: 90%;
    }
    
    /* Override animation positioning on mobile */
    .hero__text span,
    .hero__text h2,
    .hero__text .primary-btn {
        top: 0 !important;
        opacity: 1 !important;
        position: relative !important;
    }
}

@media (max-width: 479px) {
    .hero__item {
        min-height: 380px !important;
        padding-top: 0 !important;
        padding-bottom: 30px !important;
    }
    
    .hero__item .container {
        padding-top: 60px;
        padding-bottom: 25px;
    }
    
    .hero__text {
        padding: 0 10px;
    }
    
    .hero__text h2 {
        font-size: 26px !important;
        line-height: 36px !important;
        margin-bottom: 15px !important;
    }
    
    .hero__text span {
        font-size: 13px !important;
        margin-bottom: 12px !important;
    }
    
    .hero__text .primary-btn {
        font-size: 12px !important;
        padding: 10px 20px !important;
    }
    
    /* Ensure no animation offset on small mobile */
    .hero__text span,
    .hero__text h2,
    .hero__text .primary-btn {
        top: 0 !important;
        opacity: 1 !important;
    }
}

/* Work gallery responsive */
.work__gallery {
    margin-right: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.work__item {
    position: relative;
    margin-bottom: 10px;
}

.grid-sizer {
    width: calc(16.67% - 10px);
}

@media (max-width: 991px) {
    .grid-sizer {
        width: calc(25% - 10px);
    }
    
    .work__item {
        width: calc(25% - 10px) !important;
    }
    
    .work__item.wide__item {
        width: calc(50% - 10px) !important;
    }
    
    .work__item.large__item {
        width: calc(50% - 10px) !important;
    }
}

@media (max-width: 767px) {
    .work__gallery {
        gap: 10px;
        margin-right: 0;
    }
    
    .grid-sizer {
        width: calc(50% - 5px) !important;
    }
    
    .work__item {
        width: calc(50% - 5px) !important;
        margin-right: 0 !important;
        margin-bottom: 10px !important;
        height: 200px !important;
    }
    
    .work__item.wide__item {
        width: 100% !important;
        height: 220px !important;
    }
    
    .work__item.large__item {
        width: 100% !important;
        height: 250px !important;
    }
    
    .work__item.small__item {
        height: 180px !important;
    }
}

@media (max-width: 479px) {
    .work__gallery {
        gap: 8px;
    }
    
    .grid-sizer {
        width: 100% !important;
    }
    
    .work__item {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 8px !important;
        height: 220px !important;
    }
    
    .work__item.wide__item,
    .work__item.large__item,
    .work__item.small__item {
        width: 100% !important;
        height: 220px !important;
    }
    
    .work__item__hover {
        padding: 15px 20px !important;
    }
    
    .work__item__hover h4 {
        font-size: 18px !important;
    }
}

/* Team section responsive */
.team {
    padding-bottom: 50px !important;
}

.section-title.team__title {
    margin-bottom: 40px !important;
}

@media (max-width: 767px) {
    .team {
        padding-bottom: 30px !important;
    }
    
    .section-title.team__title {
        margin-bottom: 30px !important;
    }
    
    .team__item {
        margin-bottom: 20px !important;
    }
}

/* Latest/Blog section responsive */
.latest {
    padding-bottom: 50px !important;
}

@media (max-width: 767px) {
    .latest {
        padding-bottom: 30px !important;
    }
    
    .blog__item {
        margin-bottom: 25px !important;
        padding: 25px 20px !important;
    }
}

/* Services section responsive */
.services-page {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
}

.services__item {
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.services__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
}

@media (max-width: 767px) {
    .services-page {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }
    
    .services__item {
        margin-bottom: 25px;
        padding: 30px 20px !important;
    }
}

/* About page responsive */
.about-page {
    padding-bottom: 50px !important;
}

.about__text {
    padding-left: 0;
    margin-bottom: 30px;
}

@media (min-width: 992px) {
    .about__text {
        padding-left: 30px;
    }
}

@media (max-width: 767px) {
    .about-page {
        padding-bottom: 30px !important;
    }
    
    .about__pic {
        margin-bottom: 30px;
        display: block !important;
        width: 100%;
    }
    
    .about__pic img {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
    }
    
    .about__text {
        margin-bottom: 25px;
    }
}

/* Portfolio/Gallery responsive */
.portfolio {
    padding-bottom: 50px !important;
}

.portfolio__filter {
    margin-bottom: 30px;
}

.portfolio__filter li {
    margin-bottom: 10px;
    padding: 8px 20px !important;
    font-size: 14px;
}

@media (max-width: 767px) {
    .portfolio {
        padding-bottom: 30px !important;
    }
    
    .portfolio__filter li {
        display: block;
        width: 100%;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .portfolio__item {
        margin-bottom: 25px;
    }
}

/* Call to action section responsive */
.callto {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
}

.callto__text h2 {
    font-size: 36px !important;
    line-height: 48px !important;
    margin-bottom: 20px !important;
}

@media (max-width: 991px) {
    .callto {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    
    .callto__text h2 {
        font-size: 32px !important;
        line-height: 42px !important;
    }
}

@media (max-width: 767px) {
    .callto {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }
    
    .callto__text h2 {
        font-size: 28px !important;
        line-height: 38px !important;
    }
    
    .callto__text p {
        margin-bottom: 20px !important;
    }
}

/* Footer responsive */
.footer__option {
    padding-top: 50px !important;
    padding-bottom: 30px !important;
}

.footer__option__item {
    margin-bottom: 30px;
}

@media (max-width: 767px) {
    .footer__option {
        padding-top: 40px !important;
        padding-bottom: 25px !important;
    }
    
    .footer__option__item {
        margin-bottom: 25px;
        text-align: center;
    }
    
    .footer__top__social {
        text-align: center !important;
        padding-top: 20px;
    }
}

/* Header responsive improvements */
.header {
    padding: 10px 0;
}

.header__logo {
    padding: 15px 0;
}

.header__nav__option {
    padding: 15px 0;
}

@media (max-width: 991px) {
    .header__logo {
        padding: 12px 0;
    }
}

/* Container responsive padding */
.container {
    padding-left: 15px;
    padding-right: 15px;
}

@media (max-width: 767px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Section titles responsive */
.section-title {
    margin-bottom: 35px !important;
}

.section-title h2 {
    font-size: 32px !important;
    padding-bottom: 15px !important;
}

@media (max-width: 991px) {
    .section-title {
        margin-bottom: 30px !important;
    }
    
    .section-title h2 {
        font-size: 28px !important;
    }
}

@media (max-width: 767px) {
    .section-title {
        margin-bottom: 25px !important;
    }
    
    .section-title h2 {
        font-size: 24px !important;
        padding-bottom: 12px !important;
    }
    
    .section-title span {
        font-size: 14px !important;
        margin-bottom: 8px !important;
    }
}

/* Enhanced styling - Smooth transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Enhanced button styling */
.primary-btn {
    padding: 12px 28px !important;
    font-size: 14px !important;
    letter-spacing: 1.5px !important;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.primary-btn:hover {
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    .primary-btn {
        padding: 10px 24px !important;
        font-size: 13px !important;
        width: 100%;
        text-align: center;
    }
}

/* Enhanced card/item styling */
.services__item,
.blog__item,
.portfolio__item__text {
    border-radius: 8px;
    overflow: hidden;
}

/* Image responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Text responsive */
p {
    font-size: 16px;
    line-height: 1.7;
}

@media (max-width: 767px) {
    p {
        font-size: 15px;
        line-height: 1.6;
    }
}

/* Grid improvements */
.row {
    margin-left: -15px;
    margin-right: -15px;
}

.row > * {
    padding-left: 15px;
    padding-right: 15px;
}

/* Logo carousel responsive */
.logo {
    padding: 50px 20px !important;
}

@media (max-width: 767px) {
    .logo {
        padding: 30px 15px !important;
    }
}

/* Breadcrumb text responsive */
.breadcrumb__text h2 {
    font-size: 42px !important;
    margin-bottom: 15px !important;
}

@media (max-width: 991px) {
    .breadcrumb__text h2 {
        font-size: 36px !important;
    }
}

@media (max-width: 767px) {
    .breadcrumb__text h2 {
        font-size: 28px !important;
        margin-bottom: 12px !important;
    }
}

/* Enhanced spacing for better content flow */
main section:first-of-type {
    padding-top: 0;
}

main section:last-of-type {
    padding-bottom: 0;
}

/* Improved form elements */
input,
textarea,
select {
    border-radius: 4px;
    padding: 12px 15px;
    font-size: 15px;
}

@media (max-width: 767px) {
    input,
    textarea,
    select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Enhanced list styling */
ul.gold-list,
ul.sponsor-benefit-list {
    margin-top: 15px;
    margin-bottom: 20px;
}

ul.gold-list li,
ul.sponsor-benefit-list li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Mobile menu improvements */
@media (max-width: 991px) {
    .slicknav_menu {
        margin-top: 10px;
    }
    
    .slicknav_nav {
        background: rgba(0, 0, 0, 0.95) !important;
        border-top: 2px solid var(--msa-gold, #FFD700);
    }
    
    .slicknav_nav a {
        padding: 12px 20px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Floating button responsive */
@media (max-width: 767px) {
    .floating-container {
        bottom: 15px !important;
        right: 15px !important;
    }
    
    .floating-button {
        width: 50px !important;
        height: 50px !important;
    }
    
    .option-item {
        width: 42px !important;
        height: 42px !important;
    }
}

/* Improved readability */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: 15px;
}

/* Better spacing for text content */
.about__text p,
.services__item p {
    margin-bottom: 15px;
}

.about__text p:last-child,
.services__item p:last-child {
    margin-bottom: 0;
}

/* Enhanced visual hierarchy */
section {
    position: relative;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Improved focus states for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--msa-gold, #FFD700);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .spad {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }
    
    .floating-container {
        display: none !important;
    }
}

/* ============================================
   Additional Styling Enhancements
   ============================================ */

/* Enhanced gradient effects */
.hero__text h2 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.section-title h2 {
    position: relative;
}

.section-title h2:after {
    background: linear-gradient(90deg, #FFD700, #FFA500) !important;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

/* Enhanced card hover effects */
.services__item,
.blog__item,
.portfolio__item {
    position: relative;
    overflow: hidden;
}

.services__item::before,
.blog__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.services__item:hover::before,
.blog__item:hover::before {
    left: 100%;
}

/* Enhanced work gallery items */
.work__item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.work__item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.3);
}

@media (max-width: 767px) {
    .work__item:hover {
        transform: scale(1.01);
    }
}

/* Play button responsive */
.work__item .play-btn {
    width: 50px;
    height: 50px;
    font-size: 18px;
    line-height: 50px;
}

@media (max-width: 767px) {
    .work__item .play-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
        line-height: 45px;
    }
}

@media (max-width: 479px) {
    .work__item .play-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
        line-height: 40px;
    }
}

/* Enhanced team items */
.team__item {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.team__item:hover {
    transform: translateY(-5px);
}

.team__item__text {
    border-radius: 0 0 8px 8px;
}

/* Enhanced buttons with gradient */
.primary-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    position: relative;
    overflow: hidden;
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.primary-btn:hover::before {
    left: 0;
}

/* Enhanced social icons */
.header__nav__social a,
.footer__top__social a {
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header__nav__social a:hover,
.footer__top__social a:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: scale(1.1) rotate(5deg);
}

/* Enhanced breadcrumb */
.breadcrumb__text h2 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* Enhanced section backgrounds */
section {
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

section:hover::before {
    opacity: 1;
}

/* Enhanced portfolio filter */
.portfolio__filter li {
    transition: all 0.3s ease;
    border-radius: 25px;
}

.portfolio__filter li.active {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000 !important;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.portfolio__filter li:hover:not(.active) {
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

/* Enhanced play button - Red color */
.play-btn {
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
    background: rgba(255, 0, 0, 0.9) !important;
    border: 2px solid rgba(255, 255, 255, 0.9) !important;
}

.play-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 25px rgba(255, 0, 0, 0.6);
    background: rgba(255, 0, 0, 1) !important;
}

/* Enhanced footer */
.footer {
    background: linear-gradient(180deg, #0a0119 0%, #000000 100%);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FFD700, transparent);
}

/* Enhanced header */
.header {
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.9) !important;
}

/* Enhanced text shadows for better readability */
h1, h2, h3, h4, h5, h6 {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Enhanced list items */
.gold-list li::before,
.sponsor-benefit-list li::before {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Enhanced images */
.set-bg {
    transition: transform 0.5s ease;
}

.set-bg:hover {
    transform: scale(1.05);
}

/* Enhanced form inputs */
input:focus,
textarea:focus,
select:focus {
    border-color: #FFD700 !important;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Enhanced pagination */
.pagination__option .number__pagination {
    transition: all 0.3s ease;
    border-radius: 4px;
}

.pagination__option .number__pagination:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}

.pagination__option .number__pagination.active {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000 !important;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

/* Enhanced call to action */
.callto {
    position: relative;
    overflow: hidden;
}

.callto::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Enhanced logo carousel */
.logo__carousel .logo__item {
    transition: all 0.3s ease;
    filter: grayscale(100%);
    opacity: 0.6;
}

.logo__carousel .logo__item:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Smooth scroll indicator */
html {
    scroll-padding-top: 80px;
}

/* Enhanced dropdown menu */
.dropdown {
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.dropdown li a {
    transition: all 0.3s ease;
}

.dropdown li a:hover {
    background: rgba(255, 215, 0, 0.1);
    padding-left: 25px;
}

/* Enhanced floating button */
.floating-button {
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.floating-button:hover {
    animation: none;
    box-shadow: 0 6px 30px rgba(255, 215, 0, 0.6);
}

/* Enhanced work item hover */
.work__item__hover {
    backdrop-filter: blur(5px);
    background: rgba(212, 175, 55, 0.95) !important;
    padding: 20px 25px !important;
}

@media (max-width: 767px) {
    .work__item__hover {
        padding: 15px 18px !important;
        font-size: 14px;
    }
    
    .work__item__hover h4 {
        font-size: 18px !important;
        margin-bottom: 8px !important;
    }
    
    .work__item__hover ul li {
        font-size: 13px !important;
    }
}

/* Fix masonry layout on mobile */
@media (max-width: 767px) {
    .work__gallery {
        display: flex !important;
        flex-wrap: wrap !important;
        flex-direction: row !important;
    }
    
    .work__gallery .work__item {
        float: none !important;
        position: relative !important;
        display: block !important;
    }
    
    .work__gallery::after {
        content: none !important;
    }
}

/* Ensure work items are properly sized on mobile */
@media (max-width: 479px) {
    .work__gallery {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
    
    .work__item {
        float: none !important;
        clear: both !important;
    }
}

/* Enhanced testimonial */
.testimonial__text {
    border-left: 4px solid #FFD700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Enhanced blog items */
.blog__item {
    background: linear-gradient(135deg, rgba(34, 34, 34, 0.9), rgba(17, 17, 17, 0.9));
}

.blog__item:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.1));
}

/* Enhanced section titles */
.section-title span {
    letter-spacing: 3px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Enhanced container max-width for better readability */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Enhanced spacing for better visual hierarchy */
@media (min-width: 992px) {
    .col-lg-6 + .col-lg-6 {
        padding-left: 30px;
    }
}

/* Enhanced mobile touch targets */
@media (max-width: 767px) {
    a, button {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Magnific Popup responsive fixes */
.mfp-iframe-holder .mfp-content {
    max-width: 95% !important;
    height: auto !important;
}

.mfp-iframe-holder .mfp-iframe-scaler {
    padding-top: 56.25% !important; /* 16:9 aspect ratio */
    width: 100% !important;
    height: 0 !important;
}

.mfp-iframe-holder .mfp-iframe-scaler iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 767px) {
    .mfp-iframe-holder .mfp-content {
        max-width: 98% !important;
        margin: 0 auto !important;
    }
    
    .mfp-container {
        padding: 10px !important;
    }
    
    .mfp-close {
        right: 10px !important;
        top: 10px !important;
        width: 35px !important;
        height: 35px !important;
        line-height: 35px !important;
        font-size: 28px !important;
    }
}

