/* ========================================
   APPLICATION LANDING PAGE RESPONSIVE CSS
   Complete responsive design for navigation and layout
======================================== */

/* ========================================
   BASE MOBILE STYLES
   Mobile-first approach
======================================== */

/* Mobile Notice - Hidden by default */
.mobile-notice {
  display: none;
}

/* ========================================
   RESPONSIVE NAVIGATION STYLES
======================================== */

/* Desktop Navigation (unchanged) */
@media (min-width: 769px) {
  .navbar {
    background-color: #28A745;
    width: 1240px;
    justify-content: center;
    display: flex;
    align-items: center;
    margin: 0 auto;
    padding: 0.5rem 1rem;
  }

  .navbar-brand img {
    height: 83.33%;
    max-height: 40px;
  }

  .login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    margin-left: 10px;
    color: #fff;
    background-color: #198754;
    border: 1px solid #165D26;
    border-radius: 4px;
    height: 36px;
    width: 180px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    text-decoration: none;
  }

  .login-button:hover,
  .login-button:focus {
    background-color: #145c32;
    border-color: #0f3e22;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  }

  .language-toggle {
    color: white;
    font-size: 16px;
    font-weight: 500;
    margin-left: 20px;
  }
}

/* ========================================
   TABLET STYLES (577px - 768px)
======================================== */
@media (min-width: 577px) and (max-width: 768px) {
  /* Show mobile notice */
  .mobile-notice {
    display: block !important;
  }

  /* Hide desktop elements */
  .col-7,
  .report-section,
  .footer,
  .desktop-notice {
    display: none !important;
  }

  .main-content {
    width: 100% !important;
    padding: 0 3% !important;
  }

  /* Navigation adjustments */
  .navbar {
    width: 100% !important;
    padding: 0.75rem 3% !important;
    margin: 0 !important;
  }

  .navbar-brand img {
    height: 35px;
  }

  .navbar-collapse {
    padding-top: 1rem;
  }

  .login-button {
    width: 160px;
    height: 40px;
    font-size: 13px;
    margin: 10px 0;
  }

  .language-toggle {
    margin-top: 10px;
    text-align: center;
  }

  .language-link {
    font-size: 15px !important;
  }

  /* Content layout */
  .notice-banner {
    padding: 8px 20px;
  }

  .notice-text {
    font-size: 13px;
  }

  .main-container {
    padding: 1.5rem 0;
  }

  .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Single column layout */
  .col-5 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    margin-bottom: 1.5rem;
    padding: 0 !important;
  }

  .hero-section {
    height: 70vh;
    border-radius: 12px;
    max-width: 100%;
  }

  .hero-content {
    padding: 2rem 1.5rem;
  }

  .hero-title {
    font-size: 1.8rem;
    line-height: 1.3;
  }

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

  .btn-services {
    padding: 11px 22px;
    font-size: 0.95rem;
  }

  /* Services grid */
  .services-section {
    margin: 10px;
    height: auto;

  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0px;
    align-items: center;
    padding-top: 0 !important;
  }

  .last-item1,
  .last-item2 {
    grid-column: auto !important;
  }

  .last-item2 {
    grid-column: 2 !important;
  }

  .service-card {
    max-width: 100px;
    padding: 1.2rem 0;
  }

  .service-icon {
    width: 50%;
    margin-bottom: 0.8rem;
  }

  .service-title {
            font-size: 14px;
            width: 110px;
            margin-left: -20px;
            margin-top: 12px;
  }

  /* Mobile notice styling */
  .notice-banner-wrapper.mobile-notice {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .notice-header {
    height: 40px;
    background: #B7CAA4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    border-radius: 8px 8px 0 0;
  }

  .notice-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
    color: #17301D;
  }

  .notice-content {
    background: #E2F0D3;
    padding: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: center;
    border-radius: 0 0 8px 8px;
    color: #17301D;
  }
}

