/* =========================================
   CSS Reset & Custom Properties
   ========================================= */
:root {
  --primary-green: #0a4d2e; 
  --secondary-green: #7ab800; 
  --text-dark: #2d3748;
  --text-light: #718096;
  --bg-light: #eef7f2; 
  --white: #ffffff;
  --border-color: #e2e8f0;
  --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; color: var(--text-dark); background-color: var(--bg-light); line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

/* =========================================
   Typography & Utility Classes
   ========================================= */
h1, h2, h3, h4 { margin-bottom: 1rem; color: var(--primary-green); }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 4rem 0; }
.text-center { text-align: center; }

.btn { display: inline-block; padding: 10px 24px; border-radius: 5px; font-weight: 600; cursor: pointer; transition: var(--transition); border: none; }
.btn-primary { background-color: var(--secondary-green); color: var(--white); }
.btn-primary:hover { background-color: #659900; }
.btn-outline { border: 2px solid var(--primary-green); color: var(--primary-green); background: transparent; }
.btn-outline:hover { background-color: var(--primary-green); color: var(--white); }

/* Newly updated responsive grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 2rem; }

/* All cards now have pure white background and uniform green accent line */
.card { 
  background: var(--white); 
  padding: 30px; 
  border-radius: 8px; 
  box-shadow: 0 4px 6px rgba(0,0,0,0.05); 
  transition: var(--transition); 
  border-top: 4px solid var(--secondary-green); 
}
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 15px rgba(0,0,0,0.1); }

/* =========================================
   Navigation & Header
   ========================================= */
header { background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; }
.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; max-width: 1200px; margin: 0 auto; }
.header-logo { max-height: 50px; } 
.nav-links { display: flex; list-style: none; gap: 20px; align-items: center; } 
.nav-links a { font-weight: 500; transition: var(--transition); }
.nav-links a:hover { color: var(--secondary-green); }
.mobile-menu-btn { display: none; font-size: 1.5rem; background: none; border: none; cursor: pointer; color: var(--primary-green); }

/* =========================================
   Hero Sections with Background Images
   ========================================= */
.hero { 
    position: relative; 
    color: var(--white); 
    padding: 6rem 0; 
    text-align: center; 
    background-size: cover; 
    background-position: center; 
    background-color: var(--primary-green); 
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 77, 46, 0.85); 
    z-index: 1;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: var(--white); font-size: 2.5rem; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; }

/* =========================================
   About Us Specifics (Profile Cards)
   ========================================= */
.profile-card { text-align: center; }
.profile-card img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: 15px; border: 3px solid var(--secondary-green); background: var(--white); }
.profile-card h4 { margin-bottom: 5px; color: var(--primary-green); }
.profile-card p { font-size: 0.9rem; color: var(--text-light); }

/* =========================================
   Forms (Membership Application)
   ========================================= */
.form-container { background: var(--white); padding: 40px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); max-width: 800px; margin: 0 auto; }
.form-step { display: none; }
.form-step.active { display: block; animation: fadeIn 0.5s; }
.form-group { margin-bottom: 20px; text-align: left; }
.form-group.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.95rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: 4px; font-family: inherit; }
.form-group input:focus { outline: none; border-color: var(--secondary-green); }
.form-actions { display: flex; justify-content: space-between; margin-top: 30px; }
.step-indicator { display: flex; justify-content: space-between; margin-bottom: 30px; border-bottom: 2px solid var(--border-color); padding-bottom: 15px; font-size: 0.9rem; }
.step-dot { font-weight: bold; color: var(--text-light); text-align: center; flex: 1; }
.step-dot.active { color: var(--secondary-green); border-bottom: 2px solid var(--secondary-green); padding-bottom: 13px; margin-bottom: -15px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =========================================
   Footer (Light Theme with SVGs)
   ========================================= */
footer { background: var(--white); color: var(--text-dark); padding: 4rem 0 2rem; margin-top: 4rem; border-top: 1px solid var(--border-color); }
.footer-logo { max-width: 220px; margin-bottom: 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.footer-col h4 { color: var(--primary-green); margin-bottom: 20px; font-size: 1.1rem; }
.footer-col p, .footer-col ul { font-size: 0.95rem; color: var(--text-light); margin-bottom: 10px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a:hover { color: var(--secondary-green); }
.contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 15px; color: var(--text-light); }
.contact-item svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; }

.social-icons { display: flex; gap: 15px; margin-top: 20px; }
.social-icons a svg { width: 24px; height: 24px; color: var(--text-light); transition: var(--transition); }
.social-icons a:hover svg { color: var(--secondary-green); transform: translateY(-3px); }

.footer-bottom { text-align: center; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border-color); font-size: 0.85rem; color: var(--text-light); }

/* =========================================
   Service Card Flexbox Layout
   ========================================= */
.service-card-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* =========================================
   Media Queries (Responsive Logic)
   ========================================= */

/* Tablet Layout */
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile Layout */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: var(--white); padding: 20px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); align-items: flex-start; }
  .nav-links.active { display: flex; }
  .mobile-menu-btn { display: block; }
  .step-indicator { flex-direction: column; gap: 10px; align-items: flex-start; }
  .step-dot.active { border-bottom: none; border-left: 3px solid var(--secondary-green); padding-left: 10px; padding-bottom: 0; margin-bottom: 0; }
  .form-group.grid-2 { grid-template-columns: 1fr; }
  
  .grid-3, .grid-4 { grid-template-columns: 1fr; }

  /* Stack the text and the button vertically on mobile */
  .service-card-flex {
        flex-direction: column;
        align-items: flex-start;
  }
  .service-card-flex .btn {
        width: 100%; 
        text-align: center;
  }
}