* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #f4f6f8;
    color: #1b1b1b;
}

/* ================= HEADER ================= */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #0a2a4a;
    color: #fff;
}

.nav {
    max-width: 1200px;
    margin: 0; /* keep nav contents left-aligned inside header */
    padding: 10px 20px;
    display: flex;
    align-items: center;
}

/* Layout header elements (left logo, nav, buttons) on a single row */
header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
}

.left-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.left-header img {
    width: 50px;
}

.right-header {
    display: flex;
    align-items: right;
    gap: 14px;
}

.right-header img {
    width: 50px;
}

.site-title {
    font-weight: 700;
    font-size: 20px;
}

.title-wrapper {
    display: flex;
    flex-direction: column;
}
.title-wrapper small {
    font-size: 10px;
    color: #ffffff;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 14px; /* reduced gap between right-side header items */
    align-items: center;
}

/* push the right-side nav and buttons toward the right but keep smaller gap */
header nav,
header .lang-btn,
header .hamburger-menu {
    margin-left: auto;
}

nav li {
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.login-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
}

.login-item i {
    font-size: 26px;
}

.lang-btn {
    border: 1px solid #fff;
    background: none;
    color: #fff;
    padding: 4px 10px;
    font-size: 13px;
    cursor: pointer;
}

.support-btn {
    margin-left: auto;
    border: 1px solid #fff;
    background: none;
    color: #fff;
    padding: 4px 10px;
    font-size: 13px;
    cursor: pointer;
}
/* ================= HAMBURGER MENU ================= */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 20px;
    background: #0a2a4a;
    border: 1px solid #1a4a6a;
    border-radius: 8px;
    padding: 10px 0;
    min-width: 150px;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
}

.mobile-menu a:hover {
    background: #1a4a6a;
}

/* ================= LAYOUT ================= */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 2.7fr 1.3fr;
    /* wider notice column */
    gap: 20px;
    /* reduced gap */
    align-items: start;
}

@media (max-width: 900px) {
    .container {
        grid-template-columns: 1fr;
    }
}

section {
    margin-bottom: 40px;
}

h1 {
    margin-bottom: 15px;
    color: #0a2a4a;
    text-align: center;
}

.card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* ================= NOTICE ================= */
aside {
    align-self: start;
    margin-top: -10px;
    /* slight upward move */
}

.notice-box {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);

    width: 100%;
    max-width: 550px;
    /* increased width */
    height: 280px;
    /* increased height */
    margin-top: 30px;
    margin-bottom: 30px;
    overflow: hidden;
}

.notice-box h3 {
    margin-bottom: 12px;
    align-items: center;
    color: red;
}

.notice-list {
    color: red;
    animation: scroll 14s linear infinite;
}

.notice-box:hover .notice-list {
    animation-play-state: paused;
}

.notice-list p {
    padding: 8px 0;
    font-size: 14px;
}

@keyframes scroll {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(-100%);
    }
}

/* ================= GALLERY SLIDER ================= */
.gallery-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0 40px;
}

.gallery-slider {
    display: flex;
    transition: transform 0.5s ease;
}

.gallery-slider img {
    min-width: 200px;
    height: 150px;
    margin-right: 15px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    z-index: 1;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #0a2a4a;
    color: #fff;
    border: none;
    font-size: 20px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    opacity: 0.7;
}

.arrow:hover {
    opacity: 1;
}

.arrow.left {
    left: -0.5px;
}

.arrow.right {
    right: -0.5px;
}

/* ================= MODAL ================= */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.about {
    margin-bottom: 40px;
    /* ⬅ increases gap */
}

.about-container {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
}
.about-text h2 {
    text-align: center;
    margin-bottom: 20px;
}
.about-text p {
    line-height: 1.6;
    font-size: 14px;
}

.about-img {
    flex-shrink: 0;
}

.about-img img {
    width: 270px;
    height: 270px;
    object-fit: cover;
    border-radius: 8px;
}

/* --- Partner Section Styles --- */
.partners-section h2 {
    margin-bottom: 60px;
    text-align: center;
}

/* The container holding all logo items */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    /* Allows logos to drop to the next line on small screens */
    justify-content: center;
    /* Centers logos horizontally */
    align-items: center;
    /* Centers logos vertically relative to each other */
    gap: 30px;
    /* Space between the logos */
}


/* The individual items holding the images */
.partner-item {
    /* Optional: define a specific box size for uniformity */
    width: 150px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Optional: Add a border or background to see the boxes */
    /* border: 1px solid #eee; */
    /* background-color: #f9f9f9; */
    /* border-radius: 8px; */
    padding: 10px;
}

/* Styling the actual images */
.partner-item img {
    max-width: 170%;
    /* Ensures image doesn't overflow its container */
    max-height: 170%;
    /* Ensures image fits vertically */
    height: auto;
    object-fit: contain;
    /* Keeps aspect ratio intact */
    /* Optional: make them black and white until hovered */
    /* filter: grayscale(100%); */
    transition: all 0.3s ease;
}

