.gallery-grid {
    display: flex;
    gap: 12px;
    overflow: hidden;
    white-space: nowrap;
    scroll-behavior: smooth;
    position: relative;
}

.gallery-item {
    flex: 0 0 220px;
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.35s ease;
    display: block;
}

.gallery-item img:hover {
    transform: scale(1.05);
    opacity: 0.9;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* scrollbar hide */

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

.gallery-grid {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ===== GALLERY MODAL (for assets/js/galerry.js) ===== */
.gallery-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.gallery-modal.active {
    display: flex;
}

.gallery-modal-img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 6px;
    border: 3px solid #fff;
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    user-select: none;
}

.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

.gallery-prev {
    left: 30px;
}

.gallery-next {
    right: 30px;
}

/* Tablet */

@media (max-width: 992px) {
    .gallery-item {
        flex: 0 0 180px;
    }

    .gallery-item img {
        height: 130px;
    }
}

/* Mobile */

@media (max-width: 576px) {
    .gallery-item {
        flex: 0 0 140px;
    }

    .gallery-item img {
        height: 100px;
        border-radius: 6px;
    }
}


/* ===== Academic Calendar Section - Start ===== */

.academic-calendar-section {
    background: #fff;
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 4px;
}

.academic-calendar-section h2 {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 700;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
}

.academic-calendar-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.academic-calendar-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #f8faff;
    border: 1px solid #e8edf5;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.academic-calendar-item:hover {
    background: #eef5ff;
    border-color: var(--primary);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 185, 242, 0.1);
}

.academic-calendar-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00b9f2, #0e56c2);
    border-radius: 12px;
    color: #fff;
    font-size: 22px;
}

.academic-calendar-info {
    flex: 1;
    min-width: 0;
}

.academic-calendar-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.academic-calendar-info p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.academic-calendar-btn {
    padding: 10px 22px;
    background: linear-gradient(135deg, #00b9f2, #0e56c2);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 185, 242, 0.2);
}

.academic-calendar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 185, 242, 0.35);
    background: linear-gradient(135deg, #0e56c2, #00b9f2);
}

/* ===== PDF Viewer Modal - Start ===== */

.pdf-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.pdf-modal.active {
    display: flex;
}

.pdf-modal-content {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: pdfModalFadeIn 0.3s ease;
}

@keyframes pdfModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.pdf-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    background: #f8faff;
}

.pdf-modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.pdf-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: #eef2f6;
    border-radius: 50%;
    font-size: 22px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.pdf-modal-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.pdf-modal-body {
    flex: 1;
    min-height: 70vh;
    display: flex;
}

.pdf-modal-body iframe {
    width: 100%;
    height: 70vh;
    border: none;
}

/* ===== Academic Calendar Responsive - Start ===== */

@media (max-width: 768px) {
    .academic-calendar-section h2 {
        font-size: 18px;
    }

    .academic-calendar-item {
        flex-wrap: wrap;
        gap: 12px;
        padding: 14px 16px;
    }

    .academic-calendar-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
        font-size: 18px;
    }

    .academic-calendar-info h3 {
        font-size: 14px;
    }

    .academic-calendar-info p {
        font-size: 12px;
    }

    .academic-calendar-btn {
        width: 100%;
        text-align: center;
        padding: 10px 16px;
        font-size: 12px;
    }

    .pdf-modal {
        padding: 10px;
    }

    .pdf-modal-content {
        max-height: 95vh;
        border-radius: 8px;
    }

    .pdf-modal-header {
        padding: 12px 16px;
    }

    .pdf-modal-header h3 {
        font-size: 15px;
    }

    .pdf-modal-body {
        min-height: 50vh;
    }

    .pdf-modal-body iframe {
        height: 50vh;
    }
}

@media (max-width: 480px) {
    .academic-calendar-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .academic-calendar-info {
        width: 100%;
    }

    .pdf-modal-body iframe {
        height: 40vh;
    }
}

/* ===== Academic Calendar & PDF Modal - End ===== */

/* ===== Academic Calendar - Inline PDF Viewer (no modal) ===== */

