/* ============================= */
/* PERFECT MOBILE RESPONSIVE CSS */
/* BLOG PAGE - BIGGER LOGO + ALL FIXED */
/* ============================= */

/* ========================================
   NAVBAR - BIGGER LOGO + PERFECT LIST
   ======================================= */
@media (max-width: 768px) {
  .nav-container {
    height: 70px;
    padding: 0 20px;
  }

  /* ✅ BIGGER LOGO - FULL NAVBAR HEIGHT */
  .nav-logo {
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
  }

  .nav-logo img {
    height: 62px !important; /* ✅ INCREASED: 48px → 62px */
    width: auto !important;
    max-height: 100% !important;
  }

  .menu-button {
    font-size: 24px;
    padding: 8px;
    z-index: 1001;
  }

  .nav-menu {
    right: 20px !important;
    top: 80px !important;
    width: 280px !important;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    background: #fff !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    padding: 0 !important;
  }

  .nav-menu.active {
    max-height: 450px !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    padding: 20px !important;
  }

  .nav-menu ul li a {
    display: block;
    font-size: 17px !important;
    font-weight: 500 !important;
    color: #2f4f2f !important;
    padding: 16px 24px !important;
    border-radius: 12px !important;
    margin: 4px 0 !important;
    background: rgba(255,255,255,0.9) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(47,79,62,0.1) !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06) !important;
    text-decoration: none !important;
  }

  .nav-menu ul li a:hover {
    background: rgba(47,79,62,0.08) !important;
    transform: translateX(6px) !important;
    box-shadow: 0 8px 25px rgba(47,79,62,0.15) !important;
  }
}

/* ========================================
  BANNER SPACING - MORE TOP, LESS BOTTOM
  ======================================= */
@media (max-width: 768px) {
  .about-banner {
    padding-top: 110px !important;
    padding-bottom: 10px !important;
  }

  .about-image {
    position: relative;
    margin: 0 20px;
    border-radius: 20px;
    overflow: hidden;
  }

  .about-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
  }

  .about-image h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0,0,0,0.7);
    z-index: 2;
  }
}

/* ========================================
  CATEGORY TABS - REDUCED GAP
  ======================================= */
@media (max-width: 768px) {
  .category-section {
    padding: 30px 20px 60px !important;
  }

  .tabs {
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-bottom: 35px !important;
    padding-bottom: 10px;
  }

  .tab {
    font-size: 15px !important;
    padding: 12px 18px !important;
    border-radius: 25px !important;
    white-space: nowrap !important;
    min-width: auto !important;
    flex-shrink: 0;
  }

  .tab.active {
    background: rgba(95, 127, 74, 0.2) !important;
    color: #5f7f4a !important;
    font-weight: 600;
  }
}

/* ========================================
  BLOG CARDS - FIXED OVERLAP + PERFECT SIZE
  ======================================= */
@media (max-width: 768px) {
  .cards {
    display: none !important;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
    gap: 12px !important;
    padding-top: 10px !important;
  }

  .cards.active {
    display: grid !important;
  }

  .card {
    height: 220px !important;
    min-height: 220px !important;
    border-radius: 20px !important;
    position: relative !important;
    overflow: hidden !important;
  }

  .card-image {
    width: 100% !important;
    height: 100% !important;
  }

  .card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .card-overlay {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: linear-gradient(transparent, rgba(0,0,0,0.9)) !important;
    color: white !important;
    padding: 20px 15px 15px !important;
    transform: translateY(100%) !important;
    transition: transform 0.35s ease !important;
  }

  .card-overlay h4 {
    font-size: 16px !important;
    margin-bottom: 5px !important;
    font-weight: 600 !important;
  }

  .card-overlay p {
    font-size: 12px !important;
    line-height: 1.4 !important;
  }

  .card:hover .card-overlay {
    transform: translateY(0) !important;
  }

  .card:hover {
    transform: translateY(-10px) scale(1.02) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3) !important;
  }
}

/* ========================================
  CONTACT SECTION - PERFECT MOBILE
  ======================================= */
@media (max-width: 768px) {
  .contact-section {
    padding: 60px 25px !important;
  }

  .contact-container {
    flex-direction: column !important;
    gap: 40px !important;
  }

  .contact-left h2 {
    font-size: 32px !important;
    margin-bottom: 18px;
    text-align: center;
  }

  .social-links {
    display: flex;
    justify-content: center;
    gap: 22px;
  }

  .contact-form-card {
    padding: 40px 30px !important;
    border-radius: 25px !important;
  }
}

/* ========================================
  FOOTER + TIGHT COPYRIGHT SPACING
  ======================================= */
@media (max-width: 768px) {
  .footer {
    padding: 50px 25px 15px !important;
  }

  .footer-container {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .allRights {
    text-align: center !important;
    font-size: 13px !important;
    color: #888 !important;
    padding: 12px 25px 20px !important;
    margin-top: 5px !important;
    margin-bottom: 0 !important;
    background: #111 !important;
    line-height: 1.4;
  }
}

/* ========================================
  ULTRA SMALL MOBILE - 480px & BELOW
  ======================================= */
@media (max-width: 480px) {
  .about-banner {
    padding-top: 100px !important;
    padding-bottom: 8px !important;
  }

  .about-image img {
    height: 240px;
  }

  .about-image h1 {
    font-size: 36px !important;
  }

  .tabs {
    gap: 6px !important;
  }

  .tab {
    font-size: 14px !important;
    padding: 10px 16px !important;
  }

  .card {
    height: 200px !important;
  }

  .cards {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }

  .category-section {
    padding-top: 25px !important;
  }
}
