/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}


body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header and Navigation */
header {
    background-color: transparent; /* Transparent initially */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s ease, color 0.3s ease;
}

header.scrolled {
    background-color: #000; /* Black background when scrolled */
}

header.scrolled .logo,
header.scrolled .nav-links a {
    color: #fff; /* White text when scrolled */
}

header.scrolled .nav-links a:hover,
header.scrolled .nav-links a.active {
    color: #0066cc; /* Blue on hover and active when scrolled */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0066cc; /* Blue initially */
    transition: color 0.3s ease;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: #0066cc; /* Blue initially */
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #004d99; /* Darker blue on hover initially */
}

.nav-links a.active {
    color: #0066cc; /* Active is blue initially */
}

/* Mobile Navigation */
.menu-checkbox {
    display: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

header.scrolled .menu-toggle span {
    background-color: #fff; /* White hamburger when scrolled */
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #fff 0%, #f0f8ff 100%);
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-logo {
    flex: 0 0 30%;
    text-align: center;
}

.hero-logo img {
    max-width: 100%;
    height: auto;
    max-height: 250px; /* Adjust as needed */
}

.hero-content {
    flex: 1;
    text-align: left;
}

.hero-content h1 {
    font-size: 2.5rem;
    color: #0066cc;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
}
.registration-info {
    font-size: 0.95em;
    color: #007BFF; /* subtle highlight */
    font-weight: 500;
    margin-bottom: 10px;
    font-style: italic;
}
.reg-number {
    font-style: normal;   /* removes italic */
    font-weight: 600;     /* makes it stand out */
    color: #007BFF;          /* more formal look */
}
.address {
    font-style: normal;
    color: #555;
}
.label {
    font-weight: 600;
    color: #333;
}
.contact-email {
    margin-top: 8px;
    font-size: 1rem;
    color: #555;
}

.contact-email a {
    font-weight: 500;
}

.contact-email a:hover {
    text-decoration: underline;
}

/* Sections */
section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    text-align: center;
    font-size: 2rem;
    color: #0066cc;
    margin-bottom: 2rem;
}

/* Objective Section */
.objective {
    display: flex;
    justify-content: center;
}

.objective-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    max-width: 900px;
    text-align: left;
    width: 100%;
}

.objective-card ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.objective-card li {
    margin-bottom: 0.75rem;
    line-height: 1.5;
}


/* Team Section */
/* Swiper Team Cards */
.slide-container {
max-width: 1120px;
width: 100%;
padding: 40px 0;
}

.slide-content {
margin: 0 40px;
overflow: hidden;
border-radius: 25px;
}

.card {
border-radius: 25px;
background-color: #FFF;
}

.image-content,
.card-content {
display: flex;
flex-direction: column;
align-items: center;
padding: 10px 14px;
}

.image-content {
position: relative;
padding: 25px 0;
}

.overlay {
position: absolute;
inset: 0;
background-color: #0066cc;
border-radius: 25px 25px 0 25px;
}

.card-image {
height: 150px;
width: 150px;
border-radius: 50%;
background: #FFF;
padding: 3px;
position: relative;
}

.card-img {
height: 100%;
width: 100%;
object-fit: cover;
border-radius: 50%;
border: 4px solid #0066cc;
}

.name {
font-size: 18px;
font-weight: 500;
margin: 6px 0 2px 0;
}

.description {
font-size: 14px;
text-align: center;
color: #555;
margin: 0 0 8px 0;
}

.button {
background: #0066cc;
color: #fff;
border: none;
padding: 8px 16px;
border-radius: 6px;
cursor: pointer;
}

.button:hover {
background: #004d99;
}

.swiper-navBtn {
color: #0066cc;
}

@media (max-width: 768px) {
.slide-content {
    margin: 0 10px;
}
.swiper-navBtn {
    display: none;
}
}
/* Table Container */
.table-container {
    overflow-x: auto; /* allows horizontal scroll on small screens */
    margin: 0 auto;
    max-width: 1200px;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    margin-top: 1rem;
    font-family: 'Roboto', sans-serif;
}

thead {
    background-color: #0066cc;
    color: #fff;
}

thead th {
    padding: 12px 15px;
    font-weight: 500;
}

tbody tr {
    border-bottom: 1px solid #ddd;
}

tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

tbody td {
    padding: 10px 15px;
}

