/* ===== TEAM AVINYA - OPTIMIZED RESPONSIVE DESIGN ===== */
/* Responsive Heading Scaling System */
@media screen and (max-width: 900px) {
  h1 { font-size: clamp(1.8rem, 4vw, 3rem) !important; }
  h2 { font-size: clamp(1.5rem, 3.2vw, 2.5rem) !important; }
  h3 { font-size: clamp(1.3rem, 2.8vw, 2rem) !important; }
  h4 { font-size: clamp(1.1rem, 2.4vw, 1.7rem) !important; }
  h5 { font-size: clamp(1rem, 2vw, 1.4rem) !important; }
  h6 { font-size: clamp(0.9rem, 1.8vw, 1.2rem) !important; }
}

@media screen and (max-width: 768px) {
  h1 { font-size: clamp(1.6rem, 3.5vw, 2.5rem) !important; }
  h2 { font-size: clamp(1.3rem, 2.8vw, 2rem) !important; }
  h3 { font-size: clamp(1.1rem, 2.4vw, 1.7rem) !important; }
  h4 { font-size: clamp(1rem, 2vw, 1.4rem) !important; }
  h5 { font-size: clamp(0.9rem, 1.8vw, 1.2rem) !important; }
  h6 { font-size: clamp(0.8rem, 1.6vw, 1rem) !important; }
}

@media screen and (max-width: 480px) {
  h1 { font-size: clamp(1.4rem, 3.2vw, 2.2rem) !important; }
  h2 { font-size: clamp(1.2rem, 2.5vw, 1.8rem) !important; }
  h3 { font-size: clamp(1rem, 2.2vw, 1.5rem) !important; }
  h4 { font-size: clamp(0.9rem, 1.8vw, 1.2rem) !important; }
  h5 { font-size: clamp(0.8rem, 1.6vw, 1rem) !important; }
  h6 { font-size: clamp(0.7rem, 1.4vw, 0.9rem) !important; }
}

@media screen and (max-width: 360px) {
  h1 { font-size: clamp(1.2rem, 3vw, 2rem) !important; }
  h2 { font-size: clamp(1rem, 2.3vw, 1.6rem) !important; }
  h3 { font-size: clamp(0.9rem, 2vw, 1.3rem) !important; }

  h4 {
    font-size: clamp(0.8rem, 1.7vw, 1.1rem) !important;
  }

  h5 {
    font-size: clamp(0.7rem, 1.5vw, 0.9rem) !important;
  }

  h6 {
    font-size: clamp(0.6rem, 1.3vw, 0.8rem) !important;
  }
}

/* Ultra Small Mobile (≤320px) */
@media screen and (max-width: 320px) {
  h1 {
    font-size: clamp(1.1rem, 2.8vw, 1.8rem) !important;
  }

  h2 {
    font-size: clamp(0.9rem, 2.2vw, 1.4rem) !important;
  }

  h3 {
    font-size: clamp(0.8rem, 1.8vw, 1.2rem) !important;
  }

  h4 {
    font-size: clamp(0.7rem, 1.6vw, 1rem) !important;
  }

  h5 {
    font-size: clamp(0.6rem, 1.4vw, 0.8rem) !important;
  }

  h6 {
    font-size: clamp(0.5rem, 1.2vw, 0.7rem) !important;
  }
}

/* ===== CONTENT-DRIVEN HERO SECTIONS ===== */
/* Make all hero sections size dynamically based on content across all breakpoints */

