/* header section style begins */
.site-header {
    background-color: #0b1d3a;
    color: #ffffff;
    padding: 0.1rem 0.2rem; /* Reduced vertical padding */
    border-bottom: 1px solid #1e293b;
}

.header-container {
    display: flex;
    align-items: flex-start; 
    justify-content: space-between;
    width: 100%;
    margin: 0 auto;    
    padding: 8px 20px 8px 15px; /* Top, Right, Bottom, Left */
    box-sizing: border-box;
}

.nav-right-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    margin-top: 0px; /* Removed top margin to shift the menu items up, originally20px*/
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-group {
    display: flex;
    align-items: flex-start; /* Aligns the logo and brand text to the top, was: center */
    max-height: 100px;
    gap: 15px;
}

.brand-logo {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    background: #ffffff;
    padding: 4px;
}

.logo-link {
    display: inline-block;
    text-decoration: none;
    border: none;
    margin-top: 6px; /* Adjust this value (e.g., 4px to 8px) to push the logo down slightly */
}

.logo-link img {
    border: none;
    outline: none;
}

.brand-text h1 {
    margin: 4px 0 0 4px; /* Adjusted top margin to reduce space above the text */
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.1; /* Tightens line spacing to keep it compact at the top */
}

.brand-text p {
    margin: 0;
    font-size: 0.85rem;
    color: #94a3b8;
}

