 /* CSS Variables */
:root {
    --navy: #143D60;
    --orange: #EB5B00;
    --green: #A0C878;
    --purple: #7c3aed;
    --white: #ffffff;
    --bg: #f8fafc;
    --border: #e2e8f0;
    --text-slate: #64748b;
    --bg-soft: #fcfdfe;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    height: 100%;
    
}

body {
    background: #f4f7fb;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
     height: 100%;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 8%;
    background: var(--white);
    border-bottom: 1px solid #f1f5f9;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

.logo span {
    color: var(--orange);
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--navy);
    font-weight: 600;
    font-size: 1.1rem;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--text-slate);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--navy);
    transition: all 0.3s ease;
    border-radius: 2px;
    position: relative;
    z-index: 2;
}
.hamburger::after {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 28px;
    font-weight: 900;
    color: var(--navy);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -5px);
}
.hamburger.active::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

@media (max-width: 768px) {
    .hamburger {
      position: relative;
      display: flex !important;
      z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
        z-index: 999;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links.mobile-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        opacity: 0.9;
        transition: all 0.3s ease;
    }

    .nav-links a:hover {
        color: var(--orange);
        transform: translateX(5px);
    }
}

/* --- HERO --- */
.hero {
    padding: 60px 6% 40px;
    text-align: center;
    background: radial-gradient(circle at top, #f1f2f3 0%, var(--white) 70%);
}

.hero h2 {
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 12px;
    font-weight: 800;
}

.hero p {
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto;
    color: #64748b;
}

.authorized-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 30px;
}

.section-intro h2 {
    font-size: 2.2rem;
    color: var(--navy);
    margin-bottom: 10px;
    font-weight: 800;
}

.section-intro p {
    font-size: 1.1rem;
    color: #64748b;
    text-align: center;
}

.custom-wrapper {
    max-width: 1200px;
    margin: 10px auto 60px;
    padding: 0 25px;
}

@media (max-width: 768px) {
  .custom-wrapper {
    padding: 0 15px;
  }

  .custom-card {
    grid-template-columns: 1fr;
    border-radius: 14px;
  }

  .custom-brand {
    padding: 30px 25px;
  }

  .custom-brand h3 {
    font-size: 1.4rem;
  }

  .custom-features {
    grid-template-columns: 1fr;
  }

  .feature-box {
    padding: 25px 25px;
    border-right: none;
  }
}

.custom-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #eef2f6;
    box-shadow: 0 20px 50px rgba(20, 61, 96, 0.08);
    justify-self: center;
}

.custom-brand {
    background: var(--navy);
    color: white;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.custom-brand::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50px;
    bottom: 50px;
    width: 5px;
    background: var(--orange);
    border-radius: 0 4px 4px 0;
}

.custom-brand h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 700;
}

.custom-brand p {
    font-size: 1rem;
    opacity: 0.85;
    line-height: 1.6;
    justify-content: center;
}

.custom-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--white);
}