/* Large Tablet and Below (≤900px) */
@media screen and (max-width: 900px) {
  .hero {
    min-height: auto !important;
    height: auto !important;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .hero-flex {
    width: 100%;
    min-height: auto;
    height: auto;
    flex-shrink: 0;
    flex-direction: column;
    gap: 2rem;
  }

  .hero-text,
  .hero-image-buttons {
    min-height: auto;
    height: auto;
    flex-shrink: 0;
    width: 100%;
  }
  
  .hero-image-buttons {
    margin-left: 0 !important;
    order: 1;
  }
  
  .hero-text {
    order: 2;
    text-align: center;
  }
  
  .hero-buggy {
    max-width: 70%;
    max-height: 400px;
    width: 70%;
    margin: 0 auto;
  }
}

/* Mobile and Below (≤768px) */
@media screen and (max-width: 768px) {
  .hero {
    min-height: auto !important;
    height: auto !important;
    padding: 80px 1rem 1.5rem 1rem !important;
    padding-top: 80px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .hero-flex {
    width: 100%;
    min-height: auto;
    height: auto;
    flex-shrink: 0;
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero-text,
  .hero-image-buttons {
    min-height: auto;
    height: auto;
    flex-shrink: 0;
    width: 100%;
  }
  
  .hero-image-buttons {
    margin-left: 0 !important;
    order: 1;
  }
  
  .hero-text {
    order: 2;
    text-align: center;
  }
  
  .hero-buggy {
    max-width: 85%;
    max-height: 300px;
    width: 85%;
    margin: 0 auto;
  }
}

/* Small Mobile (≤480px) */
@media screen and (max-width: 480px) {
  .hero {
    min-height: auto !important;
    height: auto !important;
    padding: 80px 0.8rem 1rem 0.8rem !important;
    padding-top: 80px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .hero-flex {
    width: 100%;
    min-height: auto;
    height: auto;
    flex-shrink: 0;
    flex-direction: column;
    gap: 1rem;
  }

  .hero-text,
  .hero-image-buttons {
    min-height: auto;
    height: auto;
    flex-shrink: 0;
    width: 100%;
  }
  
  .hero-image-buttons {
    margin-left: 0 !important;
    order: 1;
  }
  
  .hero-text {
    order: 2;
    text-align: center;
  }
  
  .hero-buggy {
    max-width: 90%;
    max-height: 250px;
    width: 90%;
    margin: 0 auto;
  }
}

/* Extra Small Mobile (≤360px) */
@media screen and (max-width: 360px) {
  .hero {
    min-height: auto !important;
    height: auto !important;
    padding: 80px 0.5rem 0.8rem 0.5rem !important;
    padding-top: 80px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .hero-flex {
    width: 100%;
    min-height: auto;
    height: auto;
    flex-shrink: 0;
    flex-direction: column;
    gap: 0.8rem;
  }

  .hero-text,
  .hero-image-buttons {
    min-height: auto;
    height: auto;
    flex-shrink: 0;
    width: 100%;
  }
  
  .hero-image-buttons {
    margin-left: 0 !important;
    order: 1;
  }
  
  .hero-text {
    order: 2;
    text-align: center;
  }
  
  .hero-buggy {
    max-width: 95%;
    max-height: 200px;
    width: 95%;
    margin: 0 auto;
  }
}

/* Ultra Small Mobile (≤320px) */
@media screen and (max-width: 320px) {
  .hero {
    min-height: auto !important;
    height: auto !important;
    padding: 80px 0.3rem 0.5rem 0.3rem !important;
    padding-top: 80px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .hero-flex {
    width: 100%;
    min-height: auto;
    height: auto;
    flex-shrink: 0;
    flex-direction: column;
    gap: 0.6rem;
  }

  .hero-text,
  .hero-image-buttons {
    min-height: auto;
    height: auto;
    flex-shrink: 0;
    width: 100%;
  }
  
  .hero-image-buttons {
    margin-left: 0 !important;
    order: 1;
  }
  
  .hero-text {
    order: 2;
    text-align: center;
  }
  
  .hero-buggy {
    max-width: 100%;
    max-height: 180px;
    width: 100%;
    margin: 0 auto;
  }
}

/* ===== UNIVERSAL CONTENT-DRIVEN HERO STYLES ===== */
/* Apply to all hero sections across all pages for content-based sizing */
@media screen and (max-width: 900px) {
  /* Remove any fixed heights from hero components */
  .hero,
  .hero-section,
  .hero-content,
  .hero-container {
    min-height: auto !important;
    height: auto !important;
  }

  /* Ensure hero children size to content */
  .hero > *,
  .hero-flex > *,
  .hero-content > *,
  .hero-container > * {
    min-height: auto;
    height: auto;
    flex-shrink: 0;
  }

  /* Optimize hero text content */
  .hero h1,
  .hero h2,
  .hero h3,
  .hero p,
  .hero .animated-headline {
    margin-bottom: 1rem;
    line-height: 1.4;
  }

  /* Ensure buttons don't add unnecessary height */
  .hero .btn,
  .hero .hero-buttons,
  .hero-buttons {
    margin-top: 1rem;
    margin-bottom: 0;
  }

  /* Images should not force height */
  .hero img,
  .hero-buggy,
  .hero-image {
    max-height: none;
    height: auto;
    object-fit: contain;
  }
}

/* ===== COMPACT TEAM MEMBERS PANEL ===== */
/* Optimize team members section for faster mobile scrolling */

/* Large Tablet and Below (≤900px) */
@media screen and (max-width: 900px) {
  .team-section {
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .department-section {
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 60, 56, 0.1);
  }

  .department-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }

  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
  }

  .team-card {
    min-height: 160px;
    padding: 0.8rem;
    border-radius: 8px;
  }

  .team-card-front,
  .team-card-back {
    padding: 16px 12px;
  }

  .team-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
  }

  .team-card h3 {
    font-size: 1rem;
    margin: 8px 0 4px 0;
  }

  .team-card p {
    font-size: 0.85rem;
    margin-bottom: 8px;
  }

  .team-card-back .team-bio {
    font-size: 0.9rem;
    line-height: 1.5;
    padding: 0 4px;
  }
}

/* Mobile and Below (≤768px) */
@media screen and (max-width: 768px) {
  .team-section {
    margin-top: 15px;
    margin-bottom: 15px;
  }

  .department-section {
    margin-bottom: 1.5rem;
    padding: 0.8rem 0;
  }

  .department-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
  }

  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.8rem;
    margin-top: 0.8rem;
  }

  .team-card {
    min-height: 140px;
    padding: 0.6rem;
    border-radius: 6px;
  }

  .team-card-front,
  .team-card-back {
    padding: 12px 8px;
  }

  .team-icon {
    font-size: 1.6rem;
    margin-bottom: 6px;
  }

  .team-card h3 {
    font-size: 0.95rem;
    margin: 6px 0 3px 0;
  }

  .team-card p {
    font-size: 0.8rem;
    margin-bottom: 6px;
  }

  .team-card-back .team-bio {
    font-size: 0.85rem;
    line-height: 1.4;
    padding: 0 2px;
  }
}

/* Small Mobile (≤480px) */
@media screen and (max-width: 480px) {
  .team-section {
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .department-section {
    margin-bottom: 1rem;
    padding: 0.6rem 0;
  }

  .department-title {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    margin-top: 0.6rem;
  }

  .team-card {
    min-height: 120px;
    padding: 0.5rem;
    border-radius: 4px;
  }

  .team-card-front,
  .team-card-back {
    padding: 10px 6px;
  }

  .team-icon {
    font-size: 1.4rem;
    margin-bottom: 4px;
  }

  .team-card h3 {
    font-size: 0.9rem;
    margin: 4px 0 2px 0;
  }

  .team-card p {
    font-size: 0.75rem;
    margin-bottom: 4px;
  }

  .team-card-back .team-bio {
    font-size: 0.8rem;
    line-height: 1.3;
    padding: 0;
  }
}

/* Extra Small Mobile (≤360px) */
@media screen and (max-width: 360px) {
  .team-section {
    margin-top: 8px;
    margin-bottom: 8px;
  }

  .department-section {
    margin-bottom: 0.8rem;
    padding: 0.5rem 0;
  }

  .department-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 0.5rem;
  }

  .team-card {
    min-height: 110px;
    padding: 0.4rem;
    border-radius: 4px;
  }

  .team-card-front,
  .team-card-back {
    padding: 8px 4px;
  }

  .team-icon {
    font-size: 1.2rem;
    margin-bottom: 3px;
  }

  .team-card h3 {
    font-size: 0.85rem;
    margin: 3px 0 2px 0;
  }

  .team-card p {
    font-size: 0.7rem;
    margin-bottom: 3px;
  }

  .team-card-back .team-bio {
    font-size: 0.75rem;
    line-height: 1.2;
    padding: 0;
  }
}

/* Ultra Small Mobile (≤320px) */
@media screen and (max-width: 320px) {
  .team-section {
    margin-top: 5px;
    margin-bottom: 5px;
  }

  .department-section {
    margin-bottom: 0.6rem;
    padding: 0.4rem 0;
  }

  .department-title {
    font-size: 1rem;
    margin-bottom: 0.4rem;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
    margin-top: 0.4rem;
  }

  .team-card {
    min-height: 100px;
    padding: 0.3rem;
    border-radius: 3px;
  }

  .team-card-front,
  .team-card-back {
    padding: 6px 3px;
  }

  .team-icon {
    font-size: 1rem;
    margin-bottom: 2px;
  }

  .team-card h3 {
    font-size: 0.8rem;
    margin: 2px 0 1px 0;
  }

  .team-card p {
    font-size: 0.65rem;
    margin-bottom: 2px;
  }

  .team-card-back .team-bio {
    font-size: 0.7rem;
    line-height: 1.1;
    padding: 0;
  }
}

/* ===== COMPACT "OUR TEAM IN ACTION" SECTION ===== */
/* Optimize Our Team in Action gallery for faster mobile scrolling */

/* Large Tablet and Below (≤900px) */
@media screen and (max-width: 900px) {
  .section h2 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
  }

  .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    padding: 1rem;
  }

  .gallery-item {
    margin-bottom: 1rem;
  }

  .gallery-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.3s ease;
  }

  .gallery-caption {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
    line-height: 1.4;
    color: var(--text-muted);
    text-align: center;
  }

  .hero-buttons {
    margin-top: 1rem;
    margin-bottom: 0;
    text-align: center;
  }
}

