/* 
 * IEEE-CICON 2026 Stylesheet
 * Exact replication of VNIT SEFET 2026 design
 * Color theme verified from original site
 */

/* CSS Variables - Exact colors from VNIT site */
:root {
    --primary-maroon: #813C54;
    --ieee-blue: #00629B;
    --glow-blue: rgba(0, 102, 255, 0.9);
    --body-bg: #FAFAFA;
    --footer-bg: #1F2937;
    --text-color: #505050;
    --nav-link-color: #64748B;
    --white: #FFFFFF;
    --light-gray: #F3F4F6;
    --border-color: #E5E7EB;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    background-color: var(--body-bg);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
}


/* Blue Glow Effect - The signature VNIT SEFET look */
/* DISABLED - Uncomment below to restore the blue glow effect
#preact-border-shadow-host {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 9999;
    box-shadow: inset 0 0 80px var(--glow-blue);
}
*/

/* Main Container */
.main-container {
    background-color: var(--white);
    min-height: 100vh;
    position: relative;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary-maroon);
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

a {
    color: var(--nav-link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--ieee-blue);
}

/* Logo Row */
/* .logo-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 20px;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;   
}

.logo-row img {
    height: clamp(30px, 4vw, 80px);
    width: auto;
    flex-shrink: 0;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-row a:hover img {
    transform: scale(1.1);
} */

.logo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;;
    padding: 16px 20px;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: nowrap;
    white-space: nowrap;
    width: 100%;
    max-width: 100%;
}

.logo-row,
.logo-row a,
.logo-row img {
    min-width: 0;
}

.logo-row a {
    flex-shrink: 0;
}

.logo-row img {
    display: block;
    height: clamp(30px, 4vw, 80px);
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-row a:hover img {
    transform: scale(1.1);
}






/* Navigation Bar */
.navbar {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 16px 24px;
    color: var(--nav-link-color);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animated underline effect */
.nav-link::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--ieee-blue), var(--primary-maroon));
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::before {
    width: 60%;
}

.nav-link:hover {
    color: var(--primary-maroon);
}

.nav-link.active {
    color: var(--ieee-blue);
    font-weight: 600;
}

.nav-link.active::before {
    width: 60%;
}

/* Dropdown indicator for items with submenus */
.dropdown>.nav-link::after {
    content: ' ▼';
    font-size: 0.7rem;
    margin-left: 0.3rem;
    transition: all 0.3s ease;
    display: inline-block;
    opacity: 0.7;
}

.dropdown:hover>.nav-link::after {
    opacity: 1;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    min-width: 240px;
    box-shadow: 0 8px 24px rgba(0, 98, 155, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    border-radius: 12px;
    overflow: hidden;
    animation: slideDown 0.3s ease;
    border: 1px solid rgba(0, 98, 155, 0.1);
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 14px 20px;
    color: var(--text-color);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
    position: relative;
}

.dropdown-content a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--ieee-blue), var(--primary-maroon));
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: linear-gradient(90deg, rgba(0, 98, 155, 0.08), transparent);
    color: var(--primary-maroon);
    padding-left: 24px;
}

.dropdown-content a:hover::before {
    transform: scaleY(1);
}

/* Nested Dropdown */

.dropdown-nested {
    position: relative;
    
}

.dropdown-nested-content {
    display: none;
    position: absolute;
    right: 100%;
    top: 0;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 98, 155, 0.15);
    border-radius: 4px;
    z-index: 3000;
}

.dropdown-nested:hover .dropdown-nested-content {
    display: block;
    
}


/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-maroon);
    cursor: pointer;
    padding: 10px;
}

/* Hero Banner */
.hero-banner {
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-gray);
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-title {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--white);
}

/* Main Content */
.main-content {
    padding: 40px 20px;
}

section {
    margin-bottom: 60px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--ieee-blue);
    display: inline-block;
    width: 100%;
}

/* Welcome Section */
.welcome-section {
    max-width: 900px;
    margin: 0 auto;
    text-align: justify;
}

.welcome-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Download Button */
.btn-download {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--ieee-blue);
    color: var(--white);
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-download:hover {
    background-color: var(--primary-maroon);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Important Dates Grid */
.dates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.date-card {
    background-color: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid var(--ieee-blue);
}

.date-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 98, 155, 0.2);
}

.date-title {
    font-size: 1.1rem;
    color: var(--primary-maroon);
    font-weight: 600;
    margin-bottom: 10px;
}