.academic-pdf-viewer {
    /* Full-page inline viewer (overlay) */
    position: fixed;
    inset: 0;
    z-index: 99999;

    width: 100%;
    height: 100%;
    margin: 0;

    background: rgba(0, 0, 0, 0.75);
    padding: 18px;

    overflow: auto;
}

.academic-pdf-header {
    /* header will be inside content box */
}

.academic-pdf-viewer>.academic-pdf-header,
.academic-pdf-viewer>.academic-pdf-body {
    position: relative;
    z-index: 1;
}

.academic-pdf-viewer>.academic-pdf-header {
    max-width: 1100px;
    margin: 0 auto;
}

.academic-pdf-viewer>.academic-pdf-body {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}


.academic-pdf-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    background: #f8faff;
    border-bottom: 1px solid var(--border);
}

.academic-pdf-header h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #1e293b;
}

.academic-pdf-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #eef2f6;
    color: #64748b;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.academic-pdf-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.academic-pdf-body {
    width: 100%;
    padding: 0;
}

.academic-pdf-body iframe {
    width: 100%;
    height: 70vh;
    border: none;
    display: block;
}

@media (max-width: 768px) {
    .academic-pdf-body iframe {
        height: 50vh;
    }
}

@media (max-width: 480px) {
    .academic-pdf-body iframe {
        height: 40vh;
    }
}


/* footer contect */
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    padding: 5px;
    border-radius: 10px;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.footer-contact-item i {
    font-size: 13px;
    min-width: 25px;
    margin-top: 4px;
}

.footer-contact-item span {
    display: block;
    font-size: 11px;
    font-weight: 600;
    opacity: .8;
    margin-bottom: 3px;
}

.footer-contact-item strong {
    display: block;
    font-size: 13px;
    line-height: 1.6;
}

/* Desktop Hover */
.footer-contact-item:hover {
    background: #c58921;
    transform: translateX(5px);
    color: black;
}

/* Mobile Touch Highlight */
.footer-contact-item:active {
    background: rgba(255, 255, 255, 0.18);
    transform: scale(.98);
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
    justify-content: center;
}

.social-icon {
    width: 35px;
    height: 35px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #eb9707;
    font-size: 20px;
    transition: all .3s ease;
}

.social-icon:hover {
    background: #e8a020;
    color: #fff;
    transform: translateY(-6px);
}

.social-icon:active {
    transform: scale(.95);
}

@media(max-width:768px) {
    .social-icons {
        justify-content: center;
        gap: 12px;
    }

    .social-icon {
        width: 30px;
        height: 30px;
        font-size: 20px;
    }
}



/* navigation css */

.breadcrumb-section {
    background: #fff;
    padding: 18px;
    border-radius: 8px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-family: Arial, sans-serif;
}

.home-icon {
    color: #000;
    font-size: 25px;
    text-decoration: none;
}

.breadcrumb-section a {
    text-decoration: none;
    color: #06bff7;
    font-size: 18px;
    transition: 0.3s;
}

.breadcrumb-section a:hover {
    color: #1b91b4;
}

.separator {
    font-size: 25px;
    color: #c57e04;
    line-height: 1;
    margin-bottom: 2px;
}

.active-page {
    color: #06bff7;
    font-size: 18px;
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .breadcrumb-section {
        display: none;
    }

    .home-icon {
        font-size: 18px;
    }

    .breadcrumb-section a,
    .active-page {
        font-size: 15px;
    }

    .separator {
        font-size: 22px;
    }
}


/* ===========================
   Publication Section
=========================== */

.publication-section {
    padding: 80px 20px;

}

.publication-section .container {
    max-width: 1400px;
    margin: auto;
}

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

.section-title h2 {
    font-size: 40px;
    font-weight: 700;
    color: #1d3557;
    margin-bottom: 10px;
}

.section-title p {
    color: #777;
    font-size: 17px;
}

.publication-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    justify-content: center;
    gap: 35px;
}

.publication-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, .08);
    transition: .4s ease;
}

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

.publication-image {
    overflow: hidden;
}

