:root {
    --primary-color: #000080;
    --secondary-color: #e6f2ff;
    --text-color: #333;
    --accent-color: #000080;
    --button-text-color: #ffffff;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}
/* Header styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
}


.logo img {
    height: 50px;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0px auto;
}


.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    /*    background: white;*/ /*#0047AB;*/ /*#0047AB;*/ /* #333;*/
}
/* Base Styles */
.nav-menu {
    display: flex;
    list-style-type: none;
    flex-wrap: wrap;
}

.nav-item {
    margin-left: 2rem;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-link {
    text-decoration: none;
    color:black; /*var(--text-color);*/
    font-weight: 600;
    transition: color 0.3s ease;
}

nav li {
    position: relative;
}

    nav li:hover .submenu {
        display: flex;
    }

nav a {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    font-size: 1rem;
}


/* Responsive Styles */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        display: none; /* Hidden by default, shown with JS or a class toggle */
        width: 100%;
        background-color: #333;
    }

        .nav-menu.active {
            display: flex;
            background-color: white;
        }

    .nav-item {
        margin-left: 0;
        width: 100%;
    }

    nav a {
        width: 100%;
        padding: 12px 16px;
        font-size: 1rem;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
        font-size: 1.5rem;
        padding: 10px;
        background: none;
        border: none;
        color: black;
    }
}


.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background:white; /*#444;*/
    display: none;
    flex-direction: column;
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

    .submenu li {
        margin: 0;
    }

    .submenu a {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

        .submenu a:hover {
            background: #555;
        }

/*========================================================================*/

.cta-button {
    display: inline-block;
    background-color: rgb(176, 148, 12);
    color: var(--button-text-color);
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

    .cta-button:hover {
        background-color: #000066;
    }

.connection {
    background-color: var(--secondary-color);
    padding: 4rem 0;
}

    .connection h2 {
        text-align: center;
        margin-bottom: 2rem;
    }

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(250px, 1fr)); /* 3 equal-width columns */
    gap: 2rem;
    justify-content: center; /* Center the entire grid within its container */
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.form-item {
    background-color: #0047AB; 
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: white;
}

    .form-item h3 {
        margin-bottom: 1rem;
    }
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr; /* Stack on small screens */
    }
}


/*====================================================*/

section {
    padding: 50px 20px;    
    text-align: center;
    margin-top: 5px;
}

/* Contact information styles */
.contact {
    background-color:whitesmoke;/* var(--secondary-color);*/
    padding: 2rem 0;
}

    .contact h2 {
        text-align: center;
        margin-bottom: 2rem;
    }

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.map-container {
    height: 400px;
    margin-top: 2rem;
}

.about {
    background: #f4f4f4;
}

    .about h2 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .about p {
        max-width: 800px;
        margin: 0 auto;
        font-size: 1.2rem;
    }

.events {
    background: #fff;
    
}

    .events h2 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

.event-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
   
}

.event-card {
    background: #f9f9f9;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 300px;
    border-radius: 8px;
    overflow: hidden;
}

    .event-card img {
        width: 100%;
        height: 250px;
        object-fit: cover;
    }

    .event-card h3 {
        font-size: 1.5rem;
        margin: 15px;
    }

    .event-card p {
        font-size: 1rem;
        margin: 15px;
    }

/* Hero section styles */
.hero {
    background-image: url('dc-wallpaper.png');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero-content {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 10px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}
/* Responsive styles */
@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }               
   
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

   .special-button {
        display: block;
        margin: 1rem auto;
    }

    .footer-content {
        flex-direction: column;
    }

    .grid-item,
    .text-column {
        flex: 1 1 45%;
        max-width: 45%;
    }

    .text-column {
        font-size: 1.1rem;
    }

}
.hero-content h1 {
    animation: fadeIn 2s ease-in-out;
}

