/* =================================
   ROOT VARIABLES
================================= */

:root{
    --primary:#0F172A;
    --secondary:#2563EB;
    --accent:#F59E0B;
    --light:#F8FAFC;

    --shadow-sm:0 8px 25px rgba(0,0,0,0.08);
    --shadow-md:0 10px 30px rgba(0,0,0,0.10);
    --shadow-lg:0 15px 35px rgba(0,0,0,0.15);

    --radius:20px;
}

/* =================================
   GLOBAL
================================= */

body{
    font-family:'Poppins',sans-serif;
    scroll-behavior:smooth;
    background:#fff;
    color:#212529;
}

.section-title{
    text-align:center;
    margin-bottom:50px;
    font-weight:700;
}

html{
    scroll-behavior: smooth;
}

/* =================================
   NAVBAR
================================= */

.navbar{
    background:rgba(15,23,42,0.95);
    position: sticky;
    top: 0;
    z-index: 9999;
    backdrop-filter: blur(10px);
    min-height:70px;
}

.navbar-nav{
    align-items:center;
}

.navbar-brand{
    font-weight:700;
    white-space:nowrap;
    margin-right:20px;
}

.navbar .container{
    align-items:center;
}

.navbar-nav .nav-item{
    display:flex;
    align-items:center;
}

.navbar-nav .nav-link{
    display:flex;
    align-items:center;
    text-align:center;
    line-height:1.25;
    padding:8px 9px;
}

/* =================================
   BUTTONS
================================= */

.btn-custom{
    background:var(--secondary);
    color:#fff;
    border:none;
    border-radius:25px;
    padding:10px 20px;
    transition:0.3s;
}

.btn-custom:hover{
    background:#1d4ed8;
    color:#fff;
}

/* =================================
   HOME HERO
================================= */

.hero{
    min-height:100vh;

    background:
    linear-gradient(
        rgba(15,23,42,0.80),
        rgba(15,23,42,0.80)
    ),
    url('https://images.unsplash.com/photo-1565043666747-69f6646db940?q=80&w=2000');

    background-size:cover;
    background-position:center;

    color:white;

    display:flex;
    align-items:center;
}

.hero h1{
    font-size:4rem;
    font-weight:700;
}

.hero h2{
    color:var(--accent);
    font-weight:600;
}

.countdown-box{
    background:rgba(255,255,255,0.15);
    backdrop-filter:blur(10px);

    border-radius:15px;

    padding:20px;
    margin-top:30px;
}

.counter{
    font-size:2rem;
    font-weight:700;
}

/* =================================
   PAGE HERO
   (For Internal Pages)
================================= */

.page-hero{
    background:linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );

    color:white;
    text-align:center;

    padding:120px 0 80px;
}

.page-hero h1{
    font-weight:700;
}

.page-hero p{
    opacity:0.9;
}

/* =================================
   ABOUT
================================= */
.about-block{
    position: relative;
    min-height: 380px;

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

    border-radius: 20px;
    overflow: hidden;
}

/* background image */
.about-block::before{
    content: "";
    position: absolute;
    inset: 0;

    background-size: cover;
    background-position: center;

    filter: blur(4px);
    transform: scale(1.1);

    z-index: 1;
}

/* dark overlay */
.about-block::after{
    content: "";
    position: absolute;
    inset: 0;

    background: rgba(0,0,0,0.45);

    z-index: 2;
}

/* assign images */
.institute-bg::before{
    background-image: url("images/institute.jpg");
}

.dept-bg::before{
    background-image: url("images/department.jpg");
}

.conf-bg::before{
    background-image: url("images/conference.jpg");
}

/* TEXT OVER IMAGE (NO BOX) */
.about-content{
    position: relative;
    z-index: 3;

    max-width: 900px;
    padding: 20px 30px;

    color: white;
}

.about-content h4{
    font-weight: 700;
    margin-bottom: 10px;
}

.about-content p{
    color: #f1f5f9;
    text-align: justify;
}



/* =================================
   TRACKS
================================= */

#tracks{
    background:linear-gradient(
        180deg,
        #f8fafc 0%,
        #eef2ff 100%
    );
}

.track-card{
    background:#fff;

    border-radius:var(--radius);

    padding:30px;

    min-height:420px;

    width:100%;
    display:flex;
    flex-direction:column;

    transition:0.4s;

    box-shadow:var(--shadow-sm);

    border-top:5px solid transparent;
}

