* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #eef4f8;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


.abvmulogo-section {
    background: #ffffff;
    border-radius: 6px;
    padding: 6px 30px;
    margin: 8px 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
}

.logo {
    width: 40%;
    height: auto;
    border: none;
    outline: none;
}


.menu-icon {
    cursor: pointer;
    display: grid;
    grid-template-columns: repeat(3, 8px);
    grid-template-rows: repeat(3, 8px);
    gap: 5px;
    padding: 10px;
    transition: all 0.3s ease;
}

.menu-icon:hover {
    transform: scale(1.1);
}

.menu-icon span {
    width: 8px;
    height: 8px;
    background: #1e4d7b;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.menu-icon:hover span {
    background: #0a2540;
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 37, 64, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: -5px 0 25px rgba(10, 37, 64, 0.3);
    z-index: 9999;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d4af37 #f0f0f0;
}

.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #b8941f;
}

.sidebar.active {
    right: 0;
}

/* Sidebar Header */
.sidebar-header {
    background: linear-gradient(135deg, #0a2540, #1e4d7b);
    padding: 25px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid #d4af37;
}

.sidebar-header h2 {
    color: white;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
}

.sidebar-close {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Sidebar Content */
.sidebar-content {
    padding: 30px 25px;
}

.sidebar-logo-container {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(10, 37, 64, 0.1);
}

.sidebar-logo {
    width: 100%;
    max-width: 280px;
    height: auto;
}

.contact-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(10, 37, 64, 0.1);
    border-left: 5px solid #d4af37;
}

.contact-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0f2fe;
}

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

.contact-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1e4d7b;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.contact-label::before {
    font-size: 1.2rem;
}

.email-label::before {
    content: '✉️';
}

.phone-label::before {
    content: '📞';
}

.address-label::before {
    content: '📍';
}

.timing-label::before {
    content: '🕒';
}

.contact-value {
    color: #0a2540;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-left: 32px;
}

.contact-value a {
    color: #059669;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-value a:hover {
    color: #10b981;
}

.marquee-section {
    background: #ffffff;
    border-radius: 8px;
    margin: 15px 20px;
    padding: 5px 10px;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    border: 2px solid #d4af37;
}

.marquee-section marquee {
    color: #dc2626;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    padding: 10px 20px 30px 20px;
    margin-top: -10px;
    flex: 1;
    width: 100%;
    max-width: 100%;
}

.column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.entrance-header {
    background: linear-gradient(135deg, #1e4d7b, #0a2540);
    color: white;
    padding: 12px 20px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;

    border-radius: 8px;
    margin-bottom: 4px;
    box-shadow: 0 4px 15px rgba(10, 37, 64, 0.3);
}

.cardnursing {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 3px;
    padding: 0.75rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #cbd5e1;
    box-shadow: 0 6px 15px rgba(10, 37, 64, 0.12);
    min-height: 145px;
    height: auto;
    position: relative;
    overflow: visible;
}

.cardnursing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #d4af37, #f4c430);
    border-radius: 10px 0 0 10px;
    z-index: 1;
}

.cardnursing::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #d4af37, #f4c430);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s ease;
    border-radius: 0 10px 10px 0;
    z-index: 1;
}

.cardnursing:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(10, 37, 64, 0.3);
    border-color: #d4af37;
    background: linear-gradient(135deg, #eef7ff 0%, #d6efff 100%);
}

.cardnursing:hover::after {
    transform: scaleY(1);
    transform-origin: top;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-header>div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.card-header h3 {
    margin: 0;
}

.card-logo {
    width: 55px;
    height: 55px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}

.card-title-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-title-section h3 {
    margin: 0;
    color: #0a2540;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    padding-right: 5px;
}

/* ===== ACTION BUTTONS — Orange/Amber gradient ===== */
.action-btn {
    flex: 1 1 0;
    min-width: 0;
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: #ffffff;
    padding: 0.35rem 0.5rem;
    border-radius: 8px;
    font-size: 0.62rem;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    text-align: center;
    display: block;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4);
}

.action-btn:hover {
    background: linear-gradient(135deg, #b45309, #d97706);
    color: #ffffff;
    border: 3px solid #d4af37;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(217, 119, 6, 0.5);
}

/* ===== LINKS CONTAINER — Auto 2 ya 3 column grid ===== */
.links-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin-top: 2px;
    margin-bottom: 3px;
    width: 100%;
}

/* Jab sirf 2 buttons hon → 2 column */
.links-container:has(> .action-btn:first-child:nth-last-child(2)),
.links-container:has(> .action-btn:nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
}

/* Jab 3 se zyada buttons hon → 3 column grid mein wrap */
.links-container:has(> .action-btn:nth-child(4)) {
    grid-template-columns: repeat(3, 1fr);
}

.btn-group {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
    padding-top: 10px;
    position: relative;
    flex-shrink: 0;
    margin-top: auto;
}

.btn-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: #d4af37;
}

.button-wrapper {
    display: flex;
    gap: 8px;
    width: 100%;
    justify-content: center;
    margin-top: 4px;
}