/* Mobile and Below (≤768px) */
@media screen and (max-width: 768px) {
  .section h2 {
    margin-bottom: 0.8rem;
    font-size: 1.6rem;
  }

  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
    padding: 0.8rem;
  }

  .gallery-item {
    margin-bottom: 0.8rem;
  }

  .gallery-item img {
    height: 140px;
    border-radius: 6px;
  }

  .gallery-caption {
    font-size: 0.85rem;
    margin-top: 0.4rem;
    line-height: 1.3;
  }

  .hero-buttons {
    margin-top: 0.8rem;
  }
}

/* Small Mobile (≤480px) */
@media screen and (max-width: 480px) {
  .section h2 {
    margin-bottom: 0.6rem;
    font-size: 1.4rem;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    padding: 0.6rem;
  }

  .gallery-item {
    margin-bottom: 0.6rem;
  }

  .gallery-item img {
    height: 120px;
    border-radius: 4px;
  }

  .gallery-caption {
    font-size: 0.75rem;
    margin-top: 0.3rem;
    line-height: 1.2;
  }

  .hero-buttons {
    margin-top: 0.6rem;
    grid-column: 1 / -1;
  }

  .hero-buttons .btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
}

/* Extra Small Mobile (≤360px) */
@media screen and (max-width: 360px) {
  .section h2 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 0.5rem;
  }

  .gallery-item {
    margin-bottom: 0.5rem;
  }

  .gallery-item img {
    height: 100px;
    border-radius: 4px;
  }

  .gallery-caption {
    font-size: 0.7rem;
    margin-top: 0.25rem;
    line-height: 1.1;
  }

  .hero-buttons {
    margin-top: 0.5rem;
  }

  .hero-buttons .btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }
}

/* Ultra Small Mobile (≤320px) */
@media screen and (max-width: 320px) {
  .section h2 {
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
    padding: 0.4rem;
  }

  .gallery-item {
    margin-bottom: 0.4rem;
  }

  .gallery-item img {
    height: 90px;
    border-radius: 3px;
  }

  .gallery-caption {
    font-size: 0.65rem;
    margin-top: 0.2rem;
    line-height: 1.0;
  }

  .hero-buttons {
    margin-top: 0.4rem;
  }

  .hero-buttons .btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
  }
}

/* ===== COMPACT ACHIEVEMENTS SECTION ===== */
/* Optimize Achievements section for faster mobile scrolling */

/* Large Tablet and Below (≤900px) */
@media screen and (max-width: 900px) {
  .support-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .option-card {
    background: var(--background-light);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 8px 16px rgba(255, 60, 56, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }

  .option-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.8rem;
  }

  .option-card h3 {
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    font-size: 1.1rem;
  }

  .option-card p {
    line-height: 1.5;
    margin-bottom: 0;
    font-size: 0.9rem;
  }
}

