/* EDJS Website Mobile & Tablet Responsive Styles */

/* Base responsive utilities */
.container {
  padding-left: 15px;
  padding-right: 15px;
}

/* Hero Section Responsiveness */
.hero-section {
  padding: 40px 0;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 20px 0;
  }
  
  .hero-title {
    font-size: 2.5rem !important;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 1.1rem !important;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem !important;
  }
  
  .hero-subtitle {
    font-size: 1rem !important;
  }
}

/* Achievement Cards Responsiveness */
.achievement-card {
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .achievement-card-inner {
    padding: 20px 15px !important;
    min-height: 120px !important;
  }
  
  .achievement-number-new {
    font-size: 2rem !important;
  }
  
  .achievement-label {
    font-size: 0.9rem !important;
  }
}

@media (max-width: 480px) {
  .achievement-card-inner {
    padding: 15px 10px !important;
    min-height: 100px !important;
  }
  
  .achievement-number-new {
    font-size: 1.8rem !important;
  }
  
  .achievement-label {
    font-size: 0.8rem !important;
  }
}

/* Video Section Responsiveness */
.video-section iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
}

@media (max-width: 768px) {
  .video-section {
    padding: 40px 0;
  }
  
  /* Mobile video container fixes - make it bigger */
  .vs-about--image {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    padding: 0 10px !important;
  }
  
  .vs-about--image__figure2.video-container-responsive {
    width: 100% !important;
    max-width: 95% !important;
    margin: 0 auto !important;
    margin-left: 0 !important;
    transform: translateX(0) !important;
    position: relative !important;
    height: auto !important;
  }
  
  .video-wrapper {
    width: 100% !important;
    margin: 0 auto !important;
    padding-bottom: 56.25% !important;
    height: 0 !important;
    position: relative !important;
    border-radius: 15px !important;
    overflow: hidden !important;
  }
  
  .video-wrapper iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    border-radius: 15px !important;
  }
}

@media (max-width: 480px) {
  .vs-about--image__figure2.video-container-responsive {
    max-width: 98% !important;
  }
  
  .vs-about--image {
    padding: 0 5px !important;
  }
}

/* Show/Hide About Sections Based on Screen Size */
.mobile-about-section {
  display: none !important;
}

.desktop-about-section {
  display: block !important;
}

@media (max-width: 768px) {
  .desktop-about-section {
    display: none !important;
  }
  
  .mobile-about-section {
    display: block !important;
  }
  
  /* Mobile About Section Enhancements */
  .mobile-about-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
  }
  
  .mobile-years-badge {
    animation: fadeInUp 0.6s ease-out;
  }
  
  .mobile-video-section {
    animation: fadeInUp 0.8s ease-out;
  }
  
  .mobile-mission-content {
    animation: fadeInUp 1s ease-out;
  }
  
  .mobile-mission-content h2 {
    font-size: 1.6rem !important;
  }
  
  .mobile-mission-content p {
    font-size: 15px !important;
    line-height: 1.5 !important;
  }
}

@media (max-width: 480px) {
  .mobile-about-section {
    padding: 30px 0 !important;
  }
  
  .mobile-mission-content {
    padding: 0 15px !important;
  }
  
  .mobile-mission-content h2 {
    font-size: 1.4rem !important;
  }
  
  .mobile-mission-content p {
    font-size: 14px !important;
  }
  
  .mobile-years-badge div {
    width: 100px !important;
    height: 100px !important;
    padding: 12px !important;
  }
  
  .mobile-years-badge span:first-child {
    font-size: 20px !important;
  }
  
  .mobile-years-badge span:last-child {
    font-size: 9px !important;
    line-height: 1.1 !important;
  }
}

/* About Section Mobile Fixes */
@media (max-width: 991px) {
  /* Fix rocket floating element on tablets */
  .rocket-floating {
    right: 2% !important;
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
  }
  
  /* Years badge responsive */
  .vs-about--section .vs-about--image > div:first-child {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    margin-bottom: 20px !important;
    display: flex !important;
    justify-content: center !important;
  }
}