/* Optional hover effect */
.partner-item img:hover {
    /* filter: grayscale(0%); */
    transform: scale(1.1);
    /* Slight zoom on hover */
}

/* Footer */
/* Footer */
.footer {
    background: #0a2a4a;
    color: #f5f5f5;
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #977f4d, transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: start;
    justify-items: stretch;
}

.footer-col.brand {
    justify-self: start;
    text-align: left;
}

.footer-col.contact {
    justify-self: center;
    text-align: center;
    font-family: 'Aptos', sans-serif;
}

.footer-col {
    position: relative;
}

.footer-col.brand {
    text-align: center;
}

.footer-col.brand h2 {
    font-size: 2.2rem;
    font-weight: 300;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.3;
}

.footer-col h3 {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #977f4d, #785E26);
    transition: width 0.3s ease;
}

.footer-col:hover h3::after {
    width: 100px;
}

.footer-col p {
    margin-bottom: 12px;
    color: #ccc;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.footer-col p:hover {
    color: #fff;
}

.footer-col p i {
    color: #ffffff;
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.footer-col p:hover i {
    transform: scale(1.1);
}

.footer-col a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-col a:hover {
    color: #977f4d;
    text-shadow: 0 0 5px rgba(151, 127, 77, 0.5);
}

/* Social Media Icons */
.footer-social {
    margin-top: 25px;
}

.footer-social h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-social a {
    display: inline-block;
    margin-right: 15px;
    font-size: 24px;
    color: #ccc;
    transition: all 0.3s ease;
    position: relative;
}

.footer-social a:hover {
    color: #977f4d;
    transform: translateY(-3px);
    text-shadow: 0 5px 15px rgba(151, 127, 77, 0.4);
}
/* Copyright Section */
.copyright {
    text-align: center;
    font-family: 'Aptos', sans-serif;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(151, 127, 77, 0.3);
    color: #aaa;
    font-size: 14px;
    line-height: 1.8;
}

.copyright a {
    color: #977f4d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.copyright a:hover {
    color: #fff;
    text-shadow: 0 0 5px rgba(151, 127, 77, 0.5);
}

.btn-app-form {
    display: block;
    margin: auto;
    width: fit-content;
    padding: 12px 24px;
    text-align: center;
    background-color: #007bff; /* Blue color */
    color: #ffffff;
    text-decoration: none; /* Removes underline */
    border-radius: 5px; /* Rounded corners */
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

/* Hover effect */
.btn-app-form:hover {
    background-color: #0056b3; /* Darker blue */
    color: #ffffff;
}


/* Login Modal Custom Styles */
#loginModal {
    background: #fff !important;
}

#loginModal .modal-content {
    background: #ffffff;
    color: #222;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    padding: 40px 30px;
}

#loginModal .heading {
    color: #222;
    text-align: center;
    margin-bottom: 28px;
}

#loginModal input {
    background: #f8f8f8;
    color: #222;
    border: 1px solid #ccc;
}

#loginModal .btn {
    background: #0a2a4a;
    color: #fff;
    border-radius: 5px;
    font-size: 1.1rem;
    margin-top: 10px;
}

#loginModal .btn:hover {
    background: #333;
    color: #fff;
}

/*footer {
            background: #0a2a4a;
            color: #fff;
            text-align: center;
            padding: 15px;
        }*/

/* ================= VERIFICATION PAGE STYLES ================= */
#verifyForm {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #0a2a4a;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #0a2a4a;
    box-shadow: 0 0 0 2px rgba(10, 42, 74, 0.1);
}

#verifyForm button {
    width: 100%;
    padding: 12px;
    background: #0a2a4a;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#verifyForm button:hover {
    background: #1a4a6a;
}

#result {
    max-width: 800px;
    margin: 30px auto 0;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

#certificateTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#certificateTable td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

#certificateTable td:first-child {
    font-weight: 600;
    color: #0a2a4a;
    width: 200px;
}

#error {
    max-width: 500px;
    margin: 20px auto 0;
    background: #ffe6e6;
    color: #d32f2f;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #ffcdd2;
    text-align: center;
}

