/* =============================================
   AMUR STATE MEDICAL ACADEMY - PREMIUM REDESIGN
   ============================================= */

/* === INSTAGRAM SECTION === */
.insta-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
}

.insta-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #000;
    aspect-ratio: 1 / 1;
    box-shadow: 0 8px 30px rgba(0, 33, 71, 0.12);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

.insta-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 33, 71, 0.2);
}

.insta-card img,
.insta-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.insta-card:hover img,
.insta-card:hover video {
    transform: scale(1.08);
}

.insta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 40, 84, 0.7), rgba(0, 33, 71, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(2px);
}

.insta-card:hover .insta-overlay {
    opacity: 1;
}

.insta-icon {
    width: 48px;
    height: 48px;
    fill: #fff;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.insta-caption {
    position: absolute;
    bottom: 0;
    padding: 16px;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 33, 71, 0.85), transparent);
    width: 100%;
}

.insta-caption h4 {
    font-size: 15px;
    margin: 0;
    font-weight: 600;
}

.insta-caption p {
    font-size: 12px;
    margin-top: 4px;
    opacity: 0.85;
    color: #fff;
}

.owl-dots {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* === BROCHURE BUTTON === */
.elt65-6 {
    border: 0;
    padding: 0;
    border-radius: 0;
    color: var(--blackColor);
    background-color: transparent;
    box-shadow: none;
}

/* === MODAL === */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 15, 40, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 15px;
}

.modal > div {
    width: 100%;
    max-width: 420px;
}

.modal-content {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.activeModal {
    display: flex;
}

.modal-header {
    background: linear-gradient(135deg, #002147 0%, #0F2854 50%, #1a3a6e 100%);
    position: relative;
    padding: 28px 24px 24px;
    text-align: center;
    overflow: hidden;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.popup-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.popup-logo img {
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.popup-text h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
}

#closeModalBtn {
    position: absolute;
    top: 14px;
    right: 14px;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

#closeModalBtn:hover {
    color: #fff;
    transform: rotate(90deg);
}

.modal-body {
    padding: 24px;
}

.modal-body input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 2px solid #e8ecf1;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Lexend', sans-serif;
    background: #f8fafc;
}

.modal-body input:focus {
    border-color: #0F2854;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(15, 40, 84, 0.08);
}

.nws-button button {
    margin-top: 16px;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #002147, #0F2854);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    font-family: 'Lexend', sans-serif;
    letter-spacing: 0.3px;
}

.nws-button button:hover {
    background: linear-gradient(135deg, #0F2854, #1a3a6e);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 40, 84, 0.3);
}

/* === FAQ === */
.faq-panel {
    display: none;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-panel.is-open {
    display: block;
}

#accordion .panel {
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 14px;
    border: 1px solid #e6e9f0;
    overflow: hidden;
    transition: all 0.35s ease;
    box-shadow: 0 2px 8px rgba(0, 33, 71, 0.04);
}

#accordion .panel:hover {
    box-shadow: 0 10px 35px rgba(0, 33, 71, 0.1);
    border-color: #0F2854;
}

.panel-title {
    padding: 0;
}

.panel-title h3 {
    margin: 0;
}

.panel-title .btn-link {
    width: 100%;
    text-align: left;
    padding: 18px 56px 18px 22px;
    font-size: 16px;
    font-weight: 600;
    color: #0b0f19;
    background: transparent;
    border: none;
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: 'Lexend', sans-serif;
}

.panel-title .btn-link:hover {
    text-decoration: none;
    color: #0F2854;
}

.panel-title .btn-link::after {
    content: "+";
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 700;
    color: #0F2854;
    transition: all 0.3s ease;
}

.panel-title .btn-link:not(.collapsed)::after {
    content: "−";
    color: #1a3a6e;
    transform: translateY(-50%) rotate(180deg);
}

.panel-body {
    padding: 0 22px 22px 22px;
    font-size: 15px;
    line-height: 1.8;
    color: #4b5563;
}

.collapse {
    transition: height 0.35s ease;
}

/* === BANNER CAROUSEL === */
.banner-area-2 .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
    pointer-events: none;
}

.banner-area-2 .owl-nav button {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff !important;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    transition: all 0.3s ease;
    pointer-events: auto;
    font-size: 20px !important;
}

.banner-area-2 .owl-nav button:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: scale(1.1);
}

.banner-area-2 .owl-dots {
    position: absolute;
    bottom: 25px;
    width: 100%;
    text-align: center;
}