@keyframes colorCycle {
    0% { color: #ffffff; text-shadow: 0 0 10px rgba(255, 255, 255, 0.3); }
    33% { color: #38bdf8; text-shadow: 0 0 12px rgba(56, 189, 248, 0.5); }
    66% { color: #818cf8; text-shadow: 0 0 12px rgba(129, 140, 248, 0.5); }
    100% { color: #ffffff; text-shadow: 0 0 10px rgba(255, 255, 255, 0.3); }
}

.glow-text {
    animation: colorCycle 4s infinite ease-in-out;
}

.header-cta-group {
    margin-left: auto; 
    margin-right: 0px; 
    order: 2;
    display: flex;
    justify-content: flex-end;
    width: 100%;
}   

.nav-links {
    display: flex;
    gap: 1.5rem;
    order: 1;
    align-items: center;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #38bdf8;
}

.partner-badge-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  background-color: transparent;
  color: #ffffff;
  padding: 0;
  margin-top: 4px;
  font-family: sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  text-align: left;
}

.partner-badge-banner .separator {
  color: #0078d4;
}

.brand-subtitle span, 
.brand-text span,
.header-subtitles span,
.separator {
    margin-left: 4px;
    margin-right: 4px;
}

/* header image */
.logo-container {
  background-color: #0b192c; /* match your header */
  padding: 4px;
  border-radius: 8px;
}

.header-graphic {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 auto;
    margin: 0 20px;
}

.header-graphic img {
    max-height: 85px; /* Adjust height to match the vertical span of your header */
    width: auto;
    object-fit: contain;
}
/* header section style ends */

/* main body section style begins */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    color: #222;
    line-height: 1.6;
}

.main-content, main, .container {
    flex: 1;
    max-width: 92%;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

section p {
    margin-bottom: 1.5rem;
}

.cta-button.primary {
    padding: 4px 14px;  
    font-size: 0.9rem;  
    width: auto;
    max-width: none;
    justify-content: center;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #0284c7;
    color: #ffffff;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.1s;
}

.cta-button:hover {
    background-color: #0369a1;
    transform: translateY(-1px);
}

.cta-button.secondary {
    background-color: #1e293b;
    border: 1px solid #334155;
}

.cta-button.secondary:hover {
    background-color: #334155;
}

header {
    background: #0b1f3a;
    color: white;
    padding: 60px 10%;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.brand-logo {
    height: 72px;
    width: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mct-logo {
    position: absolute;
    width: 85px;
    height: auto;
}

.header-text h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.header-text p {
    font-size: 22px;
}

.header-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    margin-top: 30px;
    padding: 14px 28px;
    background: #0078d4;
    color: white;
    text-decoration: none;
    border-radius: 6px;
}

section {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 10px 0;
}

h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 15px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.card {
    padding: 30px;
    border-radius: 10px;
    background: #f5f7fa;
    box-shadow: 0 5px 15px rgba(0,0,0,.08);
}

.card h3 {
    color: #0078d4;
    margin-bottom: 15px;
}

.partner {
    background: #eef6ff;
    text-align: center;
}

.stats-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.stats {
    display: flex;
    text-align: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat h2 {
    margin: 0;
    height: 70px;
    display: flex;
    align-items: center;
    font-size: 48px;
    color: #0067c5;
    font-weight: 700;
}

.stat h3 {
    position: relative;
    display: inline-block;
    font-size: 3rem;
    color: #0078d4;
    margin-top: 15px;
    margin-bottom: 5px;
}

.stat p {
    margin-top: 10px;
    font-size: 18px;
    color: #333;
}

.course-catalog h3 {
    color: #0078d4;
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid #eef6ff;
    padding-bottom: 5px;
}

.course-catalog h3:first-of-type {
    margin-top: 0;
}

.course-list {
    list-style-type: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 12px 25px;
    margin-bottom: 20px;
}

.course-list li {
    background: #f9fbfe;
    padding: 12px 16px;
    border-radius: 6px;
    border-left: 4px solid #0078d4;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #0078d4;
    color: white;
    padding: 15px;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: opacity 0.3s ease, visibility 0.3s ease, background 0.3s, transform 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #005a9e;
    transform: translateY(-3px);
}

.back-to-top-icon {
    width: 24px;
    height: 24px;
    fill: white;
}

html {
    scroll-behavior: smooth;
}

.form-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    width: 100%;
    max-width: 600px;
    margin: 40px auto;
}

.form-container h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #0b1d3a;
    font-size: 1.75rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #334155;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background-color: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.submit-btn {
    background-color: #0284c7;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s;
    margin-top: 0.5rem;
}

.submit-btn:hover {
    background-color: #0369a1;
}

.cookie-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(11, 29, 58, 0.7);
    backdrop-filter: blur(4px);
    z-index: 99998;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cookie-banner {
    background-color: #ffffff;
    color: #0b1d3a;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    max-width: 550px;
    width: 90%;
    z-index: 99999;
    border: 1px solid #cbd5e1;
    text-align: center;
}

.cookie-content h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #0b1d3a;
    font-size: 1.5rem;
}

.cookie-content p {
    margin: 0 0 1.5rem 0;
    font-size: 1rem;
    color: #475569;
    line-height: 1.5;
}

.cookie-content a {
    color: #0284c7;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    justify-content: center;
}

.cookie-btn {
    background-color: #0284c7;
    color: #ffffff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
}

.cookie-btn:hover {
    background-color: #0369a1;
}

body.cookie-modal-open {
    overflow: hidden;
}

.course-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.course-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
}

.course-card h3 {
    margin-top: 0;
    color: #0f172a;
    font-size: 1.25rem;
}

.course-card p {
    color: #475569;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.course-card .cta-button {
    display: inline-block;
    margin-top: 0.5rem;
}

.cookie-status-container {
    margin-top: 15px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.status-badge {
    padding: 3px 8px;
    border-radius: 4px;
    background-color: #334155;
    color: #e2e8f0;
}

.status-badge.accepted {
    background-color: #065f46;
    color: #d1fae5;
}

.status-badge.declined {
    background-color: #991b1b;
    color: #fee2e2;
}

.text-btn {
    background: none;
    border: none;
    color: #38bdf8;
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.85rem;
}

.main-text {
    color: #ffffff;
}

.hero-section {
    padding: 60px 20px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, #0078d4 0%, #00bcf2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #333333;
    max-width: 780px;
    margin: 0 auto;
}
/* main body section style ends */

/* media section style begins */
@media (max-width: 768px) {
  .stats-container {
    flex-direction: column; 
  }
  
  .stats-container > div {
    width: 100%;
  }

  .hero-title {
      font-size: 2rem;
  }
  
  .hero-description {
      font-size: 1rem;
  }

  .header-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      padding: 20px 15px;
      gap: 16px;
  }

  .brand-group {
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: center;
      width: 100%;
      gap: 15px;
      order: 1; 
      text-align: center;
  }

  .logo-link {
      order: 1;
      display: flex;
      align-items: center;
  }

  .brand-text {
      order: 2;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
  }

  .brand-text h1 {
      text-align: center;
      width: 100%;
  }

  .partner-badge-banner {
      order: 2; 
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 4px 2px; /* Adjusted gap for better spacing on smaller screens, 4px 8px before*/
      font-size: 0.8rem;
      width: 100%;
      flex-direction: row;
      align-items: center;
      text-align: center;
  }

  .partner-badge-banner .separator {
      display: inline;
  }

  .nav-right-group {
      align-items: center;
      width: 100%;
      order: 3;
      margin-top: 24px;
  }

  .nav-links {
      order: 1; 
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 8px 16px;
      width: 100%;
  }

  .nav-links .separator {
      display: none; 
  }

  .header-cta-group {
      order: 2; 
      display: flex;
      justify-content: center;
      width: 100%;
      margin-top: 5px;
  }

  .cta-button.primary {
      width: 100%;
      max-width: 280px;
      justify-content: center;
      padding: 8px 16px;
  }
}

@media (max-width: 395px) {
  .header-container {
      padding-top: 25px;
  }

  .brand-group {
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 10px;
      margin-top: 50px;
  }

  .brand-text {
      align-items: center;
      text-align: center;
  }

  .nav-right-group {
      margin-top: 36px;
  }

  .nav-links {
      row-gap: 12px;
  }
}

@media (max-width: 395px) {
  .header-container {
      padding-top: 25px;
      gap: 24px;
  }

  .brand-group {
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 10px;
  }

  .brand-text {
      align-items: center;
      text-align: center;
  }

  .nav-right-group {
      margin-top: 15px;
  }

  .nav-links {
    padding-top: 40px;
    row-gap: 0px;
  }
}
/* media section style ends */

/* footer section style begins */
footer, #site-footer-container {
    flex-shrink: 0;
}

