/* ============================================
   Sri Bakthavatchalam I.T.I - Complete Stylesheet
   ============================================ */

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Color Variables --- */
:root {
    --primary: #0d47a1;
    --primary-dark: #0a3580;
    --secondary: #ff6f00;
    --accent: #1565c0;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #0d47a1, #1565c0);
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* --- Top Bar --- */
.top-bar {
    background: var(--dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 13px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.top-bar-left {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-left i {
    color: var(--secondary);
}

.top-bar-right {
    display: flex;
    gap: 15px;
}

.top-bar-right a {
    color: var(--white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.top-bar-right a:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* --- Header --- */
.header {
    background: var(--white);
    padding: 15px 0;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.college-info h1 {
    font-size: 24px;
    color: var(--primary);
    font-weight: 800;
    line-height: 1.2;
}

.college-info p {
    font-size: 12px;
    color: var(--gray);
}

.skill-india-logo {
    width: 120px;
    object-fit: contain;
}

/* --- Navigation --- */
.navbar {
    background: var(--gradient);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar .container {
    display: flex;
    align-items: center;
    position: relative;
}

.menu-toggle {
    display: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    padding: 15px 0;
}

.nav-menu {
    display: flex;
    flex-wrap: wrap;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 15px 14px;
    color: var(--white);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    background: rgba(255, 255, 255, 0.15);
}

.nav-menu > li > a .arrow {
    font-size: 10px;
    transition: transform 0.3s;
}

/* --- Dropdown Menu --- */
.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--white);
    box-shadow: var(--shadow-hover);
    border-radius: 0 0 8px 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.has-dropdown:hover > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    color: #333;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.dropdown li a:hover {
    background: var(--primary);
    color: var(--white);
    padding-left: 22px;
}

.dropdown li:last-child a {
    border-bottom: none;
}

/* --- Sub-dropdown (Multi-level) --- */
.has-dropdown-sub {
    position: relative;
}

.dropdown-sub {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 200px;
    background: var(--white);
    box-shadow: var(--shadow-hover);
    border-radius: 0 8px 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 1002;
}

.has-dropdown-sub:hover > .dropdown-sub {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.arrow-right {
    font-size: 10px !important;
}

/* --- Hero Slider --- */
.hero-slider {
    position: relative;
    height: 550px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;


    pointer-events: none;
    z-index: 1;
}

.slide.active {
    opacity: 1;


    pointer-events: auto;
    z-index: 2;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.85), rgba(26, 26, 46, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-content {
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.slide-content h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 20px;
    margin-bottom: 25px;
    font-weight: 300;
}

.slider-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    font-size: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.slider-nav .prev-btn {
    left: 20px;
}

.slider-nav .next-btn {
    right: 20px;
}

.slider-nav button:hover {
    background: var(--secondary);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dots .dot.active {
    background: var(--secondary);
    transform: scale(1.2);
}

/* --- Buttons --- */
.btn-primary {
    display: inline-block;
    background: var(--secondary);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background: #e65100;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 111, 0, 0.4);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--primary);
    padding: 10px 25px;
    border: 2px solid var(--primary);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-card {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.btn-card:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark);
}

.section-header h2 span {
    color: var(--primary);
}

.section-header.light h2 {
    color: var(--white);
}

.section-header.light h2 span {
    color: var(--secondary);
}

.section-header p {
    color: var(--gray);
    margin-top: 10px;
    font-size: 16px;
}

.underline {
    width: 80px;
    height: 4px;
    background: var(--secondary);
    margin: 15px auto;
    border-radius: 2px;
}

/* --- Welcome Section --- */
.welcome-section {
    padding: 80px 0;
}

.welcome-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.welcome-text p {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.8;
}

.welcome-image img {
    border-radius: 15px;
    box-shadow: var(--shadow-hover);
}

.about-highlights {
    margin: 20px 0;
}

.about-highlights li {
    padding: 5px 0;
    color: var(--primary);
    font-weight: 500;
}

.about-highlights li i {
    color: var(--secondary);
    margin-right: 10px;
}

/* --- Courses Overview --- */
.courses-overview {
    padding: 80px 0;
    background: var(--light);
}

.course-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.course-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    border-top: 4px solid transparent;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-top-color: var(--primary);
}

.course-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gradient);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 15px;
}

.course-card h3 {
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 10px;
}

.course-card p {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 10px;
}

.course-count {
    display: inline-block;
    background: var(--light);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
}

/* --- Why Choose Us --- */
.why-choose {
    padding: 80px 0;
    background: var(--gradient);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    color: var(--white);
    transition: all 0.4s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 40px;
    color: var(--secondary);
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 14px;
    opacity: 0.9;
}

/* --- Stats Section --- */
.stats-section {
    padding: 60px 0;
    background: var(--dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    color: var(--white);
}

.stat-item i {
    font-size: 40px;
    color: var(--secondary);
    margin-bottom: 10px;
}

.stat-item h3 {
    font-size: 42px;
    font-weight: 800;
}


.stat-item p {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 5px;

}

/* --- News Ticker --- */
.news-ticker {
  padding: 15px 0;
  background: #fff3e0;
  border-top: 3px solid #ff6f00;
  border-bottom: 3px solid #ff6f00;
}

.ticker-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
}

.ticker-label {
  background: #ff6f00;
  color: #fff;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ticker-content {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 60px;
  white-space: nowrap;
  will-change: transform;
  animation: tickerScroll 25s linear infinite;
}

.ticker-track span {
  display: inline-block;
  font-weight: 600;
  color: #111;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* --- Page Banner --- */
.page-banner {
    background: var(--gradient);
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.page-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, transparent 49.5%, var(--white) 50%);
}

.banner-overlay h2 {
    color: var(--white);
    font-size: 40px;
    font-weight: 700;
}

.banner-overlay p {
    color: rgba(255, 255, 255, 0.8);
    margin-top: 10px;
}

.banner-overlay p a {
    color: var(--secondary);
}

/* --- About Section --- */
.about-section {
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    border-radius: 15px;
    box-shadow: var(--shadow-hover);
    height: 70vh;
    width: 400px;
}

.about-text h3 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 15px;
}

.about-text p {
    color: #555;
    margin-bottom: 12px;
    line-height: 1.8;
}

/* --- Vision & Mission --- */
.vision-mission {
    padding: 80px 0;
    background: var(--light);
}

.vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.vm-card {
    background: var(--white);
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    border-bottom: 4px solid var(--primary);
}

.vm-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.vm-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
}

.vm-card h3 {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 15px;
}

.vm-card p,
.vm-card li {
    color: #555;
    line-height: 1.8;
    text-align: left;
}

.vm-card ul {
    padding-left: 20px;
}

.vm-card ul li {
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.vm-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: 700;
}

/* --- Principal Section --- */
.principal-section {
    padding: 80px 0;
}

.principal-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

.principal-image {
    text-align: center;
}

.principal-image img {
    width: 250px;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: var(--shadow-hover);
    margin-bottom: 15px;
}

.principal-image h4 {
    font-size: 18px;
    color: var(--primary);
}

.principal-image p {
    font-size: 14px;
    color: var(--gray);
}

.principal-text p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 12px;
}

/* --- Affiliation Section --- */
.affiliation-section {
    padding: 80px 0;
    background: var(--light);
}

.affiliation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.affil-card {
    background: var(--white);
    border-radius: 15px;
    padding: 35px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary);
}

.affil-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.affil-card i {
    font-size: 45px;
    color: var(--primary);
    margin-bottom: 15px;
}

.affil-card h3 {
    font-size: 20px;
    color: var(--dark);
    margin-bottom: 10px;
}

.affil-card p {
    font-size: 14px;
    color: var(--gray);
}

/* --- Courses Section (Courses Page) --- */
.courses-section {
    padding: 80px 0;
}

.courses-section.alt-bg {
    background: var(--light);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.course-detail-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    border-left: 5px solid var(--primary);
}

.course-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-left-color: var(--secondary);
}

.course-detail-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--gradient);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 15px;
}