@media (max-width: 768px) {
  /* Hide rocket on mobile - too distracting */
  .rocket-floating {
    display: none !important;
  }
  
  /* About section mobile layout */
  .vs-about--section {
    padding: 40px 0 !important;
    overflow: hidden !important;
  }
  
  .vs-about--section .container {
    padding: 0 15px !important;
    max-width: 100% !important;
  }
  
  .vs-about--section .row {
    flex-direction: column-reverse !important;
    margin: 0 !important;
  }
  
  .vs-about--section .col-lg-6 {
    margin-bottom: 30px !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    display: block !important;
  }
  
  .vs-about--section .col-lg-6:first-child {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  
  .vs-about--section .col-lg-6:last-child {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
  }
  
  /* Years badge mobile - make it relative positioned */
  .vs-about--section .vs-about--image > div:first-child {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    margin-bottom: 20px !important;
    display: flex !important;
    justify-content: center !important;
  }
  
  .vs-about--section .vs-about--image > div:first-child div {
    width: 100px !important;
    height: 100px !important;
  }
  
  .vs-about--section .vs-about--image > div:first-child div span:first-child {
    font-size: 24px !important;
  }
  
  .vs-about--section .vs-about--image > div:first-child div span:last-child {
    font-size: 10px !important;
  }
  
  /* Video container mobile fixes - FORCE override inline styles */
  .vs-about--section .vs-about--image {
    position: relative !important;
    min-height: auto !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  
  .vs-about--section .vs-about--image__figure2[style*="margin-left"] {
    position: relative !important;
    width: 90% !important;
    max-width: 90% !important;
    margin: 0 auto !important;
    transform: none !important;
    left: 0 !important;
    top: 0 !important;
  }
  
  .vs-about--section .vs-about--image__figure2 {
    position: relative !important;
    width: 90% !important;
    max-width: 90% !important;
    margin: 0 auto !important;
    transform: none !important;
    left: 0 !important;
    top: 0 !important;
  }
  
  /* Video wrapper mobile - center it properly */
  .vs-about--section .video-wrapper[style] {
    margin: 0 auto !important;
    max-width: 100% !important;
    width: 100% !important;
    position: relative !important;
  }
  
  .vs-about--section .video-wrapper {
    margin: 0 auto !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  
  /* About right section mobile - FORCE override inline styles */
  .vs-about--section .col-lg-6 .vs-about--right[style*="margin-left"] {
    margin-left: 0 !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    margin-top: 0 !important;
    width: 100% !important;
    text-align: center !important;
    display: block !important;
  }
  
  .vs-about--section .vs-about--right {
    margin-left: 0 !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    margin-top: 0 !important;
    width: 100% !important;
    text-align: center !important;
    display: block !important;
  }
  
  /* FORCE center all mission section content */
  .vs-about--section .vs-about--right * {
    text-align: center !important;
  }
  
  .vs-about--section .vs-about--right .vs-title {
    text-align: center !important;
    width: 100% !important;
  }
  
  .vs-about--section .vs-about--right .vs-title__sub {
    text-align: center !important;
    display: block !important;
    width: 100% !important;
  }
  
  .vs-about--section .vs-about--right .vs-title__main {
    text-align: center !important;
    width: 100% !important;
  }
  
  .vs-about--section .vs-about--right .vs-about__text[style] {
    text-align: center !important;
    margin: 0 auto !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  
  .vs-about--section .vs-about--right .pt-15 {
    text-align: center !important;
    width: 100% !important;
  }
  
  .vs-about--section .vs-about--right .vs-btn {
    margin: 0 auto !important;
    display: inline-block !important;
  }
  
  /* Play button mobile */
  .video-wrapper > div > div {
    width: 60px !important;
    height: 60px !important;
  }
  
  .video-wrapper > div > div svg {
    width: 20px !important;
    height: 20px !important;
  }
}

@media (max-width: 480px) {
  /* Extra small mobile adjustments */
  .vs-about--section {
    padding: 20px 0 !important;
  }
  
  .vs-about--section .container {
    padding: 0 10px !important;
  }
  
  /* Years badge extra small */
  .vs-about--section .vs-about--image > div:first-child div {
    width: 80px !important;
    height: 80px !important;
  }
  
  .vs-about--section .vs-about--image > div:first-child div span:first-child {
    font-size: 20px !important;
  }
  
  .vs-about--section .vs-about--image > div:first-child div span:last-child {
    font-size: 9px !important;
  }
  
  /* Video play button smaller */
  .video-wrapper > div > div {
    width: 50px !important;
    height: 50px !important;
  }
  
  .video-wrapper > div > div svg {
    width: 18px !important;
    height: 18px !important;
  }
  
  /* Extra small mobile mission section */
  .vs-about--right {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  
  .vs-about--right .vs-title__main {
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
  }
  
  .vs-about--right .vs-about__text {
    font-size: 16px !important;
    line-height: 1.5 !important;
  }
}

/* General Mobile Improvements */
@media (max-width: 768px) {
  /* Prevent horizontal scroll */
  body {
    overflow-x: hidden !important;
  }
  
  /* Fix any elements with negative margins */
  [style*="margin-left: -"] {
    margin-left: 0 !important;
  }
  
  /* Ensure all containers are mobile-friendly */
  .container {
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  /* Fix any fixed positioning issues - but not header */
  [style*="position: fixed"]:not(.modern-header):not(.logo-section img) {
    position: relative !important;
  }
  
  /* Header logo mobile override - ensure it stays small */
  .logo-section img,
  .vs-header__logo .logo,
  .header-logo .logo {
    height: 50px !important;
    max-height: 50px !important;
    width: auto !important;
  }
  
  /* Responsive text sizing */
  h1, .vs-title__main {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }
  
  h2 {
    font-size: 1.75rem !important;
    line-height: 1.3 !important;
  }
  
  h3 {
    font-size: 1.5rem !important;
    line-height: 1.4 !important;
  }
  
  /* Responsive buttons */
  .btn, .vs-btn {
    padding: 12px 20px !important;
    font-size: 14px !important;
    margin: 5px !important;
  }
  
  /* Responsive images - but not header logo */
  img:not(.logo-section img):not(.vs-header__logo .logo) {
    max-width: 100% !important;
    height: auto !important;
  }
}

/* Extra small mobile header fixes */
@media (max-width: 480px) {
  .logo-section img,
  .vs-header__logo .logo,
  .header-logo .logo {
    height: 40px !important;
    max-height: 40px !important;
  }
}

/* Footer Mobile Responsiveness */
@media (max-width: 768px) {
  /* Footer Top Section */
  .vs-footer__top {
    padding: 40px 0 30px !important;
  }
  
  /* Footer Widgets */
  .vs-footer__widget {
    text-align: center !important;
    margin-bottom: 40px !important;
  }
  
  /* Footer Logo - Make it smaller */
  .vs-footer__logo img {
    height: 50px !important;
    max-height: 50px !important;
  }
  
  /* Footer Description */
  .vs-footer__desc {
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin-bottom: 20px !important;
    padding: 0 10px !important;
  }
  
  /* Contact Info Mobile */
  .contact-info {
    margin-bottom: 25px !important;
  }
  
  .contact-info .d-flex {
    justify-content: center !important;
    margin-bottom: 15px !important;
  }
  
  .contact-info i {
    font-size: 14px !important;
  }
  
  .contact-info div div:first-child {
    font-size: 11px !important;
  }
  
  .contact-info a {
    font-size: 14px !important;
  }
  
  /* Social Links Mobile */
  .social-links {
    text-align: center !important;
  }
  
  .social-links .d-flex {
    justify-content: center !important;
    gap: 15px !important;
  }
  
  .social-links a {
    width: 35px !important;
    height: 35px !important;
  }
  
  /* Footer Titles */
  .vs-footer__title {
    font-size: 16px !important;
    margin-bottom: 20px !important;
  }
  
  /* Navigation Menu Mobile */
  .vs-footer__menu--list {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
  }
  
  .vs-footer__menu--list li {
    margin: 0 !important;
  }
  
  .vs-footer__menu--list a {
    font-size: 14px !important;
    padding: 5px 0 !important;
  }
  
  /* Gallery Grid Mobile - Make it 2 columns instead of 4 */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    max-width: 200px !important;
    margin: 0 auto !important;
  }
  
  .gallery-item {
    border-radius: 6px !important;
  }
  
  /* Footer Bottom */
  .vs-footer__bottom {
    padding: 20px 0 !important;
  }
  
  .vs-footer__copyright {
    font-size: 12px !important;
    text-align: center !important;
    margin-bottom: 15px !important;
  }
  
  .vs-footer__bottom--menu {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
  }
  
  .vs-footer__bottom--menu a {
    font-size: 12px !important;
  }
}

@media (max-width: 480px) {
  /* Extra small mobile footer adjustments */
  .vs-footer__top {
    padding: 30px 0 20px !important;
  }
  
  .vs-footer__widget {
    margin-bottom: 30px !important;
  }
  
  .vs-footer__logo img {
    height: 40px !important;
  }
  
  .vs-footer__desc {
    font-size: 13px !important;
    padding: 0 5px !important;
  }
  
  .contact-info .d-flex {
    flex-direction: column !important;
    text-align: center !important;
    margin-bottom: 12px !important;
  }
  
  .contact-info i {
    margin-bottom: 5px !important;
    margin-right: 0 !important;
  }
  
  .social-links .d-flex {
    gap: 12px !important;
  }
  
  .social-links a {
    width: 32px !important;
    height: 32px !important;
  }
  
  .gallery-grid {
    max-width: 160px !important;
    gap: 6px !important;
  }
  
  .vs-footer__copyright {
    font-size: 11px !important;
  }
  
  .vs-footer__bottom--menu a {
    font-size: 11px !important;
  }
}

/* Spacing Utilities */
@media (max-width: 768px) {
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .my-5 {
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
  }
}

@media (max-width: 480px) {
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .my-5 {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
  }
}

/* Image Responsiveness */
img {
  max-width: 100%;
  height: auto;
}

/* Table Responsiveness */
@media (max-width: 768px) {
  .table-responsive {
    overflow-x: auto;
  }
  
  table {
    font-size: 0.9rem;
  }
}

/* Form Responsiveness */
@media (max-width: 768px) {
  .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* Navigation Improvements */
@media (max-width: 768px) {
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-link {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
  }
}

/* Mission Blocks Responsiveness */
.mission-blocks-responsive {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

@media (max-width: 1200px) {
  .mission-blocks-responsive {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .mission-blocks-responsive {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px;
  }
  
  .mission-block {
    padding: 20px !important;
  }
  
  .mission-block .block-icon {
    width: 40px !important;
    height: 40px !important;
    margin-bottom: 10px !important;
  }
  
  .mission-block .block-icon i {
    font-size: 16px !important;
  }
  
  .mission-block p {
    font-size: 14px !important;
    line-height: 1.4 !important;
  }
}

@media (max-width: 480px) {
  .mission-blocks-responsive {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }
  
  .mission-block {
    padding: 15px !important;
    margin-bottom: 10px;
  }
  
  .mission-block p {
    font-size: 13px !important;
  }
}

/* Spectacle Cards Responsiveness */
@media (max-width: 768px) {
  /* Mobile carousel - single card view with navigation */
  .vs-carousel--class {
    overflow: hidden !important;
    height: auto !important;
    position: relative !important;
  }
  
  .vs-carousel--class .swiper-wrapper {
    display: flex !important;
    transition: transform 0.3s ease !important;
    height: auto !important;
    width: auto !important;
  }
  
  .vs-carousel--class .swiper-slide {
    width: 100% !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    display: block !important;
    position: relative !important;
  }
  
  .vs-class {
    height: auto !important;
    min-height: 450px !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }
  
  .vs-class__figure {
    padding: 15px !important;
    height: 250px !important;
  }
  
  .vs-class__content {
    padding: 15px !important;
  }
  
  .vs-class__heading {
    font-size: 1.2rem !important;
    margin-bottom: 10px !important;
  }
  
  .vs-class__text {
    font-size: 14px !important;
    line-height: 1.4 !important;
  }
  
  /* Mobile navigation arrows */
  .mobile-nav-arrows {
    display: flex !important;
    justify-content: center !important;
    gap: 20px !important;
    margin-top: 20px !important;
  }
  
  .mobile-nav-arrow {
    background: #BDCF00 !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
  }
  
  .mobile-nav-arrow:hover {
    background: #9BB800 !important;
    transform: scale(1.1) !important;
  }
  
  .mobile-nav-arrow:disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
    transform: none !important;
  }
}

@media (max-width: 480px) {
  .vs-class {
    min-height: 350px;
  }
  
  .vs-class__figure {
    padding: 10px !important;
  }
  
  .vs-class__content {
    padding: 10px !important;
  }
  
  .vs-class__heading {
    font-size: 1.1rem !important;
  }
}

/* Card Responsiveness */
@media (max-width: 768px) {
  .card {
    margin-bottom: 20px;
  }
  
  .card-body {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .card-body {
    padding: 10px;
  }
}