/* ========================================
   MOBILE PHONES (up to 576px)
======================================== */
@media (max-width: 576px) {
  /* Show mobile notice */
  .mobile-notice {
    display: block !important;
  }

  /* Hide desktop elements */
  .col-7,
  .report-section,
  .footer,
  .desktop-notice {
    display: none !important;
  }

  .main-content {
    width: 100% !important;
    padding: 0 2% !important;
  }

  /* Navigation - Mobile First */
  .navbar {
    width: 100% !important;
    padding: 0.5rem 2% !important;
    margin: 0 !important;
    min-height: 60px;
  }

  .navbar-brand img {
    height: 30px;
  }

  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }

  .navbar-toggler:focus {
    box-shadow: none;
  }

  .navbar-collapse {
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 0.5rem;
  }

  .login-button {
    width: 100%;
    height: 44px;
    font-size: 14px;
    margin: 10px 0;
    justify-content: center;
  }

  .login-button i {
    font-size: 18px;
  }

  .language-toggle {
    text-align: center;
  }

  .language-link {
    font-size: 16px !important;
    padding: 8px 12px;
  }

  .language-divider {
    margin: 0 15px;
  }

  /* Content adjustments */
  .notice-banner {
    padding: 10px 15px;
  }

  .notice-text {
    font-size: 12px;
    line-height: 1.4;
  }

  .main-container {
    padding: 1rem 0;
  }

  .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Single column layout */
  .col-5 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    margin-bottom: 1rem;
    padding: 0 !important;
  }

  .hero-section {
    height: 60vh;
    border-radius: 10px;
    max-width: 100%;
  }

  .hero-content {
    padding: 1.5rem;
  }

  .hero-title {
    font-size: 1.4rem;
    line-height: 1.2;
    margin-bottom: 0.8rem;
  }

  .hero-subtitle {
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
  }

  .btn-services {
    padding: 10px 20px;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }

  /* Services grid - Mobile optimized */
  .services-section {
    margin:10px;
    height: auto;

  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0px;
    align-items: center;
    justify-items: center;
    padding-top: 0 !important;
  }

  .last-item1,
  .last-item2 {
    grid-column: auto !important;
  }

  .last-item2 {
    grid-column: 2 !important;
  }

  .service-card {
    max-width: 80px;
    padding: 1rem 0;
  }

  .service-icon {
    width: 50%;
    margin-bottom: 0.5rem;
  }

  .service-title {
  margin-top: 16px;
           font-size: 14px;
           width: 110px;
           margin-left: -20px;
           margin-top: 12px;
  }

  /* Mobile notice styling */
  .notice-banner-wrapper.mobile-notice {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
  }

  .notice-header {
    height: 36px;
    background: #B7CAA4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    border-radius: 6px 6px 0 0;
  }

  .notice-title {
    font-size: 1rem;
    font-weight: bold;
    margin: 0;
    color: #17301D;
  }

  .notice-content {
    background: #E2F0D3;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    line-height: 1.4;
    text-align: center;
    border-radius: 0 0 6px 6px;
    color: #17301D;
  }
}

