/* ============================================================
   PAVANATMA COLLEGE — Admission 2026 | Button & Popup
   File  : css/admission.css
   Colors: Green  rgb(61, 177, 102)  |  Navy #bb3438
   ============================================================ */

/* ── Google Font ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── Brand tokens ── */
:root {
    --adm-green  : #4b0e1d;
    --adm-navy   : #bb3438;
    --adm-green2 : #4b0e1d;
    --adm-navy2  : #bb3438;
    --adm-white  : #ffffff;
    --adm-radius : 50px;
}

/* ================================================================
   HEADER BUTTON — Professional dual-badge pill
   ================================================================ */
.admission-div {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    padding-right: 12px;
    height: 60px;
    margin-top: 12px; /* Center it vertically in the top bar */
}

/* Main pill wrapper */
.admission-btn-2026 {
    display: inline-flex;
    align-items: center;
    position: relative;
    text-decoration: none !important;
    background: var(--adm-navy);
    color: var(--adm-white) !important;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-weight: 700;
    font-size: 13px;
    border-radius: 60px;
    padding: 0;
    box-shadow:
        0 4px 20px rgba(3, 13, 74, 0.40),
        0 1px 4px rgba(0,0,0,0.18),
        inset 0 1px 0 rgba(255,255,255,0.12);
    border: 1.5px solid rgba(61, 177, 102, 0.50);
    cursor: pointer;
    transition: all 0.32s cubic-bezier(.25,.8,.25,1);
    white-space: nowrap;
    overflow: hidden;
    outline: none;
}

/* Pulsing outer ring */
.admission-btn-2026::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 66px;
    border: 2px solid rgba(61, 177, 102, 0.55);
    animation: adm-ring-pulse 2.2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes adm-ring-pulse {
    0%   { transform: scale(1);     opacity: 0.85; }
    55%  { transform: scale(1.075); opacity: 0.18; }
    100% { transform: scale(1);     opacity: 0.85; }
}

.admission-btn-2026:hover {
    box-shadow:
        0 7px 28px rgba(61, 177, 102, 0.50),
        0 2px 8px rgba(0,0,0,0.20);
    border-color: rgba(61, 177, 102, 0.80);
    transform: translateY(-2px) scale(1.03);
    text-decoration: none !important;
}

.admission-btn-2026:active {
    transform: translateY(0) scale(0.97);
}

/* Left badge — navy icon area */
.adm-btn-left {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px 9px 14px;
    background: var(--adm-navy);
    transition: background 0.3s ease;
    position: relative;
}

.admission-btn-2026:hover .adm-btn-left {
    background: #bb3438;
}

/* Blinking status dot */
.adm-btn-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--adm-green);
    box-shadow: 0 0 0 0 rgba(61, 177, 102, 0.7);
    animation: adm-dot-ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
    flex-shrink: 0;
}

@keyframes adm-dot-ping {
    0%   { box-shadow: 0 0 0 0 rgba(61,177,102,0.7); }
    70%  { box-shadow: 0 0 0 7px rgba(61,177,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(61,177,102,0); }
}

.adm-btn-cap {
    font-size: 15px;
    line-height: 1;
}

/* Centre text block */
.adm-btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgb(6,18,88) 0%, var(--adm-navy2) 100%);
    border-left: 1px solid rgba(61,177,102,0.25);
    border-right: 1px solid rgba(61,177,102,0.25);
}

.adm-btn-text .adm-label {
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    opacity: 0.72;
    color: var(--adm-white);
}

.adm-btn-text .adm-year {
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.3px;
    line-height: 1.1;
    color: var(--adm-white);
}

/* Right arrow pill — green */
.adm-btn-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    background: var(--adm-green);
    color: #fff;
    font-size: 14px;
    transition: background 0.3s ease, transform 0.25s ease;
    flex-shrink: 0;
}

.admission-btn-2026:hover .adm-btn-right {
    background: var(--adm-green2);
    transform: translateX(2px);
}

/* Hide button on mobile */
@media (max-width: 767px) {
    .admission-btn-2026 {
        display: none !important;
    }
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 768px) {
    .admission-btn-2026 { font-size: 12px; }
    .adm-btn-text .adm-year { font-size: 13px; }
    .adm-btn-left, .adm-btn-right { padding: 8px 10px; }
    .adm-btn-text { padding: 7px 10px; }
    .adm-btn-dot { width: 6px; height: 6px; }
}


/* ================================================================
   POPUP OVERLAY
   ================================================================ */
#adm-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 13, 74, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.42s ease, visibility 0.42s ease;
}

#adm-popup-overlay.adm-open {
    opacity: 1;
    visibility: visible;
}


/* ── Popup Card ── */
.adm-popup-card {
    position: relative;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    max-width: 840px;
    width: 100%;
    display: flex;
    flex-direction: row;
    min-height: 460px;
    box-shadow:
        0 40px 100px rgba(3, 13, 74, 0.45),
        0 10px 30px rgba(0,0,0,0.22);
    transform: scale(0.85) translateY(40px);
    opacity: 0;
    transition: transform 0.48s cubic-bezier(.34,1.56,.64,1), opacity 0.42s ease;
}

