:root{
    --logo-color2-blue:#1C8DCF;
    --logo-color1-blue:#173868;
    --logo-color1-orange:#75391F;
    --logo-color2-orange:#C5822B;
 }

 
 .user-options{
    display:flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    margin-top:-20px;
 }
 .user-choice{
    min-width: 360px;
    min-height: 100px;
    max-width:400px;
    padding: 10px;
    margin: 20px;
    background-color: var(--logo-color2-blue);
    color:White;
    text-align: center;
    font-weight:700;
    transition: 0.3s;
    box-shadow: 0 0 25px 1px #b2add3;
 }
 .user-choice:hover{
    background-color: var(--logo-color2-orange);
    box-shadow: 0 0 25px 1px #767097;
 }
 .user-choice > h4{
    display: inline-block;
    padding: 5px;
 }

 .row1{
    display:flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
 }
    
 h1, h2{
    color:var(--logo-color2-orange);
    font-style: sans-serif;
    padding: 5px;
    font-weight:900;
}
h1{
    margin: 14px auto;
    text-align: center;
    font-size: 3rem;
    z-index: 2;
}
.thumba{
    /* border: 5px solid red; */
    box-shadow: 0 0 25px 1px #c7c4e2;
    margin-top:15px;
    padding:5px;
    text-align:center;
}

@media (max-width: 412px){
    h1{
        margin: 14px auto;
        font-size: 1.8rem;
        z-index: 2;
    }
    .caption{
        font-size: 1.3rem;
    }
    .page > p {
        font-size: 1rem;
    }
}

/* my style */
.container {
    text-align: center;
    padding: 50px 20px;
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* Background Image Styling */
.bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.4; /* Dark overlay effect */
}

.container h1 {
    font-size: 32px;
    font-weight: bold;
    color: #2a2e3b;
}

p {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 20px;
}

.register-btn {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #2a2e3b;
    background-color: white;
    border: 2px solid #2a2e3b;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.register-btn:hover {
    background-color: #2a2e3b;
    color: white;
}

/* Section Layout */
.event-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 90%;
    margin: 50px auto;
    padding: 20px;
    gap: 20px;
}

/* Left Text Block */
.text-content {
    flex: 1;
    max-width: 900px;
    text-align: left;
}

.text-content h1 {
    font-size: 40px;
    font-weight: bold;
    color: #222;
    text-align: left;
}

.text-content p {
    font-size: 25px;
    color: #555;
    line-height: 1.6;
    text-align: left;
}

/* CTA Card Styling */
.cta-card {
    background: linear-gradient(135deg, #007BFF, #004aad); /* Gradient background */
    color: white;
    text-align: center;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 85%;
    margin: 30px auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Effect */
.cta-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Title */
.cta-card h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

/* Description */
.cta-card p {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #ffffff;
}

/* Button */
.cta-btn {
    background: white;
    color: #004aad;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.cta-btn:hover {
    background: #ffcc00;
    color: #333;
}

/* Grid Layout */
.event-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Always 3 columns */
    gap: 40px;
    margin: auto 12%;
}

/* Event Card Styling */
.event-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Image Styling */
.event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Event Info Styling */
.event-info {
    padding: 15px;
}

/* Event Title */
.event-info h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 5px;
}

/* Event Date */
.event-date {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 10px;
}

/* Description */
.event-info p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 10px;
}

/* Event Link */
.event-info a {
    font-size: 0.9rem;
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
}

.event-info a:hover {
    text-decoration: underline;
}

/* Hover Effect */
.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

#expandable-img {
    width: 300px; /* Small size */
    height: auto;
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}

#expandable-img:hover {
    transform: scale(1.7) translateX(-30px);
}

/* Modal Background */
.modal {
    display: none; /* Initially hidden */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay */
    backdrop-filter: blur(5px); /* Slight blur effect */
}

/* Modal Content Box */
.modal-content {
    background: #fff;
    width: 45%;
    max-width: 600px;
    margin: 8% auto;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
}

