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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: #17233d;
    background-color: #f5f8ff;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
    box-shadow: 0 10px 35px rgba(14, 35, 85, 0.08);
    padding: 0 1.5rem;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 75px;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo i {
    color: #0059ff;
    font-size: 1.8rem;
}

.logo h3 {
    font-size: clamp(1.05rem, 2vw, 1.45rem);
    font-weight: 700;
    color: #0f1f47;
}

nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 1rem;
    align-items: center;
}

nav ul li a {
    padding: 0.75rem 1rem;
    border-radius: 999px;
    color: #1b2643;
    font-weight: 600;
    transition: background-color 0.25s ease, color 0.25s ease;
}

nav ul li a:hover,
nav ul li a:focus-visible {
    background-color: rgba(0, 89, 255, 0.08);
    color: #0059ff;
}

#header_button {
    background-color: #0059ff;
    border-radius: 999px;
    padding: 0.9rem 1.5rem;
}

#header_button a {
    color: #ffffff;
    font-weight: 700;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    height: 3px;
    border-radius: 999px;
    background-color: #17233d;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

#section1 {
    background: linear-gradient(135deg, #0059ff 0%, #1c47d1 100%);
    padding: 5rem 1.5rem 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
}

.about-container {
    max-width: 840px;
    margin: 0 auto;
}

.h1_about {
    font-size: clamp(2.6rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.25rem;
}

.p_about {
    font-size: clamp(1rem, 1.3vw, 1.25rem);
    color: rgba(255, 255, 255, 0.92);
    max-width: 720px;
    margin: 0 auto;
}

#section2 {
    padding: 3rem 1rem 1rem;
}

#section2 #Parent {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto 1rem;
}

#section2 .container {
    background-color: #ffffff;
    border: 1px solid rgba(15, 23, 45, 0.08);
    border-radius: 26px;
    padding: 1.75rem 1.5rem;
    min-height: 220px;
    box-shadow: 0 24px 60px rgba(15, 23, 45, 0.05);
}

.h3-section2 {
    font-size: 1.35rem;
    color: #0f1f47;
    margin-bottom: 0.85rem;
}

.p-section {
    color: #425069;
    font-weight: 400;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(234, 236, 239, 0.9);
    padding: 0.85rem;
    border-radius: 999px;
    max-width: 1200px;
    margin: 2rem auto 0;
}

.tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.25rem;
    border-radius: 999px;
    color: #2d3b59;
    font-weight: 700;
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
    cursor: pointer;
    min-width: 140px;
}

.tab:hover {
    background-color: rgba(0, 89, 255, 0.1);
}

.tab.active {
    background-color: #ffffff;
    color: #0059ff;
    box-shadow: 0 24px 60px rgba(15, 23, 45, 0.08);
}

.content {
    display: none;
}

.content.active {
    display: block;
}

#section2 .content {
    max-width: 1000px;
    margin: 2rem auto 0;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 28px;
    border: 1px solid rgba(15, 23, 45, 0.08);
    box-shadow: 0 30px 70px rgba(15, 23, 45, 0.06);
}

.sec1 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.h1-nav1 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #0f1f47;
}

.p1,
.p-nav1,
.p2 {
    color: #455169;
}

.p1 {
    font-size: 1rem;
    margin-bottom: 0.85rem;
}

.p-nav1 {
    font-size: 1rem;
    margin: 0 auto;
    max-width: 720px;
}

.sec2 {
    margin-top: 1.85rem;
    text-align: left;
}

/* Center topic cards in the grid */
#section2 .container {
    text-align: center;
}

/* Center content inside each tab */
.content {
    text-align: center;
}

.content .sec1 {
    text-align: center;
}

.content .sec2 {
    margin-top: 1.85rem;
    text-align: center;
}

/* Center the action button inside tabs */
.content .but-nav1 {
    display: inline-flex;
    margin: 2rem auto 0;
}

.h2-nav1 {
    font-size: 1.2rem;
    color: #0f1f47;
    margin-bottom: 1rem;
}

.p2 {
    margin-top: 0.9rem;
    line-height: 1.85;
}

.but-nav1 {
    margin-top: 2rem;
    padding: 0.95rem 1.6rem;
    border-radius: 999px;
    background-color: #0059ff;
    color: #ffffff;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.but-nav1:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(0, 89, 255, 0.2);
}

#section3 {
    padding: 4rem 1rem;
    background-color: #eff5ff;
}

.div-sec3 {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 1rem;
}

.fa-user-group {
    font-size: 3rem;
    color: #0059ff;
    margin-bottom: 1.5rem;
}

.h1-sec3 {
    font-size: clamp(2.3rem, 4vw, 3.2rem);
    margin-bottom: 1rem;
    color: #0f1f47;
}

.p-sec3 {
    color: #425069;
    max-width: 720px;
    margin: 0.8rem auto;
    font-size: 1rem;
    line-height: 1.85;
}

.but-sec3 {
    margin-top: 2rem;
    padding: 0.95rem 1.8rem;
    border-radius: 999px;
    background-color: #0059ff;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
}

#section4 {
    padding: 4rem 1rem;
    background: linear-gradient(135deg, #0059ff 0%, #1b58d8 100%);
    color: #ffffff;
}

.div-sec4 {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 1rem;
}

.h1-sec4 {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    margin-bottom: 1.2rem;
    font-weight: 800;
}

.p-sec4 {
    font-size: 1.05rem;
    line-height: 1.9;
    max-width: 720px;
    margin: 0 auto;
}

.but-sec4 {
    margin-top: 2rem;
    padding: 0.95rem 1.9rem;
    border-radius: 999px;
    background-color: #ffffff;
    color: #0f1f47;
    font-weight: 700;
}

footer {
    background-color: #0d1435;
    color: rgba(226, 234, 255, 0.88);
    padding: 3rem 1rem 2rem;
}

footer #parent {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

footer .container {
    min-width: 0;
}

footer h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

footer p,
footer li {
    font-size: 0.95rem;
    color: rgba(226, 234, 255, 0.78);
}

footer ul {
    list-style: none;
    padding: 0;
}

footer li {
    margin-top: 0.8rem;
}

footer a {
    color: rgba(226, 234, 255, 0.88);
    transition: color 0.2s ease;
}

footer a:hover {
    color: #ffffff;
}

footer .container i {
    margin-right: 0.7rem;
    color: #7ea1ff;
}

footer hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0 0 1.75rem;
}

#socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

#socials a {
    color: rgba(226, 234, 255, 0.88);
    transition: transform 0.2s ease, color 0.2s ease;
}

#socials a:hover {
    transform: translateY(-3px);
    color: #ffffff;
}

#socials .fa-brands {
    font-size: 1.45rem;
}

@media (max-width: 980px) {
    .header {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    nav {
        order: 3;
        width: 100%;
    }

    nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #ffffff;
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 20px;
        box-shadow: 0 24px 60px rgba(15, 23, 45, 0.08);
        display: none;
    }

    nav.active ul {
        display: flex;
    }

    nav ul li a {
        padding: 0.9rem 1rem;
        border-radius: 16px;
    }

    .hamburger {
        display: flex;
    }

    #header_button {
        order: 2;
        margin-top: 0.75rem;
    }
}

@media (max-width: 760px) {
    #section1 {
        padding: 4rem 1rem 3rem;
    }

    .tab {
        flex: 1 1 45%;
        min-width: 120px;
    }

    #section2 #Parent {
        grid-template-columns: 1fr;
    }

    #section2 .content {
        padding: 1.5rem;
    }

    .div-sec3,
    .div-sec4 {
        padding: 1.5rem 0;
    }
}
