/* ========================================
    DIET - District Institute of Education and Training
    Main Stylesheet (updated for DIET branding)
    ======================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
    --primary-color: #0f6c8d;
    --primary: var(--primary-color);
    --secondary-color: #0a2e3d;
    --secondary: var(--secondary-color);
    --accent-color: #00d4ff;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --text-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #0a2e3d;
    --border-color: #e0e0e0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --border-radius-lg: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--secondary-color);
}

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

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ========================================
   TOP CONTACT BAR
   ======================================== */
.top-bar {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-info {
    display: flex;
    gap: 25px;
}

.top-bar-info a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-info a:hover {
    color: var(--accent-color);
}

.top-bar-social {
    display: flex;
    gap: 15px;
}

.top-bar-social a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.top-bar-social a:hover {
    background: var(--accent-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}


/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    background: #ffffff;
    box-shadow: var(--shadow);
    padding: 0;
    position: sticky;
    top: 50px;
    z-index: 1020;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}

.logo-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

/* Logo image */
.logo-img {
    width: 100px;
    height: 90px;
    object-fit: contain;
    border-radius: var(--border-radius);
    display: inline-block;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: 'Poppins', sans-serif;
    font-size: 25px;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.2;
}

.brand-tagline {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
}

.navbar-nav {
    gap: 5px;
}

/* NAV LINKS */
.nav-link {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 25px 15px !important;
    position: relative;
    transition: color .3s ease;
}

/* Underline animation */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .35s ease;
}

/* Hover underline */
.nav-link:hover::after {
    transform: scaleX(1);
}

/* Active page underline */
.nav-link.active::after {
    transform: scaleX(1);
}

/* Text color change */
.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Mobile menu button */
.navbar-toggler {
    border: none;
    padding: 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2815, 108, 141, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ========================================
   HERO SLIDER
   ======================================== */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.hero-slide-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 46, 61, 0.85) 0%, rgba(15, 108, 141, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-text {
    max-width: 700px;
    color: white;
}

.hero-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: inline-block;
}

.hero-title {
    font-size: 52px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-description {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
    pointer-events: none;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: auto;
}

.slider-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--accent-color);
    width: 30px;
    border-radius: 6px;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline-light {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
    background: white;
    color: var(--secondary-color);
    border-color: white;
}

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

.btn-accent:hover {
    background: #00bcd4;
    color: var(--secondary-color);
    transform: translateY(-2px);
}

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

.btn-white:hover {
    background: var(--accent-color);
    color: var(--secondary-color);
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
    padding: 80px 0;
}

.section-sm {
    padding: 50px 0;
}

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

.section-dark {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
}

.section-dark h2,
.section-dark h3 {
    color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-light);
    max-width: 600px;
    margin: 20px auto 0;
}

/* ========================================
   FEATURE CARDS
   ======================================== */
.feature-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 35px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border-bottom: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-bottom-color: var(--primary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    color: white;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: rotateY(360deg);
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.feature-text {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 20px;
}

.feature-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.feature-link:hover {
    color: var(--secondary-color);
    gap: 10px;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-image {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    text-align: justify;
}

.about-features {
    margin-top: 30px;
}

.about-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.about-feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(15, 108, 141, 0.1);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 20px;
    flex-shrink: 0;
}

.about-feature-text h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.about-feature-text p {
    font-size: 14px;
    margin-bottom: 0;
}

/* ========================================
   COURSE CARDS
   ======================================== */
.course-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;

}

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

.course-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-color);
    color: var(--secondary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.course-content {
    padding: 25px;
}

.course-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.course-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.course-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--text-light);
}

.course-meta-item i {
    color: var(--primary-color);
}

.course-text {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 20px;
}

/* ========================================
   FACILITIES
   ======================================== */
.facility-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.facility-item:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.facility-icon {
    width: 70px;
    height: 70px;
    background: rgba(15, 108, 141, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--primary-color);
    transition: var(--transition);
}

.facility-item:hover .facility-icon {
    background: white;
    color: var(--primary-color);
}

.facility-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary-color);
    transition: var(--transition);
}