#adm-popup-overlay.adm-open .adm-popup-card {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* ── Animated floating bubbles — inside .adm-popup-content ── */
.adm-bubbles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;   /* behind all content */
    overflow: hidden;
}

.adm-bubble {
    position: absolute;
    border-radius: 50%;   /* perfectly round */
    opacity: 0;
    animation: adm-float-up linear infinite;
    /* border gives a visible ring style */
}

/* Green bubbles */
.adm-bubble:nth-child(1)  { width:28px; height:28px; left:8%;   border:2.5px solid rgba(61,177,102,0.45); background:rgba(61,177,102,0.10); animation-duration:7s;   animation-delay:0s;   }
.adm-bubble:nth-child(2)  { width:16px; height:16px; left:22%;  border:2px   solid rgba(61,177,102,0.35); background:rgba(61,177,102,0.08); animation-duration:5.5s; animation-delay:1.2s; }
.adm-bubble:nth-child(3)  { width:36px; height:36px; left:45%;  border:3px   solid rgba(61,177,102,0.30); background:rgba(61,177,102,0.06); animation-duration:9s;   animation-delay:0.4s; }
.adm-bubble:nth-child(4)  { width:20px; height:20px; left:68%;  border:2px   solid rgba(61,177,102,0.40); background:rgba(61,177,102,0.09); animation-duration:6.5s; animation-delay:2s;   }
.adm-bubble:nth-child(5)  { width:12px; height:12px; left:82%;  border:2px   solid rgba(61,177,102,0.50); background:rgba(61,177,102,0.12); animation-duration:4.8s; animation-delay:0.8s; }
/* Navy bubbles */
.adm-bubble:nth-child(6)  { width:22px; height:22px; left:15%;  border:2.5px solid rgba(3,13,74,0.22);    background:rgba(3,13,74,0.05);    animation-duration:8s;   animation-delay:1.8s; }
.adm-bubble:nth-child(7)  { width:14px; height:14px; left:38%;  border:2px   solid rgba(3,13,74,0.18);    background:rgba(3,13,74,0.04);    animation-duration:6s;   animation-delay:3s;   }
.adm-bubble:nth-child(8)  { width:32px; height:32px; left:58%;  border:3px   solid rgba(3,13,74,0.15);    background:rgba(3,13,74,0.03);    animation-duration:10s;  animation-delay:0.5s; }
.adm-bubble:nth-child(9)  { width:10px; height:10px; left:75%;  border:2px   solid rgba(3,13,74,0.25);    background:rgba(3,13,74,0.06);    animation-duration:5s;   animation-delay:2.5s; }
.adm-bubble:nth-child(10) { width:18px; height:18px; left:90%;  border:2px   solid rgba(61,177,102,0.35); background:rgba(61,177,102,0.07); animation-duration:7.5s; animation-delay:1s;   }

@keyframes adm-float-up {
    0%   { bottom: -40px; opacity: 0;    transform: translateX(0)    scale(0.7); }
    12%  {               opacity: 1; }
    88%  {               opacity: 0.7; }
    100% { bottom: 108%; opacity: 0;    transform: translateX(15px)  scale(1.05); }
}

/* ── Top colour strip ── */
.adm-popup-top-strip {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg,
        var(--adm-navy) 0%,
        var(--adm-green) 50%,
        var(--adm-navy2) 100%);
    z-index: 5;
}

/* ── LEFT: Image Panel — clean, no overlay, no zoom ── */
.adm-popup-image {
    width: 42%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
}

.adm-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* No zoom, no filter, no overlay — image shows clean */
}


/* ── RIGHT: Content Panel — bubbles float behind text ── */
.adm-popup-content {
    flex: 1;
    padding: 38px 34px 28px;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #fff;
    overflow: hidden;  /* keeps bubbles clipped inside */
}

/* All content elements sit above bubbles (z-index: 1) */
.adm-popup-eyebrow,
.adm-popup-heading,
.adm-popup-divider,
.adm-popup-desc,
.adm-popup-buttons,
.adm-popup-contact,
.adm-dont-show,
.adm-popup-close {
    position: relative;
    z-index: 1;
}

/* Eyebrow label */
.adm-popup-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--adm-green);
    margin-bottom: 10px;
}

.adm-popup-eyebrow::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 2px;
    background: var(--adm-green);
    border-radius: 2px;
}

/* Heading */
.adm-popup-heading {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 23px;
    font-weight: 900;
    color: var(--adm-navy);
    line-height: 1.22;
    margin: 0 0 6px 0;
}

.adm-popup-heading em {
    font-style: normal;
    color: var(--adm-green);
}

/* Two-tone divider */
.adm-popup-divider {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
}

.adm-popup-divider span:first-child {
    display: block;
    width: 40px;
    height: 3.5px;
    background: var(--adm-navy);
    border-radius: 4px;
}

.adm-popup-divider span:last-child {
    display: block;
    width: 14px;
    height: 3.5px;
    background: var(--adm-green);
    border-radius: 4px;
}

