﻿body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
    transition: margin-top 0.3s ease; /* Added transition for smooth effect */
}

html {
    scroll-behavior: smooth;
}

.header {
    background: linear-gradient(135deg, #001f3f, #005f87, #0077c2, #00a2ff);
    color: #fff;
    padding: 20px 0;
    position: relative;
    overflow: hidden;
}

.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    max-width: 1200px;
    margin: auto;
}

.logo {
    display: flex;
    align-items: center;
}

    .logo img {
        width: 85px;
        margin-right: 10px;
    }

.navbar {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding-left: 0; /* Ensures it starts from the very beginning of the screen */
}

    .navbar ul {
        list-style: none;
        display: flex;
        /* justify-content: space-between;  */
        margin: 0;
        padding: 0;
        width: 100%;
        /* gap: 10px; */
    }

    .navbar a {
        flex: 1;
        text-align: center; /* Ensures the text is centered within each button */
        padding: 1em;
        color: #fff;
        text-decoration: none;
        /* font-weight: bold; */
        transition: color 0.3s ease;
    }


        .navbar a:hover {
            color: #000000;
        }




/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Ensure dropdowns are hidden by default */
.dropdown-content {
    display: none; /* Initially hide the dropdown content */
    position: absolute;
    background-color: #0077c2;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 9999; /* Ensure it appears over other content */
    top: 100%; /* Position directly below the parent */
    left: 0;
    padding: 0;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
    display: block !important; /* Again, use !important to ensure this rule takes precedence */
}

/* Additional styles for dropdown items */
.dropdown-content li {
    text-align: left;
    width: 100%;
    padding: 0;
    margin: 0;
    z-index: 10000;
}

    .dropdown-content li a {
        color: white;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
        text-align: left;
    }

        .dropdown-content li a:hover {
            background-color: #005f87;
        }




/* Show the dropdown content on hover */
.dropdown:hover .dropdown-content {
    display: block; /* Show dropdown when hovering over parent */
    animation: fadeIn 0.3s ease-in-out;
}

/* Dropdown arrow styling */
.dropdown > a::after {
    content: " \25BC"; /* Unicode for downwards arrow */
    font-size: 0.8em;
    margin-left: 5px;
}

/* Animation for dropdown */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}




/* Generic Button Styling */
.btn {
    font-size: 14px;
    background: transparent;
    border: none;
    padding: 1em 1.5em;
    color: #ffedd3;
    text-transform: uppercase;
    position: relative;
    transition: 0.5s ease;
    cursor: pointer;
}

    .btn::before {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        height: 2px;
        width: 0;
        background-color: #000;
        transition: 0.5s ease;
    }

    .btn:hover {
        color: #000;
        transition-delay: 0.5s;
    }

        .btn:hover::before {
            width: 100%;
        }

    .btn::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        height: 0;
        width: 100%;
        background-color: #ffc506;
        transition: 0.4s ease;
        z-index: -1;
    }

    .btn:hover::after {
        height: 100%;
        transition-delay: 0.4s;
        color: aliceblue;
    }

.header-content {
    text-align: center;
    margin-top: 50px;
    z-index: 1;
    position: relative;
}

    .header-content h1 {
        font-size: 3rem;
        margin-bottom: 20px;
        animation: slideIn 1s ease-out;
    }

    .header-content p {
        font-size: 1.25rem;
        margin-bottom: 30px;
        animation: slideIn 1.2s ease-out;
    }

    .header-content .btn {
        background: #ff6600;
        color: #fff;
        padding: 12px 24px;
        text-decoration: none;
        border-radius: 5px;
        transition: background 0.3s ease;
        font-size: 1rem;
        font-weight: bold;
    }

        .header-content .btn:hover {
            background: #ff4500;
        }