.facility-item:hover .facility-title {
    color: white;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.cta-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
}

.cta-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

/* ========================================
   PAGE BANNER
   ======================================== */
.page-banner {
    position: relative;
    height: 350px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 46, 61, 0.9) 0%, rgba(15, 108, 141, 0.8) 100%);
}

.page-banner-content {
    position: relative;
    z-index: 1;
    color: white;
}

.page-banner-title {
    font-size: 42px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.page-banner-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-item.active {
    color: var(--accent-color);
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
}

.breadcrumb-item a:hover {
    color: var(--accent-color);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   VISION & MISSION
   ======================================== */
.vm-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
    height: 100%;
    border-left: 4px solid var(--primary-color);
}

.vm-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
    margin-bottom: 25px;
}

.vm-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.vm-text {
    color: var(--text-light);
    line-height: 1.8;
}

/* ========================================
   FACULTY CARDS
   ======================================== */
.faculty-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

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

.faculty-image {
    height: 358px;
    overflow: hidden;
}

.faculty-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.faculty-card:hover .faculty-image img {
    transform: scale(1.05);
}

.faculty-content {
    padding: 25px;
}

.faculty-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.faculty-designation {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
}

.faculty-social {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.faculty-social a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(15, 108, 141, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 14px;
    transition: var(--transition);
}

.faculty-social a:hover {
    background: var(--primary-color);
    color: white;
}

/* ========================================
   ACCORDION
   ======================================== */
.accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.accordion-button {
    padding: 20px 25px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--secondary-color);
    background: white;
    border: none;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230f6c8d'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 25px;
    background: white;
}

.course-details-list {
    margin-bottom: 20px;
}

.course-details-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.course-details-list li span:first-child {
    font-weight: 600;
    color: var(--secondary-color);
}

.course-details-list li span:last-child {
    color: var(--text-light);
}

/* ========================================
   SIDEBAR
   ======================================== */