.hero-content p {
    animation: fadeIn 2s ease-in-out 1s;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*.hero-content {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 10px;
    text-align:center;
}*/
/*
.welcome {
    text-align: center;
    margin: 2px 0px 2px 0px;
    text-color: white;
    padding: 2px 2px;
    background-color: rgb(176, 148, 12);
    flex: sm:flex-row flex-col container mx-auto px-4 py-4 items-center justify-center sm:rounded-full rounded-none shadow-lg
}*/

/* Carousel styles */

/*===================old style===============*/
.carousel {
    position: relative;
    height: 90vh;
    background-color: #000;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    opacity: 1;
   transition: opacity 1s ease-in-out;
}

    .carousel-slide.active {
        opacity: 1;
    }

    .carousel-slide h1 {
        font-size: 3rem;
        margin: 0;
    }

    .carousel-slide p {
        font-size: 1.5rem;
        margin: 10px 0 20px;
    }

    .carousel-slide .cta-buttons a {
        display: inline-block;
        margin: 10px;
        padding: 10px 20px;
        color: white;
        background: #4CAF50;
        text-decoration: none;
        border-radius: 5px;
        font-size: 1rem;
    }

        .carousel-slide .cta-buttons a:hover {
            background: #45a049;
        }

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

    .carousel-controls button {
        pointer-events: auto;
        background: rgba(0, 0, 0, 0.5);
        border: none;
        color: white;
        font-size: 2rem;
        cursor: pointer;
        padding: 10px;
        border-radius: 50%;
    }

        .carousel-controls button:hover {
            background: rgba(0, 0, 0, 0.8);
        }



/* Footer styles */

footer {
    background: #0047AB;    /*#333;*/
    color: white;
    text-align: left;
    padding: 40px 20px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1 1 calc(33.333% - 20px);
    /*margin: 10px;*/
}

    .footer-section h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .footer-section p,
    .footer-section a {
        color: white;
        font-size: 1rem;
        line-height: 1.2;
        text-decoration: none;
    }

        .footer-section a:hover {
            text-decoration: underline;
        }

.social-media,
.useful-links {
    list-style: none;
    padding: 0;
}

    .social-media li,
    .useful-links li {
        margin-bottom: 5px;
    }

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid #444;
    padding-top: 10px;
}

@media (max-width: 768px) {
    .footer-section {
        flex: 1 1 100%;
    }
}

/* Email subscription styles*/
.email-subscription {
    display: flex;
    width: 90%;
    max-width: 1200px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    margin: 0 auto;
    border-radius: 0; /* Default for small screens */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #0047AB;/* #2a9df4;*/
    color: var(--button-text-color);
    /* background-color: rgb(176, 148, 12);*/
}

@media (min-width: 640px) {
    .email-subscription {
        flex-direction: row;
        border-radius: 9999px; /* Full rounding for larger screens */
    }
}

.subscription-heading {
    margin-right: 1rem;
    margin-bottom: 0.5rem; /* Default for small screens */
    font-weight: bold;
    font-size: 1rem;
    text-transform: uppercase;
    text-align: center;
}

@media (min-width: 640px) {
    .subscription-heading {
        font-size: 1.25rem;
        margin-bottom: 0; /* Remove margin for larger screens */
    }
}

.email-input {
    padding: 0.75rem;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #4a5568; /* Tailwind's gray-700 */
    background-color: white;
    border-radius: 0.375rem; /* Tailwind's default rounded */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.15s ease-in-out;
    outline: none;
    width: 100%;
    max-width: 40%;
}

@media (min-width: 768px) {
    .email-input {
        margin-bottom: 0;
    }
}

.email-input:focus {
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5); /* Tailwind's focus outline */
}

.subscribe-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #1a202c; /* Tailwind's gray-900 */
    background-color: white;
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.15s ease-in-out;
    outline: none;
}

    .subscribe-button:hover {
        background-color: #e2e8f0; /* Tailwind's gray-300 */
        box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
    }


    /*Animation*/
@keyframes bounceIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}


    /*About styles*/

.layer {
    padding: 2rem 1rem;
}


.layer:nth-child(odd) {
    background-color: var(--secondary-color);
    /* White #ffffff;   */
    animation-delay: 0.5s;
    animation: fadeInUp 0.8s ease-out forwards 0.2s; /* Center appears first */
}

.layer:nth-child(even) {
    animation-delay: 1.5s;
    animation: slideInLeft 0.8s ease-out forwards 0.5s; /* Left slides in after */
    background-color: whitesmoke;
    /*lightskyblue;*/
    /* Light Blue #e3f2fd; */
}

.image-column img {
    max-width: 100%;
    border-radius: 10px;
}
.grid-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
}
.grid-item,
.text-column {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-in-out;
}

    /* When visible */
    .grid-item.animate,
    .text-column.animate {
        opacity: 1;
        transform: translateY(0);
    }
/*.grid-item img {
    width: 90%;*/ /* Ensures images scale within their grid item */
    /*height: auto;*/ /* Maintains aspect ratio */
    /*object-fit: cover;*/ /* Ensures images fill their container without distortion */
    /*border-radius: 10px;*/ /* Optional: Adds rounded corners for a cleaner look */
    /*margin-top:5px;
}*/
    .grid-item img:hover {
        transform: scale(1.05);
        transition: 0.3s ease-in-out;
    }
.text-column h2 {
    font-size: 2rem;
    font-weight: bold;
    text-align: justify;
}

.text-column p {
    font-size: 1rem;
    color: #555;
    text-align:justify;
}

.about-grid {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Desktop layout */
@media (min-width: 769px) {
    .about-grid {
        flex-direction: row;
    }
}

/* Mobile layout: stack vertically, image first */
@media (max-width: 768px) {
    .about-grid {
        flex-direction: column;
    }

        .about-grid .image-column {
            order: -1; /* Always show image on top */
        }
        .about-grid .grid-item {
            order: -1; /* Always show image on top */
        }
    
    .about-grid .text-column {
        order: 0;
    }
}






