@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Montserrat:wght@400;600;700&display=swap');

:root {
    --primary-color: #003366;
    --secondary-color: #e65100;
    --text-color: #333;
    --nav-bg: #002244;
    --white: #ffffff;
    --nav-height: 80px;
    --marquee-height: 40px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    padding-top: calc(var(--nav-height) + var(--marquee-height));
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; color: var(--primary-color); margin-bottom: 1rem; }
a { text-decoration: none; color: var(--primary-color); transition: color 0.3s ease; }
a:hover { color: var(--secondary-color); }

/* --- ANIMATIONS --- */
.reveal-text { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal-text.visible { opacity: 1; transform: translateY(0); }

/* --- NAVBAR --- */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    background: var(--nav-bg);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 1000; padding: 0 3%; height: var(--nav-height);
    display: flex; justify-content: space-between; align-items: center;
}
/* --- NAVBAR LOGO UPDATES --- */

/* Update the existing .logo class to align image and text */
.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
    white-space: nowrap;
    font-family: 'Montserrat', sans-serif;
    /* Add Flexbox for alignment */
    display: flex;
    align-items: center;
    gap: 12px; /* Spacing between image and text */
}

/* Add style for the new SVG logo image */
.nav-logo-img {
    height: 70px; /* Adjust height to fit nicely within the 80px navbar */
    width: auto;
    /* This filter turns a black SVG into a pure white SVG to contrast with the dark navbar */
    filter: brightness(0) invert(1); 
}
.nav-links { list-style: none; display: flex; gap: 15px; align-items: center; flex-wrap: wrap; font-family: 'Montserrat', sans-serif; }
.nav-links > li { position: relative; }
.nav-links li a { font-weight: 500; font-size: 1rem; color: #e0e0e0; padding: 10px 12px; display: block; white-space: nowrap; font-family: 'Montserrat', sans-serif; }
.nav-links, .nav-links li, .dropdown-content, .dropdown-content li { list-style: none; padding: 0; margin: 0; }
.nav-links li a:hover, .nav-links li a.active { color: var(--secondary-color); }

/* --- DROPDOWNS --- */
.dropdown-content { display: none; position: absolute; background-color: #ffffff; min-width: 220px; max-width: 280px; box-shadow: 0 8px 16px rgba(0,0,0,0.2); z-index: 1001; top: 100%; left: 0; border-top: 3px solid var(--secondary-color); border-radius: 0 0 4px 4px; }
.nav-links > li:nth-last-child(-n+3) .dropdown-content { left: auto; right: 0; }
.dropdown-content li { width: 100%; }
.dropdown-content li a { color: #333 !important; padding: 12px 16px; display: block; text-transform: none; font-size: 0.9rem; border-bottom: 1px solid #f1f1f1; white-space: normal; }
.dropdown-content li:last-child a { border-bottom: none; }
.dropdown-content li a:hover { background-color: #f8f9fa; color: var(--secondary-color) !important; padding-left: 20px; }
.nav-links > li:hover .dropdown-content { display: block; }
.dropbtn::after { content: ' ▼'; font-size: 0.65em; vertical-align: middle; margin-left: 3px; }

/* Mobile Menu Toggle */
.mobile-menu-toggle { display: none; flex-direction: column; cursor: pointer; gap: 5px; }
.mobile-menu-toggle span { width: 25px; height: 3px; background: var(--white); transition: 0.3s; border-radius: 2px; }

/* --- MARQUEE --- */
.marquee { position: fixed; top: var(--nav-height); left: 0; width: 100%; height: var(--marquee-height); background: var(--secondary-color); color: white; display: flex; align-items: center; overflow: hidden; z-index: 999; }
.marquee-content { display: inline-block; padding-left: 100%; white-space: nowrap; animation: marquee 30s linear infinite; font-weight: 600; font-size: 0.95rem; }
@keyframes marquee { 0% { transform: translate(0, 0); } 100% { transform: translate(-100%, 0); } }

/* --- HERO --- */
.hero-slider { position: relative; width: 100%; height: 85vh; overflow: hidden; background: #000; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.5s ease-in-out; background-size: cover; background-position: center; }
.slide.active { opacity: 1; }
.slide::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); }
.hero-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; color: var(--white); z-index: 2; width: 90%; max-width: 1200px; }
.hero-content h1 { font-size: clamp(2rem, 5vw, 3.5rem); color: var(--white); font-weight: 800; text-shadow: 2px 2px 8px rgba(0,0,0,0.8); margin-bottom: 10px; line-height: 1.2; }
.hero-content h2 { font-size: clamp(1rem, 3vw, 1.4rem); color: #ffd700; font-weight: 500; margin-bottom: 10px; }

/* --- THEME VISUAL --- */
.theme-visual-container { margin: 0 auto; display: flex; flex-direction: column; align-items: center; max-width: 1200px; width: 95%; }
.theme-box { background: linear-gradient(to right, var(--primary-color), var(--secondary-color)); color: white; padding: 15px 30px; font-family: 'Montserrat', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; border-top-left-radius: 8px; border-top-right-radius: 8px; width: 100%; text-align: center; font-size: 1.4rem; box-shadow: 0 -2px 10px rgba(0,0,0,0.1); z-index: 2; }
.theme-image { width: 100%; height: auto; border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; border: 1px solid #ddd; border-top: none; box-shadow: 0 10px 25px rgba(0,0,0,0.15); display: block; }

/* --- SECTIONS & TITLES --- */
.section { padding: 60px 8%; width: 100%; }
.section-title { text-align: center; margin: 0 auto 50px auto; font-size: 2.2rem; position: relative; max-width: 800px; display: block; width: 100%; }
.section-title::after { content: ''; display: block; width: 60px; height: 4px; background: var(--secondary-color); margin: 15px auto 0; }
.page-hero { background: linear-gradient(to right, #003366, #004d99); color: white; padding: 60px 8%; text-align: center; }
.page-hero h1 { color: white; margin: 0; font-size: 2.5rem; }

/* --- BUTTONS --- */
.btn { display: inline-block; padding: 12px 25px; margin: 10px; background: var(--secondary-color); color: var(--white); font-weight: 600; border-radius: 4px; border: none; cursor: pointer; transition: all 0.3s ease; }
.btn:hover { background: #bf360c; color: white; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.2); }
.btn-outline { background: transparent; border: 2px solid white; }
.btn-outline:hover { background: white; color: var(--primary-color); }

/* --- TABLES --- */
.dates-table-container { max-width: 800px; margin: 0 auto; box-shadow: 0 5px 15px rgba(0,0,0,0.1); border-radius: 8px; overflow: hidden; }
.dates-table { width: 100%; border-collapse: collapse; background: white; }
.dates-table th { background: var(--primary-color); color: white; padding: 20px; text-align: left; font-size: 1.1rem; }
.dates-table td { padding: 18px 20px; border-bottom: 1px solid #eee; color: #555; font-weight: 500; }
.dates-table tr:hover td { background: #f9f9f9; color: var(--primary-color); }

/* --- COMMITTEES --- */
.about-container { max-width: 1000px; margin: 0 auto; background: #fff; padding: 40px; border-radius: 8px; box-shadow: 0 0 20px rgba(0,0,0,0.05); }
.about-highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 30px; }
.committee-group { margin-bottom: 50px; }
.group-title { background: #f4f6f9; padding: 12px 20px; border-left: 5px solid var(--secondary-color); font-size: 1.4rem; color: var(--primary-color); margin-bottom: 25px; font-weight: 700; }
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 25px; }
.member-card { background: white; padding: 20px; border-radius: 6px; border: 1px solid #eee; box-shadow: 0 3px 6px rgba(0,0,0,0.03); transition: all 0.3s ease; text-align: center; }
.member-card:hover { transform: translateY(-5px); border-color: var(--secondary-color); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.member-name { font-weight: 700; color: var(--primary-color); font-size: 1.1rem; margin-bottom: 5px; }
.member-affil { font-size: 0.9rem; color: #555; }

/* --- FOOTER --- */
footer { background: #1a1a1a; color: #ccc; padding: 50px 8% 20px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.footer-col h4 { color: white; border-bottom: 2px solid var(--secondary-color); padding-bottom: 10px; margin-bottom: 15px; display: inline-block;}
.footer-col a { color: #ccc; display: block; margin: 8px 0; }
.footer-col a:hover { color: var(--secondary-color); }

/* --- CFP SPECIAL STYLES (Fixed Alignment) --- */
.topics-list-container { columns: 2; column-gap: 40px; max-width: 1000px; margin: 0 auto 50px auto; }
.acknowledgment-section { display: flex; flex-direction: column; align-items: center; gap: 60px; background-color: #fff; }

.submission-card { 
    background-color: #e0f4ff; padding: 40px; border-radius: 12px; max-width: 700px; width: 100%; 
    text-align: left; /* Content is left */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
}

/* Force Headers inside Cards/Sections to be CENTERED */
.submission-card .section-title,
.acknowledgment-content .section-title {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.submission-card p { font-size: 1.1rem; color: #444; margin-bottom: 15px; }
.portal-date { font-size: 1.2rem !important; margin-bottom: 25px !important; }
.btn-portal { background-color: #007bff; padding: 15px 30px; font-size: 1.1rem; border-radius: 8px; color: white; display: inline-block; }
.btn-portal:hover { background-color: #0056b3; color: white; }

.acknowledgment-content { 
    max-width: 900px; 
    text-align: left; /* Paragraphs left */
}
.acknowledgment-content p { font-size: 1.15rem; line-height: 1.8; color: #555; }

/* Smooth scrolling */
html { scroll-behavior: smooth; }
:target { scroll-margin-top: 150px; }

/* --- RESPONSIVE --- */
@media (max-width: 1200px) {
    .nav-links { gap: 10px; }
    .nav-links li a { font-size: 0.8rem; padding: 10px 8px; }
    .theme-visual-container { max-width: 90%; }
}

@media (max-width: 992px) {
    .navbar { padding: 0 2%; }
    .mobile-menu-toggle { display: flex; }
    .nav-links { position: fixed; top: var(--nav-height); left: -100%; width: 100%; height: calc(100vh - var(--nav-height)); background: var(--nav-bg); flex-direction: column; align-items: center; justify-content: flex-start; padding: 20px 0 40px 0; gap: 0; transition: left 0.3s ease; overflow-y: auto; -webkit-overflow-scrolling: touch; }
    .nav-links.active { left: 0; }
    .nav-links > li { width: 90%; max-width: 400px; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .nav-links li a { width: 100%; padding: 15px 20px; font-size: 1rem; }
    .nav-links > li.active .dropdown-content { display: block; }
    .dropdown-content { position: static; box-shadow: none; border-top: none; border-left: 3px solid var(--secondary-color); background: rgba(0,0,0,0.3); min-width: 100%; max-width: 100%; display: none; border-radius: 0; }
    .nav-links > li:hover .dropdown-content { display: block; }
    .dropdown-content li a { color: #e0e0e0 !important; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 12px 20px 12px 30px; }
    .dropdown-content li a:hover { background: rgba(230,81,0,0.2); color: var(--secondary-color) !important; padding-left: 35px; }
    .dropbtn::after { float: right; }
    body { padding-top: calc(var(--nav-height) + var(--marquee-height)); }
    .section { padding: 40px 5%; }
}

@media (max-width: 768px) {
    :root { --nav-height: 70px; }
    .logo { font-size: 1.3rem; }
    .hero-slider { height: 70vh; }
    .section-title { font-size: 1.8rem; }
    .page-hero h1 { font-size: 2rem; }
    .about-container { padding: 30px 20px; }
    .member-grid { grid-template-columns: 1fr; }
    .dates-table th, .dates-table td { padding: 12px 15px; font-size: 0.9rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .topics-list-container { columns: 1; }
    .submission-card { padding: 25px; }
}

@media (max-width: 480px) {
    .logo { font-size: 1.1rem; }
    .hero-content h1 { font-size: 1.8rem; }
    .hero-content h2 { font-size: 1rem; }
    .btn { padding: 10px 20px; font-size: 0.9rem; }
    .marquee-content { font-size: 0.85rem; }
    .theme-box { font-size: 1rem; padding: 10px; }
}

/* --- UPDATED LOGO SECTION --- */
.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo {
    height: 50px;
    width: auto;
    background: transparent; /* Removed white background */
    padding: 0;              /* Removed padding */
    border-radius: 0;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
    white-space: nowrap;
    font-family: 'Montserrat', sans-serif;
}

@media (max-width: 480px) {
    .nav-logo { height: 35px; }
    .logo-text { font-size: 1.2rem; }
    .logo-container { gap: 8px; }
}

/* --- FOOTNOTE STYLE --- */
.disclaimer-text {
    font-size: 0.9rem;
    color: #666;
    margin-top: 8px;
    font-style: italic;
    display: block;
}


/* Add this class to turn black logos into white logos */
.logo-white {
    filter: brightness(0) invert(1);
}

/* --- MEMBER PHOTO STYLING --- */
.member-photo {
    width: 150px;         /* Fixed width */
    height: 150px;        /* Fixed height (must match width for a perfect circle) */
    border-radius: 50%;   /* Creates the circular shape */
    object-fit: cover;    /* KEY PROPERTY: This scales and crops the image to fill the circle without stretching */
    margin-bottom: 15px;  /* Space between photo and name */
    border: 4px solid #f8f9fa; /* A light border */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* A subtle shadow for depth */
}

/* Optional: Ensure the card layout handles the centered content nicely */
.member-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* ... keep your other member-card styles like padding, background, etc. ... */
}


/* =========================================
   OVERRIDE: WHITE NAVIGATION BAR STYLES
   ========================================= */

/* 1. Make Navbar Background White */
.navbar {
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Adds a subtle shadow */
}

/* 2. Turn Nav Links Dark Blue */
.nav-links li a {
    color: var(--primary-color) !important; /* Force dark blue */
    font-weight: 600;
}

/* 3. Keep Hover Color Orange */
.nav-links li a:hover, 
.nav-links li a.active {
    color: var(--secondary-color) !important;
}

/* 4. Turn Text Logo ("CVIP 2026") Dark Blue */
.logo-text {
    color: var(--primary-color);
}

/* 5. Turn Mobile Hamburger Menu Dark Blue */
.mobile-menu-toggle span {
    background: var(--primary-color);
}

/* 6. RESET LOGO COLORS 
   (In case 'logo-white' class is still in HTML, this turns off the white filter) */
.logo-white {
    filter: none !important;
}

/* =========================================
   FINAL COLOR CORRECTIONS
   ========================================= */

/* 1. Change Running Bar (Marquee) to Dark Blue */
.marquee {
    background: var(--primary-color) !important; /* Changes Orange to Blue */
    color: #ffffff !important;
}

/* 2. FORCE LOGOS TO ORIGINAL COLORS 
   (This ensures they are not white, even if the class remains in HTML) */
.nav-logo, .logo-white {
    filter: none !important;
    opacity: 1 !important;
}

/* =========================================
   LOGO COLOR FIX (CRITICAL)
   ========================================= */

/* 1. Force all nav logos to show original colors (Black/Blue/etc.) */
.nav-logo, 
img.nav-logo, 
.logo-white {
    filter: none !important;  /* Removes any white/color filters */
    -webkit-filter: none !important;
    opacity: 1 !important;
    background: transparent !important;
}

/* 2. Ensure container allows original colors */
.logo-container {
    background: transparent !important;
}

/* 3. Ensure Marquee stays Blue */
.marquee {
    background: var(--primary-color) !important;
    color: #ffffff !important;
}

/* =========================================
   FORCE NITC LOGO TO BLACK
   ========================================= */

/* Target only the NITC image and force it to solid black */
img[src*="nitc"] {
    filter: brightness(0) !important;  /* Turns the logo pixels to black */
    opacity: 1 !important;             /* Removes any transparency/greyness */
}

/* Circular Image Styling */
.member-photo-container {
    width: 150px; /* Adjust size as needed */
    height: 150px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #eee; /* Optional border */
}

.member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the circle without distortion */
    display: block;
}

/* Link Styling */
.member-links {
    margin-top: 10px;
}

.member-links a {
    text-decoration: none;
    color: #004a99; /* Adjust based on your theme */
    margin: 0 8px;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.member-links a:hover {
    color: #ff9900;
}

/* Ensure FontAwesome is loaded in your <head> for icons */