/* ========================================
   VERY SMALL MOBILE (up to 400px)
======================================== */
@media (max-width: 400px) {
  .navbar {
    padding: 0.5rem 1% !important;
  }

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

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

  .services-grid {
    gap: 0px !important;
    padding-top: 0 !important;
  }

  .service-card {
    max-width: 70px;
    padding: 0.8rem 0;
  }

  .service-title {

            font-size: 14px;
            width: 110px;
            margin-left: -20px;
            margin-top: 16px;
  }

  .service-icon {
    width: 45%;
  }

  .btn-services {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .login-button {
    height: 40px;
    font-size: 13px;
  }

  .notice-title {
    font-size: 0.9rem;
  }

  .notice-content {
    font-size: 0.75rem;
    padding: 0.5rem 0.8rem;
  }
}

/* ========================================
   LANDSCAPE ORIENTATION (Mobile)
======================================== */
@media (max-width: 768px) and (orientation: landscape) {
  .main-content {
    width: 100% !important;
    padding: 0 3% !important;
  }

  .hero-section {
    height: 80vh;
  }

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

  .hero-subtitle {
    font-size: 0.8rem;
    margin-bottom: 1.2rem;
  }

  .services-section {
    padding: 1rem;
  }

  .main-container {
    padding: 0.5rem 0 !important;
  }

  .services-grid {
    gap: 0px;
    padding-top: 0 !important;
  }

  .service-card {
    padding: 0.8rem 0;
  }

  .navbar {
    min-height: 50px;
  }

  .navbar-brand img {
    height: 25px;
  }
}

/* ========================================
   LARGE TABLETS (769px - 1024px)
======================================== */
@media (min-width: 769px) and (max-width: 1024px) {
  .navbar {
    width: 100% !important;
    padding: 0.75rem 4% !important;
  }

  .main-content {
    width: 100% !important;
    padding-left: 4%;
    padding-right: 4%;
  }

  .notice-banner {
    padding: 8px 0;
  }

  .notice-text {
    font-size: 13px;
  }

  .main-container {
    padding: 1.8rem 0;
  }

  .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .hero-section {
    height: 85%;
  }

  .hero-content {
    padding: 1.8rem;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
  }

  .btn-services {
    padding: 11px 22px;
    font-size: 0.95rem;
  }

  .services-section {
    padding: 1.8rem;
    height: 85%;
  }

  .services-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0px;
  }

  .service-card {
    max-width: 110px;
    padding: 1.3rem 0;
  }

  .service-icon {
    width: 45%;
    margin-bottom: 0.8rem;
  }

  .service-title {
            font-size: 14px;
            width: 110px;
            margin-left: -20px;
            margin-top: 16px;
  }

  .login-button {
    width: 160px;
    height: 38px;
  }

  .card {

              width:270px !important;
          }

          .service-title {
              font-size: 14px !important;

            }
}

/* ========================================
   MEDIUM DESKTOP (1000px - 1300px)
======================================== */
@media (min-width: 1000px) and (max-width: 1300px) {
  .navbar {
    padding-left: 5%;
    padding-right: 5%;
  }

  .main-content {
    padding-left: 5%;
    padding-right: 5%;
  }
  .card {

                width:270px !important;
            }

            .service-title {
                          font-size: 14px !important;

            }

            .card-title {

            font-size: 15px;

            }
}

/* ========================================
   RESPONSIVE IMAGES & ICONS
======================================== */
@media (max-width: 1024px) {
  .service-icon img {
    width: 56px;
    height: auto;
    object-fit: contain;
  }

  .navbar-brand img {
    height: auto;
    max-width: 100%;
  }
}

/* ========================================
   TOUCH DEVICE OPTIMIZATIONS
======================================== */
@media (hover: none) and (pointer: coarse) {
  .service-card {
    padding: 1.2rem 0;
    min-height: 80px;
  }

  .btn-services,
  .login-button {
    min-height: 44px;
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .language-link {
    padding: 10px 15px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* ========================================
   UTILITY CLASSES
======================================== */
@media (max-width: 768px) {
  .mobile-hide {
    display: none !important;
  }

  .mobile-show {
    display: block !important;
  }

  .mobile-text-center {
    text-align: center !important;
  }

  .mobile-full-width {
    width: 100% !important;
  }

  .mobile-stack {
    flex-direction: column !important;
  }

  .mobile-no-gap {
    gap: 0 !important;
  }
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
======================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .navbar {
    border-bottom: 2px solid #fff;
  }

  .login-button {
    border: 2px solid #fff;
  }

  .service-card {
    border: 1px solid #333;
  }
}

/* ========================================
   PRINT STYLES
======================================== */
@media print {
  .navbar,
  .mobile-notice,
  .footer {
    display: none !important;
  }

  .main-content {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .hero-section {
    height: auto !important;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}


