* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    color: #333;
    scroll-behavior: smooth;
}

/* Improved scrolling */
html {
    scroll-behavior: smooth;
}

/* Navigation styles */
nav {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgb(255, 197, 90);
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-logo img {
    height: 50px;
    transition: transform 0.3s ease;
}

.nav-logo img:hover {
    transform: scale(1.05);
}

nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    text-decoration: none;
    list-style-type: none;
}

nav ul li a {
    text-decoration: none;
    color: rgb(0, 33, 94);
    font-size: 1rem;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background-color: rgba(0, 33, 94, 0.1);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    z-index: 1001;
}

.hamburger span {
    height: 3px;
    width: 100%;
    background-color: rgb(0, 33, 94);
    border-radius: 10px;
    transition: all 0.3s ease;
}

header {
    background-color: rgb(0, 33, 94);
    color: white;
    text-align: center;
    padding: 1.5rem;
    position: relative;
    z-index: 5;
}

header h1 {
    font-size: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Enhanced Hero Slider Styles */
.hero-slider {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
    z-index: 1;
    margin-bottom: 2rem; /* Add space below slider */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden; /* Hide slides by default */
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible; /* Show active slide */
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Improved slider navigation */
.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 5;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 8px 15px;
    border-radius: 30px;
}

.slider-nav button {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid white;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-nav button.active {
    background-color: white;
    transform: scale(1.2);
}

.slider-nav button:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Slide animation improvements */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(1.03);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.slide.active img {
    animation: fadeIn 1s ease-out forwards;
}

/* Responsive adjustments for slider */
@media screen and (max-width: 1024px) {
    .hero-slider {
        height: 50vh;
    }
}

@media screen and (max-width: 768px) {
    .hero-slider {
        height: 40vh;
    }

    .slider-nav {
        bottom: 15px;
        padding: 6px 12px;
    }

    .slider-nav button {
        width: 12px;
        height: 12px;
    }
}

@media screen and (max-width: 480px) {
    .hero-slider {
        height: 30vh;
    }

    .slider-nav {
        bottom: 10px;
        padding: 5px 10px;
    }

    .slider-nav button {
        width: 10px;
        height: 10px;
    }
}

/* Content styles */
.web-content {
    padding: 2rem 1rem;
    margin: 1rem auto;
    text-align: center;
    align-items: center;
    max-width: 1300px;
}

.web-content h2 {
    font-size: 2rem;
    padding: 1rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.web-content h2:after {
    content: '';
    position: absolute;
    width: 70%;
    height: 3px;
    background-color: rgb(255, 197, 90);
    bottom: 0;
    left: 15%;
    border-radius: 2px;
}

.box {
    background-color: rgb(246, 245, 245);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    padding: 2.5rem;
}

.box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.box span {
    font-size: 1.2rem;
    text-align: center;
    font-weight: bold;
    display: block;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: rgb(0, 33, 94);
}

.box p {
    font-size: 1.1rem;
    text-align: left;
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.box p bold {
    font-weight: bold;
    color: rgb(0, 33, 94);
}

/* Speaker cards */
.box[style="display: flex; justify-content: space-evenly;"] {
    display: flex;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 30px;
}

.card {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 15px;
}

.card-title {
    margin-bottom: 10px;
    color: rgb(0, 33, 94);
}

/* Bottom logo styles */
.bottom-logo {
    padding: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    background-color: #f9f9f9;
    border-radius: 10px;
    margin: 2rem auto;
    max-width: 1200px;
}

.bottom-logo img {
    width: 200px;
    max-width: 100%;
    transition: transform 0.3s ease;
}

.bottom-logo img:hover {
    transform: scale(1.05);
}

/* Footer styles */
footer {
    background-color: rgb(16, 28, 50);
    color: white;
    text-align: center;
    padding: 3rem 1.5rem;
    position: relative;
}

footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, rgb(0, 33, 94), rgb(255, 197, 90), rgb(0, 33, 94));
}

.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .contact {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.foot-text {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.foot-text p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.foot-text p a {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-decoration: none;
    color: rgb(255, 197, 90);
    transition: all 0.3s ease;
}

.foot-text p a:hover {
    color: white;
    text-decoration: underline;
}

.foot-text img {
    height: 8rem;
    max-width: 100%;
    margin: 1rem 0;
    transition: transform 0.3s ease;
}

.foot-text img:hover {
    transform: scale(1.05);
}

.foot-addr iframe {
    border-radius: 15px;
    width: 100%;
    max-width: 600px;
    height: 300px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.foot-addr iframe:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

/* Improved link styles */
a {
    transition: all 0.3s ease;
}

/* Responsive media queries */
@media screen and (min-width: 992px) {
    .hamburger {
        display: none;
    }

    nav ul {
        display: flex !important;
        flex-direction: row;
    }
}

@media screen and (max-width: 1024px) {
    .hero-slider {
        height: 50vh;
    }

    .box {
        padding: 2rem;
    }
}

@media screen and (max-width: 991px) {
    nav {
        padding: 1rem;
        position: relative;
    }

    .nav-logo img {
        height: 40px;
    }

    .hamburger {
        display: flex;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgb(255, 197, 90);
        width: 100%;
        text-align: center;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 999;
    }

    nav ul.active {
        display: flex;
        animation: fadeIn 0.4s ease;
    }

    nav ul li a {
        display: block;
        padding: 10px;
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    header h1 {
        font-size: 1.2rem;
    }

    .hero-slider {
        height: 40vh;
    }

    .web-content h2 {
        font-size: 1.5rem;
    }

    .box {
        padding: 1.5rem;
    }

    .box span {
        font-size: 1.1rem;
    }

    .box p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

@media screen and (max-width: 768px) {
    .nav-logo img {
        height: 35px;
    }

    .hero-slider {
        height: 35vh;
    }

    .slider-nav button {
        width: 12px;
        height: 12px;
    }

    .web-content {
        padding: 1.5rem 1rem;
    }

    .web-content h2 {
        font-size: 1.4rem;
    }

    .box {
        padding: 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    .nav-logo img {
        height: 30px;
    }

    header h1 {
        font-size: 1rem;
    }

    .hero-slider {
        height: 30vh;
    }

    .web-content {
        padding: 1rem 0.5rem;
        margin: 0.5rem auto;
    }

    .web-content h2 {
        font-size: 1.2rem;
        padding: 0.8rem;
    }

    .box {
        padding: 1.2rem 1rem;
    }

    .box span {
        font-size: 1rem;
    }

    .box p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .foot-text p, .foot-text p a {
        font-size: 0.9rem;
    }

    .foot-text img {
        height: 6rem;
    }

    .foot-addr iframe {
        height: 250px;
    }
}

/* Smooth appearance animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.web-content {
    animation: fadeUp 0.6s ease-out;
}

/* Fix for mobile menu */
@media screen and (max-width: 991px) {
    nav ul.active {
        display: flex;
    }

    nav ul {
        transition: all 0.4s ease;
    }
}
