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

:root {
    --primary-color: #002146;
    --secondary-color: #001a33;
    --accent-color: #1a237e;
    --text-dark: #333;
    --text-light: #666;
    --text-color: #333;
    --bg-color: #ffffff;
    --bg-light: #f5f5f5;
    --white: #fff;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Headings Font */
h1, h2, h3, h4, h5, h6,
.section-heading,
.welcome-text h2,
.leader-info h3,
.infra-overlay h3,
.center-content h3,
.footer-column h3,
.banner-content h2,
.college-name,
.college-name-hindi {
    font-family: 'PT Serif', serif;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Sticky Social Icons */
.sticky-social {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 5px;
    border-radius: 0 5px 5px 0;
}

.social-icon.facebook { background: #1877f2; }
.social-icon.youtube { background: #ff0000; }
.social-icon.instagram { background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); }
.social-icon.whatsapp { background: #25d366; }

.social-icon:hover {
    width: 60px;
    transform: translateX(5px);
}

/* Header Section 1 */
.header-section-1 {
    background: var(--primary-color);
    color: var(--white);
    padding: 0px 0;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
}

.contact-info span {
    margin-right: 20px;
    font-size: 14px;
}

.contact-info i {
    margin-right: 5px;
}

.header-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 3px;
}

.header-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.apply-btn {
    background: var(--white);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.apply-btn:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Header Section 2 */
.header-section-2 {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    min-width: 0;
}

.logo {
    height: 50px;
    width: auto;
    transition: opacity 0.3s ease;
}

.logo-section a:hover .logo {
    opacity: 0.8;
}

.college-name-section {
    display: flex;
    flex-direction: column;
    gap: 1px;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.college-name-section:hover {
    opacity: 0.8;
}

.college-name {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 700;
    margin: 2px;
    line-height: 1.1;
}

.college-name-hindi {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 600;
    margin: 2px;
    line-height: 1.2;
    font-family: 'Noto Sans Devanagari', 'Mangal', 'Arial Unicode MS', sans-serif;
}

.college-tagline {
    font-size: 10px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.main-menu {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
}

.main-menu ul.menu-list {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
    width: 100%;
    justify-content: flex-end;
}

.main-menu > ul > li {
    position: relative;
}

.main-menu ul.menu-list > li {
    position: relative;
    z-index: 1;
}

.main-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 6px 8px;
    white-space: nowrap;
    font-size: 13px;
    border-radius: 0;
}

.main-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.main-menu a i {
    font-size: 12px;
    transition: transform 0.3s ease;
    margin-left: 6px;
    font-weight: 900 !important;
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: inherit;
    line-height: 1;
    vertical-align: middle;
    font-style: normal;
    font-family: "Font Awesome 6 Free" !important;
}

.main-menu a.has-dropdown {
    cursor: pointer;
}

.main-menu > ul > li > a::after {
    display: none;
}

/* Dropdown Menu */
.menu-item-has-children {
    position: relative;
    z-index: 1000;
}

.menu-item-has-children.active {
    z-index: 10002;
}

.menu-item-has-children.active .sub-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.menu-item-has-children.active > a {
    background: var(--primary-color);
    color: var(--white);
}

.menu-item-has-children.active > a i {
    transform: rotate(180deg);
    color: var(--white) !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
    font-style: normal !important;
}

.sub-menu {
    display: none;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 280px;
    max-width: 350px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 4px 0;
    margin: 0;
    z-index: 10003;
    list-style: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    border: 1px solid var(--border-color);
    overflow: visible;
    pointer-events: none;
}

.sub-menu li {
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

.sub-menu a {
    padding: 8px 20px;
    display: block;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    z-index: 1;
}

.sub-menu a::before {
    content: '→';
    position: absolute;
    left: 15px;
    color: var(--primary-color);
    opacity: 0;
    transition: all 0.2s ease;
}

.sub-menu a::after {
    display: none;
}

.sub-menu a:hover {
    background: #e5e5e5;
    color: var(--primary-color);
    padding-left: 35px;
}

.sub-menu a:hover::before {
    opacity: 1;
    left: 20px;
}

.sub-menu li:last-child a {
    border-bottom: none;
}

.sub-menu li:first-child a {
    border-top: none;
}

/* Enhanced dropdown arrow */
.menu-item-has-children > a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-item-has-children.active > a::after {
    opacity: 1;
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Header Section 3 */
.header-section-3 {
    background: var(--bg-light);
    padding: 10px 0;
    border-bottom: 2px solid var(--border-color);
    overflow: hidden;
}

.header-section-3 .container {
    display: flex;
    align-items: center;
    overflow: hidden;
}

.announcement-label {
    display: inline-block;
    margin-right: 15px;
    color: var(--primary-color);
    font-weight: 600;
    flex-shrink: 0;
}

.announcement-marquee {
    display: inline-block;
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    min-width: 0;
}

.announcement-marquee marquee {
    width: 100%;
    overflow: hidden;
    display: block;
}

.announcement-marquee .separator {
    margin: 0 20px;
    color: var(--text-light);
}

/* Header Section 4 */
.header-section-4 {
    background: var(--bg-light);
    width: 100%;
    position: relative;
    z-index: 1;
}

.section-4-grid {
    display: grid;
    grid-template-columns: 4fr 1fr;
    gap: 0;
    max-width: 100%;
    margin: 0;
    padding: 0 0px;
    align-items: stretch;
}

.banner-slider-container {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 550px;
    display: flex;
    align-items: stretch;
    z-index: 1;
}

.banner-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.banner-slide {
    position: relative;
    height: 100%;
    width: 100%;
    transition: opacity 0.5s ease-in-out;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    padding: 30px 40px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.banner-content h2 {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-content p {
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.news-container {
    background: var(--white);
    border-radius: 0;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 550px;
    overflow: hidden;
    border-left: 4px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.section-title {
    font-size: 14px;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title i {
    color: var(--accent-color);
    font-size: 18px;
    background: rgba(26, 35, 126, 0.1);
    padding: 8px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-marquee-wrapper {
    flex: 1;
    overflow: hidden;
    min-height: 0;
    box-sizing: border-box;
    height: calc(100% - 60px);
}

.news-marquee {
    height: 100%;
    overflow: hidden;
}

.news-marquee marquee {
    height: 100%;
}

.news-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    box-sizing: border-box;
    width: 100%;
}

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

.news-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.news-link:hover {
    color: var(--primary-color);
}

.news-title {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 5px;
    word-wrap: break-word;
    transition: color 0.3s ease;
}

.news-link:hover .news-title {
    color: var(--primary-color);
}

.news-date {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-date i {
    font-size: 11px;
    color: var(--primary-color);
}

/* Welcome Section */
.welcome-section {
    padding: 60px 0;
    background: var(--white);
}

.welcome-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
}

.welcome-image {
    width: 100%;
}

.welcome-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    min-height: 400px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

.welcome-text {
    text-align: left;
}

.welcome-text h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: left;
}

.welcome-text p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    text-align: left;
}

.welcome-footer-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 33, 70, 0.1);
}

.welcome-footer-info .institution-name {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
    text-align: center;
}

.welcome-footer-info .excellence-centers-info {
    font-size: 12px;
    color: var(--text-light);
    margin: 0;
    text-align: center;
}

/* Leadership Section */
.leadership-section {
    padding: 20px 0;
    background: var(--bg-light);
}

.section-heading {
    text-align: center;
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.leadership-card {
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.leader-image {
    margin-bottom: 20px;
}

.leader-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
}

.leader-info h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 5px;
    text-align: center;
}

.leader-info .designation {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.leader-info .message {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

/* Counters Section */
.counters-section {
    padding: 30px 0;
    background: var(--primary-color);
    color: var(--white);
}

.counters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.counter-item {
    text-align: center;
    padding: 10px;
}

.counter-icon {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.counter-content {
    position: relative;
}

.counter-number {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
}

.counter-suffix {
    font-size: 24px;
    font-weight: 700;
    vertical-align: baseline;
}

.counter-unit {
    font-size: 18px;
    font-weight: 400;
    margin-left: 2px;
}

.counter-label {
    font-size: 14px;
    opacity: 0.9;
}

/* Infrastructure Section - Portfolio Layout */
.infrastructure-section {
    padding: 60px 0;
    background: var(--white);
}

/* Row and Column Utilities */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -7.5px;
}

.col-12 {
    width: 100%;
    padding: 0 7.5px;
}

.filter-content {
    width: 100%;
}

/* Portfolio Grid Layout */
.portfolio-classic {
    list-style: none;
    padding: 0;
    margin: 0;
}

.portfolio-wrapper {
    position: relative;
    min-height: 400px;
}

.grid {
    position: relative;
    width: 100%;
}

.grid-sizer {
    position: absolute;
    width: 0;
    height: 0;
    visibility: hidden;
}

.grid-item {
    position: absolute;
    width: 25%;
    padding: 7.5px;
    box-sizing: border-box;
    list-style: none;
}

.grid-item-double {
    width: 50%;
}

/* Portfolio Box */
.portfolio-box {
    position: relative;
    overflow: hidden;
    background: var(--white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.border-radius-6px {
    border-radius: 6px;
}

.box-shadow-large {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Portfolio Image */
.portfolio-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 300px;
}

.portfolio-image-tall {
    height: 350px;
}

.portfolio-image-short {
    height: 150px;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.portfolio-box:hover .portfolio-image img {
    transform: scale(1.1);
}

.bg-orange {
    background-color: #ff9800;
}

/* Portfolio Hover Effect */
.portfolio-hover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 33, 70, 0.85);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.portfolio-box:hover .portfolio-hover {
    opacity: 1;
    visibility: visible;
}

.d-flex {
    display: flex;
}

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

.justify-content-center {
    justify-content: center;
}

.h-100 {
    height: 100%;
}

/* Portfolio Icons */
.portfolio-icon {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

.portfolio-icon a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.portfolio-box:hover .portfolio-icon a {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-box:hover .portfolio-icon a:nth-child(1) {
    transition-delay: 0.1s;
}

.portfolio-box:hover .portfolio-icon a:nth-child(2) {
    transition-delay: 0.2s;
}

.rounded-circle {
    border-radius: 50%;
}

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

.text-slate-blue {
    color: #002146;
}

.text-slate-blue-hover:hover {
    color: var(--primary-color);
}

.icon-very-small {
    font-size: 14px;
}

/* Portfolio Caption */
.portfolio-caption {
    padding: 15px 20px;
    text-align: center;
}

.padding-10px-tb {
    padding-top: 10px;
    padding-bottom: 10px;
}

.lg-padding-15px-tb {
    padding-top: 15px;
    padding-bottom: 15px;
}

.portfolio-caption a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.text-extra-dark-gray {
    color: var(--text-dark);
}

.text-large {
    font-size: 18px;
}

.font-weight-500 {
    font-weight: 500;
}

/* Grid Responsive Classes */
.gutter-large {
    margin: 0 -7.5px;
}

.gutter-large > * {
    padding: 0 7.5px;
}

/* Responsive Grid Columns */
@media (min-width: 1200px) {
    .xl-grid-4col .grid-item {
        width: 25%;
    }
    .xl-grid-4col .grid-item-double {
        width: 50%;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .lg-grid-3col .grid-item {
        width: 33.333%;
    }
    .lg-grid-3col .grid-item-double {
        width: 66.666%;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .md-grid-2col .grid-item {
        width: 50%;
    }
    .md-grid-2col .grid-item-double {
        width: 100%;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .sm-grid-2col .grid-item {
        width: 50%;
    }
    .sm-grid-2col .grid-item-double {
        width: 100%;
    }
}

@media (max-width: 575px) {
    .xs-grid-1col .grid-item {
        width: 100%;
    }
    .xs-grid-1col .grid-item-double {
        width: 100%;
    }
}

/* Image Popup */
.image-popup {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    animation: fadeIn 0.3s;
}

.popup-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    margin-top: 50px;
    border-radius: 10px;
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.popup-close:hover {
    color: var(--accent-color);
}

#popupCaption {
    text-align: center;
    color: var(--white);
    padding: 20px;
    font-size: 20px;
}

/* Event Gallery Popup */
.event-gallery-popup {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: auto;
    animation: fadeIn 0.3s ease;
}

.event-gallery-popup .popup-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10002;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.event-gallery-popup .popup-close:hover {
    background: rgba(0, 0, 0, 0.8);
    color: var(--accent-color);
    transform: scale(1.1);
}

.event-gallery-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.event-gallery-header {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 30px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.event-gallery-header h3 {
    color: #fff;
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
}

.event-gallery-counter {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

.event-gallery-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: calc(100% - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.event-gallery-image-wrapper {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.event-gallery-image-wrapper img {
    width: 500px;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.gallery-nav-btn {
    position: relative;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    backdrop-filter: blur(10px);
}

.gallery-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.gallery-nav-btn:active {
    transform: scale(0.95);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

/* Responsive Event Gallery Popup */
@media (max-width: 768px) {
    .event-gallery-header {
        top: 10px;
        padding: 10px 20px;
    }
    
    .event-gallery-header h3 {
        font-size: 18px;
    }
    
    .event-gallery-counter {
        font-size: 14px;
    }
    
    .event-gallery-content {
        height: calc(100% - 100px);
        gap: 10px;
    }
    
    .event-gallery-image-wrapper img {
        width: 100%;
        max-width: 400px;
        height: auto;
        max-height: 320px;
    }
    
    .gallery-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .gallery-prev {
        left: 10px;
    }
    
    .gallery-next {
        right: 10px;
    }
    
    .event-gallery-popup .popup-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
}

/* Gallery Section */
.gallery-section {
    padding: 60px 0;
    background: var(--bg-light);
    position: relative;
}

/* Events Gallery Section */
.events-gallery-section {
    padding: 60px 0;
    background: var(--white);
    position: relative;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    height: 280px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--white);
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.gallery-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

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

.gallery-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 33, 70, 0.9) 0%, rgba(26, 35, 126, 0.85) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(2px);
}

.gallery-item:hover .gallery-hover-overlay {
    opacity: 1;
    visibility: visible;
}

.gallery-hover-content {
    text-align: center;
    color: var(--white);
    padding: 20px;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.gallery-item:hover .gallery-hover-content {
    transform: translateY(0);
}

.gallery-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
    color: var(--white);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

.gallery-hover-content h4 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.gallery-hover-content span {
    font-size: 16px;
    font-weight: 500;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

/* Gallery Title Overlay - Always Visible */
.gallery-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    padding: 15px 20px;
    z-index: 2;
    transition: all 0.3s ease;
}

.gallery-title-overlay h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--primary-color);
    text-align: center;
    letter-spacing: 0.3px;
}

.gallery-item:hover .gallery-title-overlay {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.90) 100%);
    padding: 18px 20px;
}

/* Gallery Item Border Effect */
.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid transparent;
    border-radius: 15px;
    transition: all 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.gallery-item:hover::before {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 33, 70, 0.3);
}

/* Gallery Section Heading Enhancement */
.gallery-section .section-heading,
.events-gallery-section .section-heading {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.gallery-section .section-heading::after,
.events-gallery-section .section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* Excellence Centers Section */
.excellence-centers-section {
    padding: 60px 0;
    background: white;
}

.centers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* Carousel Wrapper */
.carousel-wrapper {
    position: relative;
    width: 100%;
    padding: 0 60px;
}

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

.carousel-track {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.5s ease-in-out;
    gap: 25px;
    will-change: transform;
    width: max-content;
}

.carousel-item {
    flex: 0 0 auto;
    min-width: 0;
    flex-shrink: 0;
}

/* Carousel Navigation Buttons */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    background: rgba(0, 33, 70, 0.9);
    border: none;
    border-radius: 50%;
    display: flex !important; /* Always visible by default */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--white);
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 1;
}

.carousel-nav-btn:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 33, 70, 0.4);
}

.carousel-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.carousel-nav-btn[style*="opacity: 0.5"] {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

.carousel-nav-btn[style*="opacity: 1"] {
    opacity: 1 !important;
    cursor: pointer !important;
}

.carousel-prev-btn {
    left: 0;
}

.carousel-next-btn {
    right: 0;
}

/* Carousel for Gallery Grid */
.gallery-grid.carousel-container {
    overflow: hidden;
}

.gallery-grid.carousel-container .carousel-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 25px;
    width: max-content;
}

.gallery-grid.carousel-container .carousel-item {
    flex: 0 0 auto;
    flex-shrink: 0;
    width: 350px;
    min-width: 350px;
}

/* Carousel for Centers Grid */
.centers-grid.carousel-container {
    overflow: hidden;
}

.centers-grid.carousel-container .carousel-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 25px;
    width: max-content;
}

.centers-grid.carousel-container .carousel-item {
    flex: 0 0 auto;
    flex-shrink: 0;
    width: 280px;
    min-width: 280px;
}

/* Hide navigation buttons on mobile when not needed */
@media (max-width: 1024px) {
    .carousel-wrapper {
        padding: 0 50px;
    }
    
    .carousel-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .gallery-grid.carousel-container .carousel-item {
        width: 300px;
        min-width: 300px;
    }
    
    .centers-grid.carousel-container .carousel-item {
        width: 300px;
        min-width: 300px;
    }
}

@media (max-width: 768px) {
    .carousel-wrapper {
        padding: 0 40px;
    }
    
    .carousel-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .gallery-grid.carousel-container .carousel-item,
    .centers-grid.carousel-container .carousel-item {
        width: calc(100% - 0px);
        min-width: calc(100% - 0px);
    }
}

.center-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.center-icon {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--bg-light);
}

.center-icon img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    transition: transform 0.3s ease;
}

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

.center-content {
    padding: 15px 20px 20px;
    text-align: center;
}

.center-short-name {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.center-content h3.center-full-name {
    font-size: 18px;
    color: var(--primary-color);
    margin: 0;
    text-align: center;
    font-weight: 600;
}

/* Footer Section */
.footer-section {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--white);
    text-align: center;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: var(--white);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form button {
    padding: 12px;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--primary-color);
}

#newsletterMessage {
    margin-top: 10px;
    font-size: 14px;
}

/* Copyright Section */
.copyright-section {
    background: var(--secondary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 20px 0;
    text-align: center;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* News Detail Page */
.news-detail-section {
    padding: 40px 0;
    background: var(--white);
}

.news-detail-content {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.news-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.news-sidebar a:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

/* Banner Carousel Navigation */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    width: 50px;
    height: 50px;
    background: rgba(0, 33, 70, 0.8);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--white);
    font-size: 20px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 33, 70, 0.4);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-prev i,
.carousel-next i {
    color: var(--white);
    font-size: 20px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 1024px) {
    .news-detail-section > .container > div {
        grid-template-columns: 1fr;
    }
    
    .news-sidebar {
        position: static;
        margin-top: 30px;
    }
    .section-4-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    
    .leadership-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .counters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .centers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .header-top-content {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .contact-info {
        font-size: 12px;
    }
    
    .contact-info span {
        margin-right: 10px;
    }
    
    .header-links {
        gap: 10px;
    }
    
    .header-link {
        font-size: 12px;
        padding: 3px 6px;
    }
    
    .apply-btn {
        padding: 3px 8px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .sticky-social {
        display: none;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Header Section 1 */
    .header-section-1 {
        padding: 5px 0;
    }
    
    .header-top-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 10px 0;
    }
    
    .contact-info {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        font-size: 11px;
    }
    
    .contact-info span {
        margin-right: 0;
    }
    
    .header-links {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-start;
    }
    
    .header-link {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .apply-btn {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    /* Header Section 2 */
    .header-main-content {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .logo-section {
        width: 100%;
        justify-content: center;
    }
    
    .logo {
        height: 40px;
    }
    
    .college-name {
        font-size: 16px;
    }
    
    .college-name-hindi {
        font-size: 14px;
    }
    
    .college-tagline {
        font-size: 9px;
    }
    
    .college-name-section {
        gap: 1px;
    }
    
    .main-menu {
        width: 100%;
    }
    
    .main-menu ul.menu-list {
        flex-direction: column;
        gap: 0;
        display: none;
        width: 100%;
        background: var(--white);
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: var(--shadow-lg);
        padding: 10px 0;
        margin-top: 10px;
        border-radius: 5px;
    }
    
    .main-menu.active ul.menu-list {
        display: flex;
    }
    
    .main-menu ul.menu-list > li {
        width: 100%;
    }
    
    .main-menu a {
        width: 100%;
        padding: 12px 15px;
        justify-content: space-between;
    }
    
    .sub-menu {
        position: static;
        box-shadow: none;
        margin-top: 0;
        padding-left: 20px;
        display: none;
        opacity: 1;
        visibility: visible;
        width: 100%;
        min-width: auto;
        max-width: 100%;
    }
    
    .menu-item-has-children.active .sub-menu {
        display: block;
    }
    
    .menu-item-has-children > a {
        cursor: pointer;
    }
    
    .mobile-menu-toggle {
        display: block !important;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        font-size: 24px;
        color: var(--primary-color);
        z-index: 1000;
        background: var(--white);
        padding: 8px;
        border-radius: 5px;
        box-shadow: var(--shadow);
    }
    
    /* Header Section 3 */
    .header-section-3 {
        padding: 8px 0;
    }
    
    .announcement-label {
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    .announcement-marquee {
        font-size: 11px;
    }
    
    /* Page Banner */
    .page-banner-section h1 {
        font-size: 28px !important;
    }
    
    .page-banner-section p {
        font-size: 14px !important;
    }
    
    .page-banner-section nav {
        font-size: 12px !important;
    }
    
    /* Section 4 - Banner & News */
    .section-4-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .banner-slider-container {
        height: 300px;
    }
    
    .news-container {
        height: auto;
        min-height: 300px;
    }
    
    .banner-content {
        padding: 20px;
    }
    
    .banner-content h2 {
        font-size: 24px;
    }
    
    .banner-content p {
        font-size: 14px;
    }
    
    /* Welcome Section */
    .welcome-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .welcome-image img {
        max-width: 100%;
        min-height: 250px;
    }
    
    /* Leadership Section */
    .leadership-grid,
    .counters-grid,
    .centers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Infrastructure Section */
    .portfolio-wrapper.grid {
        height: auto !important;
    }
    
    .grid-item {
        position: relative !important;
        width: 100% !important;
        left: auto !important;
        top: auto !important;
        margin-bottom: 15px;
    }
    
    .grid-item-double {
        width: 100% !important;
    }
    
    .portfolio-image {
        height: 250px;
    }
    
    /* Gallery Section */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .gallery-item {
        height: 200px;
    }
    
    .gallery-icon {
        font-size: 32px;
    }
    
    .gallery-hover-content h4 {
        font-size: 14px;
    }
    
    /* Contact Us Page */
    .contact-section > .container > div {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .contact-info-card,
    .contact-form-card {
        padding: 20px !important;
    }
    
    /* Alumni Page */
    .alumni-section > .container > div {
        padding: 20px !important;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-column {
        text-align: center;
    }
    
    /* Section Headings */
    .section-heading {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .header-section-1 {
        padding: 8px 0;
    }
    
    .contact-info {
        font-size: 10px;
        flex-direction: column;
        gap: 5px;
    }
    
    .header-links {
        gap: 5px;
    }
    
    .header-link {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .apply-btn {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .logo {
        height: 35px;
    }
    
    .college-name {
        font-size: 14px;
    }
    
    .college-name-hindi {
        font-size: 12px;
    }
    
    .college-tagline {
        font-size: 8px;
    }
    
    .page-banner-section {
        padding: 30px 0 !important;
    }
    
    .page-banner-section h1 {
        font-size: 24px !important;
    }
    
    .page-banner-section p {
        font-size: 12px !important;
    }
    
    .section-heading {
        font-size: 24px;
    }
    
    .banner-slider-container {
        height: 250px;
    }
    
    .banner-content {
        padding: 15px;
    }
    
    .banner-content h2 {
        font-size: 20px;
    }
    
    .banner-content p {
        font-size: 12px;
    }
    
    .news-container {
        padding: 15px !important;
    }
    
    .section-title {
        font-size: 12px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .gallery-item {
        height: 180px;
    }
    
    .portfolio-image {
        height: 200px;
    }
    
    .contact-section > .container > div {
        gap: 20px !important;
    }
    
    .contact-info-card,
    .contact-form-card {
        padding: 15px !important;
    }
    
    .alumni-section > .container > div {
        padding: 15px !important;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

/* Animation Classes */
.wow {
    visibility: hidden;
}

.animate__fadeIn {
    animation: fadeIn 0.6s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
    }
}

/* Query Form Popup Styles */
.query-popup {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

.query-popup-content {
    background-color: #fff;
    margin: 2% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.query-popup-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 32px;
    font-weight: bold;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.query-popup-close:hover {
    color: #333;
    background-color: #f0f0f0;
}

.query-popup-content h2 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #333;
    font-size: 20px;
}

.query-popup-content > p {
    margin-bottom: 15px;
    color: #666;
    font-size: 13px;
}

.query-form .form-group {
    margin-bottom: 15px;
}

.query-form label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.query-form label .required {
    color: #e74c3c;
}

.query-form input[type="text"],
.query-form input[type="email"],
.query-form input[type="tel"],
.query-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.query-form input[type="text"]:focus,
.query-form input[type="email"]:focus,
.query-form input[type="tel"]:focus,
.query-form textarea:focus {
    outline: none;
    border-color: #007bff;
}

.query-form textarea {
    resize: vertical;
    min-height: 80px;
}

.query-form .form-message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    display: none;
}

.query-form .form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.query-form .form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.query-form .form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 15px;
}

.query-form .btn-submit,
.query-form .btn-cancel {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.query-form .btn-submit {
    background-color: #007bff;
    color: #fff;
}

.query-form .btn-submit:hover {
    background-color: #0056b3;
}

.query-form .btn-submit:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.query-form .btn-cancel {
    background-color: #6c757d;
    color: #fff;
}

.query-form .btn-cancel:hover {
    background-color: #5a6268;
}

/* Responsive Design */
@media (max-width: 768px) {
    .query-popup-content {
        margin: 5% auto;
        padding: 15px;
        width: 95%;
        max-height: 85vh;
    }
    
    .query-popup-content h2 {
        font-size: 18px;
    }
    
    .query-popup-content > p {
        font-size: 12px;
        margin-bottom: 12px;
    }
    
    .query-form .form-group {
        margin-bottom: 12px;
    }
    
    .query-form input[type="text"],
    .query-form input[type="email"],
    .query-form input[type="tel"],
    .query-form textarea {
        padding: 8px;
        font-size: 13px;
    }
    
    .query-form textarea {
        min-height: 70px;
    }
    
    .query-form .form-actions {
        flex-direction: column;
        margin-top: 12px;
    }
    
    .query-form .btn-submit,
    .query-form .btn-cancel {
        width: 100%;
        padding: 10px;
    }
}

