/* ═══════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE FIXES — GUIDED TECH SOLUTIONS HOMEPAGE
   Add this file AFTER style.css in your HTML:
   <link rel="stylesheet" href="mobile-responsive.css">
═══════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════
   TABLET BREAKPOINT (768px - 1024px)
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  
  /* ── HERO SECTION ──────────────────────────────────────────────── */
  .hero-section {
    padding: 80px 0 60px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }

  .hero-left {
    align-items: center;
    max-width: 100%;
  }

  .hero-title {
    font-size: clamp(2.2rem, 6vw, 3rem);
  }

  .hero-subtitle {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-btn {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-people {
    align-items: center;
  }

  .hero-right {
    order: -1; /* image appears ABOVE text on tablet */
  }

  .hero-image-frame {
    max-width: 400px;
    margin: 0 auto;
  }

  .hero-main-img {
    height: 450px;
  }

  .hero-sub-img {
    width: 160px;
    bottom: -18px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  /* ── IMPACT SECTION ────────────────────────────────────────────── */
  .impact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .impact-label {
    padding-top: 0;
  }

  .impact-heading {
    font-size: clamp(1.6rem, 4vw, 2rem);
  }

  .impact-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .impact-item {
    padding: 0;
  }

  .impact-item + .impact-item::before {
    display: none;
  }

  /* ── ABOUT SECTION ─────────────────────────────────────────────── */
  .about-header {
    flex-direction: column;
    gap: 20px;
  }

  .about-title,
  .about-description {
    flex: 1 1 100%;
  }

  .about-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .large-card {
    grid-column: span 2;
  }

  /* ── DASHBOARD SECTION ─────────────────────────────────────────── */
  .dashboard-head {
    padding: 0 24px;
  }

  .dashboard-title {
    font-size: clamp(1.8rem, 5vw, 2.4rem);
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 0 24px;
  }

  .dashboard-card {
    padding: 28px 22px;
    min-height: 200px;
  }

  /* ── TESTIMONIALS ──────────────────────────────────────────────── */
  .testimonial-quote {
    font-size: 1.3rem;
  }

  /* ── BLOG SECTION ──────────────────────────────────────────────── */
  .blogs-slider {
    gap: 18px;
  }

  .blog-card {
    min-width: 280px;
  }

  /* ── FOOTER ────────────────────────────────────────────────────── */
  .gts-footer-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .about-col {
    grid-column: span 2;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE BREAKPOINT (max-width: 767px)
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  
  /* ── GLOBAL CONTAINER ──────────────────────────────────────────── */
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* ── HERO SECTION ──────────────────────────────────────────────── */
  .hero-section {
    padding: 60px 0 50px;
  }

  .hero-section::before {
    background-size: 80px 80px; /* smaller grid on mobile */
    opacity: 0.2;
  }

  .hero-grid {
    gap: 40px;
    padding: 0 16px;
  }

  .hero-tag {
    font-size: 0.75rem;
    margin-bottom: 12px;
  }

  .hero-title {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
    margin-bottom: 16px;
    line-height: 1.15;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.55;
  }

  .hero-btn {
    padding: 12px 24px;
    font-size: 0.95rem;
    margin-bottom: 28px;
  }

  /* Avatar stack */
  .avatar {
    width: 38px;
    height: 38px;
    border-width: 2px;
    margin-left: -10px;
  }

  .avatar-count {
    width: 38px;
    height: 38px;
    border-width: 2px;
    font-size: 0.85rem;
  }

  .hero-people-text {
    font-size: 0.85rem;
  }

  /* Hero images */
  .hero-image-frame {
    max-width: 100%;
  }

  .hero-main-img {
    height: 380px;
    border-radius: 16px;
  }

  .hero-sub-img {
    width: 140px;
    bottom: -16px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    border-radius: 12px;
  }

  /* ── IMPACT SECTION ────────────────────────────────────────────── */
  .section-impact {
    padding: 60px 0;
  }

  .impact-grid {
    gap: 24px;
  }

  .impact-label {
    font-size: 12px;
  }

  .impact-heading {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .impact-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding-top: 0;
  }

  .impact-item {
    padding: 18px 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
  }

  .impact-value {
    font-size: 2rem;
  }

  .impact-description {
    font-size: 0.95rem;
    max-width: 100%;
  }

  /* ── ABOUT SECTION ─────────────────────────────────────────────── */
  .section-about {
    padding: 60px 0;
  }

  .about-header {
    margin-bottom: 40px;
  }

  .about-title {
    font-size: 1.4rem;
    line-height: 1.3;
  }

  .about-description {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .large-card {
    grid-column: span 1;
  }

  .about-card {
    padding: 24px;
    border-radius: 16px;
  }

  .about-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
  }

  .about-card p {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  /* ── DASHBOARD / EXPERTISE SECTION ─────────────────────────────── */
  .section-dashboard {
    padding: 60px 0;
  }

  .dashboard-head {
    margin-bottom: 36px;
    padding: 0 16px;
  }

  .dashboard-title {
    font-size: 1.6rem;
    line-height: 1.25;
    margin-bottom: 14px;
  }

  .dashboard-subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 0 16px;
  }

  .dashboard-card {
    padding: 24px 20px;
    min-height: 180px;
    border-radius: 14px;
  }

  .card-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  .card-copy {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .card-copy br {
    display: none; /* remove line breaks on mobile for better flow */
  }

  /* ── TESTIMONIALS ──────────────────────────────────────────────── */
  .section-testimonials {
    padding: 60px 0;
  }

  .testimonial-content {
    padding: 0 16px;
  }

  .testimonial-quote {
    font-size: 1.15rem;
    line-height: 1.5;
    margin-bottom: 24px;
  }

  .testimonial-avatar {
    width: 50px;
    height: 50px;
  }

  .testimonial-person h3 {
    font-size: 1rem;
  }

  .testimonial-person p {
    font-size: 0.85rem;
  }

  .testimonial-nav {
    margin-top: 24px;
  }

  .nav-btn {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  /* ── BLOG SECTION ──────────────────────────────────────────────── */
  .section-blogs {
    padding: 60px 0;
  }

  .blogs-top {
    margin-bottom: 28px;
    padding: 0 16px;
  }

  .blogs-title {
    font-size: 1.6rem;
  }

  .blogs-slider {
    gap: 14px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .blog-card {
    min-width: 260px;
    border-radius: 14px;
  }

  .blog-image {
    height: 180px;
  }

  .blog-content {
    padding: 14px 16px 20px;
  }

  .blog-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    line-height: 1.4;
  }

  .blog-card p {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .blog-tags span {
    font-size: 0.75rem;
    padding: 4px 10px;
  }

  .blog-nav {
    margin-top: 20px;
    padding: 0 16px;
  }

  .slider-arrow {
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
  }

  /* ── FOOTER ────────────────────────────────────────────────────── */
  .gts-footer {
    padding: 50px 0 25px;
  }

  .gts-footer-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 20px;
    width: 100%;
    max-width: 100%;
    padding: 0 16px;
    margin: 0 auto;
  }

  /* Force proper column order: SERVICES left, RESOURCES+ABOUT right */
  .gts-footer-col:nth-child(1) { order: 1; } /* Company info - first */
  .gts-footer-col:nth-child(2) { order: 2; } /* SERVICES - left column */
  .gts-footer-col:nth-child(3) { order: 3; } /* RESOURCES - right column */
  .gts-footer-col:nth-child(4) { order: 4; } /* ABOUT - right column below RESOURCES */
  
  .about-col {
    grid-column: span 2;
    order: 0;
    margin-bottom: 10px;
  }

  .footer-logo {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  .footer-desc {
    font-size: 0.9rem;
    max-width: 100%;
    margin-bottom: 12px;
  }

  .footer-heading {
    font-size: 12px;
    margin: 12px 0 8px;
  }

  .gts-footer-col a {
    font-size: 0.9rem;
    margin-bottom: 6px;
  }

  .footer-social {
    margin-top: 12px;
    gap: 12px;
  }

  .footer-social img {
    width: 19px;
  }

  .gts-footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    font-size: 0.8rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   SMALL MOBILE BREAKPOINT (max-width: 480px)
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  
  /* ── HERO SECTION ──────────────────────────────────────────────── */
  .hero-section {
    padding: 50px 0 40px;
  }

  .hero-grid {
    gap: 32px;
  }

  .hero-title {
    font-size: 1.6rem;
  }

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

  .hero-btn {
    padding: 11px 20px;
    font-size: 0.9rem;
  }

  .hero-main-img {
    height: 320px;
  }

  .hero-sub-img {
    width: 120px;
    bottom: -12px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  /* ── IMPACT SECTION ────────────────────────────────────────────── */
  .section-impact {
    padding: 50px 0;
  }

  .impact-heading {
    font-size: 1.3rem;
  }

  .impact-stats {
    gap: 16px;
  }

  .impact-item {
    padding: 16px 14px;
  }

  .impact-value {
    font-size: 1.8rem;
  }

  .impact-description {
    font-size: 0.9rem;
  }

  /* ── ABOUT SECTION ─────────────────────────────────────────────── */
  .section-about {
    padding: 50px 0;
  }

  .about-title {
    font-size: 1.25rem;
  }

  .about-description {
    font-size: 0.9rem;
  }

  .about-card {
    padding: 20px;
  }

  .about-card h3 {
    font-size: 1.25rem;
  }

  .about-card p {
    font-size: 0.9rem;
  }

  /* ── DASHBOARD SECTION ─────────────────────────────────────────── */
  .section-dashboard {
    padding: 50px 0;
  }

  .dashboard-title {
    font-size: 1.4rem;
  }

  .dashboard-subtitle {
    font-size: 0.9rem;
  }

  .dashboard-card {
    padding: 20px 18px;
    min-height: 160px;
  }

  .card-title {
    font-size: 1.05rem;
  }

  .card-copy {
    font-size: 0.88rem;
  }

  /* ── TESTIMONIALS ──────────────────────────────────────────────── */
  .section-testimonials {
    padding: 50px 0;
  }

  .testimonial-quote {
    font-size: 1.05rem;
  }

  .testimonial-avatar {
    width: 44px;
    height: 44px;
  }

  /* ── BLOG SECTION ──────────────────────────────────────────────── */
  .section-blogs {
    padding: 50px 0;
  }

  .blogs-title {
    font-size: 1.4rem;
  }

  .blog-card {
    min-width: 240px;
  }

  .blog-image {
    height: 160px;
  }

  .blog-content {
    padding: 12px 14px 18px;
  }

  .blog-card h3 {
    font-size: 0.95rem;
  }

  .blog-card p {
    font-size: 0.85rem;
  }

  /* ── FOOTER ────────────────────────────────────────────────────── */
  .gts-footer {
    padding: 45px 0 20px;
  }

  .gts-footer-inner {
    padding: 0 14px;
    gap: 35px 16px;
  }

  .footer-logo {
    font-size: 1.1rem;
  }

  .footer-desc {
    font-size: 0.85rem;
  }

  .footer-heading {
    font-size: 11px;
    margin: 16px 0 6px;
  }

  .gts-footer-col a {
    font-size: 0.85rem;
  }

  .footer-social img {
    width: 18px;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   EXTRA SMALL MOBILE (max-width: 360px)
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 360px) {
  
  .hero-title {
    font-size: 1.4rem;
  }

  .hero-subtitle {
    font-size: 0.85rem;
  }

  .impact-heading {
    font-size: 1.15rem;
  }

  .about-title {
    font-size: 1.1rem;
  }

  .dashboard-title {
    font-size: 1.25rem;
  }

  .dashboard-card {
    padding: 18px 16px;
  }

  .card-title {
    font-size: 1rem;
  }

  .card-copy {
    font-size: 0.85rem;
  }

  .testimonial-quote {
    font-size: 1rem;
  }

  .blogs-title {
    font-size: 1.25rem;
  }

  .blog-card {
    min-width: 220px;
  }

  /* ── FOOTER ────────────────────────────────────────────────────── */
  .gts-footer {
    padding: 40px 0 18px;
  }

  .gts-footer-inner {
    padding: 0 12px;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   LANDSCAPE MOBILE FIX (height < 500px)
═══════════════════════════════════════════════════════════════════ */
@media (max-height: 500px) and (orientation: landscape) {
  
  .hero-section {
    padding: 40px 0;
  }

  .hero-main-img {
    height: 280px;
  }

  .section-impact,
  .section-about,
  .section-dashboard,
  .section-testimonials,
  .section-blogs {
    padding: 40px 0;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   UTILITY CLASSES FOR MOBILE
═══════════════════════════════════════════════════════════════════ */

/* Hide on mobile */
@media (max-width: 767px) {
  .hide-mobile {
    display: none !important;
  }
}

/* Show only on mobile */
.show-mobile {
  display: none !important;
}

@media (max-width: 767px) {
  .show-mobile {
    display: block !important;
  }
}

/* Touch-friendly tap targets on mobile */
@media (max-width: 767px) {
  a, button, .btn-primary, .hero-btn, .nav-btn, .slider-arrow {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Prevent text from being too small on any device */
@media (max-width: 767px) {
  body {
    font-size: 15px;
    -webkit-text-size-adjust: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE MENU DROPDOWN ALIGNMENT FIX
   Ensures dropdown content is LEFT-ALIGNED not centered
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  
  .mega-dropdown {
    text-align: left !important;
  }
  
  .mega-col {
    text-align: left !important;
  }
  
  .mega-col h4 {
    text-align: left !important;
  }
  
  .mega-col a {
    text-align: left !important;
    justify-content: flex-start !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   END OF MOBILE RESPONSIVE FIXES
═══════════════════════════════════════════════════════════════════ */