/* Mobile and Below (≤768px) */
@media screen and (max-width: 768px) {
  .support-options {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1.5rem;
  }

  .option-card {
    border-radius: 6px;
    padding: 0.8rem;
    box-shadow: 0 6px 12px rgba(255, 60, 56, 0.12);
  }

  .option-card img {
    height: 120px;
    border-radius: 4px;
    margin-bottom: 0.6rem;
  }

  .option-card h3 {
    margin-bottom: 0.6rem;
    font-size: 1rem;
  }

  .option-card p {
    line-height: 1.4;
    font-size: 0.85rem;
  }
}

/* Small Mobile (≤480px) */
@media screen and (max-width: 480px) {
  .support-options {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    margin-bottom: 1rem;
  }

  .option-card {
    border-radius: 4px;
    padding: 0.6rem;
    box-shadow: 0 4px 8px rgba(255, 60, 56, 0.1);
  }

  .option-card img {
    height: 100px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
  }

  .option-card h3 {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
  }

  .option-card p {
    line-height: 1.3;
    font-size: 0.75rem;
  }
}

/* Extra Small Mobile (≤360px) */
@media screen and (max-width: 360px) {
  .support-options {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.8rem;
  }

  .option-card {
    border-radius: 4px;
    padding: 0.5rem;
    box-shadow: 0 3px 6px rgba(255, 60, 56, 0.08);
  }

  .option-card img {
    height: 90px;
    border-radius: 3px;
    margin-bottom: 0.4rem;
  }

  .option-card h3 {
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
  }

  .option-card p {
    line-height: 1.2;
    font-size: 0.7rem;
  }
}

/* Ultra Small Mobile (≤320px) */
@media screen and (max-width: 320px) {
  .support-options {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
    margin-bottom: 0.6rem;
  }

  .option-card {
    border-radius: 3px;
    padding: 0.4rem;
    box-shadow: 0 2px 4px rgba(255, 60, 56, 0.06);
  }

  .option-card img {
    height: 80px;
    border-radius: 3px;
    margin-bottom: 0.3rem;
  }

  .option-card h3 {
    margin-bottom: 0.3rem;
    font-size: 0.8rem;
  }

  .option-card p {
    line-height: 1.1;
    font-size: 0.65rem;
  }
}

/* ===== COMPACT TIMELINE SECTION ===== */
/* Optimize Our Journey timeline for faster mobile scrolling */

/* Large Tablet and Below (≤900px) */
@media screen and (max-width: 900px) {
  .timeline {
    max-width: 700px;
    padding: 1rem;
  }

  .timeline li {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-size: 0.9rem;
  }

  .timeline li:nth-child(odd) {
    padding-right: 2rem;
  }

  .timeline li:nth-child(even) {
    padding-left: 2rem;
  }
}

/* Mobile and Below (≤768px) */
@media screen and (max-width: 768px) {
  .timeline {
    max-width: 600px;
    padding: 0.8rem;
  }

  .timeline li {
    padding: 0.8rem 1.2rem;
    margin-bottom: 1.2rem;
    line-height: 1.4;
    font-size: 0.85rem;
  }

  .timeline li:nth-child(odd) {
    padding-right: 1.5rem;
  }

  .timeline li:nth-child(even) {
    padding-left: 1.5rem;
  }
}

/* Small Mobile (≤480px) */
@media screen and (max-width: 480px) {
  .timeline {
    max-width: 100%;
    padding: 0.6rem;
  }

  .timeline li {
    padding: 0.6rem 1rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    font-size: 0.8rem;
  }

  .timeline li:nth-child(odd) {
    padding-right: 1.2rem;
  }

  .timeline li:nth-child(even) {
    padding-left: 1.2rem;
  }
}

/* Extra Small Mobile (≤360px) */
@media screen and (max-width: 360px) {
  .timeline {
    padding: 0.5rem;
  }

  .timeline li {
    padding: 0.5rem 0.8rem;
    margin-bottom: 0.8rem;
    line-height: 1.2;
    font-size: 0.75rem;
  }

  .timeline li:nth-child(odd) {
    padding-right: 1rem;
  }

  .timeline li:nth-child(even) {
    padding-left: 1rem;
  }
}

/* Ultra Small Mobile (≤320px) */
@media screen and (max-width: 320px) {
  .timeline {
    padding: 0.4rem;
  }

  .timeline li {
    padding: 0.4rem 0.6rem;
    margin-bottom: 0.6rem;
    line-height: 1.1;
    font-size: 0.7rem;
  }

  .timeline li:nth-child(odd) {
    padding-right: 0.8rem;
  }

  .timeline li:nth-child(even) {
    padding-left: 0.8rem;
  }
}

/* Hide mobile menu button on desktop */
.mobile-menu-btn {
  display: none;
}