.course-detail-card h3 {
    font-size: 20px;
    color: var(--dark);
    margin-bottom: 10px;
}

.course-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
}

.course-detail-card p {
    color: #555;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 10px;
}

.course-detail-card h4 {
    font-size: 15px;
    color: var(--dark);
    margin-bottom: 8px;
}

.course-detail-card ul {
    padding-left: 15px;
    margin-bottom: 15px;
}

.course-detail-card ul li {
    font-size: 13px;
    color: #666;
    padding: 3px 0;
    position: relative;
    padding-left: 15px;
}

.course-detail-card ul li::before {
    content: '►';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-size: 10px;
}

.eligibility {
    display: inline-block;
    background: #e3f2fd;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
}

/* --- Gallery --- */
.gallery-section {
    padding: 80px 0;
}

.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow);
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: 14px;
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: var(--white);
    cursor: pointer;
    z-index: 10000;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* --- Contact Section --- */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-hover);
}

.contact-card-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    background: var(--gradient);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.contact-card h3 {
    font-size: 16px;
    color: var(--dark);
    margin-bottom: 5px;
}

.contact-card p {
    font-size: 14px;
    color: var(--gray);
}

.contact-card a {
    color: var(--primary);
}

.contact-card a:hover {
    color: var(--secondary);
}

/* --- Contact Form --- */
.contact-form-wrapper {
    background: var(--white);
    border-radius: 15px;
    padding: 35px;
    box-shadow: var(--shadow);
}

