/* VIET-Inspired Professional Institutional Theme */

:root {
    --primary-navy: #003366;
    --secondary-blue: #0056b3;
    --accent-red: #d32f2f;
    --accent-gold: #ffc107;
    --bg-light: #f4f7f6;
    --text-dark: #333333;
    --text-muted: #666666;
    --white: #ffffff;
    --shadow-sm: 0 2px 5px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0; /* Minimal side padding for absolute end-to-end spread */
}

/* 1. Top Utility Bar */
.top-info-bar {
    background-color: var(--primary-navy);
    color: var(--white);
    padding: 5px 0;
    font-size: 0.8rem;
    border-bottom: 2px solid var(--accent-gold);
}

.top-info-bar .flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.polycet-badge-top {
    display: flex;
    align-items: center;
    background: linear-gradient(45deg, #ffc107, #ffeb3b); /* Vibrant gold gradient */
    color: #000;
    padding: 4px 18px;
    border-radius: 50px; /* Pill shape */
    font-weight: 900;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.5);
    animation: polycetPulse 2s infinite;
    border: 2px solid #fff;
    cursor: pointer;
    transition: 0.3s;
}

.polycet-badge-top:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(255, 193, 7, 0.9);
}

.polycet-label {
    font-size: 0.75rem;
    margin-right: 10px;
    color: #003366; /* Navy for labels */
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
}

.polycet-code-text {
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: #d32f2f; /* Bold red for the code itself */
    text-shadow: 1px 1px 0px #fff;
}