/* Sidebar overlay */
.sidebar-overlay {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Main sidebar container */
.sidebar {
  position: fixed;
  top: 0;
  right: -350px;
  width: 350px;
  height: 100vh;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-left: 2px solid var(--primary-color);
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
  z-index: 10002;
  transition: right 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow-y: auto;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
}

.sidebar.active {
  right: 0;
}

/* Sidebar header with close button */
.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 56, 56, 0.2);
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.sidebar-title {
  color: var(--text-light);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.sidebar-close {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.sidebar-close:hover {
  background: rgba(255, 56, 56, 0.1);
  color: var(--primary-color);
  transform: rotate(90deg);
}

/* Sidebar navigation */
.sidebar-nav {
  padding: 0 1.5rem;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.sidebar-nav h3 {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav li {
  margin-bottom: 0.5rem;
}

.sidebar-nav a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem;
  display: block;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.sidebar-nav a:hover {
  background: rgba(255, 56, 56, 0.1);
  color: var(--primary-color);
  transform: translateX(10px);
  text-shadow: 0 0 10px rgba(255, 56, 56, 0.5);
}

.sidebar-nav a[aria-current="page"] {
  background: rgba(255, 56, 56, 0.15);
  color: var(--primary-color);
  text-shadow: 0 0 15px rgba(255, 56, 56, 0.8);
  border-left: 3px solid var(--primary-color);
  padding-left: 0.75rem;
}

.sidebar-nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 56, 56, 0.1), transparent);
  transition: left 0.5s ease;
}

.sidebar-nav a:hover::before {
  left: 100%;
}

/* Sidebar social links */
.sidebar-social {
  padding: 0 1.5rem;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.sidebar-social h3 {
  color: var(--primary-color);
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.sidebar-social-links .social-icons-row {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  justify-content: space-between;
}

.sidebar-social .social-icon.support {
  flex-direction: row;
  width: 100%;
  height: auto;
  padding: 0.6rem;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.sidebar-social .social-icon {
  background: #333;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 0.75rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  position: relative;
  overflow: hidden;
  flex: 1;
}

.sidebar-social .social-icon svg {
  width: 20px;
  height: 20px;
  fill: white;
  transition: all 0.3s ease;
  z-index: 2;
  position: relative;
}

.sidebar-social .social-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), #ff6b6b);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.sidebar-social .social-icon:hover::before {
  opacity: 1;
}

.sidebar-social .social-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 56, 56, 0.3);
}

.sidebar-social .social-icon:hover svg {
  fill: white;
  transform: scale(1.1);
}