.main-btn {
    flex: 1;
    max-width: 140px;
    text-align: center;
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.75rem;
    text-decoration: none;
    color: #fff;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 3px solid transparent;
    white-space: nowrap;
}

.register-btn {
    background: linear-gradient(135deg, #059669, #10b981);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

.register-btn:hover {
    background: linear-gradient(135deg, #10b981, #059669);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.5);
}

.login-btn {
    background: white;
    color: #1e4d7b;
    border-color: #1e4d7b;
    box-shadow: 0 4px 15px rgba(10, 37, 64, 0.2);
}

.login-btn:hover {
    background: #1e4d7b;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(10, 37, 64, 0.3);
}

.instruction-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #dc2626;
    font-weight: 700;
    font-size: 18px;
    margin: 0;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.instruction-link:hover {
    color: #b91c1c;
    gap: 0.65rem;
    transform: translateX(4px);
}

.instruction-link::before {
    content: '📋';
    font-size: 0.95rem;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(10, 37, 64, 0.85);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    width: 90%;
    max-width: 900px;
    height: auto;
    max-height: 80vh;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    border: 3px solid #d4af37;
    background: white;
    box-shadow: 0 25px 80px rgba(10, 37, 64, 0.5);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.modal-header {
    background: linear-gradient(135deg, #0a2540, #1e4d7b);
    padding: 2rem 2.5rem;
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    border-bottom: 4px solid #d4af37;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.close {
    position: absolute;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    font-size: 1.75rem;
    font-weight: 700;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) rotate(90deg) scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.modal-body {
    position: relative;
    padding: 2rem;
    max-height: calc(80vh - 120px);
    overflow: hidden;
}

.modal-scroll-wrapper {
    height: 400px;
    overflow: hidden;
    position: relative;
}

.scroll-content {
    display: block;
    animation: scrollUp 15s linear infinite;
    padding: 10px 20px;
    font-size: 14px;
    color: #dc2626;
    font-weight: 500;
    line-height: 1.8;
    width: 100%;
}

.scroll-content:hover {
    animation-play-state: paused;
}

@keyframes scrollUp {
    0% {
        transform: translateY(100%);
    }

    100% {
        transform: translateY(-100%);
    }
}

.modal-scroll {
    width: 100%;
    color: #dc2626;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.8;
    height: 100%;
}

.modal-scroll marquee {
    height: 100%;
    display: block;
}

.modal-scroll p {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: #f7f5f0;
    border-radius: 12px;
    border-left: 5px solid #d4af37;
    box-shadow: 0 2px 8px rgba(10, 37, 64, 0.08);
}

.modal-scroll p::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    background: #d4af37;
    color: white;
    border-radius: 50%;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
    flex-shrink: 0;
}

.abvmu-footer {
    margin-top: auto;
    background: #000000;
    color: #ffffff;
    text-align: center;
    padding: 14px 10px;
    font-size: 1rem;
    font-weight: 600;
    border-top: 6px solid #f4c430;
    letter-spacing: 0.3px;
    width: 100%;
}


/* Responsive */
@media (max-width: 1200px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 15px 30px 15px;
    }

    .abvmulogo-section {
        flex-direction: row;
        justify-content: space-between;
        text-align: center;
        padding: 15px 20px;
    }

    .logo {
        width: 70%;
        max-width: 280px;
    }

    .sidebar {
        max-width: 320px;
    }

    .entrance-header {
        font-size: 0.95rem;
        padding: 10px 15px;
    }

    .marquee-section {
        margin: 15px 15px;
    }

    .marquee-section marquee {
        font-size: 0.9rem;
    }

    .cardnursing {
        min-height: 280px;
        padding: 1rem;
    }

    .card-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .card-title-section {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .card-logo {
        width: 55px;
        height: 55px;
    }

    .card-title-section h3 {
        font-size: 1rem;
    }

    .links-container {
        grid-template-columns: 1fr !important;
    }

    .links-container>.action-btn {
        font-size: 0.8rem;
    }

    .button-wrapper {
        flex-direction: column;
        gap: 10px;
    }

    .main-btn {
        width: 100%;
        max-width: none;
    }

    .modal-content {
        width: 95%;
        max-height: 85vh;
    }

    .abvmu-footer {
        font-size: 0.85rem;
        padding: 12px 10px;
    }
}

.form-closed-msg {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    color: #dc2626;
    padding: 16px 30px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1.05rem;
    z-index: 10000;
    border: 2px solid #dc2626;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    animation: fadeSlide 0.4s ease;
    letter-spacing: 0.3px;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        top: 0;
    }

    to {
        opacity: 1;
        top: 30px;
    }
}

/* banner css */
.full-width-banner {
    width: 100%;
    margin-top: 16px;
    margin-bottom: 10px;
}

.banner-inner {
    background: linear-gradient(135deg, #1e4d7b, #0a2540);
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    padding: 14px 20px;
    width: 100%;
    letter-spacing: 0.5px;
}

/* entrance-header की same height match */
.banner-inner {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}