.button {
    --color: #FFFFFF;
    padding: 0.8em 1.7em;
    background-color: transparent;
    border-radius: .3em;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: .5s;
    font-weight: 400;
    font-size: 17px;
    border: 1px solid;
    font-family: inherit;
    text-transform: uppercase;
    color: var(--color);
    z-index: 1;
}

    .button::before, .button::after {
        content: '';
        display: block;
        width: 50px;
        height: 50px;
        transform: translate(-50%, -50%);
        position: absolute;
        border-radius: 50%;
        z-index: -1;
        background-color: var(--color);
        transition: 1s ease;
    }

    .button::before {
        top: -1em;
        left: -1em;
    }

    .button::after {
        left: calc(100% + 1em);
        top: calc(100% + 1em);
    }

    .button:hover::before, .button:hover::after {
        height: 410px;
        width: 410px;
    }

    .button:hover {
        color: rgb(10, 25, 30);
    }

    .button:active {
        filter: brightness(.8);
    }



/* Mobile Menu */
#mobile-menu {
    display: none;
    transition: max-height 0.3s ease-out, padding-top 0.3s ease-out; /* Smooth transition */
}

@media (max-width: 1112px) {
    .hamburger {
        display: flex;
        justify-content: center;
        align-items: center;
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 1000;
        cursor: pointer;
    }


    #mobile-menu.open {
        display: block;
        background-color: #0077c2;
        width: 100%;
        position: relative; /* Position relative to keep it within the header */
        z-index: 999;
        transition: max-height 0.3s ease-out, padding-top 0.3s ease-out; /* Smooth transition */
    }

    .header.expanded {
        height: auto;
        padding-bottom: 20px;
    }

    .header {
        height: auto;
    }

    /* Ensuring the mobile menu items take full width */
    #mobile-menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    #mobile-menu li {
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

        #mobile-menu li a {
            display: block;
            width: 100%;
            padding: 10px 0;
            text-decoration: none;
            color: white;
        }

    #mobile-menu .dropdown-content {
        display: none;
        position: relative;
        background-color: #0077c2;
        min-width: 160px;
        box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
        z-index: 9999;
        padding: 0;
        margin-top: 5px;
        border-radius: 5px;
    }

        /* Show dropdown content when open class is added */
        #mobile-menu .dropdown-content.open {
            display: block;
        }

    /* Ensure dropdown content appears above other content */
    #mobile-menu .dropdown-content {
        position: relative;
        z-index: 10000;
    }
}

/* Desktop View */
@media (min-width: 1113px) {
    .navbar {
        display: flex;
    }

    #mobile-menu {
        display: none !important;
    }

    .hamburger {
        display: none; /* Hide hamburger button on desktop */
    }
}



@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1112px) {
    .header-content {
        margin-top: 20px;
    }

        .header-content h1 {
            font-size: 2rem;
        }

        .header-content p {
            font-size: 1rem;
        }

    .navbar {
        display: none;
    }

    .container {
        justify-content: space-between;
    }



    #mobile-menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #mobile-menu li {
        padding: 8px 0;
        width: 100%;
        text-align: center;
    }

    #mobile-menu a {
        color: #fff;
        text-decoration: none;
        font-weight: bold;
        transition: color 0.3s ease;
    }

        #mobile-menu a:hover {
            color: #ffb400;
        }

    .logo {
        order: 1;
    }

    .hamburger {
        order: 2;
        z-index: 20; /* Ensure the button is above the menu */
    }

    .hamburger {
        margin-left: auto;
    }
}

/* Additional improvements */
.container {
    flex-wrap: wrap;
}

.logo img {
    max-width: 100%;
    height: auto;
}



/* @media (max-width: 768px) {
    .header-content {
        margin-top: 20px;
    }

    .header-content h1 {
        font-size: 2rem;
    }

    .header-content p {
        font-size: 1rem;
    }

    .navbar ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-content {
        padding: 20px;
    }
} */

/* Hero Section */
.hero {
    background: url('https://images.pexels.com/photos/256541/pexels-photo-256541.jpeg') no-repeat center center fixed;
    background-size: cover;
    color: #000;
    position: relative;
    overflow: hidden;
    padding: 60px 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.6);
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-text {
    max-width: 800px;
}

