/* --- Add these styles to your existing style.css file --- */

/* --- Add these styles to your existing style.css file --- */

/* Contact Hero Specific Style */
.contact-hero {
  height: 900px;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("assets/images/family.png") center center / cover no-repeat;
}

/* Contact Content Section */
.contact-content-section {
  background-color: var(--aziccul-white);
}

.contact-details {
  padding-right: 30px; /* Space between details and form */
}

.contact-details h2 {
  color: var(--aziccul-green);
  margin-bottom: 25px;
}

.contact-details p {
  margin-bottom: 20px;
  line-height: 1.6;
  color: var(--aziccul-text-color);
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
}

.info-item .icon-gold {
  font-size: 1.8em;
  color: var(--aziccul-gold);
  margin-right: 20px;
  flex-shrink: 0; /* Prevent icon from shrinking */
  margin-top: 5px; /* Align icon better with text */
}

.info-item h4 {
  font-size: 1.1em;
  color: var(--aziccul-dark-gray);
  margin-top: 0;
  margin-bottom: 5px;
}

.info-item p {
  margin-bottom: 0;
  font-size: 0.95em;
  line-height: 1.5;
}

.info-item a {
  color: var(--aziccul-text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.info-item a:hover {
  color: var(--aziccul-green);
}

.link-text {
  color: var(--aziccul-gold) !important;
  font-weight: 600;
}

.link-text:hover {
  color: var(--aziccul-green) !important;
  text-decoration: underline;
}

.social-connect {
  margin-top: 40px;
}

.social-connect h4 {
  font-size: 1.1em;
  color: var(--aziccul-dark-gray);
  margin-bottom: 15px;
}

.social-connect .social-icons a {
  font-size: 1.5em;
  margin-right: 15px;
  color: var(--aziccul-gold);
  transition: color 0.3s ease;
}

.social-connect .social-icons a:hover {
  color: var(--aziccul-green);
}

/* Contact Form */
.contact-form-container {
  background-color: var(--aziccul-light-gray);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.contact-form-container h2 {
  color: var(--aziccul-green);
  margin-bottom: 30px;
  text-align: center;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--aziccul-dark-gray);
  font-size: 0.95em;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--aziccul-border-color);
  border-radius: 5px;
  font-size: 1em;
  color: var(--aziccul-text-color);
  background-color: var(--aziccul-white);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  border-color: var(--aziccul-gold);
  box-shadow: 0 0 0 3px rgba(var(--aziccul-gold-rgb), 0.2);
  outline: none;
}

.contact-form textarea {
  resize: vertical; /* Allow vertical resizing */
  min-height: 120px;
}

.contact-form .btn-full-width {
  width: 100%;
  text-align: center;
  margin-top: 10px;
}

.form-note {
  font-size: 0.85em;
  color: var(--aziccul-text-color);
  text-align: center;
  margin-top: 20px;
}

/* Map Section */
.map-section {
  background-color: var(--aziccul-white);
}

.map-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: var(--aziccul-light-gray);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-top: 40px;
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-note {
  margin-top: 20px;
  font-size: 0.95em;
  color: var(--aziccul-text-color);
}

/* Responsive Adjustments for Contact page */
@media (max-width: 992px) {
  .contact-details {
    padding-right: 0; /* Remove padding on smaller screens */
    margin-bottom: 40px; /* Add space below details before form */
  }
}

@media (max-width: 768px) {
  .content-two-col {
    grid-template-columns: 1fr; /* Stack columns on mobile */
  }
}

@media (max-width: 480px) {
  .contact-details h2,
  .contact-form-container h2 {
    font-size: 1.8em;
  }
  .info-item .icon-gold {
    font-size: 1.5em;
    margin-right: 15px;
  }
  .contact-form input,
  .contact-form textarea {
    padding: 10px;
    font-size: 0.9em;
  }
}

/* --- Add these styles to your existing style.css file --- */

/* News & Updates Hero Specific Style */
.news-hero {
  height: 900px;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("../assets/images/news.png") center center / cover no-repeat;
}

/* News Articles Section */
.news-articles-section {
  background-color: var(--aziccul-light-gray);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(320px, 1fr)
  ); /* Adjusted for better card width */
  gap: 30px;
  margin-top: 40px;
}

