/* --- CSS Variables --- */
:root {
    --primary: #2d1886;
    --primary-light: #4834a3;
    --primary-dark: #1e0e63;
    --secondary: #802627;
    --secondary-light: #a33b3c;
    --accent: #f5f3ff;
    
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --text-light: #f9fafb;
    
    --bg-main: #ffffff;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary);
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-accent {
    background-color: var(--accent);
}

/* --- Typography --- */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.divider {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 0 auto;
    border-radius: 2px;
}

.subtitle {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-family: var(--font-heading);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--text-light);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn:disabled {
    background-color: #cbd5e1;
    color: #64748b;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* --- Navigation --- */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: center; /* Center the links since logo is hidden */
    align-items: center;
    height: 70px; 
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--primary);
    display: flex;
    align-items: center;
}

.nav-logo {
    display: none;
}

.logo .highlight {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    white-space: nowrap;
}

.nav-links a.btn-primary {
    color: var(--text-light);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover::after,
.nav-links a.active:not(.btn)::after {
    width: 100%;
}

.nav-links a:not(.btn):hover, .nav-links a.active:not(.btn) {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    position: absolute;
    left: 0;
    transition: var(--transition);
}

.mobile-menu-btn span:nth-child(1) { top: 0; }
.mobile-menu-btn span:nth-child(2) { top: 11px; }
.mobile-menu-btn span:nth-child(3) { top: 22px; }

.mobile-menu-btn.active span:nth-child(1) {
    top: 11px;
    transform: rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    top: 11px;
    transform: rotate(-45deg);
}

/* --- Top Banner --- */
.top-banner {
    background-color: #f8fafc;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.banner-logo {
    width: 250px;
    display: flex;
    justify-content: flex-start;
}

.banner-logo img {
    height: 45px;
    width: auto;
}

.banner-text {
    text-align: center;
    flex-grow: 1;
}

.foundation-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.institute-name {
    font-size: 1.3rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: #0c0a1f; /* Darker text */
    margin: 0.2rem 0;
}

.affiliation, .accreditation {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.banner-naac {
    width: 250px;
    display: flex;
    justify-content: flex-end;
}

.banner-naac img {
    height: 70px;
    width: auto;
}

/* --- Hero Section --- */
.hero {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 40px;
    background: linear-gradient(135deg, #f5f3ff 0%, #ffffff 100%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(45,24,134,0.05) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    transform: rotateY(-5deg) translateY(10px);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.hero-image:hover {
    transform: rotateY(0deg) translateY(0);
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: rgba(128, 38, 39, 0.1);
    color: var(--secondary);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .theme {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.hero .dates {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-sponsor {
    font-size: 1rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 1.5rem;
    display: inline-block;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.highlight-box {
    background-color: var(--accent);
    padding: 1.5rem;
    border-left: 4px solid var(--secondary);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    margin-top: 2rem;
}

.highlight-box p {
    margin: 0;
    color: var(--primary);
    font-style: italic;
    font-size: 1.2rem;
}

.about-institue {
    background-color: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.about-institue h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.about-institue p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.campus-list {
    list-style: none;
}

.campus-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    color: var(--text-main);
    display: flex;
    align-items: center;
}

.campus-list li::before {
    content: '→';
    color: var(--secondary);
    margin-right: 10px;
    font-weight: bold;
}

.campus-list li:last-child {
    border-bottom: none;
}

/* --- Timeline / Important Dates --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: rgba(45, 24, 134, 0.1);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 2rem;
    width: 100%;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.timeline-date {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: var(--secondary);
    font-size: 1.1rem;
    width: 40%;
}

.timeline-item:nth-child(odd) .timeline-date {
    left: 50%;
    right: auto;
    text-align: left;
    padding-left: 3rem;
    padding-right: 0;
}

.timeline-item:nth-child(even) .timeline-date {
    right: 50%;
    left: auto;
    text-align: right;
    padding-right: 3rem;
    padding-left: 0;
}

.timeline-content {
    background-color: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    width: 90%;
    position: relative;
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    background-color: var(--primary);
    border: 4px solid var(--bg-light);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 2rem;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 2rem;
}

/* --- Call for Papers --- */
.tracks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 1.5rem;
}

.track-card {
    background-color: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
    font-weight: 500;
    font-size: 1.1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.track-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--secondary);
}

/* --- Guidelines & Fees --- */
.guidelines-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.guidelines-card {
    background-color: var(--bg-main);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    min-width: 0; /* Prevents flex/grid blowout */
    width: 100%;
    overflow: hidden;
}

.guidelines-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.custom-list {
    list-style: none;
}

.custom-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.custom-list li::before {
    content: '•';
    color: var(--secondary);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2rem;
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.fee-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.fee-table th, .fee-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.fee-table th {
    background-color: rgba(45, 24, 134, 0.05);
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 600;
}

.fee-table tr:hover td {
    background-color: rgba(0,0,0,0.02);
}

/* --- Committee --- */
.committee-category {
    margin-bottom: 4rem;
}

.committee-category h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--secondary);
}

.committee-grid {
    display: grid;
    gap: 2rem;
    justify-content: center;
}

.committee-grid.patrons {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

.committee-grid.core {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    max-width: 800px;
    margin: 0 auto;
}

.committee-grid.other {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}

.committee-member {
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.committee-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.committee-member h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.committee-member p {
    color: var(--secondary);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Submit Section --- */
.submit-section {
    position: relative;
    overflow: hidden;
}

.submission-wrapper {
    background-color: var(--bg-card);
    padding: 4rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    text-align: center;
    position: relative;
    z-index: 1;
}

.submit-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.about-text p {
    text-align: justify;
}

.member-photo {
    width: 150px;
    height: 150px;
    border-radius: 16px;
    background-color: var(--bg-light);
    border: 3px solid var(--secondary);
    margin: 0 auto 1.5rem;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23cbd5e1"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>');
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.committee-subtitle {
    text-align: center;
    font-size: 2rem;
    margin-top: 4rem;
    margin-bottom: 2rem;
    color: var(--secondary);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: none; /* Add image tag dynamically when providing a photo */
}

.submit-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active, .tab-btn:hover {
    background: var(--primary);
    color: white;
}

.submit-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 2rem;
    text-align: left;
}

.step {
    padding: 2rem;
    border-radius: var(--border-radius);
    background-color: var(--bg-light);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    transition: var(--transition);
}

.step:hover {
    box-shadow: var(--shadow-md);
    background-color: var(--bg-main);
}

.active-step {
    border: 2px solid var(--primary);
    background-color: rgba(45, 24, 134, 0.02);
}

.step h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.step p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.text-link {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.text-link:hover {
    color: var(--secondary);
}

/* --- Footer --- */
.footer {
    background-color: #0c0a1f;
    color: #cbd5e1;
    padding: 4rem 0 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-size: 2rem;
    color: white;
    margin-bottom: 0.5rem;
}

.brand-col p {
    font-size: 1.1rem;
    color: #94a3b8;
}

.footer-col h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.contact p {
    margin-bottom: 0.8rem;
}

.contact a {
    color: #94a3b8;
}

.contact a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
}

.cmt-acknowledgment {
    background-color: rgba(255,255,255,0.05);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #94a3b8;
}

.copyright {
    font-size: 0.9rem;
    color: #64748b;
    word-break: break-word;
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .top-banner {
        display: none;
    }
    
    .nav-logo {
        display: block;
    }
    
    .nav-container { justify-content: space-between; }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-main);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: var(--transition);
        padding: 2rem;
        overflow-y: auto;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }

    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-image-wrapper { display: none; }
    .hero-content { margin: 0 auto; }
    .hero h1 { font-size: 2.8rem; }
    .hero .theme { font-size: 1.8rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; }
    .about-grid, .guidelines-content, .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .timeline::before { left: 30px; }
    .timeline-item { justify-content: flex-end; padding-right: 0; padding-left: 80px; margin-bottom: 3rem; }
    .timeline-item:nth-child(even) { justify-content: flex-end; padding-right: 0; padding-left: 80px; }
    .timeline-date { position: relative; top: auto; transform: none; width: 100%; margin-bottom: 1rem; }
    .timeline-item:nth-child(odd) .timeline-date,
    .timeline-item:nth-child(even) .timeline-date {
        right: auto; left: auto; text-align: left; padding: 0;
    }
    .timeline-item::after { left: 30px; }
    .timeline-content { width: 100%; }
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin: 0;
    }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .hero .theme { font-size: 1.4rem; }
    .hero-actions { flex-direction: column; }
    
    .section { padding: 4rem 0; }
    .section-header h2 { font-size: 2rem; }
    
    .submission-wrapper { padding: 2rem; }
    
    .container { padding: 0 1.5rem; }
}

/* --- Guideline Toggles --- */
.guideline-toggle {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--bg-card);
    overflow: hidden;
    transition: var(--transition);
}

.guideline-toggle[open] {
    box-shadow: var(--shadow-sm);
    border-color: var(--primary);
}

.guideline-toggle summary {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    padding: 1rem 1.5rem;
    cursor: pointer;
    list-style: none; /* Hide default triangle */
    position: relative;
    user-select: none;
}

.guideline-toggle summary::-webkit-details-marker {
    display: none; /* Hide default triangle in Safari */
}

.guideline-toggle summary::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.guideline-toggle[open] summary::after {
    content: '-';
}

.guideline-toggle .toggle-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-muted);
}