/* Brand-specific hover effects */
.sidebar-social .instagram:hover::before {
  background: linear-gradient(135deg, #FF69B4, #FF1493);
}

.sidebar-social .linkedin:hover::before {
  background: linear-gradient(135deg, #0077B5, #00A0DC);
}

.sidebar-social .envelope:hover::before {
  background: linear-gradient(135deg, #FFD700, #FFA500);
}

/* Creator support text styling */
.sidebar-support-text {
  display: block;
  color: var(--text-light);
  font-size: 0.7rem;
  font-weight: 500;
  text-align: left;
  margin: 0;
  padding: 0.35rem 0.5rem;
  background: rgba(255, 56, 56, 0.1);
  border-radius: 6px;
  border: 1px solid rgba(255, 56, 56, 0.2);
  line-height: 1.1;
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 3;
}

/* Creator support icon SVG sizing */
.sidebar-social .social-icon.support svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Special hover effect for creator support icon */
.sidebar-social .social-icon.support:hover::before {
  background: linear-gradient(135deg, rgba(255, 56, 56, 0.2), rgba(255, 56, 56, 0.1));
  opacity: 1;
}

.sidebar-social .social-icon.support:hover .sidebar-support-text {
  color: var(--text-light);
  background: rgba(255, 56, 56, 0.15);
  border-color: rgba(255, 56, 56, 0.3);
}

/* Sidebar footer */
.sidebar-footer {
  padding: 0 1.5rem;
  border-top: 1px solid rgba(255, 56, 56, 0.2);
  padding-top: 1rem;
  margin-top: auto;
  flex-shrink: 0;
}

.sidebar-footer h3 {
  color: var(--primary-color);
  font-size: 1rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-footer p {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.4;
}

.sidebar-footer a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.sidebar-footer a:hover {
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(255, 56, 56, 0.5);
}

/* ===== SIDEBAR DROPDOWN STYLES ===== */
.sidebar-dropdown {
  width: 100%;
  margin-bottom: 8px;
}

.sidebar-dropdown-toggle {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-light);
  padding: 12px 16px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 8px;
  position: relative;
}

.sidebar-dropdown-toggle:hover {
  background: rgba(255, 60, 56, 0.1);
  color: var(--primary-color);
}

.sidebar-dropdown-toggle:focus {
  outline: none;
  background: rgba(255, 60, 56, 0.15);
  box-shadow: 0 0 0 2px rgba(255, 60, 56, 0.3);
}



.sidebar-dropdown-toggle:hover .dropdown-arrow {
  color: var(--primary-color);
}

.sidebar-dropdown-content {
  display: none;
  background: rgba(255, 60, 56, 0.05);
  border-radius: 8px;
  margin: 4px 0;
  overflow: hidden;
  border: 1px solid rgba(255, 60, 56, 0.1);
}

.gallery-text,
.about-text {
  flex: 1;
  text-align: left;
}

.dropdown-arrow {
  flex-shrink: 0;
  width: 20px;
  text-align: center;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

.sidebar-dropdown-link {
  display: flex;
  align-items: center;
  padding: 10px 16px 10px 32px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 60, 56, 0.05);
}

.sidebar-dropdown-link:last-child {
  border-bottom: none;
}

.sidebar-dropdown-link:hover {
  background: rgba(255, 60, 56, 0.1);
  color: var(--primary-color);
  transform: translateX(4px);
}

.sidebar-dropdown-link:focus {
  outline: none;
  background: rgba(255, 60, 56, 0.15);
  color: var(--primary-color);
}

.dropdown-link-icon {
  margin-right: 12px;
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.dropdown-link-text {
  font-weight: 500;
}

/* ===== TABLET STYLES ===== */
@media screen and (max-width: 900px) {
  /* Show mobile menu button */
  .mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10003;
    position: relative;
    transition: all 0.3s ease;
  }

  .mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background: var(--text-light);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
  }

  .mobile-menu-btn:hover span {
    background: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 56, 56, 0.5);
  }

  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    background: var(--primary-color);
  }

  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
  }

  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
    background: var(--primary-color);
  }

  /* Hide desktop navigation and social links */
  .nav-menu,
  .social-links {
    display: none !important;
  }

  /* Show sidebar overlay and sidebar */
  .sidebar-overlay {
    display: block !important;
  }

  /* Adjust header layout */
  header {
    padding: 1rem 2rem;
    min-height: 60px;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
  }

  .logo {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    width: calc(100% - 14rem);
    flex: 1;
  }

  .logo img {
    height: 65px;
    width: 100%;
    max-width: none;
    object-fit: contain;
    flex: 1;
    filter: brightness(1.1) contrast(1.1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
  }

  .mobile-menu-btn {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
  }

  /* Adjust hero section for tablet */
  .hero {
    padding: 2rem 1rem;
    min-height: auto;
    height: auto;
  }

  .hero-flex {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .hero-image-buttons,
  .hero-text {
    flex: none;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }

  .hero-buggy {
    max-width: 70%;
    max-height: 400px;
    width: 70%;
    margin: 0 auto 0 -3rem;
  }

  .hero .animated-headline {
    font-size: 2.5rem;
    padding: 0 !important;
    margin: 0 !important;
  }

  .hero p {
    font-size: 1.1rem;
    padding: 0 !important;
    margin: 1rem 0 !important;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .btn {
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
  }
}

/* ===== MOBILE STYLES ===== */
@media screen and (max-width: 768px) {
  /* Ensure header layout on mobile */
  header {
    padding: 1rem 1.5rem;
    min-height: 55px;
    position: relative;
    display: flex;
    align-items: center;
  }

  .logo {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    width: calc(100% - 12rem);
    flex: 1;
  }

  .logo img {
    height: 60px;
    width: 100%;
    max-width: none;
    object-fit: contain;
    flex: 1;
    filter: brightness(1.15) contrast(1.15) drop-shadow(0 0 10px rgba(255, 255, 255, 0.7));
  }

  .mobile-menu-btn {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
  }

  /* Adjust sidebar for mobile */
  .sidebar {
    width: 300px;
    right: -300px;
  }

  /* Mobile hero adjustments */
  .hero {
    padding: 1.5rem 1rem;
    min-height: auto;
    height: auto;
  }

  .hero-buggy {
    max-width: 85%;
    max-height: 300px;
    width: 85%;
    margin: 0 auto 0 -2.5rem;
  }

  .hero .animated-headline {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .btn {
    padding: 0.9rem 1.2rem;
    font-size: 0.9rem;
  }

  /* Adjust section spacing */
  .section {
    padding: 2rem 1rem;
  }

  .section h2 {
    font-size: 2rem;
  }
}

/* ===== SMALL MOBILE STYLES ===== */
@media screen and (max-width: 480px) {
  /* Ensure header layout on small mobile */
  header {
    padding: 0.75rem 1rem;
    min-height: 50px;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    width: 100%;
  }

  .logo {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    width: calc(100% - 10rem);
    flex: 1;
  }

  .logo img {
    height: 55px;
    width: 100%;
    max-width: none;
    object-fit: contain;
    flex: 1;
    filter: brightness(1.2) contrast(1.2) drop-shadow(0 0 12px rgba(255, 255, 255, 0.8));
  }

  .mobile-menu-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
  }

  /* Further adjust sidebar for small screens */
  .sidebar {
    width: 280px;
    right: -280px;
    padding: 1.5rem 0;
  }

  .sidebar-header,
  .sidebar-nav,
  .sidebar-social,
  .sidebar-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Small mobile hero adjustments */
  .hero {
    padding: 1rem;
    min-height: auto;
    height: auto;
  }

  .hero-buggy {
    max-width: 90%;
    max-height: 250px;
    width: 90%;
    margin: 0 auto 0 -2rem;
  }

  .hero .animated-headline {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .btn {
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 250px;
  }
}

/* ===== LANDSCAPE MOBILE STYLES ===== */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    height: auto;
    padding: 80px 1rem 1rem 1rem !important;
    padding-top: 80px !important;
  }

  .hero-flex {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }

  .hero-image-buttons {
    flex: 1;
    max-width: 50%;
  }

  .hero-text {
    flex: 1;
    max-width: 50%;
    text-align: left;
  }

  .hero-buggy {
    max-width: 100%;
    max-height: 200px;
    width: 100%;
    margin: 0 auto 0 -1.5rem;
  }

  .hero .animated-headline {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .btn {
    padding: 0.7rem 1rem;
    font-size: 0.8rem;
  }
}

/* ===== EXTRA SMALL MOBILE STYLES ===== */
@media screen and (max-width: 360px) {
  /* Ensure header layout on extra small screens */
  header {
    padding: 0.5rem 0.75rem;
    min-height: 45px;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    width: 100%;
  }

  .logo {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    width: calc(100% - 8rem);
    flex: 1;
  }

  .logo img {
    height: 50px;
    width: 100%;
    max-width: none;
    object-fit: contain;
    flex: 1;
    filter: brightness(1.25) contrast(1.25) drop-shadow(0 0 14px rgba(255, 255, 255, 0.9));
  }

  .mobile-menu-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
  }

  .sidebar {
    width: 260px;
    right: -260px;
  }
}

/* ===== ULTRA SMALL MOBILE STYLES ===== */
@media screen and (max-width: 320px) {
  /* Ensure header layout on ultra small screens */
  header {
    padding: 0.4rem 0.5rem;
    min-height: 40px;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    width: 100%;
  }

  .logo {
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    width: calc(100% - 6rem);
    flex: 1;
  }

  .logo img {
    height: 48px;
    width: 100%;
    max-width: none;
    object-fit: contain;
    flex: 1;
    filter: brightness(1.3) contrast(1.3) drop-shadow(0 0 16px rgba(255, 255, 255, 1.0));
  }

  .mobile-menu-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
  }

  .sidebar {
    width: 240px;
    right: -240px;
  }

  /* ===== MOBILE "WHO WE ARE" LOGOS COMPACT LAYOUT ===== */
  /* Make logo containers more compact on mobile */
  .who-we-are .container {
    padding: 1rem 0.5rem;
  }

  .logo-flow {
    flex-direction: column;
    gap: 0.3rem !important;
    padding: 0.3rem !important;
    margin: 0.3rem 0 !important;
  }

  .logo-flow img {
    object-fit: contain;
    flex-shrink: 0;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  /* Mobile Ultra Compact Logo Sizing */
  .logo-flow img[src*="ADYPU SOE LOGO.png"] {
    width: 180px;
    height: 120px;
  }

  .logo-flow img[src*="Open Throttle Racing Club Logo.png"] {
    width: 200px;
    height: 120px;
  }

  .logo-flow img[src*="Avinya Logo.png"] {
    width: 160px;
    height: 120px;
  }

  .logo-flow img[src*="Baja SAEINDIA Logo.png"] {
    width: 140px;
    height: 120px;
  }

  .arrow {
    width: auto;
    text-align: center;
    font-size: 1rem;
    margin: 0.2rem 0;
    padding: 0;
    flex-shrink: 0;
  }
}

/* ===== ULTRA COMPACT MOBILE STYLES (≤480px) ===== */
@media screen and (max-width: 480px) {
  /* Even more compact logo layout for small phones */
  .who-we-are .container {
    padding: 0.8rem 0.3rem;
  }

  .logo-flow {
    flex-direction: column;
    gap: 0.2rem !important;
    padding: 0.2rem !important;
    margin: 0.2rem 0 !important;
  }

  .logo-flow img {
    object-fit: contain;
    flex-shrink: 0;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  /* Small Phone Ultra Compact Logo Sizing */
  .logo-flow img[src*="ADYPU SOE LOGO.png"] {
    width: 160px;
    height: 100px;
  }

  .logo-flow img[src*="Open Throttle Racing Club Logo.png"] {
    width: 180px;
    height: 100px;
  }

  .logo-flow img[src*="Avinya Logo.png"] {
    width: 140px;
    height: 100px;
  }

  .logo-flow img[src*="Baja SAEINDIA Logo.png"] {
    width: 120px;
    height: 100px;
  }

  .arrow {
    width: auto;
    text-align: center;
    font-size: 0.9rem;
    margin: 0.1rem 0;
    padding: 0;
    flex-shrink: 0;
  }
}

/* ===== EXTRA COMPACT MOBILE STYLES (≤360px) ===== */
@media screen and (max-width: 360px) {
  /* Maximum compactness for very small phones */
  .who-we-are .container {
    padding: 0.5rem 0.2rem;
  }

  .logo-flow {
    flex-direction: column;
    gap: 0.1rem !important;
    padding: 0.1rem !important;
    margin: 0.1rem 0 !important;
  }

  .logo-flow img {
    object-fit: contain;
    flex-shrink: 0;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  /* Extra Small Phone Ultra Compact Logo Sizing */
  .logo-flow img[src*="ADYPU SOE LOGO.png"] {
    width: 140px;
    height: 90px;
  }

  .logo-flow img[src*="Open Throttle Racing Club Logo.png"] {
    width: 160px;
    height: 90px;
  }

  .logo-flow img[src*="Avinya Logo.png"] {
    width: 120px;
    height: 90px;
  }

  .logo-flow img[src*="Baja SAEINDIA Logo.png"] {
    width: 105px;
    height: 90px;
  }

  .arrow {
    width: auto;
    text-align: center;
    font-size: 0.8rem;
    margin: 0.05rem 0;
    padding: 0;
    flex-shrink: 0;
  }
}

/* ===== MOBILE FULLSCREEN SUPPORT ===== */
/* Comprehensive fullscreen styles for mobile devices */

/* Mobile Fullscreen Video Styles */
@media screen and (max-width: 900px) {
  /* Ensure videos can go fullscreen on mobile */
  .media-card video {
    -webkit-playsinline: false !important;
    playsinline: false !important;
    x5-playsinline: false !important;
    /* Enable fullscreen on mobile */
    -webkit-video-playable-inline: false !important;
    video-playable-inline: false !important;
  }
  
  /* Fullscreen styles for mobile */
  .media-card video:fullscreen,
  .media-card video:-webkit-full-screen,
  .media-card video:-moz-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    min-width: 100vw !important;
    min-height: 100vh !important;
    object-fit: contain !important;
    aspect-ratio: auto !important;
    border-radius: 0 !important;
    background: #000 !important;
    transform: none !important;
    scale: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 999999 !important;
  }
  
  /* Mobile video controls in fullscreen */
  .media-card video:fullscreen::-webkit-media-controls,
  .media-card video:-webkit-full-screen::-webkit-media-controls,
  .media-card video:-moz-full-screen::-webkit-media-controls {
    display: flex !important;
    background: rgba(0, 0, 0, 0.7) !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 10px !important;
  }
  
  .media-card video:fullscreen::-webkit-media-controls-panel,
  .media-card video:-webkit-full-screen::-webkit-media-controls-panel,
  .media-card video:-moz-full-screen::-webkit-media-controls-panel {
    display: flex !important;
    background: rgba(0, 0, 0, 0.8) !important;
    border-radius: 8px !important;
    margin: 10px !important;
    padding: 8px !important;
  }
  
  /* Mobile fullscreen button styles */
  .media-card video:fullscreen::-webkit-media-controls-fullscreen-button,
  .media-card video:-webkit-full-screen::-webkit-media-controls-fullscreen-button,
  .media-card video:-moz-full-screen::-webkit-media-controls-fullscreen-button {
    display: block !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 4px !important;
    padding: 4px !important;
  }
}

/* Small Mobile Fullscreen Optimization */
@media screen and (max-width: 480px) {
  .media-card video:fullscreen,
  .media-card video:-webkit-full-screen,
  .media-card video:-moz-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    object-fit: contain !important;
    background: #000 !important;
  }
  
  /* Smaller controls for small screens */
  .media-card video:fullscreen::-webkit-media-controls-panel,
  .media-card video:-webkit-full-screen::-webkit-media-controls-panel,
  .media-card video:-moz-full-screen::-webkit-media-controls-panel {
    margin: 5px !important;
    padding: 5px !important;
  }
}

/* Landscape Mobile Fullscreen */
@media screen and (max-width: 900px) and (orientation: landscape) {
  .media-card video:fullscreen,
  .media-card video:-webkit-full-screen,
  .media-card video:-moz-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    object-fit: contain !important;
    background: #000 !important;
  }
}

