/* General Styles */
body {
    line-height: 1.6;
    overflow-x: hidden;
    animation: fadeIn 0.8s ease-in-out;
}

.navbar {
    background-color: #000;
}

.custom-alert {
    display: none;
    position: fixed;
    top: 38px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    padding: 0px 20px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: auto;
    min-width: 250px;
    max-width: 400px;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
    /* Smooth transition */
}

/* Success message */
.custom-alert.success {
    background: #28a745;
    /* Green */
}

/* Error message */
.custom-alert.error {
    background: #dc3545;
    /* Red */
}

/* Close button */
.close-alert {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    font-weight: bold;
    margin-left: 15px;
    cursor: pointer;
}

.close-alert:hover {
    color: #ccc;
}

.content {
    padding: 105px 10%;
}

/* Full-Width Image */
.content img {
    width: 100%;
    height: 350px;
    object-fit: fill;
    border-radius: 12px;
    display: block;
    margin-bottom: 20px;
    margin-top: 30px;
}

.content h2,
.content h3 {
    color: #222;
    margin-bottom: 10px;
}

.content h2 {
    border-bottom: 2px solid #007BFF;
    padding-bottom: 5px;
    margin-top: 50px;
}

/* Text Styling */
.content p {
    font-size: 1.1em;
    color: #555;
    margin: 5px 0;
}

/* Key Highlights */
.content ul {
    list-style: none;
    padding: 0;
}

.content ul li {
    font-size: 1.1em;
    background: #007BFF;
    color: white;
    padding: 10px;
    margin: 8px 0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s ease-in-out;
}

.content ul li::before {
    content: "✔";
    font-weight: bold;
    color: white;
}

/* Hover Effect */
.content ul li:hover {
    transform: scale(1.05);
}

/* Agenda Table */
.content table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.content th,
td {
    padding: 12px;
    border: 1px solid #e0e0e0;
    text-align: left;
    transition: background 0.3s ease-in-out;
}

.content th {
    background: #007BFF;
    color: white;
}

/* Row Hover Effect */
.content tr:hover {
    background: #f0f8ff;
    color: #000;
}

.content h3:nth-of-type(3) {
    margin-top: 30px;
}

/* Speaker Profiles */
.speakers {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.speaker {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 220px;
    text-align: center;
    padding: 15px;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Speaker Hover Effect */
.speaker:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.speaker.visible {
    opacity: 1;
    transform: translateX(0);
}

.speaker img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
}

.speaker h3 {
    margin-bottom: 5px;
}

.speaker p {
    font-size: 15px;
}

/* Registration Button */
.register-btn,
.back-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 12px 20px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s ease-in-out, transform 0.2s;
}

/* Back Button Styling */
/* .back-btn {
    background: #007BFF;
} */

/* Hover Effects */
.register-btn:hover {
    background: #218838;
    transform: scale(1.05);
}

/* .back-btn:hover {
    background: #0056b3;
    transform: scale(1.05);
} */

/* Sponsors */
.sponsors {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.sponsors img {
    width: 150px;
    height: auto;
    border-radius: 8px;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Sponsor Hover Effect */
.sponsors img:hover {
    transform: scale(1.1);
}

.sponsors img.visible {
    opacity: 1;
    transform: scale(1);
}

/* Share Event Section */
.share-buttons {
    margin: 20px 0;
    text-align: center;
}

.share-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    margin: 5px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    transition: 0.3s;
}

.share-buttons a i {
    font-size: 18px;
}

/* Hover Effects */
.share-buttons .facebook:hover {
    background-color: #3b5998;
}

.share-buttons .twitter:hover {
    background-color: #1da1f2;
}

.share-buttons .linkedin:hover {
    background-color: #0077b5;
}

.share-buttons .copy-link:hover {
    background-color: #28a745;
}

/* Scroll Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animation Effects */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.download-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.download-item {
    display: flex;
    align-items: center;
    background: #f9f9f9;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 16px;
    color: #333;
    justify-content: space-between;
    transition: background 0.3s ease-in-out;
}

.download-item:hover {
    background: #f0f0f0;
}

.download-item i {
    font-size: 20px;
    color: #007bff;
    margin-right: 10px;
}

.download-btn {
    background: #007bff;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s ease-in-out;
}

.download-btn:hover {
    background: #0056b3;
}

body.dark-mode h2, body.dark-mode h3, body.dark-mode p {
    color: white;
}

body.dark-mode .speaker, body.dark-mode .speaker > h3, body.dark-mode .speaker > p {
    color: #000;
}

@media screen and (max-width: 480px) {
    .content {
        padding: 80px 5%;
    }

    .content img {
        height: auto;
        border-radius: 8px;
    }

    /* Speaker Section */
    .speakers {
        flex-direction: column;
        align-items: center;
    }

    .speaker {
        width: 90%;
        text-align: center;
    }

    .speaker img {
        height: 120px;
        border-radius: 50% !important;
    }

    /* Sponsor Section */
    .sponsors {
        flex-direction: column;
        align-items: center;
    }

    /* Agenda Table */
    .content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* Adjust Buttons */
    .register-btn,
    .back-btn {
        width: 85%;
        text-align: center;
    }

    /* Share Buttons */
    .share-buttons a {
        display: block;
        width: 90%;
        margin: 5px 0;
    }

    .content ul li:hover,
    .content tr:hover,
    .sponsors img:hover,
    .speaker:hover,
    .register-btn:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    .content tr:hover {
        background: none;
    }
}

/* Responsive Design */
@media screen and (min-width: 481px) and (max-width: 768px) {
    .content {
        padding: 80px 5%;
    }

    .content img {
        height: auto;
        border-radius: 8px;
    }

    /* Speaker Section */
    .speakers {
        flex-direction: column;
        align-items: center;
    }

    .speaker {
        width: 90%;
        text-align: center;
    }

    .speaker img {
        height: 120px;
        border-radius: 50% !important;
    }

    /* Sponsor Section */
    .sponsors {
        flex-direction: column;
        align-items: center;
    }

    /* Agenda Table */
    .content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* Adjust Buttons */
    .register-btn,
    .back-btn {
        width: 20%;
        text-align: center;
    }

    /* Share Buttons */
    .share-buttons a {
        display: block;
        width: 90%;
        margin: 5px 0;
    }

    .content ul li:hover,
    .content tr:hover,
    .sponsors img:hover,
    .speaker:hover,
    .register-btn:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    .content tr:hover {
        background: none;
    }
}