/* === ABOUT CAROUSEL DOTS === */
.about-content-courser .owl-dots .owl-dot button {
    background: none;
    border: none;
    padding: 6px 24px;
    font-weight: 600;
    border-radius: 25px;
    font-size: 15px;
    cursor: pointer;
    background-color: rgba(0, 33, 71, 0.08);
    color: #002147;
    transition: all 0.3s ease;
    font-family: 'Lexend', sans-serif;
}

.about-content-courser .owl-dots .owl-dot.active button {
    background: linear-gradient(135deg, #002147, #0F2854);
    color: white;
    box-shadow: 0 4px 15px rgba(15, 40, 84, 0.3);
}

.about-content-courser.owl-theme .owl-nav [class*=owl-] {
    color: white;
}

/* === ACADEMICS LEFT NAV === */
.academics-section .academics-left .ac-category ul li a {
    color: #ffffff;
}

/* === CONTACT WIDGET === */
.csma-contact-widget {
    background: #f9fafc;
    border: 1px solid #e6e9f0;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 14px;
    transition: all 0.35s ease;
}

.csma-contact-widget:hover {
    border-color: #0F2854;
}

.csma-widget-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #002147;
    font-family: 'Lexend', sans-serif;
}

.csma-info-card:hover {
    background: #ffffff;
    border-color: #0F2854;
    box-shadow: 0 8px 30px rgba(0, 33, 71, 0.1);
}

.csma-card-content {
    display: flex;
    flex-direction: column;
}

.csma-card-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.csma-card-value {
    font-size: 16px;
    font-weight: 600;
    color: #0F2854;
    line-height: 1.4;
}

.csma-card-value a {
    color: inherit;
    text-decoration: none;
    font-size: small !important;
    transition: color 0.3s ease;
}

.csma-card-value a:hover {
    text-decoration: underline;
    color: #1a3a6e;
}

.csma-social {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.csma-social-title {
    font-size: 14px;
    font-weight: 600;
    color: #002147;
    margin-right: 8px;
}

.csma-social a {
    padding: unset !important;
    align-content: center !important;
}

.csma-social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #002147, #0F2854);
    color: #ffffff;
    transition: all 0.3s ease;
    font-size: 16px;
}

.csma-social-link:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #0F2854, #1a3a6e);
    color: #fff;
    box-shadow: 0 8px 20px rgba(15, 40, 84, 0.3);
}

/* === WHY CHOOSE US CARDS === */
.why-choose-us-data {
    min-height: 275px;
    max-height: 295px;
    margin-top: 5px;
    border-radius: 14px !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    border: 1px solid #eef1f5 !important;
}

.why-choose-us-data:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 33, 71, 0.12) !important;
    border-color: #0F2854 !important;
}

.emoji {
    background: linear-gradient(135deg, rgba(15, 40, 84, 0.08), rgba(0, 33, 71, 0.05));
    border-radius: 50%;
    width: 80px;
    height: 80px;
    font-size: 2rem;
    align-content: center;
    justify-self: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(15, 40, 84, 0.1);
}

.why-choose-us-data:hover .emoji {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(15, 40, 84, 0.12), rgba(0, 33, 71, 0.08));
}

/* === CAMPUS CARD === */
.campus-card img {
    max-height: 606px;
    min-height: 605px;
    border-radius: 12px;
    object-fit: cover;
}

.course-item .image img {
    min-height: 275px;
    max-height: 276px;
    object-fit: cover;
}

/* === OFFCANVAS ACCORDION === */
.offcanvas.manual-show {
    visibility: visible;
    right: 100%;
}

#navbarAccordion .collapse {
    display: block !important;
}

.accordion-collapse {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
}

.accordion-collapse.manual-show {
    max-height: 1000px;
}

/* === PRELOADER === */
.preloader-container {
    display: unset;
}

.preloader-dot-sec {
    display: flex;
}

.preloader-icon-image {
    width: 160px;
}

/* === FOOTER LOGO === */
.footer-logo {
    width: 10%;
}

/* === ANIMATIONS === */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* === RESPONSIVE === */
@media (max-height: 600px) {
    .modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }
}

@media (max-width: 990px) {
    .campus-card img {
        max-height: 500px;
        min-height: 500px;
    }
}

@media (max-width: 600px) {
    .footer-logo {
        width: 18%;
    }
    .campus-card img {
        max-height: 300px;
        min-height: 300px;
    }
    .preloader-icon-image {
        width: 60px;
    }
}

@media only screen and (max-width: 767px) {
    .features-content .content .item,
    .features-content-2 .content .item {
        display: unset;
        margin: 20px 0;
    }
}

@media (min-width: 1400px) {
    .footer-logo {
        width: 5%;
    }
}