/* Description */
.adm-popup-desc {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 13.5px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 22px;
}

.adm-popup-desc strong {
    color: var(--adm-navy);
    font-weight: 700;
}

/* ── Action Buttons ── */
.adm-popup-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.adm-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 22px;
    border-radius: 10px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    letter-spacing: 0.2px;
    transition: all 0.28s cubic-bezier(.25,.8,.25,1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Shimmer sweep on hover */
.adm-action-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
    transition: left 0.45s ease;
}

.adm-action-btn:hover::after { left: 160%; }

/* Primary = Green */
.adm-action-btn.adm-btn-primary {
    background: var(--adm-green);
    color: #fff !important;
    box-shadow: 0 4px 18px rgba(61, 177, 102, 0.42);
}

.adm-action-btn.adm-btn-primary:hover {
    background: var(--adm-green2);
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(61, 177, 102, 0.58);
    color: #fff !important;
}

/* Secondary = Navy */
.adm-action-btn.adm-btn-secondary {
    background: var(--adm-navy);
    color: #fff !important;
    box-shadow: 0 4px 18px rgba(3, 13, 74, 0.38);
}

.adm-action-btn.adm-btn-secondary:hover {
    background: var(--adm-navy2);
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(3, 13, 74, 0.52);
    color: #fff !important;
}

.adm-action-btn .adm-btn-ic {
    font-size: 16px;
    flex-shrink: 0;
}

/* ── Contact Info ── */
.adm-popup-contact {
    border-top: 1px solid rgba(3,13,74,0.10);
    padding-top: 14px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 12px;
    color: #777;
    line-height: 1.75;
    position: relative;
    z-index: 1;
}

.adm-popup-contact p { margin: 0; }

.adm-popup-contact a {
    color: var(--adm-green);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}

.adm-popup-contact a:hover {
    color: var(--adm-navy);
    text-decoration: underline;
}

/* ── Close Button ── */
.adm-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(3, 13, 74, 0.07);
    border: 1.5px solid rgba(3, 13, 74, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: var(--adm-navy);
    transition: all 0.25s ease;
    z-index: 20;
    line-height: 1;
    padding: 0;
    font-family: Arial, sans-serif;
}

.adm-popup-close:hover {
    background: var(--adm-navy);
    color: #fff;
    border-color: var(--adm-navy);
    transform: rotate(90deg) scale(1.08);
}

/* ── "Don't show again" ── */
.adm-dont-show {
    text-align: center;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 11px;
    color: #bbb;
    margin-top: 10px;
    cursor: pointer;
    transition: color 0.22s;
    position: relative;
    z-index: 1;
    letter-spacing: 0.3px;
}

.adm-dont-show:hover {
    color: var(--adm-navy);
    text-decoration: underline;
}


/* ================================================================
   RESPONSIVE
   ================================================================ */

/* Tablet (≤760px) — stacked layout */
@media (max-width: 760px) {
    .adm-popup-card {
        flex-direction: column;
        max-width: 440px;
        min-height: unset;
        border-radius: 18px;
    }

    .adm-popup-image {
        width: 100%;
        min-height: 195px;
        max-height: 215px;
    }

    .adm-popup-content {
        padding: 26px 22px 20px;
    }

    .adm-popup-heading {
        font-size: 19px;
    }

    .adm-popup-desc {
        font-size: 12.5px;
        margin-bottom: 16px;
    }

    .adm-action-btn {
        font-size: 12.5px;
        padding: 11px 16px;
    }
}

/* Mobile (≤480px) — full width popup, highlighted */
@media (max-width: 480px) {
    #adm-popup-overlay {
        padding: 10px;
        align-items: flex-end;    /* slide up from bottom on mobile */
        background: rgba(3, 13, 74, 0.88);
    }

    .adm-popup-card {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        transform: translateY(60px) scale(0.96);
    }

    #adm-popup-overlay.adm-open .adm-popup-card {
        transform: translateY(0) scale(1);
    }

    .adm-popup-image {
        min-height: 175px;
        max-height: 195px;
    }

    .adm-popup-content {
        padding: 20px 18px 18px;
    }

    .adm-popup-heading  { font-size: 17px; }
    .adm-popup-eyebrow  { font-size: 9px; }

    .adm-popup-desc {
        font-size: 12px;
        margin-bottom: 14px;
    }

    .adm-action-btn {
        font-size: 12px;
        padding: 10px 14px;
    }

    .adm-popup-contact  { font-size: 11px; }
    .adm-dont-show      { font-size: 10.5px; }

    /* Bubbles more visible on mobile for highlight effect */
    .adm-bubble { opacity: 0; }
    .adm-bubble:nth-child(1)  { animation-duration: 4.5s; }
    .adm-bubble:nth-child(2)  { animation-duration: 6s; }
    .adm-bubble:nth-child(3)  { animation-duration: 3.8s; }
    .adm-bubble:nth-child(4)  { animation-duration: 5.5s; }
    .adm-bubble:nth-child(5)  { animation-duration: 7s; }
}