/* TABS CONTAINER */
.tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 30px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.tab-btn {
    padding: 10px 24px;
    border: 1px solid #e2e8f0;
    background: var(--white);
    color: #64748b;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

/* HOVER STATE */
.tab-btn:hover {
    color: var(--navy);
    background: #f8fafc;
    border-color: var(--navy);
}

/* ACTIVE STATE */
.tab-btn.active {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
    box-shadow: 0 4px 12px rgba(20, 61, 96, 0.15);
    position: relative;
}

.tab-btn.active::after {
    content: '▼';
    position: absolute;
    right: 12px;
    font-size: 10px;
    font-weight: bold;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: rotate(180deg) scale(1.1);
    opacity: 1;
}

/* TAB CONTENT - HIDE/SHOW */
.tab-content {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 768px) {
    .tab-content.active {
        max-height: none !important;
    }
}

.tab-content.active {
    max-height: 3000px;
    opacity: 1;
    visibility: visible !important;
    transform: translateY(0);
}

.feature-box {
    padding: 40px;
    border-bottom: 1px solid #f1f5f9;
    border-right: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.feature-box:hover {
    background: #fdfdfd;
}

.feature-box h5 {
    color: var(--navy);
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.feature-box h5 i {
    width: 10px;
    height: 10px;
    background: var(--green);
    border-radius: 50%;
    display: block;
}

.feature-box p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
}

.contact-strip {
    grid-column: 1 / -1;
    background: #fffcf9;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #fff2e5;
}

.contact-strip span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
}

.contact-strip span b {
    color: var(--orange);
}

.contact-btn {
    background: var(--navy);
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: 0.3s;
    }

.contact-btn:hover {
    transform: translateY(-2px);
    background-color:#216aaa;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}
.main {
    display: grid;
    grid-template-columns: 280px repeat(3, 1fr);
    max-width: 1400px;
    margin: auto;
    padding: 40px 20px;
    gap: 24px;
    flex: 1;
}

@media (max-width: 768px) {
  .main {
    display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 12px 8px;
 }
   .hero {
    padding: 30px 15px;
  }

  .hero h2 {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .authorized-section {
    margin: 20px auto;
    padding: 0 8px;
  }
  .section-intro h2 {
    font-size: 1.6rem;
  }

  .section-intro p {
    font-size: 0.95rem;
  }
  
  .section-intro {
    margin-bottom: 10px;
  }
    .sidebar {
        display: none;
    }

    .courses {
        grid-template-columns: 1fr;
        gap: 20px;
    }
  .tabs {
    overflow-x: auto;
    gap: 6px;
    margin: 8px 0 4px 0;
    padding: 0;
  }

  .tab-btn {
    padding: 6px 10px;
    font-size: 0.8rem;
    border-radius: 16px;
    min-height: 34px;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .custom-wrapper {
    margin: 20px auto;
    padding: 0 15px;
  }

  .custom-card {
    grid-template-columns: 1fr;
  }

  .custom-brand {
    text-align: center;
    padding: 30px 20px;
  }

  .custom-brand::after {
    display: none;
  }

  .custom-features {
    grid-template-columns: 1fr;
  }

  .contact-strip {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }


  nav {
    flex-direction: row;
    padding: 15px 5%;
  }

  .hamburger {
    display: flex;
    position: relative;
    z-index: 1100;
  }
}
.nav-links {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 768px) {

  .contact-strip {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .contact-btn {
    width: 100%;
  }
}

/* CONTAINER */
.container {
    width: 90%;
    margin: 40px auto;
}

/* TITLE */
h2 {
    text-align: center;
    color: #001f54;
    font-size: 32px;
    margin-bottom: 30px;
}


/* RESPONSIVE GRID */
@media (max-width: 1200px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.sidebar {
    grid-column: 1;
    background: var(--white);
    padding: 25px;
    border-radius: 16px;
    height: fit-content;
    border: 1px solid var(--border);
    position: sticky;
    top: 100px;
    margin: 0;
}

.sidebar h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--navy);
    border-left: 4px solid var(--orange);
    padding-left: 12px;
}

.sidebar button {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.3s;
}

.sidebar button:hover {
    background: #f1f5f9;
    color: var(--navy);
}

.sidebar button.active {
    background: var(--navy);
    color: var(--white);
}

/* COURSES GRID - 3 PER ROW */
.courses {
    grid-column: 2 / -1 ;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    min-width: 0;
}

/* RESPONSIVE COURSES */
@media (max-width: 1200px) {
    .courses {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

  .main {
    display: block;
    width: 100%;
    padding: 15px;
  }

  .courses {
    grid-column: auto;
    width: 100%;
    align-items: stretch;
  }

  .card {
    min-height: auto;
  }

  html, body {
    height: auto;
    overflow-x: hidden;
  }
}


.card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    transition: 0.4s;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(20, 61, 96, 0.1);
    border-color: var(--green);
}

/* IMAGE */
.card-img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    height: auto;
    max-height: 160px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow: hidden;
}


.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.card:hover .card img {
    transform: scale(1.05);
}

/* CONTENT */
.card-content {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--green);
    color: var(--navy);
    padding: 2px 6px;
    font-size: 9px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    z-index: 2;
}
.tag {
    display: inline-block;
    color: var(--purple);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.card h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    line-height: 1.3;
    color: var(--navy);
}

@media (max-width: 768px) {
    .card h4 {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 8px;
    }
    
    .card-content {
        padding: 12px;
    }
    
    .meta-info {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }
    
    .course-btn {
        font-size: 13px;
        padding: 8px;
    }
    
    .tag {
        font-size: 10px;
    }
}

.meta-info {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 15px;
}

.meta-info span {
    display: block;
    margin-bottom: 4px;
}

/* CTA BUTTON */
.course-btn {
    width: 100%;
    text-align: center;
    padding: 10px;
    background: rgb(40, 56, 125);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    border-radius: 8px;
    margin-top: auto;
    transition: 0.3s;
}

.course-btn:hover {
    background: rgb(82, 93, 151);
}


/* ===== FOOTER ===== */
footer {
     width: 100vw;             
    margin-left: calc(-50vw + 50%);
    margin-top: auto;
    background: #082945;
    color: #94a3b8;
    padding: 4rem clamp(1rem, 5vw, 6rem) 2rem;
    z-index: 10;
    box-sizing: border-box;
     padding-left: 8%;
    padding-right: 8%;
    margin-bottom: 0%;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.footer-col h5 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 3px;
    background: var(--green);
}

.footer-col p {
    font-size: 1rem;
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
    font-size: 1rem;
}

.footer-col a {
    color: inherit;
    text-decoration: none;
    transition: 0.2s;
}

.footer-col a:hover {
    color: var(--orange);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.social-links a:hover {
    background: var(--green);
    color: var(--navy);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
}
/* ===== MOBILE FOOTER FIX ===== */
@media (max-width: 768px) {

    footer {
        padding: 3rem 20px 1.5rem;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-col {
        text-align: center;
    }

    .footer-col h5::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-col p {
        font-size: 0.95rem;
    }

    .footer-col ul li {
        font-size: 0.95rem;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        font-size: 0.75rem;
        padding-top: 20px;
    }
}