.sidebar-widget {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.news-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.news-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.news-date {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.news-date .day {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.news-date .month {
    font-size: 12px;
    text-transform: uppercase;
}

.news-content h5 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
}

.news-content p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 0;
}

/* ========================================
   ADMISSION STEPS
   ======================================== */
.admission-step {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.step-content p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* ========================================
   DOCUMENT LIST
   ======================================== */
.document-list {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
}

.document-list h4 {
    margin-bottom: 25px;
    font-size: 20px;
}

.document-list ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.document-list ul li i {
    color: var(--primary-color);
    font-size: 18px;
}

/* =========================
   GALLERY ADVANCED (FINAL)
========================= */

.gallery-item{
    position:relative;
    overflow:hidden;
    border-radius:12px;
    cursor:pointer;
    box-shadow:0 5px 20px rgba(0,0,0,0.08);
    transition:all .4s ease;
}

/* IMAGE */
.gallery-item img{
    width:100%;
    height:220px;
    object-fit:cover;
    transition:.5s ease;
}

/* HOVER LIFT */
.gallery-item:hover{
    transform:translateY(-10px);
    box-shadow:0 15px 40px rgba(0,0,0,0.15);
}

/* ZOOM */
.gallery-item:hover img{
    transform:scale(1.1);
}

/* OVERLAY */
.gallery-overlay{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:linear-gradient(135deg, rgba(10,46,61,0.8), rgba(15,108,141,0.8));
    display:flex;
    align-items:center;
    justify-content:center;
    opacity:0;
    transition:.4s;
}

/* SHOW OVERLAY */
.gallery-item:hover .gallery-overlay{
    opacity:1;
}

/* ICON */
.gallery-overlay i{
    font-size:40px;
    color:#fff;
    transform:scale(.7);
    transition:.4s;
}

/* ICON ANIMATION */
.gallery-item:hover .gallery-overlay i{
    transform:scale(1) rotate(10deg);
}

/* TITLE */
.gallery-title{
    text-align:center;
    margin-top:10px;
    font-weight:600;
    transition:.3s;
}

.gallery-item:hover + .gallery-title{
    color:var(--primary-color);
}

/* =========================
   LIGHTBOX IMPROVED
========================= */
.lightbox{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.95);
    display:flex;
    align-items:center;
    justify-content:center;
    opacity:0;
    visibility:hidden;
    transition:.4s;
    z-index:9999;
}

.lightbox.active{
    opacity:1;
    visibility:visible;
}

.lightbox-content{
    position:relative;
    max-width:90%;
    max-height:90%;
}

.lightbox-content img{
    max-width:100%;
    max-height:85vh;
    border-radius:10px;
    animation:zoomIn .4s ease;
}

@keyframes zoomIn{
    from{transform:scale(.8); opacity:0;}
    to{transform:scale(1); opacity:1;}
}

/* ========================================
   VIDEO CARDS
   ======================================== */
.video-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-content {
    padding: 25px;
}

.video-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.video-description {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 0;
}

/* ========================================
   LINKS CARDS
   ======================================== */
/* CARD BASE */
.link-card, .feature-card {
    background: #fff;
    border-radius: 12px;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

/* HOVER EFFECT */
.link-card:hover, .feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

/* ICON STYLE */
.link-icon i, .feature-icon i {
    font-size: 40px;
    color: #ffffff;
    transition: all 0.5s ease;
}

/* ICON ANIMATION (MAIN MAGIC ✨) */
.link-card:hover .link-icon i,
.feature-card:hover .feature-icon i {
    transform: rotate(15deg) scale(1.2);
    color: #ffffff;
}

/* TITLE */
.link-title, .feature-title {
    font-weight: 600;
    margin-top: 10px;
}

/* TEXT */
.link-text {
    font-size: 14px;
    color: #666;
}

/* BUTTON */
.link-card .btn,
.feature-card .btn {
    transition: 0.3s;
}

.link-card:hover .btn,
.feature-card:hover .btn {
    background: #0a2e3d;
    border-color: #8aafe0;
}

/* ========================================
   CONTACT FORM
   ======================================== */
.contact-form-wrapper {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
}

.contact-form-wrapper h3 {
    margin-bottom: 30px;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.form-control {
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 15px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(15, 108, 141, 0.1);
}

.form-control::placeholder {
    color: #aaa;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ========================================
   CONTACT INFO
   ======================================== */
.contact-info-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.contact-info-content h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.contact-info-content p {
    color: var(--text-light);
    margin-bottom: 0;
    font-size: 15px;
}

.map-wrapper {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Contact Page Upgrades */
.contact-phone-group {
  display: flex;
  gap: 10px;
}

.country-select {
  width: 120px;
  flex-shrink: 0;
}

.phone-input {
  flex: 1;
}

.error-msg {
  color: #dc3545;
  font-size: 13px;
  margin-top: 5px;
  display: block;
}

.full-map-section {
  margin-top: 50px;
}

.full-map-wrapper {
  width: 100%;
  height: 450px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

#successModal .modal-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

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

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #051a23 100%);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 0;
}

.footer-widget {
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.footer-logo-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.footer-logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.footer-about-text {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 25px;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.footer-links li a::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    color: var(--primary-color);
}

.footer-links li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 14px;
}

.footer-contact li i {
    color: var(--primary-color);
    font-size: 16px;
    margin-top: 3px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    margin-top: 40px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-copyright a {
    color: var(--accent-color);
}

.footer-copyright a:hover {
    color: white;
}

/* ========================================
   FLOATING BUTTONS
   ======================================== */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.floating-btn:hover {
    transform: scale(1.1);
    color: white;
}

.floating-whatsapp {
    background: #25d366;
}

.floating-call {
    background: var(--primary-color);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(15, 108, 141, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(15, 108, 141, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(15, 108, 141, 0);
    }
}

.floating-whatsapp {
    animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 44px;
    }
    
    .nav-link {
        padding: 20px 12px !important;
        font-size: 13px;
    }
}

@media (max-width: 991px) {
    .top-bar-info {
        gap: 15px;
    }
    
    .top-bar-info a span {
        display: none;
    }
    
    .navbar {
        position: relative;
        top: 0;
    }
    
    .navbar-collapse {
        background: white;
        padding: 20px;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow);
        margin-top: 10px;
    }
    
    .nav-link {
        padding: 12px 0 !important;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .hero-slider {
        height: 500px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    .page-banner {
        height: 280px;
    }
    
    .page-banner-title {
        font-size: 32px;
    }
    
    .lightbox-prev {
        left: 20px;
    }
    
    .lightbox-next {
        right: 20px;
    }
}

@media (max-width: 767px) {
    .hero-slider {
        height: 450px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .cta-title {
        font-size: 28px;
    }
    
    .floating-buttons {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 575px) {
    .top-bar {
        display: none;
    }
    
    .navbar {
        top: 0;
    }
    
    .brand-name {
        font-size: 18px;
    }
    
    .brand-tagline {
        font-size: 10px;
    }
    
    .logo-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    /* Adjust logo image on very small screens to match compact layout */
    .logo-img {
        width: 45px;
        height: 45px;
    }
    
    .hero-slider {
        height: 400px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .feature-card {
        padding: 25px 20px;
    }
    
    .contact-form-wrapper {
        padding: 25px;
    }
    
    .vm-card {
        padding: 25px;
    }
}

/* ========================================
   SCROLLBAR
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* ========================================
   SELECTION
   ======================================== */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

.course-card{
background:#fff;
border-radius:10px;
overflow:hidden;
box-shadow:0 5px 15px rgba(0,0,0,0.08);
height:100%;
}

/* Modern Notices Marquee */
.notices-section {
  border-top: 2px solid var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  background: linear-gradient(135deg, var(--bg-light) 0%, #f0f8ff 100%);
  padding: 15px 0;
}

.notices-wrapper {
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  background: white;
  padding: 12px 20px;
  position: relative;
}

.notices-marquee {
  position: relative;
  width: 100%;
  height: 40px;
  overflow: hidden;
}

.notices-track {
  display: flex;
  height: 100%;
  animation: infinite-scroll 10s linear infinite;
  gap: 30px;
  will-change: transform;
}

@keyframes infinite-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .notices-track {
    animation-duration: 25s;
    gap: 20px;
  }
}



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

.notice-item {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  padding: 8px 20px;
  background: rgba(255,255,255,0.9);
  border-radius: 20px;
  margin: 0 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  white-space: nowrap;

  font-weight: 600;
  font-size: 15px;
  color: var(--secondary-color);
  padding: 8px 20px;
  background: linear-gradient(135deg, rgba(15,108,141,0.1) 0%, rgba(10,46,61,0.1) 100%);
  border-radius: 25px;
  border: 1px solid rgba(15,108,141,0.2);
  min-width: max-content;
  transition: all 0.3s ease;
}

.notice-item:hover {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(15,108,141,0.3);
}

@keyframes marquee-slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .notice-item {
    font-size: 13px;
    padding: 6px 16px;
    gap: 30px;
  }
  @keyframes marquee-slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
}

/* =========================
   🔥 GLOBAL CONTROL PANEL
   (yahi se sab change hoga)
========================= */

:root {
  --card-width: 260px;
  --card-radius: 12px;
  --image-height: 260px;
  --gap: 20px;

  --scroll-speed: 30s;

  --shadow: 0 4px 12px rgba(0,0,0,0.1);
  --primary: #0b5ed7;
}

/* =========================
   🔥 SLIDER
========================= */

.faculty-slider {
  overflow: hidden;
  width: 100%;
  padding: 20px 0;
}

.faculty-track {
  display: flex;
  gap: var(--gap);
  width: max-content;
  animation: scrollLoop var(--scroll-speed) linear infinite;
}

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

@keyframes scrollLoop {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =========================
   🔥 CARD
========================= */

.faculty-card {
  flex: 0 0 var(--card-width);
  background: #fff;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: 0.3s;
}

.faculty-card:hover {
  transform: translateY(-5px);
}

/* IMAGE */
.faculty-image {
  width: 100%;
  height: var(--image-height);
}

.faculty-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* TEXT */
.faculty-content {
  padding: 10px;
}

.faculty-name {
  font-size: 16px;
  font-weight: 600;
}

.faculty-designation {
  font-size: 13px;
  color: #666;
}

/* =========================
   🔥 GRID MODE
========================= */

.faculty-grid-wrapper {
  position: relative;
}

.faculty-grid {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 10px;
  cursor: grab;
}

.faculty-grid:active {
  cursor: grabbing;
}

.faculty-grid::-webkit-scrollbar {
  display: none;
}

.faculty-grid .faculty-card {
  min-width: var(--card-width);
  scroll-snap-align: start;
}

/* =========================
   🔥 CONTROLS
========================= */

.faculty-controls {
  position: absolute;
  top: -50px;
  right: 10px;
  display: none;
  gap: 5px;
}

.grid-active .faculty-controls {
  display: flex;
}

.faculty-controls button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
}

.faculty-controls button:hover {
  background: #084298;
}

/* TOGGLE BUTTON */
#viewToggle {
  border-radius: 20px;
  padding: 6px 18px;
}

/* ==================
Image Error Fallback
====================== */
img {
  image-rendering: -webkit-optimize-contrast;
}

img:not([src]) {
  background: #f3f4f6;
  min-height: 100px;
}

img.error-fallback {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

img.error-fallback::before {
  content: '📷';
  font-size: 3rem;
  opacity: 0.3;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.gallery-item {
    overflow: hidden;
    border-radius: 10px;
}

.gallery-item img {
    transition: 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* =========================
   VIDEO CARD HOVER EFFECT
========================= */
.video-card{
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 5px 20px rgba(0,0,0,0.08);
    transition:0.4s;
    position:relative;
}

.video-card:hover{
    transform:translateY(-10px);
    box-shadow:0 15px 40px rgba(0,0,0,0.15);
}

/* =========================
   VIDEO IMAGE ZOOM
========================= */
.video-wrapper{
    overflow:hidden;
    border-radius:12px;
    position:relative;
}

.video-wrapper img{
    transition:0.5s;
}

.video-card:hover img{
    transform:scale(1.1);
}

/* =========================
   DARK OVERLAY
========================= */
.video-wrapper::after{
    content:'';
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.4);
    opacity:0;
    transition:0.4s;
}

.video-card:hover .video-wrapper::after{
    opacity:1;
}

/* =========================
   PLAY BUTTON
========================= */
.play-btn{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%, -50%) scale(0.8);
    font-size:60px;
    color:#fff;
    opacity:0;
    transition:0.4s;
}

.video-card:hover .play-btn{
    opacity:1;
    transform:translate(-50%, -50%) scale(1);
}

/* pulse animation */
.play-btn i{
    animation:pulsePlay 1.5s infinite;
}

@keyframes pulsePlay{
    0%{ transform:scale(1); }
    50%{ transform:scale(1.2); }
    100%{ transform:scale(1); }
}

/* =========================
   TEXT ANIMATION
========================= */
.video-title{
    font-weight:600;
    transition:0.3s;
}

.video-card:hover .video-title{
    color:var(--primary-color);
}


/* ICON CIRCLE */
.link-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: #eaf4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    perspective: 800px;
}

/* ICON */
.link-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: #4083a2;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.link-icon i {
    font-size: 28px;
    color: #ffffff;
    display: inline-block;
    transform-origin: center;
}

/* 🔥 FAST MULTI JHUM */
.link-card:hover .link-icon i {
    animation: flipFast 0.6s ease-in-out;
}

/* 🔥 KEYFRAMES (2–3 JHUM EFFECT) */
@keyframes flipFast {
    0%   { transform: rotateY(0deg); }
    /* 50%  { transform: rotateY(180deg); }
    50%  { transform: rotateY(360deg); }
    75%  { transform: rotateY(180deg); } */
    100% { transform: rotateY(360deg); }
}

/* COLOR EFFECT */
.link-card:hover .link-icon {
    background: #406a71;
}

.link-card:hover .link-icon i {
    color: #fff;
}

/* CARD */
.link-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.link-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}