footer, .site-footer-bottom {
    background-color: #0b1d3a;
    color: #ffffff;
    text-align: center;
    padding: 0.5rem;
    margin-top: auto;
}
/* footer section style ends */

/* media section style begins */
@media (min-width: 768px) and (max-width: 850px) {
  .site-header {
    padding-bottom: 2rem;
  }
  
  .header-container {
    padding-bottom: 0rem;
    align-items: flex-start;
  }

  .brand-group {
    align-items: flex-start;
  }

  .brand-text {
    margin-top: 0px; /* Removes any extra gap above the text. was -10px; */
  }
}

/* Align top of logo and Amepsoft text for small screens */
@media (min-width: 395px) and (max-width: 485px) {

  .brand-text {
    transform: translateY(20px); /* Moves the Amepsoft text group down by 20px */
  }
}

/* Adjust spacing for medium screens */
@media (min-width: 765px) and (max-width: 920px) {
   .site-header {
      padding-bottom: 45px; /* Increase bottom padding to make the header taller */
   }
}

@media (max-width: 335px) {
  html, body {
    width: 100%;
    overflow-x: hidden;
  }

  .main-content, main, .container {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .header-container {
    width: 100% !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
  }

  .hero-section {
    width: 100% !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
  }
}

@media (min-width: 1301px) {
  .partner-badge-banner {
    transform: translateY(15px);
  }

  .header-cta-group {
    margin-top: 10px; 
  }
}
/* media section style ends */