/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

/*
********************************************************************************************************
*                     NAV SECTION
*
********************************************************************************************************
*/

/* ================== NAVBAR BASE ================== */
.navbar-custom {
  background: #ffffff;
  border-bottom: 1px solid #eeeeee;
  padding: 0.5rem 0;
}

.navbar-custom .container-fluid {
  padding-left: 3rem;
  padding-right: 3rem;
}

/* ================== LOGO STYLES ================== */
.navbar-brand {
  padding: 0;
  margin: 0;
}

.navbar-logo-left {
  max-height: 90px;
  max-width: 100%;
  width: auto;
  height: auto;
}

.navbar-logo-right {
  max-height: 90px;
  max-width: 100%;
  width: auto;
  height: auto;
  margin-left: 1rem;
}

/* ================== NAVIGATION LINKS ================== */
.navbar-custom .nav-link {
  color: #000000;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  padding: 0.5rem 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.navbar-custom .nav-link:hover {
  color: #ff0000;
  text-decoration: underline;
}

/* ================== DROPDOWN MENU STYLES ================== */

/* Dropdown toggle (Classes link) */
.navbar-custom .dropdown-toggle::after {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

/* Rotate arrow when dropdown is open */
.navbar-custom .dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

/* Dropdown menu container */
.navbar-custom .dropdown-menu {
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  min-width: 250px;
}

/* Dropdown items */
.navbar-custom .dropdown-item {
  color: #000000;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.navbar-custom .dropdown-item:hover {
  background-color: #f8f9fa;
  color: #ff0000;
  padding-left: 2rem;
}

/* ================== RESPONSIVE BREAKPOINTS ================== */

/* Below 1300px - make right logo smaller */
@media (max-width: 1299.98px) {
  .navbar-logo-right {
    max-height: 70px;
  }
}

/* Below 1200px - reduce side padding */
@media (max-width: 1199.98px) {
  .navbar-custom .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .navbar-logo-right {
    max-height: 50px;
  }
}

/* Below 1100px - hide right logo to prevent horizontal scroll */
@media (max-width: 1100.98px) {
  .navbar-logo-right {
    display: none;
  }
}

/* Mobile - smaller left logo and nav spacing */
@media (max-width: 767.98px) {
  .navbar-logo-left {
    max-height: 60px;
  }
  
  .navbar-custom .nav-link {
    padding: 0.5rem 0;
  }
  
  /* Mobile dropdown - full width */
  .navbar-custom .dropdown-menu {
    border: none;
    box-shadow: none;
    background: transparent;
    padding-left: 1rem;
  }
  
  .navbar-custom .dropdown-item {
    padding: 0.5rem 0;
  }
}

/*
********************************************************************************************************
*                     HERO SECTION
*
********************************************************************************************************
*/

/* Hero Section Basics */
.hero-section {
  padding: 60px 60px;
  padding-bottom: 0px;
  background-color: #f8f9fa;
}

/* Hero Text Styling */
.hero-section h1 {
  color: #1a1a1a;
  margin-bottom: 24px;
  font-weight: 700;
  line-height: 1.2;
  font-size: 2.75rem;
  letter-spacing: -0.5px;
}

.text-highlight {
  color: #DC3545;
}

.hero-section .lead {
  color: #495057;
  font-size: 1.15rem;
  margin-bottom: 0;
  line-height: 1.7;
  font-weight: 400;
}

/* Call to Action Buttons Container */
.cta-buttons {
  margin-top: 30px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Base styling for all CTA buttons */
.cta-buttons .btn {
  flex: 1 1 0;
  min-width: 250px;
  padding: 14px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
  white-space: normal;
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
}

/* Primary CTA Button - Solid Blue */
.cta-buttons .btn-primary {
  background-color: #0D6EFD;
  border-color: #0D6EFD;
  color: #ffffff;
}

.cta-buttons .btn-primary:hover {
  background-color: #0B5ED7;
  border-color: #0B5ED7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* Secondary CTA Button - Outlined Blue */
.cta-buttons .btn-outline-secondary {
  background-color: transparent;
  border-color: #0D6EFD;
  color: #0D6EFD;
  border-width: 2px;
}

.cta-buttons .btn-outline-secondary:hover {
  background-color: #0D6EFD;
  border-color: #0D6EFD;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* Hero Image Container */
.hero-image-container {
  position: relative;
  width: 100%;
}

/* Hero Image Styling */
.hero-image {
  width: 100%;
  height: auto;
  border-radius: 20px;
  clip-path: polygon(
    20% 0%,
    100% 0%,
    100% 100%,
    0% 100%,
    0% 30%
  );
}

/* AHA Logo below hero image */
.aha-logo-mobile {
  display: none;
  text-align: center;
  margin-top: 8px;
}

.aha-logo-mobile img {
  max-width: 350px;
  width: 100%;
  height: auto;
}

/* Show AHA logo at 1100px and below */
@media (max-width: 1100px) {
  .aha-logo-mobile {
    display: block;
  }
}

/* Responsive - Stack at 991px and below */
@media (max-width: 991px) {
  /* Stack the buttons */
  .cta-buttons .btn {
    flex: 1 1 100%;
    min-width: 0;
  }
  
  /* Stack text and image */
  .hero-section .col-md-7,
  .hero-section .col-md-5 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  /* Make image larger and centered when stacked */
  .hero-image-container {
    max-width: 700px;
    margin: 40px auto 0;
  }
}

/* Responsive - Smaller tablets/mobile */
@media (max-width: 768px) {
  .hero-section {
    padding: 40px 0;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section .lead {
    font-size: 1.1rem;
  }
  
  .hero-image-container {
    max-width: 600px;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .cta-buttons .btn {
    width: 100%;
    flex: none;
  }
}

/* Responsive - Mobile screens */
@media (max-width: 576px) {
  .hero-image-container {
    max-width: 100%;
  }
  
  .aha-logo-mobile img {
    max-width: 280px;
  }
}

/*
********************************************************************************************************
*                    UNDER HERO SECTION
*
********************************************************************************************************
*/

/* ================== UNDER HERO SECTION ================== */
.under-hero {
  background-color: #ffffff;
  padding: 60px 0;
  border-bottom: 1px solid #e9ecef;
  margin-top: 40px; /* Space between hero and under-hero */
}

.under-hero .container-under-hero {
  max-width: 1200px;
}

/* Text Content */
.under-hero-text {
  display: flex;
  align-items: center;
  height: 100%;
  padding-left: 40px;
  padding-right: 40px;
}

.under-hero-text h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
  margin: 0;
}

.under-hero-text .text-highlight {
  color: #DC3545;
}

/* Card Image Container */
.card-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.certification-card {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certification-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ================== RESPONSIVE ================== */

/* Tablets and below */
@media (max-width: 991px) {
  .under-hero {
    padding: 50px 0;
    margin-top: 30px;
  }
  
  .under-hero-text {
    margin-bottom: 30px;
    text-align: center;
    justify-content: center; /* Center the text container */
  }
  
  .under-hero-text h2 {
    font-size: 1.5rem;
  }
  
  /* Ensure columns are full width and centered */
  .under-hero .col-lg-7,
  .under-hero .col-lg-5 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .card-image-container {
    justify-content: center;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .under-hero {
    padding: 40px 0;
    margin-top: 20px;
  }
  
  .under-hero-text h2 {
    font-size: 1.35rem;
  }
  
  .certification-card {
    max-width: 280px;
  }
}

/*
********************************************************************************************************
*                     FAQ SECTION
*
********************************************************************************************************
*/

/* ================== FAQ SECTION ================== */
.faq-section {
  background-color: #f8f9fa;
  padding: 80px 0;
}

.faq-section .container {
  max-width: 900px;
}

/* Section Title */
.faq-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 50px;
}

.faq-title .text-highlight {
  color: #DC3545;
}

/* Accordion Container */
.faq-accordion {
  background: transparent;
}

/* Individual Accordion Item */
.faq-accordion .accordion-item {
  background-color: #ffffff;
  border: none;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

.faq-accordion .accordion-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Accordion Button (Question) */
.faq-accordion .accordion-button {
  background-color: #ffffff;
  color: #1a1a1a;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  padding: 24px 28px;
  border: none;
  box-shadow: none;
  transition: all 0.3s ease;
}

.faq-accordion .accordion-button:not(.collapsed) {
  background-color: #ffffff;
  color: #DC3545;
  box-shadow: none;
}

.faq-accordion .accordion-button:focus {
  box-shadow: none;
  border: none;
}

.faq-accordion .accordion-button:hover {
  background-color: #f8f9fa;
}

/* Remove default Bootstrap icon */
.faq-accordion .accordion-button::after {
  display: none;
}

/* Custom Plus/Minus Icon */
.faq-accordion .accordion-button::before {
  content: '+';
  font-size: 1.8rem;
  font-weight: 400;
  color: #DC3545;
  margin-right: 16px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-accordion .accordion-button:not(.collapsed)::before {
  content: '−';
  transform: rotate(180deg);
}

/* Accordion Body (Answer) */
.faq-accordion .accordion-body {
  padding: 0 28px 24px 28px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #495057;
  background-color: #ffffff;
  text-align: center;
}

/* Keep paragraphs left-aligned */
.faq-accordion .accordion-body p {
  text-align: left;
}

/* Smooth collapse animation */
.faq-accordion .accordion-collapse {
  transition: height 0.35s ease;
}

/* Button Styles for FAQ Links */
.faq-accordion .btn {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  padding: 12px 28px;
  font-size: 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

/* Outline Blue Button (Schedule links) */
.faq-accordion .btn-outline-primary {
  background-color: transparent;
  border: 2px solid #0D6EFD;
  color: #0D6EFD;
}

.faq-accordion .btn-outline-primary:hover {
  background-color: #0D6EFD;
  border-color: #0D6EFD;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* Solid Blue Button (Group Classes link) */
.faq-accordion .btn-primary {
  background-color: #0D6EFD;
  border: 2px solid #0D6EFD;
  color: #ffffff;
}

.faq-accordion .btn-primary:hover {
  background-color: #0B5ED7;
  border-color: #0B5ED7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* ================== RESPONSIVE ================== */

/* Tablets */
@media (max-width: 768px) {
  .faq-section {
    padding: 60px 0;
  }
  
  .faq-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }
  
  .faq-accordion .accordion-button {
    font-size: 1.05rem;
    padding: 20px 20px;
  }
  
  .faq-accordion .accordion-button::before {
    font-size: 1.5rem;
    margin-right: 12px;
  }
  
  .faq-accordion .accordion-body {
    padding: 0 20px 20px 20px;
    font-size: 0.95rem;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .faq-section {
    padding: 50px 0;
  }
  
  .faq-title {
    font-size: 1.75rem;
    margin-bottom: 30px;
  }
  
  .faq-accordion .accordion-button {
    font-size: 1rem;
    padding: 18px 16px;
  }
  
  .faq-accordion .accordion-body {
    padding: 0 16px 18px 16px;
  }
  
  .faq-accordion .btn {
    padding: 10px 20px;
    font-size: 0.95rem;
    width: 100%;
    text-align: center;
  }
}

/*
********************************************************************************************************
*                     MAP SECTION
*
********************************************************************************************************
*/

/* Map Wrapper */
.map-wrapper {
  position: relative;
  width: 100%;
}

/* Map Container */
.map-container {
  position: relative;
  width: 100%;
}

.map-container iframe {
  display: block;
  width: 100%;
}

/* Button Styling */
.map-wrapper .btn-sm {
  padding: 8px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 20px;
  white-space: nowrap;
}

.map-wrapper .btn-sm:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4) !important;
  transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .map-container iframe {
    height: 400px;
  }
  
  .map-wrapper .btn-sm {
    font-size: 0.813rem;
    padding: 7px 16px;
  }
}

@media (max-width: 576px) {
  .map-container iframe {
    height: 350px;
  }
}

/*
********************************************************************************************************
*                     FOOTER SECTION
*
********************************************************************************************************
*/

/* ================== FOOTER ================== */
.site-footer {
  background-color: #2c3e50;
  color: #ffffff;
  padding: 50px 0 20px;
  margin-top: 80px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

/* Footer Sections */
.footer-section {
  flex: 1;
}

.footer-logo {
  flex: 0 0 280px; /* Fixed width for logo */
}

.footer-logo img {
  display: block;
  width: 280px;
  height: auto;
}

.footer-contact {
  flex: 1;
  text-align: center;
}

.footer-links {
  flex: 0 0 200px; /* Fixed width for links */
}

/* Section Headings */
.footer-section h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
}

/* Contact Info */
.footer-contact address {
  font-style: normal;
  color: #bdc3c7;
  line-height: 1.8;
  font-size: 0.95rem;
  margin: 0;
}

/* Footer Links */
.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #ffffff;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 40px;
  text-align: center;
}

.footer-bottom p {
  color: #95a5a6;
  font-size: 0.85rem;
  margin: 0;
}

/* ================== RESPONSIVE ================== */

/* Below 992px - Stack vertically */
@media (max-width: 992px) {
  .site-footer {
    padding: 40px 0 20px;
    margin-top: 60px;
  }
  
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 35px;
  }
  
  .footer-logo,
  .footer-contact,
  .footer-links {
    flex: 1 1 auto;
  }
  
  .footer-logo img {
    margin: 0 auto;
  }
}

/* Mobile tweaks */
@media (max-width: 576px) {
  .site-footer {
    padding: 30px 0 15px;
    margin-top: 40px;
  }
  
  .footer-content {
    gap: 30px;
  }
  
  .footer-logo img {
    width: 240px; /* Slightly smaller on mobile */
  }
  
  .footer-section h4 {
    font-size: 1rem;
  }
  
  .footer-bottom p {
    font-size: 0.8rem;
  }
}