.hero h2 {
    text-align: center;
    color: #000;
}


.hero p {
    text-align: justify;
    color: #000;
}

.motto-text {
    font-size: 1.5rem;
    /* font-weight: bold; */
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
}

.btn-hero {
    background: #ff6600;
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
    font-size: 1rem;
    font-weight: bold;
    animation: slideIn 1.4s ease-out;
}

    .btn-hero:hover {
        background: #ff4500;
    }

/* Introduction Section */
.introduction {
    background: #fff;
    color: #333;
    padding: 60px 0;
}

    .introduction h2 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .introduction p {
        font-size: 1.4rem;
        margin-bottom: 20px;
        text-align: justify;
    }

    .introduction .container {
        max-width: 1200px;
        margin: 0 auto;
    }

/* Overview Flip Cards */
@import 'https://fonts.googleapis.com/css?family=Lily+Script+One';

.card-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    width: 100%;
    flex-wrap: wrap;
}

.card {
    width: 500px;
    height: 300px;
    perspective: 1000px;
    flex-shrink: 0;
    margin: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    .card-container {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 80%;
        margin: 20px 0;
    }
}

/* Flip card inner content */
.content {
    position: relative;
    width: 100%;
    height: 100%;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    transition: transform 1s;
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; /* Align content vertically */
    cursor: pointer; /* Change cursor to pointer */
    text-align: center; /* Center-align text horizontally */
}

    .content p {
        font-size: 1.5em; /* Example: Set font size to 1.5em (adjust as needed) */
        margin-top: auto; /* Remove default margin to avoid extra space */
    }

.card:hover .content,
.card.touch-active .content {
    transform: rotateY(180deg);
    transition: transform 0.5s;
}

.front, .back {
    position: absolute;
    height: 100%;
    width: 100%;
    background-size: cover;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 34px;
    border-radius: 5px;
    backface-visibility: hidden;
    padding: 20px;
    flex-direction: column; /* Add this to center-align content vertically */
}

.front {
    background-size: cover;
    background-position: center;
}

.back {
    background: #000000;
    color: white;
    transform: rotateY(180deg);
}

    .back p {
        font-size: 1.125rem;
        text-align: justify;
        margin-bottom: 20px; /* Add margin-bottom to create space between paragraph and button */
    }

.button-container {
    margin-top: auto; /* Push the button to the bottom */
}

/* Additional styles for the overview section */
#overview .overview-text {
    background: none; /* Remove the background color */
    box-shadow: none; /* Remove any box shadow */
    padding: 0; /* Remove padding */
    margin: 0; /* Remove margin */
    border: none; /* Remove border */
}

.heading {
    margin-bottom: 5px;
}

.overview-text p {
    margin-top: 10px;
    font-size: 1.125rem;
}



/* CSS for scroll animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

    .animate-on-scroll.animate {
        opacity: 1;
        transform: translateY(0);
        animation: fadeInUp 0.5s forwards;
    }

/* Footer */
.footer {
    background: url('/assets/imgs/campus.jpg') no-repeat center center fixed;
    background-size: cover;
    background-position: top; /* Start the background image from the top */
    color: white;
    padding: 20px 0;
    position: relative;
    z-index: 1;
}

    .footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5); /* Adjust the darkness by changing the opacity */
        z-index: -1;
    }

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin: 10px;
}

    .footer-section h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
        text-transform: uppercase;
        border-bottom: 2px solid white;
        padding-bottom: 5px;
    }

    .footer-section ul {
        list-style: none;
        padding: 0;
    }

        .footer-section ul li {
            margin: 5px 0;
        }

            .footer-section ul li a {
                color: white;
                text-decoration: none;
                transition: color 0.3s ease;
            }

                .footer-section ul li a:hover {
                    text-decoration: underline;
                }

    .footer-section p {
        margin: 5px 0;
    }

