* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}


/* Reset box-sizing to border-box */

*,
*::before,
*::after {
    box-sizing: border-box;
}


/* navbar */

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: transparent;
    color: #fff;
    transition: background-color 0.3s ease;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
}

.navbar-scrolled {
    background-color: #f5f5f5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
}

nav li {
    margin: 0 10px;
}

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

nav.fixed {
    background-color: #445881;
    color: #333;
}

nav ul li {
    margin: 0;
    padding: 0;
}

nav ul li a {
    display: block;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    text-decoration: none;
    position: relative;
}

nav ul li a:hover {
    color: #FE0000;
}

nav ul li a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #FE0000;
    visibility: hidden;
    transform: scaleX(0);
    transition: all 0.3s ease-in-out 0s;
}

nav ul li a:hover::before {
    visibility: visible;
    transform: scaleX(1);
}


/* home section */

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-image: url("./assets/images/home.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.home {
    height: 100%;
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.content {
    flex: 1;
    padding: 20px;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.content h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.content p {
    font-size: 18px;
    margin-bottom: 30px;
}


/* left-side buttons */

.button-container {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    left: 20px;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.body.home-open .button-container {
    display: flex;
}

.button {
    position: relative;
    display: block;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 10px;
    text-align: center;
    background-color: #002365;
    
    color: #fff;
    font-size: 24px;
    line-height: 60px;
    transition: all 0.3s ease;
}

.button:hover {
    transform: scale(1.1);
    background-color: #FE0000;
    cursor: pointer;
}

.button-label {
    position: absolute;
    top: 50%;
    left: 60px;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-size: medium;
}

.button:hover .button-label {
    opacity: 1;
    left: 80px;
}

@media screen and (max-width: 768px) {
    .button-container {
        display: none;
    }
}

body.categories-open .button-container {
    display: none;
}


/* categories section */
#categories {
    height: 100vh;
    display: grid;
    place-items: center;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 20px;
}



.card {
    position: relative;
    width: 300px;
    height: 400px;
    transition: transform 0.5s ease;
    transform-style: preserve-3d;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    backface-visibility: hidden;
}

.card-front {
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.card-back {
    background-color: #B01E68;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transform: rotateY(-180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.card:hover {
    transform: rotateY(180deg);
}

.card h3 {
    color: #C04986;
}

.card p {
    margin: 0;
    font-size: 1.5rem;
    color: #f5f5f5;
    text-align: center;
}

.card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.card-btn {
    margin-top: 20px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #fff;
    color: black;
    font-size: 1.2rem;
    cursor: pointer;
}

.card-btn:hover {
    background-color: #FFDCD0;
}

.card-back .card-btn {
    margin-top: auto;
}

/* ob */
.obstetrics {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f2f2f2;
}

.ob-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.ob-card {
    position: relative;
    margin: 10px;
    width: 30px;
    height: 250px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    flex-basis: calc(33.33% - 20px);
    /* margin-bottom: 30px; */
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    display: flex;
}

.ob-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 30%;
    background-color: #fff;
}

.ob-card-body h3 {
    color: #00215B;
}

.ob-card-body p {
    font-size: small;
}

.ob-card-btn {
    border: none;
    font-size: 30px;
    color: #B22468;
    background-color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 3%;
    
    /* bottom: 0;
    left: 0;
    right: 0; */
}

.ob-card-btn:hover {
    color: #00215B;
}

.ob-card-img {
    width: 100%;
    height: 70%;
    overflow: hidden;
    border-radius: 5px 5px 0 0;
}

.ob-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ob-card:hover {
    transform: translateY(-5px);
}


.ob-card h2 {
    color: #C04986;
}

.ob-card .modal-btn {
    margin-top: 20px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #fff;
    color: black;
    font-size: 1.2rem;
    cursor: pointer;
}

.ob-card .modal-btn:hover {
    background-color: #FFDCD0;
}

/* The Modal (background) */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    /* Could be more or less, depending on screen size */
    border-radius: 20px;
}

/* Tab links */

.tab {
    overflow: hidden;
    border-radius: 20px;
    background-color: #f1f1f1;
    font-size: small;
}

.tab button {
    background-color: inherit;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    font-size: 1.2rem;
    border-radius: 20px 0 0 20px;
    transition: 0.3s;
}

.tab button:hover {
    background-color: #ddd;
}

.tab button.active {
    background-color: #B12268;
    color: white;
}

.tabcontent {
    display: none;
    padding: 20px;
    background-color: white;
    border-radius: 20px 20px 20px 20px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    margin-top: 2%;
    font-size: medium;
}

.tabcontent.show {
    display: block;
}

/* Style the close button */
.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Style the header */
.modal-header {
    background-color: #FFDCD0;
    color: black;
    padding: 20px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

/* Style the body */
.modal-body {
    padding: 20px;
}

.tab .tablinks{
    font-size: x-small;
}

/* Style the footer */
.modal-footer {
    background-color: #FFDCD0;
    color: black;
    padding: 20px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

/* Responsive layout - make the modal smaller on mobile devices */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 20px;
        max-width: none;
    }

    .tab button {
        font-size: 1rem;
        padding: 10px;
        border-radius: 10px 0 0 0;
    }

    .tabcontent {
        border-radius: 0 0 20px 20px;
    }
}

/* pediatrics */
/* .pediatrics {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f2f2f2;
}

.p-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.p-card {
    position: relative;
    margin: 10px;
    width: 30px;
    height: 300px;
    background-color: #f2f2f2;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    flex-basis: calc(33.33% - 20px);
    margin-bottom: 30px;
    align-items: center;
    justify-content: center;
}

.p-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 30%;
    background-color: #fff;
}

.p-card-btn {
    border: none;
    font-size: 30px;
    color: #303777;
    background-color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.p-card-btn:hover {
    color: #B12268;
}

.p-card-img {
    width: 100%;
    height: 70%;
    overflow: hidden;
    border-radius: 5px 5px 0 0;
}

.p-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.p-card:hover {
    transform: translateY(-5px);
}


.p-card h2 {
    color: #C04986;
}

.p-card .modal-btn {
    margin-top: 20px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #fff;
    color: black;
    font-size: 1.2rem;
    cursor: pointer;
}

.p-card .modal-btn:hover {
    background-color: #FFDCD0;
}

ul {
    list-style: none;
    display: flex;
}

li {
    margin: 0 20px;
}

span i {
    color: #B12268;
} */

/* description section */
#desc {
    background-color: #fff;
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-left: 0%;
}

