/* =================================================
   FARM DATA CONNECTIVITY PAGE
   Uses existing Farm X premium theme
   ================================================= */

/* ================= HERO ================= */

.connectivity-hero-section {
    position: relative;
    min-height: 60vh;
    padding: 160px 0 80px;
    display: flex;
    align-items: center;
  
    background:
      linear-gradient(
        to right,
        rgba(5, 10, 7, 0.88),
        rgba(5, 10, 7, 0.3)
      ),
      url('/images/1755080146618.jfif')
        center / cover no-repeat;
  
    background-attachment: fixed;
  }
  
  .connectivity-hero-content h1 {
    font-size: clamp(38px, 6vw, 64px);
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-white);
    margin-bottom: 14px;
  }
  
  .connectivity-hero-content .hero-subtitle {
    font-size: clamp(20px, 3vw, 32px);
    font-weight: 300;
    color: var(--primary-blue);
    letter-spacing: 1px;
  }
  
  /* ================= INTRO ================= */
  
  .connectivity-intro-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #000000, #0e2041);
    border-top: 4px solid var(--primary-blue);
    border-bottom: 4px solid var(--primary-blue);
  }
  
  .connectivity-intro-section .intro-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 28px;
  }
  
  .connectivity-intro-section .intro-description {
    font-size: 17px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    max-width: 900px;
    margin: 0 auto;
  }
  
  /* ================= RESPONSIVE ================= */
  
  @media (max-width: 991px) {
    .connectivity-hero-section {
      padding: 140px 0 70px;
    }
  }
  
  @media (max-width: 767px) {
    .connectivity-hero-section {
      padding: 120px 0 60px;
      background-attachment: scroll;
    }
  
    .connectivity-intro-section {
      padding: 80px 0;
    }
  }

  




  /* ================= FARMX PENTAGON LAYOUT ================= */

  .farmx-pentagon-section {
    position: relative; /* Needed for overlay positioning */
    padding: 50px 0;
    padding-bottom: 160px !important;
    background-image: url('/images/farm-data.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden; /* ensures overlay doesn't spill out */
    border-bottom: 4px solid #2171ff !important;
  }
  
  /* Overlay */
  .farmx-pentagon-section::before {
    content: "";
    position: absolute;
    inset: 0; /* top:0; right:0; bottom:0; left:0 */
    background: rgba(0, 0, 0, 0.5); /* semi-transparent black overlay */
    z-index: 0; /* behind content */
  }
  
  /* Ensure content is above overlay */
  .farmx-pentagon-section > * {
    position: relative;
    z-index: 1;
  }
  
  
  .pentagon-wrapper {
    position: relative;
    max-width: 1040px;
    height: 620px;
    margin: 0 auto;
  }
  
  /* CARD BASE */
 /* CARD BASE */
.pentagon-card {
    position: absolute;
    width: 300px;
    height: 260px; /* ✅ FORCE EQUAL HEIGHT */
  
    padding: 32px 30px;
  
    background: linear-gradient(
      145deg,
      rgba(255,255,255,0.13),
      rgba(255,255,255,0.05)
    );
  
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 18px;
  
    text-align: center;
    color: #ffffff;
    box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  
    /* ✅ CENTER CONTENT PROPERLY */
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
   
  /* ICON */
  .pentagon-card i {
    font-size: 36px;
    color: #3aa6ff;
    margin-bottom: 14px;
  }
  
  /* TITLE */
  .pentagon-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
  }
  
  /* TEXT */
  .pentagon-card p {
    font-size: 14.5px;
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
  }
  
  /* ================= PENTAGON POSITIONS ================= */
  
  /* TOP */
  .pos-top {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
  }
  @media (max-width:768px){
  .pos-top{
    transform: translateX(0%);
  }
  }
  
  /* MIDDLE ROW */
  .pos-mid-left {
    top: 180px;
    left: 0;
  }
  
  .pos-mid-right {
    top: 180px;
    right: 0;
  }
  
  .pos-bot-left {
    top: 480px;   /* moved down */
    left: 170px;
  }
  
  .pos-bot-right {
    top: 480px;   /* moved down */
    right: 170px;
  }
  
  /* ================= RESPONSIVE ================= */
  
  /* ================= RESPONSIVE ================= */
@media (max-width: 991px) {
  .pentagon-wrapper {
    height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
    justify-items: center; /* Center all cards horizontally */
    align-items: center;   /* Center vertically if needed */
  }

  .pentagon-card {
    position: static !important; /* Remove absolute positioning */
    width: 100%;                 /* Full width of wrapper */
    max-width: 320px;            /* Optional: limit max width */
  }
}


  






  .farmx-data-insights-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #0a0f1e, #0e1b2e);
    position: relative;
    overflow: hidden;
  }
  
  /* Section Title */
  .insights-title {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
  }
  
  .insights-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
  }
  
  /* Card */
  .insights-card {
    background: linear-gradient(
      145deg,
      rgba(255,255,255,0.12),
      rgba(255,255,255,0.04)
    );
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    color: #ffffff;
    height: 100%;
    box-shadow: 0 24px 60px rgba(0,0,0,0.45);
    transition: all 0.3s ease;
  }
  
  /* Icon */
  .insights-card i {
    font-size: 36px;
    color: #3aa6ff;
    margin-bottom: 16px;
  }
  
  /* Title */
  .insights-card h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 14px;
  }
  
  /* Text */
  .insights-card p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
  }
  
  /* Responsive Adjustments */
  @media (max-width: 991px) {
    .insights-card {
      margin: 0 auto;
    }
  }
  




  .farm-section {
    padding: 0;
    margin: 0;
}

.card-container {
    display: flex; 
    flex-wrap: wrap;
    margin: 0;
}

.farm-section {
    padding: 0;
    margin: 0;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
}

.farm-card {
    position: relative;
    min-height: 850px; /* full size */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.farm-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.45); /* overlay */
    z-index: 1;
}

.card-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 400px;
}

.card-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.card-logo i {
    font-size: 2rem;
}

.card-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.card-text {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.7;
    margin-bottom: 25px;
}

.card-btn {
    background-color: #3aa6ff;
    color: #fff;
    border: none;
    padding: 12px 30px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-btn:hover {
    background-color: #0052cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Card overlays by color */
.farm-card-1::before { background: rgba(58,166,255,0.7); }   /* Blue overlay */
.farm-card-2::before { background: rgba(255,193,86,0.7); }   /* Yellow overlay */
.farm-card-3::before { background: rgba(34,178,170,0.7); }   /* Teal overlay */

/* Responsive */
@media (max-width: 991px) {
    .farm-card {
        min-height: 600px;
        padding: 30px 20px;
    }
    .card-title {
        font-size: 1.4rem;
    }
    .card-text {
        font-size: 0.95rem;
    }
}









.card-content {
    transition: all 0.5s ease-in-out;
    opacity: 1;
  }
  
  .card-content.fade-out {
    opacity: 0;
  }
  