.news-card {
  background-color: var(--aziccul-white);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden; /* Ensures image corners are rounded */
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.news-thumbnail {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover; /* Ensures image covers area without distortion */
}

.news-content {
  padding: 20px;
  flex-grow: 1; /* Allows content to expand and push button down */
  display: flex;
  flex-direction: column;
}

.news-date {
  font-size: 0.85em;
  color: var(--aziccul-text-color);
  margin-bottom: 10px;
  display: block; /* Ensures it takes full width */
}

.news-date .far.fa-calendar-alt {
  margin-right: 5px;
  color: var(--aziccul-gold); /* Gold icon for date */
}

.news-card h3 {
  color: var(--aziccul-green);
  font-size: 1.4em;
  margin-top: 0;
  margin-bottom: 15px;
  line-height: 1.3;
}

.news-card p {
  font-size: 0.95em;
  color: var(--aziccul-text-color);
  margin-bottom: 20px;
  flex-grow: 1; /* Allows paragraph to take available space */
}

.news-card .btn-primary.btn-small {
  align-self: flex-start; /* Align button to the left */
  margin-top: auto; /* Pushes button to the bottom if content varies */
  padding: 8px 15px;
  font-size: 0.9em;
}

/* Pagination Styles */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 60px;
  gap: 10px; /* Space between page links */
}

.page-link {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--aziccul-gold);
  border-radius: 5px;
  color: var(--aziccul-gold);
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-link:hover:not(.active):not(.disabled) {
  background-color: var(--aziccul-gold);
  color: var(--aziccul-white);
}

.page-link.active {
  background-color: var(--aziccul-gold);
  color: var(--aziccul-white);
  border-color: var(--aziccul-gold);
  cursor: default;
}

.page-link.disabled {
  color: var(--aziccul-dark-gray);
  border-color: var(--aziccul-dark-gray);
  cursor: not-allowed;
  opacity: 0.6;
}

/* Responsive Adjustments for new sections */
@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
  }
  .news-card {
    margin-bottom: 20px;
  }
  .news-thumbnail {
    height: 180px; /* Slightly smaller height on mobile */
  }
}

@media (max-width: 480px) {
  .news-card h3 {
    font-size: 1.2em;
  }
  .news-card p {
    font-size: 0.9em;
  }
  .news-card .btn-primary.btn-small {
    width: 100%;
    text-align: center;
  }
  .pagination .page-link {
    padding: 8px 12px;
    font-size: 0.9em;
  }
}

/* --- Add these styles to your existing style.css file --- */

/* Branches Hero Specific Style */
.branches-hero {
  height: 900px;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("../assets/images/branch.png") center center / cover no-repeat;
}

/* Branch Locations Section */
.branch-locations-section {
  background-color: var(--aziccul-light-gray);
}

.branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.branch-card {
  background-color: var(--aziccul-white);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.branch-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.branch-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.branch-card h3 {
  color: var(--aziccul-green);
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.5em;
}

.branch-card p {
  font-size: 0.95em;
  margin-bottom: 10px;
  color: var(--aziccul-text-color);
  display: flex;
  align-items: flex-start; /* Align icon and text at the top */
}

.branch-card p .fas {
  color: var(--aziccul-gold); /* Gold icons for branch details */
  margin-right: 10px;
  font-size: 1.1em;
  margin-top: 2px; /* Small adjustment for icon alignment */
}

.branch-card h4 {
  color: var(--aziccul-dark-gray);
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1.1em;
}

.branch-card ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
  flex-grow: 1; /* Pushes button to bottom */
}

.branch-card ul li {
  font-size: 0.9em;
  color: var(--aziccul-text-color);
  margin-bottom: 5px;
}