/* ================= MOBILE RESPONSIVE (max-width: 768px) ================= */
@media (max-width: 768px) {
    header {
        position: relative;
    }

    .nav {
        padding: 20px;
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
    }

    .left-header {
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-bottom: 0;
    }

    .left-header img {
        width: 45px;
        margin-bottom: 12px;
    }

    .site-title {
        font-size: 13px;
        font-weight: 700;
        text-align: center;
        margin-bottom: 20px;
        width: 100%;
    }

    nav {
        display: none;
    }

    .lang-btn {
        display: none;
    }

    .hamburger-menu {
        display: flex;
        position: absolute;
        top: 90px;
        right: 20px;
        background: none;
        border: none;
        padding: 0;
        gap: 6px;
    }

    .hamburger-menu span {
        width: 24px;
        height: 2px;
        background: #fff;
        border-radius: 1px;
        transition: all 0.3s ease;
        display: block;
    }

    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
        width: 0;
    }

    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    .mobile-menu {
        position: fixed;
        top: auto;
        right: auto;
        left: 0;
        bottom: 0;
        width: 100%;
        max-width: none;
        background: #0a2a4a;
        border: none;
        border-radius: 0;
        padding: 0;
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);
        display: none;
        flex-direction: column;
        z-index: 998;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .mobile-menu.active {
        display: flex;
        transform: translateX(0);
    }

    .mobile-menu a {
        padding: 18px 20px;
        font-size: 14px;
        border-bottom: 1px solid #1a4a6a;
    }

    .mobile-menu a:last-child {
        border-bottom: none;
    }

    .mobile-menu a:hover {
        background: #1a4a6a;
    }

    /* ================= MOBILE: about SECTION ================= */
    .about .card {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        flex-wrap: nowrap;
    }

    .about .card img {
        width: 90%;
        max-width: 100px;
        height: auto;
        order: -1;
        margin-bottom: 8px;
    }

    .about .card h2 {
        text-align: center;
        width: 100%;
        margin-bottom: 8px;
        font-size: 16px;
    }

    .about .card > div {
        text-align: center;
        width: 100%;
        font-size: 13px;
        line-height: 1.6;
    }

    /* ================= MOBILE: MAIN CONTAINER ================= */
    .container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 12px;
    }

    /* ================= MOBILE: NOTICE BOARD ================= */
    aside {
        margin-top: 0;
    }

    .notice-box {
        max-width: 100%;
        width: 100%;
        height: auto;
        max-height: 300px;
        padding: 16px;
        margin-bottom: 20px;
    }

    .notice-box h3 {
        margin-bottom: 12px;
        font-size: 16px;
    }

    .notice-list {
        animation: none;
        overflow-y: auto;
        max-height: 240px;
        padding-right: 8px;
    }

    .notice-box:hover .notice-list {
        animation: none;
    }

    .notice-list p {
        padding: 10px 0;
        font-size: 13px;
        line-height: 1.5;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* ================= MOBILE: OUR VISION ================= */
    section:nth-of-type(1) {
        margin-bottom: 30px;
    }

    section:nth-of-type(1) h2 {
        font-size: 18px;
        margin-bottom: 12px;
        text-align: center;
    }

    section:nth-of-type(1) .card {
        padding: 16px;
        text-align: center;
    }

    section:nth-of-type(1) .card img {
        max-width: 100%;
        height: auto;
        margin-bottom: 12px;
    }

    /* ================= MOBILE: OUR MISSION ================= */
    section:nth-of-type(2) {
        margin-bottom: 30px;
    }

    section:nth-of-type(2) h2 {
        font-size: 18px;
        margin-bottom: 12px;
        text-align: center;
    }

    section:nth-of-type(2) .card {
        padding: 16px;
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    section:nth-of-type(2) .card img,
    section:nth-of-type(2) .card i {
        max-width: 100%;
        margin-bottom: 12px;
        order: -1;
    }

    section:nth-of-type(2) .card > * {
        margin-bottom: 8px;
    }

    section:nth-of-type(2) .card > *:last-child {
        margin-bottom: 0;
    }

    /* ================= MOBILE: ABOUT US, GALLERY, about HEADINGS ================= */
    section:nth-of-type(3) h2,
    section:nth-of-type(4) h2,
    .about h2 {
        text-align: center;
    }

    /* ================= MOBILE: GALLERY SLIDER ================= */
    .gallery-wrapper {
        padding: 0 50px;
        position: relative;
    }

    .gallery-slider {
        display: flex;
        overflow: hidden;
        width: 100%;
    }

    .gallery-slider img {
        min-width: 50%;
        width: 50%;
        height: 250px;
        margin-right: 0;
        object-fit: cover;
        border-radius: 6px;
        flex-shrink: 0;
    }

    .arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(10, 42, 74, 0.85);
        color: #fff;
        border: none;
        font-size: 18px;
        padding: 10px 14px;
        cursor: pointer;
        border-radius: 50%;
        z-index: 10;
        opacity: 0.9;
        transition: opacity 0.3s ease;
    }

    .arrow:active {
        opacity: 1;
    }

    .arrow.left {
        left: 8px;
    }

    .arrow.right {
        right: 8px;
    }

    /* ================= MOBILE: PARTNERS SECTION ================= */
    .partners-section h2 {
        margin-bottom: 100px;
    }

    .partners-grid {
        gap: 20px;
        justify-content: space-between;
    }

    .partner-item {
        width: calc(50% - 10px);
        height: 80px;
    }

    .partner-item img {
        max-width: 120%;
        max-height: 120%;
    }
    .footer {
        padding: 60px 0 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .footer-col.brand h2 {
        font-size: 1.8rem;
    }

    .footer-col.subscribe {
        margin: 0 20px;
    }

    /* Center all footer columns on mobile */
    .footer-col.brand,
    .footer-col.contact,
    .footer-col.subscribe {
        justify-self: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-grid {
        gap: 30px;
        padding: 0 15px;
    }
    
    .footer-col h3 {
        font-size: 1.2rem;
    }
    
    .footer-col.subscribe {
        padding: 20px;
    }
}