/* iOS Safari Specific Fullscreen */
@supports (-webkit-touch-callout: none) {
  .media-card video {
    -webkit-playsinline: false !important;
    playsinline: false !important;
  }
  
  .media-card video:fullscreen,
  .media-card video:-webkit-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    object-fit: contain !important;
    background: #000 !important;
  }
}

/* Android Chrome Specific Fullscreen */
@media screen and (max-width: 900px) {
  .media-card video {
    /* Enable fullscreen for Android */
    -webkit-video-playable-inline: false !important;
    video-playable-inline: false !important;
  }
}

/* ===== DEDICATED BUGGY POSITIONING SECTION ===== */
/* Separate buggy-specific styles to avoid conflicts with common CSS */

/* Large Tablet and Below (≤900px) */
@media screen and (max-width: 900px) {
  .hero {
    text-align: left !important;
    align-items: flex-start !important;
  }
  
  .hero-flex {
    justify-content: flex-start !important;
    align-items: flex-start !important;
  }
  
  .hero-text {
    text-align: left !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
  }
  
  .hero-image-buttons {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    align-items: flex-start !important;
  }
  
  .hero-buggy {
    margin: 0 !important;
    margin-left: -3rem !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
  }
}

/* Mobile and Below (≤768px) */
@media screen and (max-width: 768px) {
  .hero {
    text-align: left !important;
    align-items: flex-start !important;
  }
  
  .hero-flex {
    justify-content: flex-start !important;
    align-items: flex-start !important;
  }
  
  .hero-text {
    text-align: left !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
  }
  
  .hero-image-buttons {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    align-items: flex-start !important;
  }
  
  .hero-buggy {
    margin: 0 !important;
    margin-left: -3rem !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
  }
}

