*{box-sizing:border-box}body{margin:0;font-family:Arial,'Noto Sans Tamil',sans-serif;background:#f4f6f8;color:#222}nav{background:#1557a6;color:white;padding:15px 35px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap}.brand{font-size:22px;font-weight:bold}nav a{color:white;text-decoration:none;margin:8px;font-weight:bold}.hero{background:#2161ac;color:white;text-align:center;padding:70px 20px}.hero h1{font-size:42px;margin:0 0 15px}.hero h2{font-size:30px}.hero p{font-size:20px}.hero-buttons{margin-top:30px}.btn,button{display:inline-block;background:#1557a6;color:white;padding:12px 22px;border-radius:8px;text-decoration:none;border:0;cursor:pointer;font-weight:bold;margin:6px}.btn-light{background:white;color:#1557a6}.btn-danger{background:#b3261e}.cards{display:flex;gap:20px;max-width:1000px;margin:30px auto;padding:10px;flex-wrap:wrap}.card{background:white;padding:25px;border-radius:12px;box-shadow:0 2px 10px #ddd;flex:1;min-width:250px}.form-box{background:white;max-width:760px;margin:35px auto;padding:30px;border-radius:12px;box-shadow:0 2px 12px #ddd}.form-box.small{max-width:430px}.center{text-align:center}label{display:block;margin-top:15px;font-weight:bold}input,select,textarea{width:100%;padding:12px;margin-top:7px;border:1px solid #ccc;border-radius:7px;font-size:16px}.ref{background:#e8f1ff;color:#1557a6;font-size:30px;font-weight:bold;padding:15px;border-radius:10px;margin:15px}.result{background:#f0f7ff;margin-top:20px;padding:18px;border-radius:10px}.status{background:#1557a6;color:white;padding:6px 12px;border-radius:20px}.dashboard{padding:25px}.table-wrap{overflow:auto;background:white;margin-top:20px;border-radius:10px}table{border-collapse:collapse;width:100%;min-width:1100px}th,td{border:1px solid #ddd;padding:10px;vertical-align:top}th{background:#1557a6;color:white}.alert{background:#fff3cd;color:#664d03;padding:12px;text-align:center}footer{text-align:center;background:#222;color:white;padding:15px;margin-top:40px}@media(max-width:700px){.hero h1{font-size:30px}.hero h2{font-size:24px}nav{display:block;text-align:center}.form-box{margin:15px;padding:18px}}


/* Leader profile and public gallery */
.portal-banner{
    background:#0f4f9f;
    color:white;
    padding:10px 16px;
    border-radius:8px;
    margin:18px auto;
    max-width:760px;
}
.leader-card{
    max-width:1050px;
    margin:25px auto;
    background:white;
    color:#222;
    padding:24px;
    border-radius:14px;
    display:flex;
    align-items:center;
    gap:24px;
    box-shadow:0 4px 15px rgba(0,0,0,0.18);
    text-align:left;
}
.leader-photo{
    width:180px;
    height:180px;
    border-radius:50%;
    object-fit:cover;
    border:5px solid #1557a6;
    flex-shrink:0;
}
.leader-content h2,.leader-content h3,.leader-content h4{margin:6px 0;}
.message-box{
    max-width:1000px;
    margin:22px auto;
    padding:18px;
    background:#f4f8ff;
    color:#222;
    border-left:6px solid #1557a6;
    border-radius:8px;
    text-align:left;
}
.gallery-section,.form-intro{
    max-width:1050px;
    margin:28px auto;
    text-align:center;
}
.rolling-gallery{
    width:100%;
    overflow:hidden;
    background:white;
    border-radius:14px;
    padding:14px 0;
    box-shadow:0 3px 12px rgba(0,0,0,0.14);
}
.gallery-track{
    display:flex;
    gap:16px;
    width:max-content;
    animation:galleryRoll 35s linear infinite;
}
.gallery-track img{
    width:290px;
    height:210px;
    object-fit:cover;
    border-radius:10px;
    border:3px solid #e7eef8;
}
.small-gallery .gallery-track img{
    width:230px;
    height:160px;
}
@keyframes galleryRoll{
    from{transform:translateX(0);}
    to{transform:translateX(-50%);}
}
.rolling-gallery:hover .gallery-track{
    animation-play-state:paused;
}
@media(max-width:768px){
    .leader-card{flex-direction:column;text-align:center;}
    .leader-photo{width:150px;height:150px;}
    .gallery-track img{width:230px;height:165px;}
}
@media print{
    nav,.hero-buttons,.no-print,button{display:none !important;}
    body{background:white;color:#000;}
    .hero{background:white;color:#000;padding:20px;}
    .leader-card,.message-box,.rolling-gallery,.card,.form-box{
        box-shadow:none !important;
        border:1px solid #000 !important;
        page-break-inside:avoid;
    }
    .gallery-track{animation:none !important;display:flex;flex-wrap:wrap;width:100%;}
    .gallery-track img{width:180px;height:130px;}
    .leader-photo{display:block !important;border-radius:0;}
    footer{display:block !important;background:white;color:#000;border-top:1px solid #000;}
}
.gallery-section{
    margin:40px auto;
    text-align:center;
    overflow:hidden;
}

.slider-container{
    width:100%;
    overflow:hidden;
    position:relative;
}

.slider-track{
    display:flex;
    width:max-content;
    animation: scrollGallery 45s linear infinite;
}

.slider-track:hover{
    animation-play-state: paused;
}

.slider-track img{
    width:350px;
    height:250px;
    object-fit:cover;
    margin:10px;
    border-radius:12px;
    box-shadow:0 4px 10px rgba(0,0,0,0.20);
    flex-shrink:0;
}

@keyframes scrollGallery{
    from{
        transform:translateX(0);
    }

    to{
        transform:translateX(-50%);
    }
}
.footer-message{
    text-align:center;
    max-width:1000px;
    margin:50px auto;
    padding:30px;
    background:white;
    border-radius:15px;
    box-shadow:0 4px 10px rgba(0,0,0,0.1);
}

.footer-message h3{
    color:#003366;
    margin-bottom:15px;
}

.footer-message p{
    text-align:center;
    font-size:18px;
    line-height:1.8;
}