@keyframes polycetPulse {
    0% { transform: scale(1); box-shadow: 0 0 10px rgba(255, 193, 7, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(255, 193, 7, 0.8); }
    100% { transform: scale(1); box-shadow: 0 0 10px rgba(255, 193, 7, 0.4); }
}

/* 2. Main Header & Navigation */
header {
    background: none; /* No background */
    padding: 0;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container-fluid.header-banner-container {
    padding: 0; 
    background: none;
    width: 100%;
    margin: 0; /* Removed auto margin to ensure left alignment if needed, though width 100% covers it */
}

.header-full-banner {
    width: 100%;
    display: flex;
    justify-content: center;
    background: none;
    padding: 0;
}

.img-header-banner {
    width: 100vw; /* Forced viewport width for absolute end-to-end */
    height: 90px; /* Precise height requested */
    object-fit: fill; /* Stretches to fill the entire width and height */
    display: block;
}

.main-menu {
    background: var(--primary-navy);
    width: 100%;
    height: 40px; /* Shorter navigation bar */
    padding: 0;
    margin-top: 0;
    display: flex;
    align-items: center;
}

.main-menu ul { 
    display: flex; 
    list-style: none; 
    justify-content: center;
    width: 100%;
}

.nav-links li { margin: 0 40px; } 
.nav-links a { 
    text-decoration: none; 
    color: #fff !important;
    font-weight: 700; 
    text-transform: uppercase; 
    font-size: 0.9rem; /* Slightly smaller menu text */
    transition: 0.3s; 
    letter-spacing: 2px;
}

.nav-links a:hover { color: var(--accent-gold) !important; }

/* Button Styles */
.btn-main, .btn-submit-form {
    background: var(--accent-red);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 700;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn-main:hover, .btn-submit-form:hover {
    background: #b71c1c;
}

.btn-alt {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-alt:hover {
    background: var(--white);
    color: var(--primary-navy);
}

@media (max-width: 992px) {
    .branding { flex-direction: column; text-align: center; }
    .logo-name-group { flex-direction: column; gap: 10px; }
    .branding-text h1 { font-size: 2rem; display: block; }
    .branding-text h1 span { font-size: 1.8rem; margin-left: 0; display: block; }
    .polycet-badge-wrap { margin-top: 15px; }
}

@media (max-width: 1200px) {
    .branding-text h1 { font-size: 1.8rem; }
    .nav-links li { margin-left: 15px; }
}

@media (max-width: 992px) {
    header .container-fluid { flex-direction: column; text-align: center; gap: 15px; }
    .branding { flex-direction: column; }
    .nav-logo { margin-right: 0; }
    .polycet-badge-wrap { margin-left: 0; margin-top: 10px; }
    .branding-text { text-align: center; }
}

/* 3. Hero Section Refinement */
.hero-slider-section {
    height: 600px;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('WhatsApp Image 2026-03-03 at 12.20.05 PM.jpeg') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: var(--white);
}
.hero-flex-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}
.hero-text-content { flex: 1; }
.hero-text-content h2 { font-size: 3.5rem; font-family: 'Oswald', sans-serif; margin-bottom: 10px; }

/* Separated Management Highlighters (Hero) */
.mgmt-hero-container {
    width: 480px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.mgmt-hero-header-badge {
    background: var(--primary-navy);
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    border-bottom: 4px solid var(--accent-gold);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.mgmt-hero-header-badge span {
    color: #fff;
    font-size: 0.7rem;
    letter-spacing: 2px;
    font-weight: 700;
}
.mgmt-hero-header-badge h4 {
    color: var(--accent-gold);
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    margin: 0;
}
.mgmt-cards-split {
    display: flex;
    gap: 20px;
}
.mgmt-box-item {
    flex: 1;
    background: #fff;
    border: 4px solid var(--primary-navy);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    transition: 0.3s;
}
.mgmt-box-item:hover {
    transform: translateY(-10px);
}
.mgmt-box-img {
    height: 320px;
    background: #f0f0f0;
}
.mgmt-box-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.mgmt-box-label {
    padding: 12px;
    text-align: center;
    background: #fff;
}
.mgmt-box-label h5 {
    color: var(--primary-navy);
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    margin-bottom: 2px;
}
.mgmt-degree {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 5px;
}
.mgmt-box-label span {
    color: var(--accent-red);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 1px;
}

@media (max-width: 992px) {
    .mgmt-hero-container { width: 100%; max-width: 450px; margin: 0 auto; }
}

@media (max-width: 480px) {
    .mgmt-cards-split { flex-direction: column; }
    .mgmt-box-img { height: 280px; }
}
.welcome-text { color: var(--accent-gold); font-weight: bold; letter-spacing: 2px; }
.hero-actions { margin-top: 30px; }
.btn-main, .btn-alt { padding: 12px 30px; text-decoration: none; border-radius: 4px; font-weight: bold; margin-right: 15px; transition: 0.3s; }
.btn-main { background: var(--accent-red); color: var(--white); }
.btn-alt { border: 2px solid var(--white); color: var(--white); }
.btn-main:hover { background: #b71c1c; }
.btn-alt:hover { background: var(--white); color: var(--primary-navy); }

/* Principal Message Section */
.principal-message-section {
    background: #f9f9f9;
}
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}
.portrait-frame {
    position: relative;
    border: 10px solid #fff;
    box-shadow: var(--shadow-md);
    border-radius: 15px;
    overflow: hidden;
}
.portrait-frame img {
    width: 100%;
    height: auto;
    display: block;
}
.portrait-tag {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--primary-navy);
    padding: 15px;
    text-align: center;
}
.portrait-tag h4 {
    color: var(--accent-gold);
    margin: 0;
    font-size: 1.2rem;
}
.portrait-tag p {
    color: #fff;
    margin: 0;
    font-size: 0.8rem;
}
.message-content-box h2 {
    color: var(--primary-navy);
    font-size: 2.2rem;
    margin-bottom: 20px;
}
.message-content-box p {
    margin-bottom: 15px;
    font-style: italic;
    color: var(--text-dark);
}
.principal-sign {
    margin-top: 30px;
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; gap: 40px; }
}

/* 4. News Ticker */
.news-ticker { background: #eee; border-bottom: 3px solid var(--primary-navy); padding: 10px 0; }
.ticker-box { display: flex; align-items: center; }
.ticker-label { background: var(--accent-red); color: #fff; padding: 5px 15px; font-weight: bold; margin-right: 15px; clip-path: polygon(0 0, 90% 0, 100% 50%, 90% 100%, 0 100%); }

/* 5. Block Sections */
.sp-80 { padding: 80px 0; }
section { background: var(--white); }
.section-title-center h2 { color: var(--primary-navy); font-size: 2.5rem; margin-bottom: 15px; position: relative; padding-bottom: 15px; }
.section-title-center h2::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80px; height: 3px; background: var(--accent-red); }

/* Academic Toppers Section */
.toppers-section {
    background: linear-gradient(to bottom, #f9f9f9, #fff);
}
.toppers-container {
    max-width: 1000px;
    margin: 40px auto 0;
}
.featured-topper {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.1);
    text-align: center;
    border: 2px solid var(--accent-gold);
    position: relative;
    margin-bottom: 50px;
}
.topper-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gold);
    color: #000;
    padding: 5px 20px;
    font-weight: 900;
    border-radius: 20px;
    letter-spacing: 2px;
}
.topper-img-box {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    border-radius: 50%;
    border: 5px solid #eee;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.topper-img-box img { width: 100%; height: 100%; object-fit: cover; }
.topper-info h3 { font-size: 1.8rem; color: var(--primary-navy); margin-bottom: 5px; }
.topper-score { font-size: 2.5rem; font-weight: 900; color: var(--accent-red); margin-bottom: 10px; }

.toppers-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.topper-card {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #eee;
    transition: 0.3s;
}
.topper-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-navy);
    box-shadow: var(--shadow-md);
}
.card-img-box {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f4f7f6;
}
.card-img-box img { width: 100%; height: 100%; object-fit: cover; }
.topper-card h4 { font-size: 0.85rem; color: var(--primary-navy); margin-bottom: 5px; height: 35px; overflow: hidden; }
.card-score { font-weight: 900; color: var(--accent-red); font-size: 1.1rem; }

/* About Grid */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.sub-heading { color: var(--accent-red); font-weight: bold; text-transform: uppercase; margin-bottom: 10px; display: block; }
.mv-block { margin-top: 30px; }
.mv-item-v2 { display: flex; margin-bottom: 20px; background: #f9f9f9; padding: 20px; border-left: 4px solid var(--primary-navy); }
.mv-icon { font-size: 1.5rem; color: var(--primary-navy); margin-right: 20px; }

/* About Us Image Styling */
.about-image-box {
    width: 100%;
    position: relative;
}

.img-responsive {
    width: 100%;
    height: auto;
    display: block;
}

.rounded-shadow {
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    border: 5px solid #fff;
    transition: 0.3s ease;
}

.rounded-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.25);
}