/* Small Mobile (≤480px) */
@media screen and (max-width: 480px) {
  .hero {
    text-align: left !important;
    align-items: flex-start !important;
  }
  
  .hero-flex {
    justify-content: flex-start !important;
    align-items: flex-start !important;
  }
  
  .hero-text {
    text-align: left !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
  }
  
  .hero-image-buttons {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    align-items: flex-start !important;
  }
  
  .hero-buggy {
    margin: 0 !important;
    margin-left: -3rem !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
  }
}

/* Extra Small Mobile (≤360px) */
@media screen and (max-width: 360px) {
  .hero {
    text-align: left !important;
    align-items: flex-start !important;
  }
  
  .hero-flex {
    justify-content: flex-start !important;
    align-items: flex-start !important;
  }
  
  .hero-text {
    text-align: left !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
  }
  
  .hero-image-buttons {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    align-items: flex-start !important;
  }
  
  .hero-buggy {
    margin: 0 !important;
    margin-left: -3rem !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
  }
}

/* Ultra Small Mobile (≤320px) */
@media screen and (max-width: 320px) {
  .hero {
    text-align: left !important;
    align-items: flex-start !important;
  }
  
  .hero-flex {
    justify-content: flex-start !important;
    align-items: flex-start !important;
  }
  
  .hero-text {
    text-align: left !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
  }
  
  .hero-image-buttons {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    align-items: flex-start !important;
  }
  
  .hero-buggy {
    margin: 0 !important;
    margin-left: -3rem !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
  }
}

/* Landscape Mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .hero {
    text-align: left !important;
    align-items: flex-start !important;
  }
  
  .hero-flex {
    justify-content: flex-start !important;
    align-items: flex-start !important;
  }
  
  .hero-text {
    text-align: left !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
  }
  
  .hero-image-buttons {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    align-items: flex-start !important;
  }
  
  .hero-buggy {
    margin: 0 !important;
    margin-left: -3rem !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
  }
}

/* Back to Top Button - REMOVED - See dedicated section in style.css */