.desc-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.desc-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.desc-card {
    margin: 20px;
    padding: 20px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease-out;
    flex-basis: 40%;
    margin: 20px;
}

.desc-card::before {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.9);
    transition: opacity 0.5s ease;
    opacity: 0;
}

.desc-card:hover::before {
    opacity: 1;
}

.desc-card:nth-child(odd) {
    transform-origin: bottom center;
}

.desc-card:nth-child(even) {
    transform-origin: top center;
}

.desc-card.animate {
    transform: translateY(0);
}

.desc-card:hover {
    transform: translateY(-5px);
}

.desc-card img {
    max-width: 100%;
    height: auto;
}

.desc-card h3 {
    font-size: 1.5rem;
    margin-top: 20px;
    margin-bottom: 10px;
}

.desc-card p {
    font-size: 1rem;
    color: #0a0a0a;
    margin-bottom: 20px;
    text-align: justify;
}

/* rationale */
.rationale {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #445881;
}

.rationale-content {
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rationale-img {
    width: 40%;
    height: 80%;
    background-color: #445881;
    border-radius: 5px;
    overflow: hidden;
}

.rationale-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rationale-cards {
    width: 55%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.rationale-card {
    width: 80%;
    height: 450px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    overflow: hidden;
    animation: bounce 1s infinite alternate;
}

@keyframes bounce {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-10px);
    }
}

/* objectives */
.objectives {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f2f2f2;
}

.objectives-content {
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.objectives-img {
    width: 40%;
    height: 80%;
    margin-right: 20px;
    overflow: hidden;
}

.objectives-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.objectives-img img {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-20px);
    }

    100% {
        transform: translateX(0);
    }
}


.objectives-card {
    width: 60%;
    height: 200px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    padding: 10px;
    overflow: hidden;
    position: relative;
    perspective: 1000px;
}

.flipper {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.5s;
    transform-style: preserve-3d;
}

.front,
.back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.front {
    z-index: 2;
    transform: rotateY(0);
}

.back {
    z-index: 1;
    transform: rotateY(180deg);
}


.objectives-card:hover .flipper {
    transform: rotateY(180deg);
}

.flipper:hover {
    transform: rotateY(180deg);
}

.flipper:hover .front {
    visibility: hidden;
}

.flipper:hover .back {
    visibility: visible;
}