:root {
    --primary-color: #015a72;
    --primary-hover: #014256;
    --secondary-color: #c2902d;
    --secondary-hover: #a77923;
    --accent-color: #F8F6EF;
    --accent-hover: #eae6d8;
    --success: #7ebc89;
    --info: #28afb0;
    --warning: #ffc107;
    --danger: #fe6d73;
    --light: #f8f9fa;
    --dark: #343a40;
    --text-color: #212529;
    --text-light: #ffffff;
    --secondary-bg: #f5f8f9;
    --transition: all 0.3s ease;
}

html {
    font-size: 14px;
    height: 100%;
    background-color: var(--accent-color);
    box-sizing: border-box;
}

@media (min-width: 769px) {
    html {
        font-size: 16px;
    }
}

body {
    font-size: 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

.small-icon {
    font-size: 16px;
}

.mid-icon {
    font-size: 20px;
}

.big-icon {
    font-size: 28px;
}

.small-text {
    font-size: 15px;
}

.big-text {
    font-size: 16px;
}

@media only screen and (min-width: 1024px) and (max-width: 1439px) {
    body {
        font-size: 13px;
    }

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.875rem;
    }

    h3 {
        font-size: 1.625rem;
    }

    h4 {
        font-size: 1.375rem;
    }

    h5 {
        font-size: 1.125rem;
    }

    h6 {
        font-size: 0.95rem;
    }

    .small-icon {
        font-size: 13px;
    }

    .mid-icon {
        font-size: 16px;
    }

    .big-icon {
        font-size: 20px;
    }

    .small-text {
        font-size: 11px;
    }

    .big-text {
        font-size: 15px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 1023px) {
    body {
        font-size: 12px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.625rem;
    }

    h3 {
        font-size: 1.375rem;
    }

    h4 {
        font-size: 1.25rem;
    }

    h5 {
        font-size: 1rem;
    }

    h6 {
        font-size: 0.875rem;
    }

    .small-icon {
        font-size: 12px;
    }

    .mid-icon {
        font-size: 14px;
    }

    .big-icon {
        font-size: 16px;
    }

    .small-text {
        font-size: 10px;
    }

    .big-text {
        font-size: 14px;
    }
}

@media only screen and (max-width: 767px) {
    body {
        font-size: 11px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    h4 {
        font-size: 1.125rem;
    }

    h5 {
        font-size: 0.95rem;
    }

    h6 {
        font-size: 0.85rem;
    }

    .small-icon {
        font-size: 11px;
    }

    .mid-icon {
        font-size: 12px;
    }

    .big-icon {
        font-size: 14px;
    }

    .small-text {
        font-size: 9px;
    }

    .big-text {
        font-size: 13px;
    }
}

.reference {
    font-style: italic;
}

.margin-page-top {
    margin-top: 220px !important;
}

ul li, ol li {
    line-height: 2.0;
}

.hero-section {
    position: relative;
    width: 100%;
    height: 850px;
    overflow: hidden;
}

    .hero-section img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* Navbar Styles */

.nav-link {
    color: var(--primary-color);
    font-weight: 500;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link.show {
    position: relative;
    font-weight: 600;
    color: var(--primary-hover);
}

    .navbar-nav .nav-link.active::after,
    .navbar-nav .nav-link.show::after {
        content: "";
        position: absolute;
        bottom: 5px;
        right: 10px;
        left: 10px;
        height: 2px;
        background-color: var(--primary-color);
        border-radius: 2px;
    }

/* Donate Button */
.btn-donate {
    background-color: var(--primary-color); /* Dark teal */
    color: #FFF;
    padding: 8px 16px;
    transition: background-color 0.3s ease;
}

    .btn-donate:hover {
        background-color: var(--secondary-color); /* Golden hover color */
        color: #ffffff;
    }

.animated-div {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

    .animated-div.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .animated-div > div {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }

    .animated-div.visible > div {
        opacity: 1;
        transform: translateY(0);
    }

.video-item {
    margin: 2rem 0;
    width: 100%;
}

.video-title {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.section {
    padding: 2rem 1rem;
}



@media (max-width: 768px) {
    .video-title {
        font-size: 1.2rem;
    }
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column layout */
    gap: 3rem;
    margin: 2rem auto;
    max-width: 1080px;
    width: 100%;
}

/* Updated Iframe Container */
.iframe-container {
    position: relative;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

    .iframe-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
    }

@media (max-width: 1200px) {
    .video-grid {
        padding: 0 1rem;
    }

    .iframe-container {
        border-radius: 4px;
    }
}

.resources-list {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 2rem 0;
    padding: 1rem;
}

.action-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin: 1rem 0;
    transition: background-color 0.3s;
}

    .action-button:hover {
        background-color: #015167;
    }

@media (max-width: 768px) {
    .iframe-container {
        padding-bottom: 60%;
        border-radius: 8px;
    }

    .resources-list {
        flex-direction: column;
    }

    .section {
        padding: 1.5rem;
    }

    .action-button {
        width: 100%;
        text-align: center;
    }
}

.content-form {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 0.75rem;
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-top: 2rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    border-bottom: 2px solid #c2902d;
    padding-bottom: 0.25rem;
}

.role-group {
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    background-color: #f8f6ef;
    margin-bottom: 1rem;
    padding: 1rem;
}

.role-group-header {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.role-item {
    display: inline-block;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    background-color: #ffffff;
    transition: box-shadow 0.2s ease-in-out;
}

    .role-item:hover {
        box-shadow: 0 0 0.5rem rgba(1, 90, 114, 0.1);
    }

    .role-item input[type="checkbox"] {
        margin-inline-start: 0.5rem;
    }

        .role-item input[type="checkbox"]:checked + span {
            color: var(--primary-color);
            font-weight: 600;
        }

.date-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Common input styles */
.custom-date-input {
    width: 100%;
    padding: 0.5rem 2.5rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    transition: border-color 0.3s ease;
}

    /* Hide browser native icon */
    .custom-date-input::-webkit-calendar-picker-indicator {
        opacity: 0;
        position: absolute;
        right: 0;
    }

    .custom-date-input:focus {
        outline: none;
        border-color: var(--primary-color);
    }

.date-input-wrapper::after {
    content: "\f133"; /* Font Awesome calendar */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    transition: transform 0.3s ease, color 0.3s ease;
    color: var(--primary-color); /* secondary by default */
    font-size: 1rem;
}

.home-page {
    background-color: #FFF;
}


.hero-section {
    position: relative;
    height: 100vh;
    
    color: #fff;
}

.hero-overlay {
    height: 100%;
    padding: 80px 20px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* This container holds text and buttons */
.hero-content {
    flex: 1;
    display: flex;
    align-items: center;
    padding-inline: 20px;
}

.hero-text {
    max-width: 700px;
    text-align: start; /* Will flip with direction */
    padding: 20px;
}

/* Responsive alignment */
.hero-content {
    justify-content: flex-start;
}

/* Button group stays consistent across languages */
.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.hero-btn {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
}

.primary-btn {
    background-color: #015a72;
    color: white;
}

    .primary-btn:hover {
        background-color: #003c4a;
    }

.secondary-btn {
    background-color: #c2902d;
    color: white;
}

    .secondary-btn:hover {
        background-color: #a47418;
    }

/* Thumbnails row */

.hero-image-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    padding: 20px;
}

.hero-image-wrapper {
    flex: 1 1 calc(33.333% - 24px);
    aspect-ratio: 16 / 12;
    max-width: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Medium screens: show 2 images per row */
@media (max-width: 1023px) {
    .hero-image-wrapper {
        flex: 1 1 calc(50% - 24px);
    }
}

/* Small screens: 1 image per row */
@media (max-width: 767px) {
    .hero-image-wrapper {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

@media (max-width: 1023px) {
    .hero-image-row .hero-image-wrapper:nth-child(3) {
        display: none;
    }
}


/* Mobile */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-image-row {
        gap: 16px;
    }
}

/*About Us Styles*/

.about-us-picture {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.13);
    width: 500px;
    max-width: 90vw;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    margin: 3rem;
}

@media only screen and (min-width: 768px) and (max-width: 1023px) {

    .about-us-picture {
        margin: 0;
    }
}

.about-us-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-us-text {
    display: flex;
    flex-direction: column;
    padding: 3rem;
}

    .about-us-text h4 {
        font-weight: 400;
        color: var(--secondary-color);
        margin-bottom: 1rem;
    }

    .about-us-text h2 {
        font-weight: 400;
        color: var(--primary-color);
        margin-bottom: 1.25rem;
    }

    .about-us-text span {
        margin-bottom: 2.5rem;
    }

/*Our Vision Styles*/

.vision-picture {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.13);
    width: 500px;
    max-width: 90vw;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    margin: 3rem;
}

@media only screen and (min-width: 768px) and (max-width: 1023px) {

    .vision-picture {
        margin: 0;
    }
}

.vision-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vision-text {
    display: flex;
    flex-direction: column;
    background-color: #e0e0e0;
}

    .vision-text h4 {
        font-weight: 400;
        color: var(--secondary-color);
        margin-bottom: 1rem;
    }

    .vision-text h2 {
        font-weight: 400;
        color: var(--primary-color);
        margin-bottom: 1.25rem;
    }

    .vision-text span {
        margin-bottom: 2.5rem;
    }

/*Course Styles*/

.courses-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #fff;
}

.courses-section-title {
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-weight: 400;
}

    .courses-section-title span {
        color: #d29b2c;
    }

.courses-container {
    display: flex;
    justify-content: center;
    gap: 8rem;
    flex-wrap: wrap;
}

.course-card {
    background-color: #f3f3f3;
    border-radius: 12px;
    max-width: 340px;
    overflow: hidden;
    transition: transform 0.3s;
    box-shadow: 4px 4px 7px 1px rgba(0,0,0,0.5);
    -webkit-box-shadow: 4px 4px 7px 1px rgba(0,0,0,0.5);
    -moz-box-shadow: 4px 4px 7px 1px rgba(0,0,0,0.5);
}

    .course-card:hover {
        transform: translateY(-5px);
    }

.course-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-content {
    padding: 20px;
}

.course-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 400;
    font-size: 1.75rem;
}

.course-description {
    font-size: 1rem;
    color: #242424;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.course-button {
    display: block;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 400;
    transition: background-color 0.3s;
    margin: 0 20px;
    text-align: center;
    font-size: 1rem;
}

    .course-button:hover {
        background-color: var(--primary-hover);
    }

/*Stat Styles*/

.stats-section {
    color: #003f4a;
    padding: 60px 20px;
    position: relative;
}

.stat-overlay {
    display: flex;
    justify-content: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    width: 100%;
    max-width: 566px;
}

.stat-card {
    background-color: rgba(255, 255, 255, 0.77); /* more transparent */
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    backdrop-filter: blur(8px); /* subtle glass effect */
}

    .stat-card:hover {
        transform: translateY(-6px);
    }

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Ensures nothing spills out */
}

    .stat-icon img {
        max-width: 70%;
        max-height: 70%;
        object-fit: contain;
    }

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 400;
    direction: ltr;
    color: var(--primary-hover);
}

.stat-card p {
    font-size: 1.1rem;
    color: var(--primary-color);
    line-height: 1.5;
    font-weight: 500;
}

/*End of Stat Styles*/

.register-title {
    color: #3D3D3D;
    font-size: 37px;
    font-style: normal;
    font-weight: 700;
    line-height: 71px;
    letter-spacing: 0.74px;
}

.register-container label {
    color: #3D3D3D;
    font-size: 23px;
    font-style: normal;
    font-weight: 500;
    line-height: 30px;
    letter-spacing: 0.46px;
}

.register-container input {
    border-radius: 15px;
    border: 1px solid #000;
    background: #FFF;
    height: 64px;
    color: #3D3D3D;
    font-size: 21px;
    font-style: normal;
    font-weight: 400;
    line-height: 71px;
    letter-spacing: 0.42px;
}

.register-select {
    border-radius: 15px !important;
    border: 1px solid #000 !important;
    background: #FFF !important;
    color: #3D3D3D !important;
    font-size: 21px !important;
    font-weight: 400 !important;
    height: 64px !important;
    min-width: 120px;
    margin-right: 10px;
}

    .register-select:last-child {
        margin-right: 0;
    }

.btn-register {
    width: auto;
    height: 76px;
    flex-shrink: 0;
    border-radius: 15px;
    background: #34A751;
    color: #FFF;
    font-size: 36px;
    font-style: normal;
    font-weight: 600;
    line-height: 0px;
    align-self: center;
    padding-inline: 30px;
}

    .btn-register:hover {
        background: #2c8a3f;
        color: #FFF;
    }

/*Testimonial Styles*/

.testimonial-section {
    background-color: #FFF;
    text-align: center;
    padding: 60px 20px;
}

.testimonial-header .subtitle {
    color: #c2902d;
    /*font-size: 1.4rem;*/
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.testimonial-header .title {
    color: var(--primary-color);
    /*font-size: 2.5rem;*/
    font-weight: 400;
}

    .testimonial-header .title span {
        color: #0b97aa;
    }

.testimonial-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 50px;
    flex-wrap: wrap;
}

.testimonial-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0px 0px 9px 3px rgba(0,0,0,0.1);
    padding: 30px 24px;
    max-width: 900px;
    position: relative;
    line-height: 1.9;
    position: relative;
    text-align: center;
    overflow: hidden;
}

    .testimonial-card::before {
        content: "";
        position: absolute;
        bottom: -20%;
        left: -10%;
        width: 200px;
        height: 200px;
        background-color: rgba(1, 90, 114, 0.08);
        border-radius: 50%;
        z-index: 0;
    }

    .testimonial-card::after {
        content: "";
        position: absolute;
        top: -20%;
        right: -10%;
        width: 200px;
        height: 200px;
        background-color: rgba(1, 90, 114, 0.08);
        border-radius: 50%;
        z-index: 0;
    }