tbody tr:hover {
    background-color: #e6f0ff; /* light blue on hover */
}

/* Conference */
/* ICDCN Conference Section */
.conference-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.conference-description {
    font-size: 1.05rem;
    color: #444;
    margin-bottom: 1rem;
    line-height: 1.6;
    text-align: justify;
}

.committee-section {
    margin-top: 2.5rem;
}

.committee-section h3 {
    font-size: 1.4rem;
    color: #0066cc;
    margin-bottom: 1rem;
    text-align: center;
}

.committee-list {
    list-style: none;
    padding-left: 0;
}

.committee-list li {
    background: #f9f9f9;
    margin-bottom: 0.6rem;
    padding: 12px 16px;
    border-left: 4px solid #0066cc;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #333;
}

.conference-description em {
    font-style: italic;
    color: #555;
}

.conference-website {
    text-align: center;
    margin: 2rem 0 1.5rem;
    font-size: 1rem;
    color: #333;
}

.conference-website a {
    color: #0066cc;
    font-weight: 500;
    transition: color 0.3s ease;
}

.conference-website a:hover {
    color: #004d99;
    text-decoration: underline;
}


/* Mobile optimization */
@media (max-width: 768px) {
    .conference-description {
        font-size: 1rem;
        text-align: center;
    }

    .committee-list li {
        font-size: 0.9rem;
    }
}


/* Footer */
footer {
    background-color: #f0f8ff;
    padding: 2rem;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: #0066cc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: #004d99;
}
.social-links a i {
    font-size: 18px;
}

.footer-email {
    font-size: 0.95rem;
    color: #333; /* same as copyright */
    margin-bottom: 0.5rem;
}

.footer-email i {
    margin-right: 6px;
    color: inherit; /* same color as text */
}

.footer-email a {
    color: inherit; /* normal text color */
    font-weight: 400;
    transition: color 0.3s ease;
}

.footer-email a:hover {
    color: #0066cc; /* blue on hover */
    text-decoration: underline;
}


/* Responsiveness */
@media (max-width: 768px) {
    header.scrolled {
        background-color: #fff; /* keep mobile scrolled header white */
    }

    header.scrolled .logo {
        color: #0066cc; /* logo remains blue */
    }

    header.scrolled .nav-links a {
        color: #000; /* black text for mobile links when scrolled */
    }

    header.scrolled .nav-links a:hover,
    header.scrolled .nav-links a.active {
        color: #0066cc; /* blue hover/active on mobile */
    }

    header.scrolled .menu-toggle span {
        background-color: #000; /* hamburger black when scrolled */
    }
    nav {
        flex-direction: row;
        padding: 1rem;
    }

    .nav-links {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffffff;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        display: none;
        padding: 1rem;
    }

    .nav-links li {
        margin: 0.5rem 0;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-checkbox:checked ~ .nav-links {
        display: flex;
    }

    .menu-checkbox:checked ~ .menu-toggle span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .menu-checkbox:checked ~ .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .menu-checkbox:checked ~ .menu-toggle span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-logo {
        flex: none;
        width: 100%;
    }

    .hero-content {
        flex: none;
        width: 100%;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    section {
        padding: 2rem 1rem;
    }

    .carousel-container {
        width: calc(200px * 10); /* Smaller width on mobile */
    }

    .team-member {
        flex: 0 0 200px;
        margin: 0 0.5rem;
    }
    table, thead, tbody, th, td, tr {
        display: block;
    }

    thead tr {
        display: none; /* hide header on mobile */
    }

    tbody tr {
        margin-bottom: 1rem;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 10px;
        background-color: #fff;
    }

    tbody td {
        display: flex;
        justify-content: space-between;
        padding: 8px 10px;
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
    }

    tbody td::before {
        content: attr(data-label); /* add labels for mobile */
        font-weight: 500;
        color: #0066cc;
    }

    tbody td:last-child {
        border-bottom: 0;
    }

}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .carousel-container {
        width: calc(150px * 10); /* Even smaller on very small screens */
    }

    .team-member {
        flex: 0 0 150px;
    }
}
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background-color: #0066cc;
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
    line-height: 1; /* IMPORTANT */
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: background-color 0.3s, transform 0.3s;
}

#backToTop:hover {
    background-color: #004d99;
    transform: translateY(-3px);
}