/* Responsive Modal for Mobile */
@media screen and (max-width: 768px) {
    .modal-content {
        width: 90%; /* Full width on small screens */
        margin: 10% auto;
        padding: 20px;
    }
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 26px;
    cursor: pointer;
    color: #373333;
    font-weight: bold;
    transition: 0.3s;
}

.close-btn:hover {
    color: #d31717;
}

/* Modal Heading */
.modal-content h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 15px;
}

/* Instructions List */
.modal-content ol {
    text-align: left;
    padding-left: 20px;
    font-size: 16px;
    line-height: 1.6;
    color: #444;
}

.modal-content ol li {
    margin: 8px 0;
}

/* Event List */
.modal-content ul {
    list-style-type: none;
    padding: 0;
    margin-top: 15px;
}

.modal-content ul li {
    margin: 12px 0;
    padding: 10px;
    background: #f4f4f4;
    border-radius: 8px;
    transition: 0.3s;
}

.modal-content ul li:hover {
    background: #ddd;
    transform: scale(1.05);
}

/* Event Links */
.modal-content ul li a {
    text-decoration: none;
    color: #007bff;
    font-size: 18px;
    font-weight: 600;
    transition: 0.3s;
}

.modal-content ul li a:hover {
    color: #0056b3;
}


/* Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767px) {
    h1, h2{
        margin: 14px auto;
        font-size: 2.2rem;
        z-index: 2;
    }
    .caption{
        font-size: 1.5rem;
    }
    
    .event-section {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cta-card img {
        width: 100%;
        height: 200px;
    }

    .cta-info {
        width: 100%;
        padding: 20px;
    }

    .user-options {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .user-choice {
        width: 100%;
        max-width: 360px;
        box-sizing: border-box;
        padding: 15px;
    }

    .event-section {
        flex-direction: column;
        text-align: center;
    }

    .text-content {
        text-align: center;
    }

    .event-grid {
        grid-template-columns: 1fr;
        /* margin: auto 20px; */
    }

    .modal-content {
        width: 95%;
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.6rem;
    }

    .cta-btn, .register-btn {
        width: 100%;
    }

    .event-card img {
        height: 150px;
    }

    #expandable-img {
        width: 100%;
    }

    #expandable-img:hover {
        transform: none; /* Disable hover effect on mobile */
    }

    .modal-content {
        width: 90%; /* Adjust width for better fit */
        max-width: none; /* Remove any max-width restriction */
        padding: 15px; /* Reduce padding for better spacing */
        border-radius: 10px; /* Add slight rounding for a cleaner look */
        top: 10%; /* Adjust positioning */
    }

    .modal-header, .modal-footer {
        padding: 10px; /* Reduce padding inside modal */
        text-align: center; /* Center text for better appearance */
    }

    .modal-body {
        max-height: 60vh; /* Prevent excessive height */
        overflow-y: auto; /* Enable scrolling if content is long */
    }
}

.Collaboration_section {
    position: relative; 
    text-align: center;
    margin: 20px 0;
    overflow: hidden;
    white-space: nowrap;
}

.Collaboration_section > h2 {
    margin: 20px auto;
    font-size: 2.5rem;
    font-weight: 700;
    color: #222;
    text-align: center;
}

.collaboration_wrapper {
    width: 100%;
    overflow: hidden;
}

.collaboration_logos {
    display: flex;
    align-items: center;
    width: max-content;
    animation: moveLogos 15s linear infinite;
}

.collaboration_logos img {
    width: 140px;
    margin: 10px 40px;
}

@keyframes moveLogos {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .collaboration_logos img {
        width: 100px;
        margin: 7px 20px;
    }
}
@media (max-width: 768px) {
    .collaboration_logos img {
        width: 70px;
        margin: 5px 15px;
    }
}
@media (max-width: 400px) {
    .collaboration_logos img {
        width: 60px;
        margin: 5px 10px;
    }
}