/* Facility Cards */
.facilities-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.facility-card { text-align: center; padding: 30px; background: #fff; border: 1px solid #eee; transition: 0.3s; }
.facility-card i { font-size: 2.5rem; color: var(--primary-navy); margin-bottom: 15px; }
.facility-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary-navy); }

/* Featured Highlights Side-by-Side Section */
.featured-highlights-section {
    background: #fff;
}
.highlight-photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}
.highlight-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    height: 400px;
}
.highlight-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s ease-in-out;
}
.highlight-item:hover img {
    transform: scale(1.1);
}
.highlight-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--primary-navy);
    color: #fff;
    padding: 10px 20px;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Departments Section */
.departments-institutional { 
    background: var(--bg-light) !important; 
}
.department-grid { 
    display: grid; 
    grid-template-columns: repeat(5, 1fr); 
    gap: 15px; 
}
.dept-box { 
    background: var(--white); 
    padding: 25px 15px; 
    text-align: center; 
    border-bottom: 5px solid var(--primary-navy); 
    transition: 0.3s; 
    border-radius: 10px;
}
.ece-bg { background: #e91e63; } /* Vibrant Pink/Electronics theme */

@media (max-width: 1200px) {
    .department-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .department-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .department-grid { grid-template-columns: 1fr; }
}
/* Department Logo Styling */
.dept-logo-box {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.4s;
    border: 2px solid #eee;
}
.dept-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.dept-box:hover .dept-logo-box {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--accent-gold);
    box-shadow: 0 10px 25px rgba(0, 51, 102, 0.2);
}

