/**
 * ZIIZ.IN - Homepage District Section Styles
 * Kerala 14 Districts Grid Layout
 * File: ziiz-home-page-district-section.css
 * Path: /var/www/ziiz.in/html/wp-content/themes/kadence-child/css/
 */

/* ============================================
   Font Face Declarations - Open Sans
   ============================================ */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/wp-content/themes/kadence-child/fonts/open-sans-v43-latin-300.woff2') format('woff2');
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/wp-content/themes/kadence-child/fonts/open-sans-v43-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/wp-content/themes/kadence-child/fonts/open-sans-v43-latin-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/wp-content/themes/kadence-child/fonts/open-sans-v43-latin-700.woff2') format('woff2');
}

/* ============================================
   Main Container
   ============================================ */
.kerala-districts-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Open Sans', sans-serif;
}

/* ============================================
   Row Wrapper
   ============================================ */
.districts-row {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

/* Featured Row (2 columns) - Thrissur & Kozhikode */
.districts-row.featured-row {
  grid-template-columns: repeat(2, 1fr);
}

/* Standard Rows (3 columns) */
.districts-row:not(.featured-row) {
  grid-template-columns: repeat(3, 1fr);
}

/* ============================================
   District Card Base Styles
   ============================================ */
.district-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
  text-decoration: none;
  color: #333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), 
              0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 95px;
  position: relative;
  font-family: 'Open Sans', sans-serif;
}

/* Featured Card (larger) */
.district-card.featured {
  min-height: 130px;
  padding: 26px 18px;
}

/* Hover Effect with Attractive Shadow */
.district-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15), 
              0 6px 12px rgba(0, 0, 0, 0.1),
              0 0 0 1px rgba(0, 0, 0, 0.02);
  background: #ffffff;
}

/* Active/Focus States for Accessibility */
.district-card:focus {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}

.district-card:active {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12), 
              0 3px 8px rgba(0, 0, 0, 0.08);
}

/* ============================================
   District Icon
   ============================================ */
.district-icon {
  font-size: 38px;
  margin-bottom: 10px;
  line-height: 1;
}

.district-card.featured .district-icon {
  font-size: 50px;
  margin-bottom: 14px;
}

/* ============================================
   District Name
   ============================================ */
.district-name {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  color: #1a1a1a;
  line-height: 1.3;
  font-family: 'Open Sans', sans-serif;
}

.district-card.featured .district-name {
  font-size: 19px;
  font-weight: 700;
}

/* ============================================
   Mobile Responsive - Tablets
   ============================================ */
@media screen and (max-width: 768px) {
  .kerala-districts-grid {
    padding: 16px 12px;
  }
  
  .districts-row {
    gap: 12px;
    margin-bottom: 12px;
  }
  
  /* Keep 3 columns on mobile but adjust sizing */
  .districts-row:not(.featured-row) {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .district-card {
    padding: 14px 8px;
    min-height: 80px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.09), 
                0 1px 3px rgba(0, 0, 0, 0.06);
  }
  
  .district-card.featured {
    min-height: 110px;
    padding: 20px 12px;
  }
  
  .district-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12), 
                0 5px 10px rgba(0, 0, 0, 0.08);
  }
  
  .district-icon {
    font-size: 30px;
    margin-bottom: 8px;
  }
  
  .district-card.featured .district-icon {
    font-size: 42px;
    margin-bottom: 12px;
  }
  
  .district-name {
    font-size: 12px;
    font-weight: 600;
  }
  
  .district-card.featured .district-name {
    font-size: 16px;
    font-weight: 700;
  }
}

/* ============================================
   Mobile Responsive - Small Phones
   ============================================ */
@media screen and (max-width: 480px) {
  .kerala-districts-grid {
    padding: 12px 8px;
  }
  
  .district-card {
    padding: 12px 6px;
    min-height: 75px;
  }
  
  .district-card.featured {
    min-height: 100px;
    padding: 18px 10px;
  }
  
  .district-name {
    font-size: 10px;
    font-weight: 600;
  }
  
  .district-card.featured .district-name {
    font-size: 14px;
    font-weight: 700;
  }
  
  .district-icon {
    font-size: 26px;
  }
  
  .district-card.featured .district-icon {
    font-size: 36px;
  }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
  .district-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  .district-card:hover {
    transform: none;
    box-shadow: none;
  }
}

/* End of File */
