 * {
      box-sizing: border-box;
    }
    
    body {
      margin: 0;
      font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
      background: linear-gradient(135deg, #f5f9f5 0%, #e8f4e8 100%);
      color: #333;
      line-height: 1.6;
      overflow-x: hidden; /* Prevent horizontal scroll */
    }
    
    html,
    body {
      width: 100%;
      max-width: 100vw;
      overflow-x: hidden !important;
    }


    /* ===== FIXED HEADER FOR MOBILE ===== */
    header {
      background-color: #4CAF50;
      color: white;
      padding: 12px 15px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 1000;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
      width: 100%;
      max-width: 100vw; /* Ensure header doesn't exceed viewport */
    }

    header h1 {
      font-size: 1.3rem;
      margin: 0;
      font-weight: 600;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      flex: 1;
      min-width: 0; /* Allow text truncation */
      max-width: calc(100vw - 60px); /* Reserve space for hamburger */
    }

    .hamburger {
      font-size: 24px;
      cursor: pointer;
      background: none;
      border: none;
      color: white;
      padding: 0;
      margin: 0;
      width: 30px;
      height: 30px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      margin-left: 10px;
    }

    /* Desktop navigation */
    nav {
      display: flex;
      gap: 15px;
      align-items: center;
    }

    nav a {
      color: white;
      text-decoration: none;
      font-weight: 500;
      transition: all 0.3s ease;
      padding: 5px 10px;
      border-radius: 4px;
      white-space: nowrap;
    }

    nav a:hover {
      background-color: rgba(255, 255, 255, 0.1);
    }

    nav a.login-btn {
      background-color: #FF8C00;
      padding: 8px 16px;
      border-radius: 5px;
    }

    nav a.login-btn:hover {
      background-color: #e67e00;
      transform: translateY(-2px);
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .close {
      display: none;
      font-size: 26px;
      position: absolute;
      top: 10px;
      right: 15px;
      cursor: pointer;
      color: #fff;
      background: none;
      border: none;
      z-index: 1001;
    }

    /* Mobile navigation styles */
    @media (max-width: 768px) {
      header {
        padding: 10px 15px;
      }
      
      header h1 {
        font-size: 1.2rem;
        max-width: calc(100vw - 50px); /* Adjust for smaller hamburger */
      }
      
      .hamburger {
        font-size: 22px;
        width: 26px;
        height: 26px;
        margin-left: 8px;
      }

      /* Hide desktop nav, show mobile nav */
      nav:not(.mobile-nav) {
        display: none;
      }

      .mobile-nav {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(56, 142, 60, 0.98);
        width: 100vw;
        height: 100vh;
        padding: 60px 20px 20px;
        z-index: 999;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
      }

      .mobile-nav.show {
        display: flex;
      }

      .mobile-nav a {
        padding: 15px 20px;
        text-align: left;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        font-size: 1.1rem;
        margin: 0;
        display: block;
      }

      .mobile-nav a:last-child {
        border-bottom: none;
      }

      .mobile-nav a.login-btn {
        background-color: #FF8C00;
        margin-top: 10px;
        text-align: center;
      }

      .close {
        display: block;
      }
    }

    /* Desktop styles */
    @media (min-width: 769px) {
      .hamburger {
        display: none;
      }
      
      .mobile-nav {
        display: none !important;
      }
      
      nav {
        display: flex;
      }
    }

    /* Very small mobile devices */
    @media (max-width: 480px) {
      header {
        padding: 8px 12px;
      }
      
      header h1 {
        font-size: 1.1rem;
        max-width: calc(100vw - 45px);
      }
      
      .hamburger {
        font-size: 20px;
        width: 24px;
        height: 24px;
        margin-left: 6px;
      }
    }

    /* Extra small devices */
    @media (max-width: 360px) {
      header h1 {
        font-size: 1rem;
        max-width: calc(100vw - 40px);
      }
    }
    
    @media (max-width: 768px) {
      body {
        overflow-x: hidden !important;
        overscroll-behavior-x: none;
        touch-action: pan-y;
      }
    }
        
    

    /* Rest of your existing styles remain the same */
    /* Page Header */
    .page-header {
      background: linear-gradient(135deg, #2e7d32 0%, #4CAF50 100%);
      color: white;
      text-align: center;
      padding: 100px 20px 60px;
      margin-bottom: 40px;
      position: relative;
      overflow: hidden;
    }
    .page-header {
      background: url('https://byenrique.files.wordpress.com/2013/09/el-mundo-iii.jpg') no-repeat center center;
      background-size: cover; /* ensures the image covers fully */
      color: white;
      text-align: center;
      padding: 15vh 20px 10vh;
      min-height: 300px; /* slightly smaller for mobile */
      max-height: 600px; /* optional to limit tall desktops */
      position: relative;
      overflow: hidden;

      animation: slowMove 59s ease-in-out infinite alternate;
    }

    @keyframes slowMove {
      0% { background-position: center 0%; }
      50% { background-position: center 50%; }
      100% { background-position: center 100%; }
    }
    


    .page-header::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
      background-size: cover;
    }

    .page-header h1 {
      font-size: 2.5rem;
      margin: 0 0 15px;
      font-weight: 700;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .page-header p {
      font-size: 1.2rem;
      max-width: 700px;
      margin: 0 auto;
      opacity: 0.9;
    }

    /* Marquee Banner */
    .top-marquee {
      background: #ffcc00;
      padding: 10px 0;
      font-weight: bold;
      color: #000;
      margin-top: 60px;
    }

    /* Quick Tip Section */
    .did-you-know {
      background: #fff3e6;
      padding: 20px;
      margin: 25px 20px;
      border-left: 5px solid #ff6600;
      border-radius: 8px;
      box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    }

    .did-you-know h3 {
      color: #2e7d32;
      margin-top: 0;
      margin-bottom: 10px;
      font-weight: 600;
    }

    .did-you-know p {
      font-size: 1.1em;
      margin: 0;
      color: #555;
    }

    /* Quick Action Buttons */
    .quick-actions {
      display: flex;
      gap: 15px;
      margin: 25px 20px;
      flex-wrap: wrap;
    }

    .quick-actions a {
      flex: 1;
      min-width: 200px;
      text-align: center;
      background: #4CAF50;
      color: #fff;
      padding: 15px 10px;
      text-decoration: none;
      border-radius: 8px;
      font-weight: 600;
      transition: all 0.3s ease;
      box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    }

    .quick-actions a:hover {
      transform: translateY(-3px);
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    }

    .quick-actions a:nth-child(1) { background: #0077cc; }
    .quick-actions a:nth-child(2) { background: #28a745; }
    .quick-actions a:nth-child(3) { background: #ff6600; }
    .quick-actions a:nth-child(4) { background: #FF8C00; }

    /* Main Content */
    .container {
      display: flex;
      max-width: 1200px;
      margin: 0 auto 40px;
      padding: 0 20px;
      gap: 30px;
    }

    .main-content {
      flex: 3;
    }

    .sidebar {
      flex: 1;
    }

    /* Content Sections */
    .content-section {
      background: white;
      border-radius: 12px;
      padding: 30px;
      margin-bottom: 25px;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
      border-left: 5px solid #4CAF50;
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
    }

    .content-section::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 4px;
      background: linear-gradient(90deg, #4CAF50, #2e7d32);
    }

    .content-section:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }

    .content-section h2, .content-section h3 {
      color: #2e7d32;
      margin-top: 0;
      margin-bottom: 20px;
      font-weight: 600;
    }

    .content-section h2 {
      font-size: 1.8rem;
    }

    .content-section h3 {
      font-size: 1.5rem;
    }

    .content-section p, .content-section li {
      color: #555;
      font-size: 1.05rem;
    }

    .content-section a {
      color: #4CAF50;
      text-decoration: none;
      font-weight: 500;
      transition: all 0.3s ease;
    }

    .content-section a:hover {
      color: #2e7d32;
      text-decoration: underline;
    }

    .content-section ul, .content-section ol {
      padding-left: 20px;
    }

    .content-section li {
      margin-bottom: 8px;
    }

    .content-section strong {
      color: #2e7d32;
    }

    /* Apply Section */
    .apply-section {
      margin-top: 2rem;
      padding: 1.5rem;
      background: #eef6fb;
      border-radius: 12px;
      box-shadow: 0 3px 10px rgba(0,0,0,0.1);
      border-left: 5px solid #0077cc;
    }

    .apply-section h3 {
      color: #0077cc;
      margin-bottom: 0.8rem;
    }

    /* Apply Button */
    .applyBtn {
      display: inline-block;
      background: #4CAF50;
      color: white;
      padding: 15px 30px;
      font-size: 1.1rem;
      font-weight: 600;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.3s ease;
      text-decoration: none;
      border: none;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      margin-top: 15px;
    }

    .applyBtn:hover {
      background-color: #45a049;
      transform: translateY(-3px);
      box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }

    /* Apply Modal */
    .applyModal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0,0,0,0.7);
      justify-content: center;
      align-items: center;
      z-index: 2000;
    }

    .applyModal .modal-content {
      background: white;
      padding: 30px;
      border-radius: 15px;
      width: 450px;
      max-width: 90%;
      box-shadow: 0 12px 25px rgba(0,0,0,0.4);
      text-align: left;
      animation: fadeIn 0.3s ease-out;
      border-top: 5px solid #4CAF50;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(-20px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .applyModal h2 {
      color: #2e7d32;
      margin-top: 0;
      margin-bottom: 20px;
      font-weight: 600;
    }

    .applyModal p {
      color: #555;
      margin-bottom: 20px;
    }

    .applyModal label {
      display: block;
      margin-top: 15px;
      font-weight: 600;
      color: #333;
    }

    .applyModal input {
      width: 100%;
      padding: 12px;
      margin-top: 5px;
      border-radius: 8px;
      border: 1px solid #ccc;
      box-sizing: border-box;
      font-family: inherit;
      font-size: 1rem;
    }

    .applyModal input:focus {
      outline: none;
      border-color: #4CAF50;
      box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
    }

    .modal-buttons {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      margin-top: 25px;
    }

    .applyModal button {
      padding: 12px 22px;
      border: none;
      border-radius: 8px;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .submit-btn {
      background-color: #4CAF50;
      color: white;
    }

    .submit-btn:hover {
      background-color: #45a049;
      transform: translateY(-2px);
    }

    .cancel-btn {
      background-color: #f44336;
      color: white;
    }

    .cancel-btn:hover {
      background-color: #da190b;
      transform: translateY(-2px);
    }

    /* Testimonial Slider */
    .testimonial-slider {
      background: white;
      border-radius: 12px;
      padding: 25px;
      margin: 25px 0;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
      position: relative;
      overflow: hidden;
    }

    .testimonial-slide {
      display: none;
      text-align: center;
    }

    .testimonial-slide.active {
      display: block;
    }

    .testimonial-slide p {
      font-style: italic;
      font-size: 1.1rem;
      color: #555;
      margin-bottom: 15px;
    }

    .testimonial-slide span {
      font-weight: 600;
      color: #2e7d32;
    }

    /* Sidebar */
    .sidebar-section {
      background: white;
      border-radius: 12px;
      padding: 25px;
      margin-bottom: 25px;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
      border-left: 5px solid #FF8C00;
    }

    .sidebar-section h3 {
      color: #2e7d32;
      margin-top: 0;
      margin-bottom: 15px;
      font-size: 1.3rem;
    }

    .sidebar-section ul {
      padding-left: 20px;
      margin: 0;
    }

    .sidebar-section li {
      margin-bottom: 10px;
    }

    .sidebar-section a {
      color: #4CAF50;
      text-decoration: none;
      transition: all 0.3s ease;
    }

    .sidebar-section a:hover {
      color: #2e7d32;
      text-decoration: underline;
    }

    /* Ad Sections */
    .ad-section {
      background: #f8f9fa;
      border-radius: 8px;
      padding: 20px;
      margin: 25px 0;
      text-align: center;
      border: 1px solid #eaeaea;
    }

    /* Footer */
    footer {
      background: linear-gradient(135deg, #2e7d32 0%, #4CAF50 100%);
      color: #fff;
      text-align: center;
      padding: 40px 20px;
      font-size: 0.95rem;
      position: relative;
    }

    footer::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: linear-gradient(90deg, #FF8C00, #FFA500);
    }

    .footer-content {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 30px;
    }

    .footer-section {
      flex: 1 1 250px;
    }

    .footer-section h4 {
      margin-bottom: 15px;
      font-weight: 600;
    }

    .footer-section p {
      font-size: 14px;
      line-height: 1.6;
    }

    .footer-section ul {
      list-style: none;
      padding: 0;
      margin: 0;
      font-size: 14px;
      line-height: 1.8;
    }

    .footer-section a {
      color: #fff;
      text-decoration: none;
      transition: all 0.3s ease;
      padding: 5px 10px;
      border-radius: 4px;
    }

    .footer-section a:hover {
      background-color: rgba(255, 255, 255, 0.1);
      text-decoration: none;
    }

    .footer-social {
      display: flex;
      gap: 10px;
      font-size: 20px;
    }

    .footer-social a {
      color: #fff;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.1);
      transition: all 0.3s ease;
    }

    .footer-social a:hover {
      background: rgba(255, 255, 255, 0.2);
      transform: translateY(-3px);
    }

    footer hr {
      border: 0;
      border-top: 2px solid rgba(255, 255, 255, 0.2);
      margin: 30px 0;
    }

    footer p {
      margin: 20px 0 0;
      opacity: 0.9;
    }

    /* Back to Top Button */
    .back-to-top {
      position: fixed;
      bottom: 30px;
      right: 30px;
      background: #4CAF50;
      color: white;
      width: 50px;
      height: 50px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
      font-size: 1.5rem;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      transition: all 0.3s ease;
      z-index: 99;
      opacity: 0;
      visibility: hidden;
    }

    .back-to-top.visible {
      opacity: 1;
      visibility: visible;
    }

    .back-to-top:hover {
      background: #2e7d32;
      transform: translateY(-3px);
      box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    }

    /* Loader */
    #loader {
      position: fixed;
      left: 0; top: 0;
      width: 100%; height: 100%;
      background: #ffffff;
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 99999;
      flex-direction: column;
    }

    .loader-content {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 15px;
    }

    .loader-logo {
      width: 120px;
      height: auto;
    }

    .sliding-bars {
      display: flex;
      justify-content: center;
      align-items: flex-end;
      gap: 5px;
    }

    .sliding-bars div {
      width: 10px;
      height: 30px;
      background: #0077cc;
      animation: slide 0.5s infinite alternate;
    }

    .sliding-bars div:nth-child(2) { animation-delay: 0.1s; }
    .sliding-bars div:nth-child(3) { animation-delay: 0.2s; }
    .sliding-bars div:nth-child(4) { animation-delay: 0.3s; }

    @keyframes slide {
      to { transform: scaleY(0.3); }
    }

    /* Responsive Adjustments */
    @media (max-width: 768px) {
      .container {
        flex-direction: column;
      }
      
      .page-header {
        padding: 120px 20px 40px;
      }
      
      .page-header h1 {
        font-size: 2rem;
      }
      
      .page-header p {
        font-size: 1.1rem;
      }
      
      .content-section, .sidebar-section, .testimonial-slider {
        padding: 20px;
      }
      
      .content-section h2 {
        font-size: 1.6rem;
      }
      
      .content-section h3 {
        font-size: 1.3rem;
      }
      
      .quick-actions {
        flex-direction: column;
      }
      
      .quick-actions a {
        min-width: auto;
      }
      
      .footer-content {
        flex-direction: column;
        text-align: center;
      }
    }

    @media (max-width: 480px) {
      .page-header h1 {
        font-size: 1.8rem;
      }
      
      .page-header p {
        font-size: 1rem;
      }
      
      .content-section, .sidebar-section, .testimonial-slider {
        padding: 15px;
      }
      
      .modal-buttons {
        flex-direction: column;
      }
      
      .applyModal button {
        width: 100%;
        margin-bottom: 10px;
      }
    }