/* 6. Placement Statistics */
.placements-institutional { background: var(--primary-navy); color: #fff; text-align: center; }
.placements-institutional h2 { color: #fff; }
.placements-institutional h2::after { background: var(--accent-gold); }

/* Featured Partner Icons */
.partner-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.protem-icon {
    height: 80px;
    width: auto;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: 0.3s ease;
}
.protem-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

.recruiter-grid-v3 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }

/* Placement Process Grid */
.placement-process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0 60px;
    text-align: center;
}
.process-item {
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 15px;
}
.process-item i {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 15px;
}
.process-item h4 {
    color: #fff;
    margin-bottom: 5px;
    font-size: 1.2rem;
}
.process-item p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.partner-logo { 
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    height: 120px; 
    border-radius: 8px;
    transition: 0.3s ease;
}
.partner-logo:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-gold);
    transform: translateY(-5px);
}
.partner-logo img { 
    max-height: 60px; 
    max-width: 100%;
    filter: brightness(0) invert(1); 
    opacity: 0.8;
    transition: 0.3s; 
}
.partner-logo:hover img { 
    opacity: 1;
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255,255,255,0.3));
}
.partner-logo span {
    font-weight: bold;
    letter-spacing: 1px;
    font-size: 0.9rem;
    color: var(--accent-gold);
}

/* Featured Placement Banners */
.featured-placement-banners {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}
.placement-banner-item {
    background: #fff;
    padding: 10px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: 0.3s;
}
.placement-banner-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}
.placement-banner-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 51, 102, 0.2);
}

/* 7. Admission Form */
.admission-form-institutional { background: linear-gradient(45deg, #4a0000, #800000) !important; color: #fff; border-top: 4px solid var(--secondary-gold); }
.admission-info h2 { 
    color: var(--secondary-gold) !important; 
    font-size: 3rem; 
    font-weight: 900; 
    margin-bottom: 15px; 
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}
.admission-info p { 
    font-size: 1.3rem; 
    font-weight: 500; 
    color: #fff; 
    margin-bottom: 30px; 
    border-left: 4px solid var(--secondary-gold);
    padding-left: 15px;
}
.contact-details-list { list-style: none; margin-top: 30px; }
.contact-details-list li { 
    font-size: 1.2rem; 
    margin-bottom: 20px; 
    display: flex; 
    align-items: center;
    background: rgba(255,255,255,0.05);
    padding: 12px 20px;
    border-radius: 8px;
    transition: 0.3s;
}
.contact-details-list li:hover { background: rgba(255,255,255,0.1); transform: translateX(10px); }
.contact-details-list i { 
    color: var(--accent-gold); 
    font-size: 1.5rem; 
    margin-right: 20px; 
    filter: drop-shadow(0 0 5px rgba(255, 204, 0, 0.5));
}

/* Admission Form Table Styling */
.enquiry-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 20px;
}
.enquiry-table td {
    vertical-align: middle;
}
.enquiry-table label {
    font-weight: bold;
    color: #fff;
    font-size: 1.1rem;
    padding-right: 20px;
    white-space: nowrap;
}
.enquiry-table input, .enquiry-table select {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.95) !important;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    color: #333 !important;
}
.btn-submit-form {
    width: 100%;
    padding: 20px;
    background: var(--accent-gold);
    color: #000;
    border: none;
    font-weight: 900;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    border-radius: 6px;
    margin-top: 15px;
    transition: 0.3s;
}
.btn-submit-form:hover {
    background: #fff;
    transform: scale(1.02);
}

