/* style.css - Shared Styles */
:root {
    --primary-blue: #1a5fb4;
    --primary-green: #2ec27e;
    --secondary-blue: #62a0ea;
    --secondary-green: #57e389;
    --dark-blue: #0d3b66;
    --light-bg: #f8fafc;
    --text-dark: #2d3748;
    --text-light: #718096;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(26, 95, 180, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-blue), var(--secondary-green));
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 95, 180, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

/* Header Styles */
/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
}

.header-left, .header-center, .header-right {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-blue);
    text-decoration: none;
}

.logo span {
    color: var(--primary-green);
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
    margin: 0 1rem;
}

.nav-menu li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1.05rem;
    transition: var(--transition);
    position: relative;
    display: block;
    padding: 0.5rem 0;
}

.nav-menu li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-green));
    transition: var(--transition);
}

.nav-menu li a:hover {
    color: var(--primary-blue);
}

.nav-menu li a:hover:after {
    width: 100%;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    border-radius: 8px;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    padding: 1rem;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.dropdown-content a:hover {
    background-color: var(--light-bg);
    color: var(--primary-blue);
    padding-left: 1.8rem;
}





/* Desktop default */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
  }

  /* By default, hide the mobile version */
.mobile-apply {
    display: none;
    margin-top: 1rem;
  }
  /* Mobile responsiveness */
  @media (max-width: 768px) {
    .mobile-toggle {
      display: block;
    }
  
    .header-center {
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      background: var(--white);
      padding: 1rem 0;
      display: none; /* hidden by default */
      flex-direction: column;
      align-items: center;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
      z-index: 999;
    }
  
    .header-center.active {
      display: flex;
    }
        .nav-menu {
            position: fixed;
            top: 80px;
            left: -100%;
            width: 100%;
            background-color: var(--white);
            flex-direction: column;
            align-items: center;
            padding: 2rem 0;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
            transition: left 0.3s ease;
            z-index: 999;
          }
          
          .nav-menu.active {
            left: 0;
          }
          
          .nav-menu li {
            margin: 1rem 0;
          }
          
          .nav-menu li a {
            font-size: 1.2rem;
            display: block;
            padding: 0.5rem 1rem;
          }

          .dropdown-content {
            display: none;
            padding-left: 1rem;
          }
        
          .dropdown.open .dropdown-content {
            display: block;
          }

          .mobile-apply {
            display: block;
          }
        
          /* Hide the header-right version */
          .header-right {
            display: none!important;
          }

  }
  

.header-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.btn.btn-primary {
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    background: linear-gradient(to right, var(--primary-blue), var(--primary-green));
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    text-transform: uppercase;
    white-space: nowrap;
}

.btn.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}


.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.3rem 0.9rem;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
  }
  
  .mobile-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  }
  

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, rgba(26, 95, 180, 0.9), rgba(46, 194, 126, 0.85)), url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1740&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    text-align: center;
    opacity: 0.95;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-btns .btn {
    min-width: 180px;
    text-align: center;
}

/* Quote Section */
.quote-section {
    background-color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

.quote-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(26, 95, 180, 0.05), rgba(46, 194, 126, 0.05));
    position: relative;
}

.quote-icon {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
}

.quote-text {
    font-size: 1.6rem;
    font-style: italic;
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--dark-blue);
    line-height: 1.5;
}

.quote-author {
    font-size: 1.1rem;
    color: var(--primary-blue);
    font-weight: 600;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-top: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.section-header h2:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-green));
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

/* Engagement Grid */
.engagement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.engagement-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.engagement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 1.8rem;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

/* Newsletter Section */
.newsletter {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--white);
    text-align: center;
}

.newsletter h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.newsletter p {
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
    text-align: center;
}

.subscribe-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
}

.subscribe-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 50px 0 0 50px;
    font-size: 1rem;
    outline: none;
}

.subscribe-form button {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
    border: none;
    padding: 0 30px;
    border-radius: 0 50px 50px 0;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.subscribe-form button:hover {
    background: linear-gradient(135deg, var(--secondary-green), var(--primary-green));
}

/* Footer */
footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-green);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: #a0aec0;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.2rem;
}

.contact-info i {
    color: var(--primary-green);
    margin-right: 15px;
    font-size: 1.2rem;
    margin-top: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background-color: var(--primary-green);
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #a0aec0;
}

/* Content Sections */
.content-section {
    padding: 6rem 0;
    background-color: var(--white);
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.two-column img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.team-card {
    background: var(--light-bg);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.team-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background-size: cover;
    background-position: center;
    border: 5px solid var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.partner-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

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

.partner-card img {
    max-width: 100%;
    max-height: 80px;
    filter: grayscale(100%);
    transition: var(--transition);
}

.partner-card:hover img {
    filter: grayscale(0);
}

/* Form Styles */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-blue);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 95, 180, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group-inline .phone-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.phone-wrapper input[type="text"],
.phone-wrapper input[type="tel"] {
    flex: 1;
    padding: 0.6rem 0.8rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.phone-wrapper input#countryCode {
    max-width: 90px;
    text-align: center;
}



/* Upcoming Events */
.events {
  background-color: var(--white);
  padding: 5rem 0;
}

/* Allow an overlay badge on card images */
.card-img { 
  position: relative; 
}

/* Pill-style date/location badge */
.event-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 999px;
  backdrop-filter: saturate(120%) blur(2px);
}