.track-card:hover{
    transform:translateY(-10px);
    box-shadow:var(--shadow-lg);
}

.track-icon{
    font-size:3rem;
    margin-bottom:15px;
}

.track-card h3{
    min-height:90px;
    font-weight:700;
}

.track-card ul{
    flex-grow:1;
}

.robotics{
    border-top-color:var(--secondary);
}

.automation{
    border-top-color:#10B981;
}

.manufacturing{
    border-top-color:var(--accent);
}

/* =================================
   IMPORTANT DATES
================================= */

#important-dates{
    background:#fff;
}

.timeline{
    position:relative;
    max-width:900px;
    margin:auto;
}

.timeline::before{
    content:'';

    position:absolute;

    left:50%;
    top:0;

    width:4px;
    height:100%;

    background:var(--secondary);

    transform:translateX(-50%);
}

.timeline-item{
    position:relative;

    width:50%;

    padding:20px 40px;

    margin-bottom:30px;
}

.timeline-item:nth-child(odd){
    left:0;
    text-align:right;
}

.timeline-item:nth-child(even){
    left:50%;
}

.timeline-item::before{
    content:'';

    position:absolute;
    top:25px;

    width:18px;
    height:18px;

    background:var(--accent);

    border-radius:50%;

    border:4px solid white;

    box-shadow:0 0 0 3px var(--secondary);
}

.timeline-item:nth-child(odd)::before{
    right:-11px;
}

.timeline-item:nth-child(even)::before{
    left:-11px;
}

.timeline-content{
    background:white;

    padding:20px;

    border-radius:15px;

    box-shadow:var(--shadow-sm);
}

.timeline-date{
    font-weight:700;
    color:var(--secondary);
    margin-bottom:10px;
}

/* =================================
   ANIMATIONS
================================= */

.fade-up{
    animation:fadeUp 0.8s ease;
}