@media (max-width: 600px) {
    .enquiry-table tr, .enquiry-table td { display: block; width: 100%; }
    .enquiry-table label { margin-bottom: 5px; display: block; }
}

/* 8. Footer */
.footer-institutional { background: #1a1a1a; color: #ccc; padding: 60px 0 20px; font-size: 0.9rem; }
.footer-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.f-col h4 { color: #fff; margin-bottom: 20px; font-size: 1.1rem; border-left: 3px solid var(--accent-red); padding-left: 10px; }
.f-col ul { list-style: none; }
.f-col ul li { margin-bottom: 10px; }
.f-col a { color: #ccc; text-decoration: none; transition: 0.3s; }
.f-col a:hover { color: #fff; padding-left: 5px; }
.f-logo { 
    height: 75px; 
    width: auto;
    margin-bottom: 15px;
    display: inline-block;
}
.footer-bottom-text { text-align: center; margin-top: 50px; padding-top: 20px; border-top: 1px solid #333; font-size: 0.8rem; }

/* Gallery Categorized Styling */
.gallery-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}
.gallery-category-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 10px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: 0.3s;
}
.category-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}
.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}
.category-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 51, 102, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
}
.gallery-category-card:hover .category-overlay { opacity: 1; }
.gallery-category-card:hover .category-image img { transform: scale(1.1); }
.gallery-category-card h4 {
    margin-top: 15px;
    color: var(--primary-navy);
    font-size: 1rem;
    letter-spacing: 1px;
}
.btn-view-all-gallery {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-navy);
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 3px;
    transition: 0.3s;
}
.btn-view-all-gallery:hover { background: var(--accent-red); }

/* Expanding Gallery & Lightbox */
.full-gallery-hidden {
    display: none;
    margin-top: 50px;
    padding-top: 50px;
    border-top: 1px solid #eee;
}
.full-gallery-visible {
    display: block;
    animation: fadeIn 0.8s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.photo-grid-masonry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}
.photo-grid-masonry .gallery-item-alt img {
    width: 100%;
    aspect-ratio: 1 / 1; /* Forces square 'crop' */
    object-fit: cover; /* Ensures image fills the square without distortion */
    border: 4px solid #fff;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: 0.3s ease;
}
.photo-grid-masonry .gallery-item-alt img:hover {
    transform: scale(1.05);
    border-color: var(--primary-navy);
    z-index: 10;
}

@media (max-width: 992px) {
    .photo-grid-masonry { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
    .photo-grid-masonry { grid-template-columns: repeat(2, 1fr); }
}

/* Labs Showcase Section */
.labs-showcase-section {
    background: var(--bg-light);
}
.labs-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}
.lab-photo-item {
    position: relative;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 5px solid #fff;
}
.lab-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}
.lab-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 51, 102, 0.85);
    color: #fff;
    padding: 10px;
    text-align: center;
    transform: translateY(100%);
    transition: 0.3s ease;
}
.lab-photo-item:hover img {
    transform: scale(1.1);
}
.lab-photo-item:hover .lab-overlay {
    transform: translateY(0);
}

@media (max-width: 992px) {
    .labs-photo-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .labs-photo-grid { grid-template-columns: 1fr; }
}

/* Lightbox Styling */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}
.lightbox-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80vh;
    border: 5px solid #fff;
}
.close-lightbox {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #fff;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
}
#lightboxCaption {
    margin: auto;
    display: block;
    width: 80%;
    text-align: center;
    color: #ccc;
    padding: 15px 0;    font-size: 1.2rem;
}