.map iframe {
    width: 100%;
    height: 250px; /* Adjusted height */
    border: 0;
}

@media (min-width: 1024px) {
    .map iframe {
        width: 100%; /* Make the map wider */
        height: 300px; /* Adjusted height for larger screens */
    }
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }

    .map iframe {
        height: 300px;
    }

    .made-by {
        text-align: center;
        padding-right: 0;
        color: black;
        font-weight: bold;
    }
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 10px;
    /* border-top: 1px solid white; */
}

.made-by {
    color: black;
    font-weight: bold;
    text-align: right;
    padding-right: 20px;
    text-decoration: none;
}


/* Staff */
#timeline {
    border-top: 2px solid #fff;
    border-bottom: 5px solid #000;
    display: flex;
    background-color: #0077c2;
    flex-direction: column; /* Default to column for mobile */
    height: auto; /* Adjust height for mobile */
}

@media (min-width: 1250px) {
    #timeline {
        flex-direction: row; /* Row layout for tablets and above */
        height: 100vh; /* Full height for larger screens */
    }
}

.tl-item {
    transform: translate3d(0, 0, 0);
    position: relative;
    width: 100%; /* Full width for mobile */
    height: auto; /* Adjust height for mobile */
    min-height: 300px; /* Adjust min-height for mobile */
    color: #fff;
    overflow: hidden;
    transition: width 0.5s ease, height 0.5s ease;
    &:before, &:after

{
    transform: translate3d(0, 0, 0);
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

&:after {
    background: rgba(3, 22, 37, 0.15);
    opacity: 1;
    transition: opacity 0.5s ease;
}

&:before {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 75%);
    z-index: 1;
    opacity: 0;
    transform: translate3d(0, 0, 0) translateY(50%);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

&:hover {
    height: auto; /* Adjust height for hover on desktop */

    &:after

{
    opacity: 0;
}

&:before {
    opacity: 1;
    transform: translate3d(0, 0, 0) translateY(0);
    transition: opacity 1s ease, transform 1s ease 0.25s;
}

.tl-content {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.75s ease 0.5s;
}

.tl-bg {
    filter: grayscale(0);
}

}
}

@media (min-width: 1250px) {
    .tl-item {
        width: 25%; /* Adjust width for larger screens */
        height: 100vh; /* Full height for larger screens */
    }
}

.tl-content {
    transform: translate3d(0, 0, 0) translateY(25px);
    position: relative;
    z-index: 1;
    text-align: center;
    margin: 0 1.618em;
    top: 37%;
    margin-top: 17%;
    opacity: 0; /* Hide content initially */
    transition: opacity 0.75s ease 0.5s, transform 0.75s ease 0.5s; /* Add transition for opacity */

    h1

{
    font-family: 'Pathway Gothic One', Helvetica Neue, Helvetica, Arial, sans-serif;
    /* text-transform: uppercase; */
    color: #1779cf;
    font-size: 1.44rem;
    font-weight: normal;
}

}

.tl-year {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    z-index: 1;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
    p

{
    font-family: 'Pathway Gothic One', Helvetica Neue, Helvetica, Arial, sans-serif;
    font-size: 1.728rem;
}

}


@media (min-width: 1250px) {
    #timeline:hover .tl-item {
        width: 23.3333%;
    }
}

@media (max-width: 1250px) {
    .tl-item {
        display: flex;
        flex-direction: column; /* Stack items for mobile */
        align-items: center; /* Center-align items for mobile */
        border-bottom: 2px solid #000;
    }

    .tl-year {
        padding-top: 10px;
        width: 100%; /* Full width for year section */
        top: auto;
        left: auto;
        transform: none; /* Reset transform for mobile */
        border: none; /* Remove border for mobile */
        text-align: center; /* Center-align text for mobile */
        font-weight: bold;
        font-size: 1.125rem;
    }

    .tl-content {
        margin-top: 25%;
        width: 100%; /* Full width for content section */
        opacity: 0; /* Hide content initially */
        transform: translateY(25px); /* Move content down initially */
        transition: opacity 0.75s ease 0.5s, transform 0.75s ease 0.5s; /* Add transition for content */
    }

    .tl-item:hover .tl-content {
        opacity: 1; /* Show content on hover */
        transform: translateY(0); /* Move content up on hover */
    }
}