@keyframes fadeUp{
    from{
        opacity:0;
        transform:translateY(30px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* =================================
   FOOTER
================================= */

footer{
    background:var(--primary);
    color:white;
    text-align:center;
    padding:30px 20px;
}

/* =================================
   RESPONSIVE
================================= */

@media(max-width:768px){

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

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

    .timeline::before{
        left:20px;
    }

    .timeline-item{
        width:100%;
        left:0 !important;

        text-align:left !important;

        padding-left:60px;
        padding-right:10px;
    }

    .timeline-item::before{
        left:11px !important;
    }
}

/* =================================
   COMMITTEE PAGE
================================= */

.committee-section{
    padding:60px 0;
}

.committee-card{
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    box-shadow:var(--shadow-sm);
    transition:0.3s;
    margin-bottom:25px;
}

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

.committee-row{
    display:flex;
    align-items:center;
}

.committee-photo{
    width:180px;
    height:auto;
    max-height: 300px;
}

.committee-info{
    padding:25px;
    flex:1;
}

.committee-role{
    color:var(--secondary);
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:1px;
    margin-bottom:8px;
}

.committee-name{
    font-size:1.4rem;
    font-weight:600;
    margin-bottom:10px;
}

.committee-designation{
    color:#6c757d;
}

.secretary-row{
    display:flex;
    justify-content:center;
    gap:25px;
    flex-wrap:wrap;
    margin-top:20px;
}

.secretary-card{
    width:220px;
    text-align:center;
}

.secretary-card img{
    width:140px;
    height:140px;
    border-radius:50%;
    object-fit:cover;
    object-position:center top;
    border:4px solid #eee;
}

.secretary-card h5{
    margin-top:12px;
    font-size:1rem;
    font-weight:600;
}

.secretary-card p{
    color:#666;
    margin:0;
}

@media(max-width:768px){

    .committee-row{
        flex-direction:column;
        text-align:center;
    }

    .committee-photo{
        width:100%;
        height:250px;
    }
}


/* =================================
   ADVISORY COMMITTEE TABLES
================================= */

.advisory-table{
    background:#fff;
    border-radius:15px;
    overflow:hidden;
    box-shadow:var(--shadow-sm);
}

.advisory-table thead{
    background:var(--secondary);
    color:white;
}

.advisory-table th{
    padding:15px;
    font-weight:600;
}

.advisory-table td{
    padding:12px 15px;
    vertical-align:middle;
}

.advisory-table tbody tr:hover{
    background:#f8fafc;
}

/* ===================================
   KEYNOTE SPEAKERS
=================================== */

.speaker-card{
    background:#fff;
    border-radius:16px;
    padding:20px;
    box-shadow:0 8px 24px rgba(0,0,0,.08);
    transition:.3s;
    height:100%;
}

.speaker-card:hover{
    transform:translateY(-5px);
    box-shadow:0 15px 35px rgba(0,0,0,.15);
}

.speaker-photo{
    width:135px;
    height:135px;
    object-fit:cover;
    border-radius:50%;
    border:4px solid #0d6efd;
    display:block;
    margin:auto;
}

.speaker-body{
    padding-left:20px;
}

.speaker-name{
    font-size:1.45rem;
    font-weight:700;
    color:#003366;
    margin-bottom:8px;
}

.speaker-designation{
    color:#0d6efd;
    font-size:1rem;
    line-height:1.4;
    margin-bottom:12px;
}

.speaker-info{
    margin-bottom:6px;
    font-size:.97rem;
}

.speaker-topic{
    margin-top:12px;
    font-style:italic;
    font-weight:600;
    color:#444;
    line-height:1.5;
}

@media(max-width:768px){

    .speaker-body{
        padding-left:0;
        padding-top:20px;
        text-align:center;
    }

    .speaker-photo{
        width:130px;
        height:130px;
    }

}
/* =================================
   REGISTRATION PAGE
================================= */

.registration-table{
    background:#fff;
    border-radius:15px;
    overflow:hidden;
    box-shadow:var(--shadow-sm);
}

.registration-table thead{
    background:var(--secondary);
    color:#fff;
}

.registration-table th{
    padding:15px;
}

.registration-table td{
    padding:15px;
}

.info-card{
    background:#fff;
    padding:30px;
    border-radius:20px;
    text-align:center;
    height:100%;
    box-shadow:var(--shadow-sm);
    transition:0.3s;
}

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

.info-card i{
    color:var(--secondary);
}

.payment-card{
    background:#fff;
    padding:40px;
    border-radius:20px;
    box-shadow:var(--shadow-sm);
    text-align:center;
}

/* =================================
   CONTACT PAGE
================================= */

.contact-card{
    background:#fff;
    padding:30px;
    border-radius:20px;
    text-align:center;
    height:100%;
    box-shadow:var(--shadow-sm);
    transition:0.3s;
}

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

.contact-card h5{
    color:var(--secondary);
    font-weight:700;
}

.address-card{
    background:#fff;
    padding:40px;
    border-radius:20px;
    text-align:center;
    box-shadow:var(--shadow-sm);
}

.address-card i{
    color:var(--secondary);
}

/* =================================
   SOCIAL MEDIA
================================= */

.social-links{
    display:flex;
    justify-content:center;
    gap:25px;
    flex-wrap:wrap;
}

.social-icon{
    width:70px;
    height:70px;

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

    border-radius:50%;

    font-size:2rem;

    text-decoration:none;
    color:white;

    transition:0.3s;
}

.social-icon:hover{
    transform:translateY(-5px);
    color:white;
}

.instagram{
    background:#E4405F;
}

.linkedin{
    background:#0077B5;
}

.facebook{
    background:#1877F2;
}

.twitter{
    background:#000000;
}

.map-container{
    overflow:hidden;
    border-radius:20px;
    box-shadow:var(--shadow-sm);
}

.footer-link{
    color:white;
    text-decoration:none;
}

.footer-link:hover{
    color:#f59e0b;
}

/* =================================
   PUBLICATION PAGE
================================= */

.coming-soon-card{
    background:#fff;
    padding:60px 40px;
    border-radius:20px;
    box-shadow:var(--shadow-md);
}

.publication-icon{
    color:var(--secondary);
}

/* =================================
   PUBLICATION PAGE
================================= */

.coming-soon-card{
    background:#fff;
    padding:60px 40px;
    border-radius:20px;
    box-shadow:var(--shadow-md);
}

.publication-icon{
    color:var(--secondary);
}

/* =========================
   EXPLORE MADURAI
========================= */

.tour-card{
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    transition:.3s;
    height:100%;
}

.tour-card:hover{
    transform:translateY(-6px);
}

.tour-img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.tour-content{
    padding:20px;
}

.tour-content h5{
    font-weight:600;
    margin-bottom:10px;
}

.tce-header-img{
    width:100%;
    max-width:1200px;
    height:auto;
    position:relative;
}