.branch-card .btn-small {
  padding: 8px 15px;
  font-size: 0.9em;
  align-self: flex-start; /* Align button to left within card */
  margin-top: auto; /* Push button to the bottom of the card */
}

/* Responsive Adjustments for new sections */
@media (max-width: 768px) {
  .branches-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
  }
  .branch-card {
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .branch-card h3 {
    font-size: 1.3em;
  }
  .branch-card .btn-small {
    width: 100%; /* Full width button on very small screens */
  }
}

/* --- Add these styles to your existing style.css file --- */

/* Membership Hero Specific Style */
.membership-hero {
  height: 900px;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("assets/images/family.png") center center / cover no-repeat;
}

/* Why Join Section */
.why-join-section {
  background-color: var(--aziccul-white);
}

.section-intro-text {
  max-width: 900px;
  margin: 0 auto 50px auto;
  font-size: 1.1em;
  line-height: 1.8;
  color: var(--aziccul-text-color);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.benefit-card {
  background-color: var(--aziccul-light-gray);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.benefit-card .icon-xl {
  font-size: 4em;
  margin-bottom: 20px;
}

.benefit-card .gold-icon {
  color: var(--aziccul-gold); /* Gold icons for benefits */
}

.benefit-card h3 {
  color: var(--aziccul-green);
  margin-bottom: 10px;
}

.benefit-card p {
  font-size: 0.95em;
  color: var(--aziccul-text-color);
  margin-bottom: 0;
}

/* How to Join Section */
.how-to-join-section {
  background-color: var(--aziccul-light-gray);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.step-card {
  background-color: var(--aziccul-white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  position: relative;
  overflow: hidden; /* For the step number background */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.step-number {
  background-color: var(--aziccul-green);
  color: var(--aziccul-white);
  font-size: 2.5em;
  font-weight: bold;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -50px auto 20px auto; /* Pull it up slightly from the card */
  border: 5px solid var(--aziccul-light-gray); /* Match section background */
  z-index: 2; /* Bring number above card content if needed */
  position: relative;
}

.step-card h3 {
  color: var(--aziccul-dark-gray);
  margin-bottom: 10px;
}

.step-card p {
  color: var(--aziccul-text-color);
  font-size: 0.95em;
  margin-bottom: 20px;
}

.step-icon {
  font-size: 3em;
  color: var(--aziccul-gold); /* Gold icon */
}

.final-step-text {
  margin-top: 40px;
  font-size: 1.1em;
  font-weight: bold;
  color: var(--aziccul-green);
}

/* Eligibility Section */
.eligibility-section {
  background-color: var(--aziccul-white);
}

.eligibility-section .text-content h2 {
  color: var(--aziccul-green);
}

.eligibility-section ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.eligibility-section ul li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: var(--aziccul-text-color);
}

.eligibility-section ul li::before {
  content: "\f00c"; /* Checkmark icon */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: var(--aziccul-gold); /* Gold checkmark */
  position: absolute;
  left: 0;
  top: 2px;
}

/* Responsive Adjustments for new sections */
@media (max-width: 768px) {
  .membership-hero {
    padding: 70px 20px;
  }
  .membership-hero h1 {
    font-size: 2.5em;
  }
  .membership-hero p {
    font-size: 1.1em;
  }

  .benefits-grid,
  .steps-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
  }

  .benefit-card,
  .step-card {
    margin-bottom: 20px;
  }

  .step-number {
    margin-top: -30px; /* Adjust vertical position for mobile */
  }

  .section-intro-text {
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  .membership-hero h1 {
    font-size: 2em;
  }
  .membership-hero p {
    font-size: 1em;
  }
  .benefit-card .icon-xl {
    font-size: 3.5em;
  }
  .step-number {
    font-size: 2em;
    width: 60px;
    height: 60px;
  }
}

/* --- Add these styles to your existing style.css file --- */

/* Page Hero for Sub-Pages */
.page-hero {
  height: 900px;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("assets/images/family.png") center center / cover no-repeat;
  color: var(--aziccul-white);
  padding: 100px 20px;
  text-align: center;
  position: relative;
  z-index: 1; /* Ensures text is above background pseudo-elements */
  margin-bottom: 40px; /* Space below hero */
}

.page-hero h1 {
  font-size: 3.5em;
  margin-bottom: 10px;
  color: var(--aziccul-white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-hero p {
  font-size: 1.3em;
  max-width: 800px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* General Section Spacing (for consistency) */
.section-spacing {
  padding: 80px 0;
}

/* Two-Column Content Layout (Image + Text) */
.content-two-col {
  display: flex;
  align-items: center;
  gap: 50px; /* Space between columns */
}

.content-two-col .text-content {
  flex: 1;
}

.content-two-col .image-content {
  flex: 1;
  text-align: center;
}

.content-two-col .image-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.content-two-col .text-content h2 {
  color: var(--aziccul-green);
  margin-bottom: 20px;
}

/* Specific styling for Our Story section */
.our-story-section {
  background-color: var(--aziccul-white);
}

/* Mission, Vision, Values Section */
.mvv-section {
  background-color: var(
    --aziccul-light-gray
  ); /* Light background for contrast */
}

.mvv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: center;
  margin-top: 40px;
}

.mvv-item {
  background-color: var(--aziccul-white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mvv-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.mvv-item .icon-large {
  font-size: 3.5em;
  margin-bottom: 20px;
}

.mvv-item .green-icon {
  color: var(--aziccul-green);
}

.mvv-item h3 {
  color: var(--aziccul-dark-gray);
  margin-bottom: 15px;
}

.mvv-item ul {
  list-style: none; /* Remove default list style */
  padding-left: 0;
  text-align: left;
}

.mvv-item ul li {
  margin-bottom: 8px;
  padding-left: 25px; /* Indent list items */
  position: relative;
}

.mvv-item ul li::before {
  content: "\f00c"; /* Font Awesome checkmark icon */
  font-family: "Font Awesome 5 Free"; /* Ensure correct font-family for icon */
  font-weight: 900; /* For solid icon */
  color: var(--aziccul-green);
  position: absolute;
  left: 0;
  top: 0;
}

/* Leadership Section */
.leadership-section {
  text-align: center;
  background-color: var(--aziccul-white);
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.leader-card {
  background-color: var(--aziccul-light-gray);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.leader-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.leader-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--aziccul-gold); /* Gold border for photos */
  margin-bottom: 15px;
}

.leader-card h4 {
  color: var(--aziccul-green);
  margin-bottom: 5px;
}

.leader-card p {
  color: var(--aziccul-text-color);
  font-size: 0.9em;
  margin-bottom: 0;
}

/* Community Impact Section */
.community-impact-section {
  background-color: var(--aziccul-green); /* Green background */
  color: var(--aziccul-white); /* White text */
}

.community-impact-section .text-content h2,
.community-impact-section .text-content p {
  color: var(--aziccul-white); /* Ensure text is white */
}

/* Special button for green background */
.btn-secondary-white {
  background-color: transparent;
  color: var(--aziccul-white);
  border: 2px solid var(--aziccul-white);
}

.btn-secondary-white:hover {
  background-color: var(--aziccul-white);
  color: var(--aziccul-green);
}

/* Responsive Adjustments for new sections */
@media (max-width: 768px) {
  .page-hero {
    padding: 70px 20px;
  }
  .page-hero h1 {
    font-size: 2.5em;
  }
  .page-hero p {
    font-size: 1.1em;
  }

  .section-spacing {
    padding: 50px 0;
  }

  .content-two-col {
    flex-direction: column; /* Stack columns on smaller screens */
    gap: 30px;
  }

  .content-two-col.reverse-on-mobile {
    flex-direction: column-reverse; /* Reverse order for specific sections */
  }

  .mvv-grid {
    grid-template-columns: 1fr; /* Single column for MVV items */
  }

  .leadership-grid {
    grid-template-columns: 1fr; /* Single column for leader cards */
  }
}

@media (max-width: 480px) {
  .page-hero h1 {
    font-size: 2em;
  }
  .page-hero p {
    font-size: 1em;
  }
  .mvv-item ul li {
    padding-left: 20px; /* Reduce indent for smaller screens */
  }
}

/* --- CSS Variables for Aziccul Colors --- */
:root {
  --aziccul-green: #0a6b4a; /* A deep, rich green from your logo/images */
  --aziccul-gold: #daa520; /* A subtle, professional gold */
  --aziccul-white: #ffffff;
  --aziccul-light-gray: #f4f4f4;
  --aziccul-dark-gray: #333;
  --aziccul-text-color: #555;
  --aziccul-light-gold: #f0e68c; /* A lighter shade of gold for hover/active states if needed */
}

/* --- Base Styles --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif; /* You can choose a specific font */
  line-height: 1.6;
  color: var(--aziccul-text-color);
  background-color: var(--aziccul-white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3 {
  color: var(--aziccul-dark-gray);
  margin-bottom: 20px;
}

h1 {
  font-size: 2.8em;
}
h2 {
  font-size: 2em;
}
h3 {
  font-size: 1.5em;
}

p {
  margin-bottom: 15px;
}

a {
  color: var(--aziccul-green);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--aziccul-gold);
}

ul {
  list-style: none;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-align: center;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--aziccul-green);
  color: var(--aziccul-white);
}

.btn-primary:hover {
  background-color: #074e36; /* Darker green */
  color: var(--aziccul-white);
}

.btn-secondary {
  background-color: transparent;
  color: var(--aziccul-green);
  border: 2px solid var(--aziccul-green);
}

.btn-secondary:hover {
  background-color: var(--aziccul-green);
  color: var(--aziccul-white);
}

.btn-large {
  padding: 15px 30px;
  font-size: 1.1em;
}

.text-center {
  text-align: center;
}

/* --- New Top Announcement Bar (Marquee) --- */
.top-announcement-bar {
  background-color: var(--aziccul-white); /* Green background */
  color: var(--aziccul-gold); /* Gold text */
  padding: 1px 0;
  font-size: 0.95em;
  white-space: nowrap; /* Ensure text stays on one line for marquee */
  overflow: hidden; /* Hide overflow outside of marquee */
  position: relative;
  z-index: 1001; /* Ensure it's above the header */
}

.top-announcement-bar .container {
  padding: 0 10px; /* Adjust padding for marquee to touch edges slightly */
}

.announcement-text {
  font-weight: bold;
}

/* --- Header --- */
.main-header {
  background-color: var(--aziccul-green); /* Gold background as requested */
  padding: 7px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* Subtle border */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Add padding if needed for smaller screens for spacing between logo, nav, and lang switcher */
}

.logo img {
  height: 70px; /* Adjust as needed */
}

.main-nav .nav-list {
  display: flex;
  gap: 25px;
}

.main-nav .nav-list li a {
  color: var(--aziccul-white); /* Green menu text as requested */
  font-weight: 600; /* Make it a bit bolder for visibility */
  font-size: 14pt;
  padding: 5px 0;
  position: relative;
}

.main-nav .nav-list li a.active,
.main-nav .nav-list li a:hover {
  color: var(--aziccul-dark-gray); /* Darker on hover for contrast */
}

.main-nav .nav-list li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--aziccul-green); /* Green underline */
  bottom: -5px;
  left: 0;
  transition: width 0.3s ease;
}

.main-nav .nav-list li a.active::after,
.main-nav .nav-list li a:hover::after {
  width: 100%;
  background-color: var(
    --aziccul-dark-gray
  ); /* Darker underline on hover/active */
}

/* Dropdown Menu */
.main-nav .dropdown {
  position: relative;
}

.main-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--aziccul-white); /* Keep white for readability */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  z-index: 900;
  padding: 10px 0;
  border-radius: 5px;
}

.main-nav .dropdown-menu li {
  padding: 0;
}

.main-nav .dropdown-menu li a {
  padding: 10px 20px;
  display: block;
  white-space: nowrap;
  color: var(--aziccul-dark-gray); /* Dark text for dropdown items */
  font-weight: normal; /* Reset font weight for dropdown */
}

.main-nav .dropdown-menu li a:hover {
  background-color: var(--aziccul-light-gray);
  color: var(--aziccul-green); /* Green on hover for dropdown */
}

.main-nav .dropdown:hover .dropdown-menu {
  display: block;
}

/* Language Switcher */
.language-switcher {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 20px; /* Space from navigation */
}

.language-switcher .lang-btn {
  color: var(--aziccul-white); /* Green text for lang buttons */
  font-weight: bold;
  padding: 5px 8px;
  border: 1px solid var(--aziccul-green);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.language-switcher .lang-btn:hover {
  background-color: var(--aziccul-gold);
  color: var(--aziccul-white);
}

.language-switcher .lang-btn.active-lang {
  background-color: var(--aziccul-green);
  color: var(--aziccul-white);
  border-color: var(--aziccul-green);
}

.language-switcher .lang-divider {
  color: var(--aziccul-green); /* Green divider */
  font-weight: bold;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none; /* Hidden on desktop */
  font-size: 1.8em;
  background: none;
  border: none;
  color: var(--aziccul-white); /* Green icon */
  cursor: pointer;
}

/* --- Hero Carousel --- */
.hero-carousel {
  position: relative;
  width: 100%;
  top: -60px;
  height: 600px; /* Adjust height for desktop */
  overflow: hidden;
  margin-bottom: 40px;
  /* top: -50px; -- REMOVED: This caused overlap with the new marquee/header design */
}

.carousel-inner {
  display: flex;
  width: 500%; /* 5 items * 100% */
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.carousel-item {
  width: 20%; /* 100% / 5 items */
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--aziccul-white);
  text-align: center;
  position: relative; /* For overlay */
}

.carousel-item::before {
  /* Dark overlay for text readability */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.carousel-caption {
  position: relative; /* Bring text above overlay */
  z-index: 10;
  max-width: 800px;
  padding: 20px;
}

.carousel-caption h1 {
  color: var(--aziccul-white);
  font-size: 3.5em;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
  color: var(--aziccul-white);
  font-size: 1.2em;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.carousel-control-prev,
.carousel-control-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: var(--aziccul-white);
  border: none;
  padding: 15px 10px;
  cursor: pointer;
  font-size: 2em;
  z-index: 20;
  transition: background-color 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.carousel-control-prev {
  left: 0;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}

.carousel-control-next {
  right: 0;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 10px;
}

.carousel-indicator-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease, width 0.3s ease;
}

.carousel-indicator-dot.active {
  background-color: var(--aziccul-green);
  width: 25px; /* Make active dot slightly longer */
  border-radius: 6px;
}

/* --- Section Spacing --- */
section {
  padding: 60px 0;
}

/* --- Welcome Section --- */
.welcome-section {
  text-align: center;
  background-color: var(--aziccul-light-gray);
  padding: 80px 20px;
  border-radius: 8px;
  /* margin-top: -80px; -- REMOVED: This caused overlap with the new header design */
  position: relative;
  z-index: 50;
}
.welcome-section h2 {
  color: var(--aziccul-green);
}
.welcome-section p {
  max-width: 800px;
  margin: 0 auto 30px auto;
  font-size: 1.1em;
}

/* --- Key Services Section --- */
.key-services {
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background-color: var(--aziccul-white);
  border: 1px solid var(--aziccul-light-gray);
  border-radius: 8px;
  padding: 30px 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--aziccul-text-color);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.service-card img {
  width: 100px; /* Adjust size for service icons */
  height: 100px;
  object-fit: cover;
  border-radius: 50%; /* Make images circular */
  margin-bottom: 20px;
  border: 3px solid var(--aziccul-green);
  padding: 5px; /* Creates a border effect */
}

.service-card h3 {
  color: var(--aziccul-green);
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.3em;
}

.service-card p {
  font-size: 0.95em;
  margin-bottom: 0;
}

/* --- Why Choose Us Section --- */
.why-choose-us {
  background-color: var(--aziccul-green); /* Use green as background */
  color: var(--aziccul-white);
  text-align: center;
  padding: 80px 0;
}

.why-choose-us h2 {
  color: var(--aziccul-white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-item {
  background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white */
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;
}

.feature-item .icon-green {
  font-size: 3em;
  color: var(--aziccul-gold); /* Gold icons on green background */
  margin-bottom: 20px;
}

.feature-item h3 {
  color: var(--aziccul-white);
  margin-top: 0;
  margin-bottom: 10px;
}

.feature-item p {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.9);
}

/* --- Testimonials Section --- */
.testimonials-section {
  background-color: var(--aziccul-light-gray);
  padding: 80px 0;
  text-align: center;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.testimonial-item {
  background-color: var(--aziccul-white);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  text-align: left;
  position: relative;
}

.testimonial-item::before {
  /* Quote icon */
  content: "\201C";
  font-family: "Times New Roman", serif;
  font-size: 4em;
  color: var(--aziccul-green);
  position: absolute;
  top: 10px;
  left: 15px;
  opacity: 0.2;
  line-height: 1;
}

.testimonial-item p {
  font-style: italic;
  font-size: 1.05em;
  margin-bottom: 15px;
  padding-top: 20px; /* Space for pseudo-element quote */
}

.testimonial-item cite {
  display: block;
  text-align: right;
  font-weight: bold;
  color: var(--aziccul-dark-gray);
}

/* --- CTA Section --- */
.cta-section {
  background-color: var(--aziccul-gold); /* Use gold as background */
  color: var(--aziccul-dark-gray);
  text-align: center;
  padding: 80px 0;
}

.cta-section h2 {
  color: var(--aziccul-dark-gray);
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* --- News & Updates Section --- */
.news-updates {
  text-align: center;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.news-card {
  background-color: var(--aziccul-white);
  border: 1px solid var(--aziccul-light-gray);
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden; /* Ensures image corners are rounded */
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--aziccul-light-gray);
}

.news-card h3 {
  margin: 15px 15px 10px;
  font-size: 1.2em;
  line-height: 1.4;
}

.news-card h3 a {
  color: var(--aziccul-dark-gray);
  display: block; /* Make the whole H3 area clickable */
}

.news-card h3 a:hover {
  color: var(--aziccul-green);
}

.news-card p {
  font-size: 0.9em;
  color: var(--aziccul-text-color);
  padding: 0 15px;
  margin-bottom: 15px;
}

.news-card time {
  display: block;
  font-size: 0.85em;
  color: #888;
  padding: 0 15px 15px;
}

/* --- Footer --- */
.main-footer {
  background-color: var(--aziccul-dark-gray);
  color: var(--aziccul-white);
  padding: 60px 0 20px;
  font-size: 0.95em;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-col h3 {
  color: var(--aziccul-green);
  margin-bottom: 20px;
}

.footer-col p,
.footer-col ul li {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.8);
}

.footer-col a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--aziccul-gold);
}

.footer-col .fas,
.footer-col .fab {
  margin-right: 10px;
  color: var(--aziccul-green);
}

.footer-logo {
  height: 80px; /* Adjust size */
  margin-top: 20px;
  filter: invert(100%) brightness(150%); /* Make logo appear lighter on dark background if it's green */
}

.social-icons a {
  font-size: 1.5em;
  margin-right: 15px;
  color: var(--aziccul-green);
}

.social-icons a:hover {
  color: var(--aziccul-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
}
.footer-bottom a:hover {
  color: var(--aziccul-gold);
}

.motto {
  font-style: italic;
  font-weight: bold;
  color: var(--aziccul-gold);
  margin-top: 20px;
}

/* --- Responsive Design (Media Queries) --- */
@media (max-width: 992px) {
  .main-nav .nav-list {
    gap: 15px;
  }
  .carousel-caption h1 {
    font-size: 2.8em;
  }
  .hero-carousel {
    height: 500px;
  }
  /* Adjust header content to stack if space is tight */
  .header-content {
    flex-wrap: wrap;
    justify-content: center;
  }
  .logo,
  .main-nav,
  .language-switcher {
    margin-bottom: 10px; /* Add some spacing when wrapping */
  }
  .language-switcher {
    margin-left: 0; /* Reset margin for stacking */
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block; /* Show hamburger menu */
  }
  .main-nav .nav-list {
    display: none; /* Hide desktop nav by default */
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 80px; /* Below header */
    left: 0;
    background-color: var(--aziccul-gold); /* Match header background */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    align-items: flex-start;
  }
  .main-nav .nav-list.active {
    display: flex; /* Show when active */
  }
  .main-nav .nav-list li {
    width: 100%;
    text-align: left;
    padding: 0 20px;
  }
  .main-nav .nav-list li a {
    padding: 10px 0;
    width: 100%;
    color: var(--aziccul-green); /* Ensure green text in mobile menu */
  }
  .main-nav .dropdown .dropdown-menu {
    position: static; /* Stack dropdown items below parent */
    width: 100%;
    box-shadow: none;
    background-color: var(
      --aziccul-light-gold
    ); /* Lighter gold for sub-menu background */
    padding: 10px 0 0 30px; /* Indent sub-menu items */
    border-radius: 0;
  }
  .main-nav .dropdown-menu li a {
    padding: 8px 10px;
    color: var(--aziccul-dark-gray); /* Darker text for sub-menu items */
  }
  .main-nav .dropdown-menu li a:hover {
    background-color: rgba(0, 0, 0, 0.1); /* Subtle hover for sub-menu */
    color: var(--aziccul-green);
  }

  .carousel-caption h1 {
    font-size: 2em;
  }
  .carousel-caption p {
    font-size: 1em;
  }
  .btn-large {
    padding: 12px 20px;
    font-size: 1em;
  }
  .welcome-section {
    padding: 50px 20px;
    /* margin-top: -50px; -- REMOVED */
  }
  .services-grid,
  .features-grid,
  .testimonial-grid,
  .news-grid,
  .footer-grid {
    grid-template-columns: 1fr; /* Single column layout */
  }
  .service-card,
  .feature-item,
  .testimonial-item,
  .news-card {
    margin-bottom: 20px;
  }
  .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Adjust header content for mobile */
  .header-content {
    flex-direction: row; /* Keep logo and toggle on one line */
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* Prevent wrapping for core header elements */
  }
  .language-switcher {
    order: 2; /* Move language switcher below logo/nav for smaller screens if it wraps */
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }
  .logo {
    margin-bottom: 0;
  }
  .main-nav {
    flex-grow: 1; /* Allow navigation to take remaining space */
    display: flex;
    justify-content: flex-end; /* Push toggle to right */
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 50px;
  }
  .hero-carousel {
    height: 400px;
  }
  .carousel-caption h1 {
    font-size: 1.8em;
  }
  .carousel-caption p {
    font-size: 0.9em;
  }
  .carousel-control-prev,
  .carousel-control-next {
    font-size: 1.5em;
    padding: 10px 7px;
  }
  h1 {
    font-size: 2em;
  }
  h2 {
    font-size: 1.8em;
  }
  h3 {
    font-size: 1.3em;
  }
  .container {
    padding: 0 15px;
  }
  .top-announcement-bar {
    font-size: 0.85em; /* Smaller font for marquee on very small screens */
  }
  .language-switcher {
    font-size: 0.9em;
  }
  .language-switcher .lang-btn {
    padding: 3px 6px;
  }
}