/* Meta list under the title */
.event-meta {
  list-style: none;
  margin: 0 0 1rem 0;
  padding: 0;
  color: var(--text-light);
}

.event-meta li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0.25rem 0;
}

.event-meta i {
  color: var(--primary-green);
}


/* Keep Upcoming Events as cards, not full-width */
.events .engagement-grid {
  display: grid; /* already set, but safe */
  grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
  justify-content: center;      /* center cards when there are 1–2 */
  gap: 2rem;                    /* consistent spacing */
}

/* Optional: keep the card from stretching if custom CSS overrides appear elsewhere */
.events .engagement-card {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

/* Slightly shorter header image for event cards (looks tidier) */
.events .engagement-card .card-img {
  height: 180px; /* was 200px; adjust as you like */
}


/* Left-align the events grid and keep card sizing tidy */
.events .engagement-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
  justify-content: start;   /* was center */
  gap: 2rem;
}

.events .engagement-card {
  max-width: 360px;
  margin: 0;                /* ensure no auto-centering */
}

/* New media block that never crops */
.events .card-media {
  position: relative;
}

.events .event-img {
  display: block;
  width: 100%;
  height: auto;             /* preserves full image, no crop */
  /* corners follow the card's radius because the card has overflow:hidden */
}

/* Keep the date/location pill on top of the image */
.events .event-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 999px;
  backdrop-filter: saturate(120%) blur(2px);
}



.footer-bottom a {
  color: #a0aec0;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: var(--transition);
}
.footer-bottom a:hover {
  color: #ffffff;
  border-bottom-color: rgba(255,255,255,0.5);
}
.footer-bottom .dot {
  margin: 0 .5rem;
  opacity: 0.5;
}

/* Footer bottom: left/right layout */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between; /* left + right */
  gap: 1rem;
  font-size: 0.9rem;
  color: #a0aec0;
}

.footer-bottom a {
  color: #a0aec0;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: var(--transition);
}
.footer-bottom a:hover {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.5);
}



/* Tabs */
.tabs { margin-top: 1rem; }
.tabs-nav {
  display: inline-flex;
  gap: .5rem;
  background: rgba(26,95,180,.06);
  padding: .4rem;
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.03) inset;
}
.tab-link {
  border: none;
  background: transparent;
  padding: .6rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-dark);
  transition: var(--transition);
}
.tab-link:hover { color: var(--primary-blue); }
.tab-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
  box-shadow: 0 6px 18px rgba(26,95,180,.15);
}

.tab-panels { margin-top: 2rem; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Keep cards tidy & left-aligned inside events */
.events .engagement-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
  justify-content: start;
  gap: 2rem;
}
.events .engagement-card { max-width: 360px; }
.events .card-media { position: relative; }
.events .event-img { width: 100%; height: auto; display: block; } /* no crop */
.events .event-badge {
  position: absolute; left: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; font-weight: 600; font-size: .9rem; color: #fff;
  background: rgba(0,0,0,.65); border-radius: 999px; backdrop-filter: saturate(120%) blur(2px);
}
.events-cta { margin-top: 2rem; text-align: center; }

/* Mobile niceties */
@media (max-width: 576px) {
  .tabs-nav { width: 100%; justify-content: center; flex-wrap: wrap; }
}


/* Stack & center on small screens */
@media (max-width: 576px) {
  .footer-bottom {
    flex-direction: column;     /* stack */
    align-items: center;        /* center horizontally */
    justify-content: center;
    text-align: center;         /* center text */
    gap: 0.6rem;
  }
  .footer-bottom .fb-left,
  .footer-bottom .fb-right {
    flex: none;
    width: 100%;
    text-align: inherit;        /* keeps centered text */
  }
}


/* Responsive Design */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .quote-text {
        font-size: 1.4rem;
    }
    
    .two-column {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .nav-menu li {
        margin: 0 0.8rem;
    }
    
    .nav-menu li a {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 1rem 1.2rem;
    }

    .mobile-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        padding: 0.5rem 0 0 1.5rem;
    }
    
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
    
    .subscribe-form {
        flex-direction: column;
        gap: 1rem;
    }
    
    .subscribe-form input,
    .subscribe-form button {
        border-radius: 50px;
        width: 100%;
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 140px 0 80px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .quote-text {
        font-size: 1.2rem;
    }
    
    .form-container {
        padding: 2rem;
    }
}