/* Floating Button */
.floating-enquiry-btn { position: fixed; right: 20px; bottom: 20px; background: var(--accent-red); color: #fff; padding: 15px 25px; border-radius: 30px; text-decoration: none; font-weight: bold; box-shadow: var(--shadow-md); z-index: 2000; }

/* Polycet Badge Styling (Cleaned) */
.polycet-badge-wrap {
    background: var(--primary-navy);
    padding: 6px 18px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    margin-left: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
.polycet-label {
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-right: 10px;
    border-right: 1px solid rgba(255,255,255,0.3);
    padding-right: 10px;
}
.polycet-code-animate {
    color: var(--accent-gold);
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 2px;
    animation: codePulse 2s infinite;
}

@keyframes codePulse {
    0% { transform: scale(1); text-shadow: 0 0 0px var(--accent-gold); }
    50% { transform: scale(1.1); text-shadow: 0 0 10px var(--accent-gold); }
    100% { transform: scale(1); text-shadow: 0 0 0px var(--accent-gold); }
}

@media (max-width: 1100px) {
    .polycet-badge-wrap { display: none; } /* Hide on smaller tablets to prevent crowding */
}

/* Mobile Navigation & Header Optimization */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: #fff; /* White icon for navy background */
    cursor: pointer;
    padding: 10px;
}

@media (max-width: 992px) {
    .top-info-bar { padding: 8px 20px; font-size: 0.75rem; }
    .top-info-bar .contact-top { display: flex; flex-direction: column; gap: 2px; }
    
    .img-header-banner {
        max-height: 80px; /* Reduced to leave room for nav bar button */
    }
    
    .main-menu {
        margin-top: 0;
        height: 45px; /* Compact nav bar height */
        display: flex;
        align-items: center;
        justify-content: flex-end; /* Align toggle to right */
    }

    .mobile-toggle { 
        display: block; 
        margin-right: 10px;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--primary-navy);
        flex-direction: column;
        width: 100%; /* Full width dropdown on mobile */
        box-shadow: var(--shadow-md);
        padding: 20px;
        z-index: 1000;
        text-align: center;
    }
    .nav-links.active { display: flex; }
    .nav-links li { margin: 12px 0; }
    .nav-links a { color: #fff !important; font-size: 1.1rem; }
}

@media (max-width: 480px) {
    .img-header-banner { max-height: 70px; } /* Fits perfectly within the 100px spec */
    .branding-text h1 { font-size: 1.8rem; }
    .hero-text-content h2 { font-size: 2.2rem; }
}

/* Mobile optimization */
@media (max-width: 768px) {
    .toppers-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-categories-grid { grid-template-columns: 1fr; }
    .photo-grid-masonry { grid-template-columns: repeat(2, 1fr); }
    .highlight-photos-grid { grid-template-columns: 1fr; }
    
    /* General Responsive Refinements */
    .hero-slider-section { height: auto; min-height: 500px; padding: 100px 0 60px; }
    .hero-text-content h2 { font-size: 2.2rem; }
    .sp-80 { padding: 50px 0; }
    .section-title-center h2 { font-size: 1.8rem; }
    .about-grid { grid-template-columns: 1fr; gap: 30px; }
    .facilities-grid { grid-template-columns: 1fr 1fr; }
    
    /* Principal Section Mobile */
    .message-content-box h2 { font-size: 1.6rem; }
    .portrait-frame { max-width: 350px; margin: 0 auto; }
}

@media (max-width: 480px) {
    .facilities-grid { grid-template-columns: 1fr; }
    .branding-text h1 { font-size: 1.4rem; }
    .nav-logo { height: 60px; }
    .hero-actions { display: flex; flex-direction: column; gap: 15px; }
    .btn-main, .btn-alt { margin-right: 0; text-align: center; }
}

/* Desktop Wide View Optimization */
@media (min-width: 1400px) {
    .container { max-width: 1320px; }
    .hero-text-content h2 { font-size: 4.5rem; }
}
  .container { max-width: 1320px; }
    .hero-text-content h2 { font-size: 4.5rem; }
}