.testimonial-text {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
    margin: 36px 100px;
    color: var(--primary-color);
    height: 200px;
}

.divider {
    width: 220px;
    height: 0.225rem;
    background-color: var(--primary-color);
    margin: 24px auto;
    border: none;
    border-radius: 10px;
    z-index: 1;
}

.testimonial-author {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
}

.testimonial-nav-button {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

    .testimonial-nav-button:hover {
        background: var(--primary-color);
        color: #fff;
    }

@media (max-width: 768px) {
    .testimonial-container {
        flex-direction: column;
        position: relative;
    }

    .testimonial-nav-button {
        order: -1;
        margin-bottom: 20px;
        position: absolute;
        z-index: 2;
    }

    #nextBtn {
        left: 2%;
        bottom: 0%;
    }

    #prevBtn {
        right: 2%;
        top: 4%;
    }

    .testimonial-text {
        margin: 36px 0;
    }
}

.testimonial-slider {
    position: relative;
    width: 100%;
    max-width: 900px;
    overflow: hidden;
    box-shadow: 0px 0px 9px 3px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.testimonial-slide {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}

    .testimonial-slide.active {
        opacity: 1;
        transform: translateX(0);
        pointer-events: all;
        position: relative;
    }

/*Footer styles*/

.site-footer {
    background-color: #015a72;
    color: #fff;
    padding: 50px 20px 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column {
    flex: 1 1 250px;
}

.footer-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #fff;
}

.footer-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #e0e0e0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

    .footer-links li {
        margin-bottom: 10px;
    }

    .footer-links a {
        color: #fff;
        text-decoration: none;
        transition: color 0.3s;
    }

        .footer-links a:hover {
            color: #c2902d;
        }

.social-icons a {
    display: inline-block;
    margin-left: 12px;
    font-size: 1.2rem;
    color: #fff;
    transition: color 0.3s;
}

    .social-icons a:hover {
        color: #c2902d;
    }

.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 1rem;
    color: #fff;
}

.footer-separator {
    border: none;
    border-top: 1px solid #ffffff50;
    margin: 30px 0 10px;
}

.footer-bottom {
    text-align: center;
    font-size: 0.95rem;
    color: #e0e0e0;
}
