/* styles.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #171f29;
}

header, main, footer {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    background: url('text-decoration\ none;\ navbar\ bg.png') no-repeat center center;
    background-size: cover;
}

.container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; /* Make the container flexible */
}

.top-navbar {
    background-color: rgba(211, 125, 125, 0.8);
    padding: 10px 0;
    border-bottom: #ca2121;
}

.top-navbar .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* Make the container flexible */
}

.top-navbar a {
    color: #333;
    text-decoration: none;
    margin: 0 10px;
    font-size: 14px;
}

.top-navbar a.highlight {
    border-radius: 3px;
}

.top-navbar a.right {
    margin-left: auto;
    background-color: #d4d2aa;
    padding: 5px 10px;
    border-radius: 5px;
}

.main-navbar {
    background-color: rgba(255, 255, 255, 0);
    padding: 0px 0;
    border-bottom: 1px solid #ca2121;
}

.logo-section {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Make the logo section flexible */
}

.logo {
    height: 90px;
    margin-right: 20px;
    border-radius: 100px;
    background-blend-mode: unset;
}

.title {
    color: #A00000;
}

.title h1 {
    margin: 0;
    font-size: 24px;
}

.title p {
    margin: 0;
    font-size: 14px;
    color: #333;
}

nav {
    display: flex;
    flex-wrap: wrap; /* Make the navigation flexible */
}

nav a {
    color: #A00000;
    text-decoration: none;
    margin: 0 15px;
    font-size: 16px;
    font-weight: bold;
}

.search-bar {
    display: flex;
    align-items: center;
    margin-top: 10px; /* Add some spacing on smaller screens */
}

.search-bar input {
    padding: 5px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.search-bar button {
    background-color: #A00000;
    color: #fff;
    border: none;
    padding: 6px 10px;
    margin-left: 5px;
    cursor: pointer;
    border-radius: 3px;
}

.mainPg {
    position: relative;
    text-align: center;
}

.mainPg img {
    width: 100%;
    height: auto;
    display: block;
}

.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
    font-size: 2em;
}

.footer-container {
    background-color: #333;
    color: white;
    padding: 20px 0;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.footer-section {
    margin: 20px;
    flex: 1;
    min-width: 200px;
}

.footer-section h2 {
    color: #ff8c00;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: auto;

}

.footer-section ul li a:hover {
    color: #ff8c00;
}

.footer-section p {
    line-height: 1.6;
    overflow: hidden;
}

.footer-section .social a {
    margin: 0 10px;
    display: inline-block;
    width: 40px;
    height: 40px;
}

.footer-section .social img {
    width: 100%;
    height: 100%;
    transition: transform 0.3s;
}

.footer-section .social a:hover img {
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    background-color: #222;
    color: #ccc;
    padding: 10px 0;
}

.footer-bottom p {
    margin: 0;
}

.slider {
    position: relative;
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    border: 2px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(141, 43, 43, 0.1);
    margin: 20px auto;
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
    position: relative;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s;
    z-index: 2;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.418);
}

.slider::before, .slider::after {
    content: '';
    position: absolute;
    top: 0;
    width: 50px;
    height: 100%;
    z-index: 1;
}

.slider::before {
    left: 0;
    background: linear-gradient(to right, #00000085, transparent);
}

.slider::after {
    right: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.507), transparent);
}

.underdate {
    color: #ff8c00;
    margin-top: 10%;
    display: block;
    padding-left: 150px;
    background-color: #7a242488;
    margin-top: auto;
    border-bottom: rgb(196, 140, 35) 8px solid;
}

#underdates {
    color: #ff8c00;
    background-color: #7a242488;
    padding-left: 150px;
}

#event {
    padding-left: 150px;
    color: #d4d2aa;
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    .header, main, footer {
        padding: 10px;
    }

    .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .top-navbar .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo {
        margin-bottom: 10px;
    }

    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-bar {
        width: 100%;
        margin-top: 10px;
    }

    .slider {
        width: 100%;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        margin: 10px 0;
    }
}

#ict {
    width: 60px;
    height: auto;
    position: sticky;
    top: 20px;
    border-radius: 100px;
    margin-left: 94%;
    background-color: #9ec9ff;
    
}
.both {
    margin-left: 48%;
    color: #ff8c00;
}
#eve {
    color: rgba(173, 66, 47, 0.863);
    font-family: sans-serif;
    margin-left: 46%;
}

/* Back to Top Button Style */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background-color: rgba(255, 0, 0, 0.6); /* Red color with transparency */
    color: white;
    border: none;
    padding: 15px;
    border-radius: 50%;
    text-align: center;
    cursor: pointer;
    display: none;
    font-size: 24px;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    text-decoration: none;
}

.back-to-top:hover {
    background-color: rgba(255, 0, 0, 0.8); /* Darker red on hover */
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        padding: 10px;
        font-size: 18px;
    }
}