/*--------------------------------RM updates CSS--------------------------------------*/
.dates-grid1 {
    display: list-item;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    
}

.date-card1 {
    background-color: var(--white);
    padding: 10px;
    margin: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid var(--ieee-blue);
}

.date-card1:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 98, 155, 0.2);
}

.date-title1 {
    font-size: 1.1rem;
    color: var(--primary-maroon);
    font-weight: 600;
    margin-bottom: 10px;
}

/*-----------------------------------------update end------------------------*/

.date-value {
    font-size: 1.05rem;
    color: var(--ieee-blue);
    font-weight: 500;
}

/* Tracks Section */
.tracks-list {
    list-style: none;
    max-width: 900px;
    margin: 0 auto;
}

.track-item {
    padding: 15px 20px;
    margin-bottom: 12px;
    background-color: var(--light-gray);
    border-left: 4px solid var(--ieee-blue);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.track-item:hover {
    background-color: #E0E7FF;
    border-left-color: var(--primary-maroon);
    transform: translateX(5px);
}

.track-item strong {
    color: var(--primary-maroon);
}

/* Collapsible/Accordion */
details {
    margin-bottom: 20px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

summary {
    padding: 15px 20px;
    cursor: pointer;
    background-color: var(--light-gray);
    font-weight: 600;
    color: var(--primary-maroon);
    user-select: none;
    transition: background-color 0.3s ease;
}

summary:hover {
    background-color: #E0E7FF;
}

details[open] summary {
    background-color: var(--ieee-blue);
    color: var(--white);
}

details .content {
    padding: 20px;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--white);
    padding: 30px 20px;
    text-align: center;
    margin-top: 60px;
}

footer p {
    color: var(--white);
    margin: 0;
}

footer a {
    color: var(--white);
    text-decoration: underline;
}

footer a:hover {

    color: #93C5FD;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        width: 100%;
    }

    .dropdown-content,
    .dropdown-nested-content {
        position: static;
        box-shadow: none;
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .dates-grid {
        grid-template-columns: 1fr;
    }

    .logo-row {
        gap: 0px;
    }

    .logo-row img {
        height: 20px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.p-1 {
    padding: 0.5rem;
}

.p-2 {
    padding: 1rem;
}

.p-3 {
    padding: 1.5rem;
}

.p-4 {
    padding: 2rem;
}

/* Boxed Sections Styling */
.container section {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 98, 155, 0.1);
    transition: all 0.3s ease;
}

.container section:hover {
    box-shadow: 0 6px 20px rgba(0, 98, 155, 0.15);
    transform: translateY(-2px);
}

.container section h2 {
    color: var(--ieee-blue);
    margin-bottom: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-maroon);
    font-size: 1.8rem;
}

.container section h3 {
    color: var(--primary-maroon);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Enhanced table styling */
table {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

table th {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

table tbody tr {
    transition: background-color 0.2s ease;
}

table tbody tr:hover {
    background-color: rgba(0, 98, 155, 0.05);
}

/* Announcement Banner */
.announcement-banner {
    background: linear-gradient(90deg, var(--ieee-blue), var(--primary-maroon), var(--ieee-blue));
    color: white;
    padding: 12px 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.announcement-content {
    display: flex;
    white-space: nowrap;
    animation: scroll-left 30s linear infinite;
}

.announcement-banner:hover .announcement-content {
    animation-play-state: paused;
}

.announcement-item {
    padding: 0 50px;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.3px;
}

@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* ================= HERO IMAGE SLIDER ================= */

.hero-slider {
    position: relative;
    height: 520px;
    overflow: hidden;
    background: var(--light-gray);
}

.slides {
    display: flex;
    height: 100%;
    transition: transform 0.8s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    position: absolute;
    inset: 0;
}

.slide.active {
    opacity: 1;
    position: relative;
}

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


/* Responsive */
@media (max-width: 768px) {
    .hero-slider {
        height: 260px;
    }

    .slider-btn {
        font-size: 1.5rem;
    }
}

/* ================= IMAGE SLIDER SIZE CONTROL ================= */

.hero-banner,
.slider-container {
    width: 100%;
    overflow: hidden;
}

/* Default (Desktop first) */
.slider-container {
    height: 560px;
}

/* Tablet / Small laptop */
@media (max-width: 1024px) {
    .slider-container, .hero-banner {
        height: 420px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .hero-banner, .slider-container {
        height: 300px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .hero-banner, .slider-container {
        height: 220px;
    }
}

/* Images */
.slider-container img,
.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* KEY */
    display: block;
}