/* POLICY */
.policy-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.policy-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.policy-card {
    width: calc(30% - 20px);
    height: 300px;
    perspective: 1000px;
    position: relative;
    overflow: hidden;
}

@media (max-width: 1200px) {
    .policy-card {
        width: calc(45% - 20px);
    }
}

@media (max-width: 768px) {
    .policy-card {
        width: calc(90% - 20px);
    }
}

.policy-card-inner {
    width: 100%;
    height: 100%;
    position: absolute; /* Use absolute positioning */
    top: 0; /* Ensure it stays at the top */
    left: 0; /* Ensure it stays on the left */
    transform-style: preserve-3d;
    transition: transform 0.6s;
    transform-origin: center center;
}

.policy-card:hover .policy-card-inner {
    transform: rotateY(180deg);
}

.policy-card-front, .policy-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Updated box-shadow */
}

.policy-card-front {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
    text-align: center;
    color: white;
    padding: 20px;
    position: absolute;
    top: 0; /* Ensure it stays at the top */
    left: 0; /* Ensure it stays on the left */
}

    .policy-card-front h3 {
        background-color: rgba(0, 0, 0, 0.5);
        padding: 10px;
        border-radius: 5px;
        margin: 0;
        width: 100%;
    }

.policy-card-back {
    background-color: #fff;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: .9em;
    transform: rotateY(180deg);
    padding: 20px; /* Padding for better text layout */
    text-align: justify;
}

    .policy-card-back p {
        margin: 0;
        padding: 0;
        line-height: 1.5;
    }






/* OVERVIEW */
.overview-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.section-title {
    color: #003366;
    text-align: center;
    margin-bottom: 20px;
}

.intro-section p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #333;
}

.core-operations {
    margin-bottom: 40px;
}

.operations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.operation-card {
    background-color: #f0f4f8;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .operation-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
    }

.operation-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #0077c2;
}

.operation-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.read-more-btn {
    background-color: #0077c2;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

    .read-more-btn:hover {
        background-color: #005f87;
    }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    text-align: center;
}

.stat-item {
    background-color: #f0f4f8;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #0077c2;
    margin-bottom: 10px;
}

#map {
    width: 100%;
    height: 400px;
    background-color: #e0e4e8;
    border-radius: 10px;
}

/* Modal styles */
.modal {
    display: none;
}



.modal-content p {
    animation: fadeInUp 0.5s ease-out !important;
    text-align: justify !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Core Operations Styles */
.operations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.operation-card {
    background-color: #f0f4f8;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .operation-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
    }

.operation-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #0077c2;
}