.contact-form-wrapper h3 {
    font-size: 22px;
    color: var(--dark);
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    margin-bottom: 20px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
}

/* --- Map --- */
.map-section {
    padding: 60px 0 80px;
}

.map-wrapper {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

/* --- Infrastructure --- */
.infra-section {
    padding: 80px 0;
}

.infra-section.alt-bg {
    background: var(--light);
}

.infra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
      position: relative;
   padding-bottom: -100px;

}

.infra-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
   position: relative;
   padding-bottom: -100px;

}

.infra-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.infra-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;

}

.infra-card h4 {
    padding: 15px;
    text-align: center;
    font-size: 16px;
    color: var(--dark);
    background: var(--white);
}

.infra-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.infra-feature-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-bottom: 4px solid var(--primary);
}

.infra-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.infra-feature-card i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 15px;
}

.infra-feature-card h4 {
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 10px;
}

.infra-feature-card p {
    font-size: 14px;
    color: var(--gray);
}

/* --- Placements --- */
.placement-stats {
    padding: 80px 0;
}

.recruiters-section {
    padding: 80px 0;
    background: var(--light);
}

.recruiters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.recruiter-card {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.recruiter-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-bottom: 3px solid var(--primary);
}

.recruiter-card i {
    font-size: 35px;
    color: var(--primary);
    margin-bottom: 10px;
}

.recruiter-card h4 {
    font-size: 14px;
    color: var(--dark);
}

/* --- Placement Process --- */
.placement-process {
    padding: 80px 0;
}

.process-timeline {
    max-width: 700px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}

.step-number {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    background: var(--gradient);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.step-content h4 {
    font-size: 16px;
    color: var(--dark);
    margin-bottom: 5px;
}

.step-content p {
    font-size: 14px;
    color: var(--gray);
}

/* --- Footer --- */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

.footer-col p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.contact-list li i {
    color: var(--secondary);
    margin-top: 4px;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* --- WhatsApp Float --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5);
    z-index: 999;
    animation: whatsappPulse 2s infinite;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 30px rgba(37, 211, 102, 0.7);
}

@keyframes whatsappPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- Scroll to Top --- */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 100px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .welcome-content,
    .about-content,
    .vm-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .principal-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .affiliation-grid {
        grid-template-columns: 1fr;
    }

    .slide-content h2 {
        font-size: 32px;
    }

    .hero-slider {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .top-bar-left {
        flex-direction: column;
        gap: 5px;
    }

    .top-bar .container {
        flex-direction: column;
        gap: 8px;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .logo-section {
        flex-direction: column;
    }

    .college-info h1 {
        font-size: 18px;
    }





    /* Mobile Menu */
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--primary-dark);
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
        max-height: 70vh;
        overflow-y: auto;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu > li > a {
        padding: 10px 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 0;
    }

    .dropdown.show {
        display: block;
    }

    .dropdown li a {
        color: rgba(255, 255, 255, 0.9);
        border-bottom-color: rgba(255, 255, 255, 0.05);
        padding-left: 35px;
    }

    .dropdown li a:hover {
        padding-left: 40px;
    }

    .dropdown-sub {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.15);
        border-radius: 0;
    }

    .dropdown-sub.show {
        display: block;
    }

    .dropdown-sub li a {
        padding-left: 50px !important;
        color: rgba(255, 255, 255, 0.8);
    }

    .slide-content h2 {
        font-size: 24px;
    }

    .slide-content p {
        font-size: 16px;
    }

    .hero-slider {
        height: 350px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }

    .scroll-top {
        right: 80px;
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .college-info h1 {
        font-size: 16px;
    }

    .slide-content h2 {
        font-size: 20px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .hero-slider {
        height: 300px;
    }

    .banner-overlay h2 {
        font-size: 28px;
    }
}

/* ===== Dual College Header (Sri Bakthavatchalam + RK) ===== */
.header-dual{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.header-left-logo,
.header-right-logo{
  flex: 0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
}

.header-center-titles{
  flex: 1 1 auto;
  text-align:left;
}

.dual-title{
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  color: #0d47a1;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:baseline;
}

.dual-title .title-primary{
  color:#0d47a1;
}

.dual-title .title-sep{
  color:#999;
  font-weight:600;
}

.dual-title .title-secondary{
  color:#0a3580;
}

.header-center-titles .subline{
  margin: 2px 0;
  font-size: 12px;
  color: #6c757d;
}

/* Mobile responsive */
@media (max-width: 768px){
  .header-dual{
    flex-direction:column;
    text-align:center;
  }
  .header-center-titles{
    text-align:center;
  }
  .dual-title{
    justify-content:center;
    font-size:18px;
  }
}