.publication-image img {
    width: 100%;
    display: block;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: .5s;
}

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

.publication-content {
    padding: 22px;
}

.publication-content h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #222;
    font-weight: 600;
}

.publication-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px;
    background: linear-gradient(135deg,
            #06bff7,
            #157a99);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    transition: .3s;
}

.publication-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg,
            #0a9fcc,
            #0b232b);
}

/* Tablet */

@media (max-width: 768px) {

    .publication-section {
        padding: 60px 15px;
    }

    .section-title h2 {
        font-size: 32px;
    }

    .publication-content h3 {
        font-size: 24px;
    }
}

/* Mobile */

@media (max-width: 480px) {

    .publication-grid {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .publication-content {
        padding: 18px;
    }

    .publication-btn {
        padding: 13px;
        font-size: 16px;
    }
}


.contact-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, #f8fafc, #eef4ff);
}

.contact-section .container {
    max-width: 1200px;
    margin: auto;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}

/* Left Side */

.contact-info,
.contact-form {
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(20px);
    padding: 45px;
    border-radius: 30px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, .08);
}

.section-title span {
    display: inline-block;
    color: #06bff7;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: 42px;
    margin-bottom: 15px;
    color: #1e293b;
}

.section-title p {
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 35px;
}

.info-box {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding: 18px;
    border-radius: 18px;
    transition: .3s;
}

.info-box:hover {
    background: #f8fafc;
    transform: translateX(8px);
}

.info-box .icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 18px;
    background: linear-gradient(135deg, #06bff7, #2c768d);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.info-box h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #1e293b;
}

.info-box p {
    color: #64748b;
}

/* Form */

.contact-form h3 {
    font-size: 32px;
    color: #1e293b;
    margin-bottom: 30px;
}

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

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 18px 22px;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    outline: none;
    font-size: 16px;
    transition: .3s;
    background: #fff;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 5px rgba(37, 99, 235, .15);
}

.contact-form button {
    width: 100%;
    border: none;
    padding: 18px;
    border-radius: 15px;
    background: linear-gradient(135deg, #06bff7, #2387a5);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}

.contact-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, .35);
}

/* Map */

.map-container {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .08);
}

.map-container iframe {
    width: 100%;
    height: 500px;
    border: none;
    display: block;
}

/* Responsive */

@media(max-width:991px) {

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-info,
    .contact-form {
        padding: 35px;
    }

    .section-title h2 {
        font-size: 34px;
    }
}

@media(max-width:576px) {

    .contact-section {
        padding: 70px 15px;
    }

    .contact-info,
    .contact-form {
        padding: 25px;
        border-radius: 20px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .contact-form h3 {
        font-size: 26px;
    }

    .map-container iframe {
        height: 350px;
    }

    .info-box {
        gap: 15px;
    }

    .info-box .icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        font-size: 18px;
    }
}

.error-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.error-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    max-width: 600px;
    width: 90%;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.error-code {
    font-size: 120px;
    font-weight: 900;
    margin: 0;
    background: linear-gradient(135deg, #007bff, #00d2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    text-shadow: 0px 10px 20px rgba(0, 123, 255, 0.2);
    font-family: 'Inter', sans-serif;
    animation: float 6s ease-in-out infinite;
}

.error-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 20px 0 10px;
    font-family: 'Inter', sans-serif;
}

.error-message {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.back-home-btn {
    display: inline-block;
    padding: 14px 35px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.back-home-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0, 123, 255, 0.4);
    color: #fff;
}

.back-home-btn i {
    margin-right: 8px;
}

/* Decorative circles */
.circle-1,
.circle-2 {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(0, 210, 255, 0.1));
    z-index: 1;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -50px;
    left: -50px;
    animation: pulse 4s infinite alternate;
}

.circle-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    right: -100px;
    animation: pulse 5s infinite alternate-reverse;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@media (max-width: 768px) {
    .error-code {
        font-size: 90px;
    }

    .error-title {
        font-size: 26px;
    }

    .error-message {
        font-size: 16px;
    }

    .circle-1,
    .circle-2 {
        display: none;
    }
}