.operation-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.read-more-btn {
    background-color: #0077c2;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

    .read-more-btn:hover {
        background-color: #005f87;
    }

/* Stats Infographics Styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    text-align: center;
}

.stat-item {
    background-color: #f0f4f8;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #0077c2;
    margin-bottom: 10px;
}

#map {
    width: 100%;
    height: 400px;
    background-color: #e0e4e8;
    border-radius: 10px;
}


/* Overview Section Styles */
.overview-section {
    padding: 20px;
    background-color: #f9f9f9;
}

    .overview-section h2 {
        text-align: center;
        margin: 20px 0;
        font-size: 24px;
        color: #333;
        font-weight: bold;
    }

/* Container for Overview Cards */
.overview-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

/* Overview Card Styles */
.overview-card {
    border: 1px solid #ccc;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s;
    width: 300px;
    text-align: center;
    background-color: #fff;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

    .overview-card h3 {
        padding: 5px;
    }


    .overview-card img {
        width: 100%;
        height: 200px; /* Set the height you prefer */
        object-fit: cover; /* Crop the image from the bottom if necessary */
        flex-shrink: 0;
    }

.card-content {
    padding: 15px;
    flex: 1;
}

    .card-content h3 {
        margin-top: 0;
        color: #007BFF;
    }

    .card-content p {
        font-size: 14px;
        color: #666;
    }

.overview-card .read-more-btn {
    display: block;
    margin: 15px auto 10px;
    padding: 10px 20px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .overview-card .read-more-btn:hover {
        background-color: #0056b3;
    }

.overview-card:hover {
    transform: scale(1.05);
}



/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 800px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: slide-down 0.3s ease-out;
}

@keyframes slide-down {
    from {
        transform: translateY(-50%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #333;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

    .close-btn:hover,
    .close-btn:focus {
        color: #000;
        text-decoration: none;
    }

.modal-content h2 {
    margin: 20px 0 10px;
    font-size: 24px;
    color: #007BFF;
}

.modal-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}

.modal-content ul {
    list-style-type: disc;
    padding-left: 20px;
    text-align: left;
    margin-bottom: 20px;
}

    .modal-content ul li {
        margin-bottom: 10px;
        font-size: 16px;
        line-height: 1.6;
        color: #333;
    }

.migration-info h3 {
    margin-top: 20px;
    font-size: 18px;
    color: #007BFF;
}

.migration-info ul {
    list-style-type: disc;
    padding-left: 20px;
    text-align: left;
    margin-bottom: 20px;
}

    .migration-info ul li {
        margin-bottom: 10px;
        font-size: 16px;
        line-height: 1.6;
        color: #333;
    }

.modal-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.external-link-btn {
    padding: 10px 20px;
    background-color: #007BFF;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.2s;
}

    .external-link-btn:hover {
        background-color: #0056b3;
    }



/* SECONDARY OPERATIONS */
#secondary-operations {
    color: #003366;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Arial', sans-serif;
}

.overview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    justify-content: center;
    padding: 0 20px;
}

.overview-secondary-card {
    background-color: #f0f4f8;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 150px; /* Ensuring all cards are the same height */
}

    .overview-secondary-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 123, 255, 0.2);
        z-index: -1;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .overview-secondary-card:hover::before {
        opacity: 1;
        box-shadow: 0 10px 15px rgba(0, 123, 255, 0.3);
    }

    .overview-secondary-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
    }

.overview-secondary-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #0077c2;
}

.overview-secondary-text {
    font-size: 1.125rem;
    color: #333;
    font-family: 'Arial', sans-serif;
}


/* CONTACT */
.contact-container {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    padding: 0 15px; /* Add padding to the container for small screens */
}

.contact-table {
    width: 100%; /* Set width to 100% for better responsiveness */
    max-width: 1200px; /* Limit max width for large screens */
    border-collapse: collapse;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    animation: fadeIn 1s ease-in-out;
}

    .contact-table th,
    .contact-table td {
        padding: 15px 20px;
        text-align: left;
        border-bottom: 1px solid #e0e0e0;
        color: #333;
    }

    .contact-table th {
        background-color: #003366; /* Matching the theme */
        color: #fff;
        font-size: 1.1rem;
    }

    .contact-table tr:last-child td {
        border-bottom: none;
    }

    .contact-table td a {
        color: #0077c2;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .contact-table td a:hover {
            color: #005f87;
        }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .contact-table th,
    .contact-table td {
        padding: 10px 15px; /* Reduce padding on smaller screens */
        font-size: 0.9rem; /* Slightly reduce font size */
    }
}

@media (max-width: 480px) {
    .contact-table th,
    .contact-table td {
        padding: 8px 10px; /* Further reduce padding on very small screens */
        font-size: 0.8rem; /* Further reduce font size */
    }

        .contact-table td a {
            word-break: break-word; /* Prevent links from overflowing */
        }
}
