/* Base layout */
.sticky-scroll-wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
    flex-direction: row;
}

/* Left sticky sidebar */
.sticky-left {
    flex: 1;
    position: sticky;
    top: 0;
    height: 100vh;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    box-sizing: border-box;
    z-index: 2;
}
.button-wrapper {
    display: flex;
    gap: 15px;
    align-items: center;
  }

  .apply-hover-wrapper {
    position: relative;
    display: inline-block;
  }

  .apply-hover-content {
    display: none;
    position: absolute;
    top: 110%; /* popup below the link */
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    white-space: nowrap;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease-in-out;
  }

  /* Arrow below the popup */
  .apply-hover-content::after {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent #fff transparent;
    filter: drop-shadow(0 -1px 1px rgba(0,0,0,0.1));
  }

  /* Show popup on hover */
  .apply-hover-wrapper:hover .apply-hover-content {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .apply-now-btn {
    display: inline-block;
    background-color: #0073aa;
    color: white !important;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 8px;
    cursor: pointer;
  }

  .apply-online-link {
    cursor: pointer;
    color: #0073aa;
    text-decoration: underline;
    font-weight: 600;
  }

  .btn.secondary {
    background-color: #eee;
    color: #333 !important;
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
  }
.sticky-left img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.sticky-left h2 {
    font-size: 2rem;
    color: #003057;
    text-align: center;
}

/* Right scroll content */
.scroll-right {
    flex: 2;
    padding: 50px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

/* Scroll items */
.scroll-item {
    min-height: 35vh;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-out;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.scroll-item.active {
    gap: 10px;
    opacity: 1;
    transform: translateY(0);
}

.scroll-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #003057;
}

.scroll-item p {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #333;
}

.scroll-item .btn {
    background: #003057;
    color: #fff;
    padding: 10px 20px;
    margin-right: 10px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin-top: 10px;
}

.scroll-item .btn.secondary {
    background: #ccc;
    color: #003057;
}

.scroll-item img {
    max-width: 100%;
    margin-top: 20px;
}

.button-wrapper {
    position: relative;
    display: inline-block;
    margin-top: 15px;
}

.primary-btn {
    background-color: #003057;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 2;
    position: relative;
}

.hover-buttons {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1;
    width: 100%;
    background-color: #d8d8d8;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.button-wrapper:hover .hover-buttons {
    display: block;
}

.hover-buttons button,
button.pdf-upload-btn {
    display: block;
    width: 100%;
    background-color: #003057;
    border: 1px solid #ccc;
    padding: 8px 10px;
    margin-top: 2px;
    cursor: pointer;
    color: white;
    font-weight: 600;
}

/* Hover input overlay fix */
.hover-buttons button input {
    height: 100%;
    left: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 9;
}

/* Link hover */
a:hover, a:active {
    color: white;
}

.primary-btn:hover {
    background-color: #001d34;
}

/* .div1 styles for image + heading */
.div1 {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Smaller main images */
img.main_img {
    height: 60px;
    width: 60px;
    margin-top: 0;
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 1024px) {
    .sticky-scroll-wrapper {
        flex-direction: column;
    }

    .sticky-left {
        position: relative;
        top: auto;
        height: auto;
        padding: 20px 15px;
        background: #f8f9fa;
        flex: none;
        width: 100%;
    }

    .sticky-left img {
        height: 150px !important;
        width: 150px !important;
        border-radius: 75px !important;
    }

    .sticky-left h2 {
        font-size: 1.6rem !important;
    }

    .scroll-right {
        flex: none;
        width: 100%;
        padding: 20px 15px;
    }

    .scroll-item {
        min-height: auto;
        padding: 15px 10px;
    }

    .scroll-item h3 {
        font-size: 1.3rem;
    }

    .scroll-item p {
        font-size: 0.95rem;
    }

    .button-wrapper {
        width: 100%;
        display: block;
    }

    .primary-btn,
    .scroll-item .btn.secondary {
        width: 100%;
        margin: 5px 0;
        text-align: center;
    }

    .hover-buttons {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        display: block ;
        box-shadow: none;
        background: transparent;
        margin-top: 10px;
    }

    .hover-buttons button,
    button.pdf-upload-btn {
        width: 100%;
        margin-top: 5px;
    }

    .div1 {
        flex-direction: column;
        gap: 10px;
    }

    img.main_img {
        height: 50px;
        width: 50px;
    }
}

@media (max-width: 480px) {
    .sticky-left img {
        height: 120px !important;
        width: 120px !important;
        border-radius: 60px !important;
    }

    .sticky-left h2 {
        font-size: 1.2rem !important;
    }

    .scroll-item h3 {
        font-size: 1.1rem;
    }

    .scroll-item p {
        font-size: 0.9rem;
    }
}
/* Base desktop styles here (keep your existing styles) */

/* === Mobile Responsive Sticky === */
@media (max-width: 768px) {
    .sticky-scroll-wrapper {
        flex-direction: column;
    }

    .sticky-left {
        position: sticky;
        top: 0;
        height: auto;
        padding: 20px 15px;
        background: #f8f9fa;
        flex: none; /* Prevent flex-grow */
        align-items: center;
    }

    .sticky-left img.responsive-logo {
        height: 150px !important;
        width: 150px !important;
        border-radius: 75px !important; /* keep circle shape */
        object-fit: cover;
        margin-bottom: 15px;
    }

    .sticky-left h2.responsive-hesding {
        font-size: 1.4rem !important;
        color: #003057;
        text-align: center;
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .scroll-right {
        padding: 20px 15px;
        flex: none;
    }

    .scroll-item {
        min-height: auto;
        padding: 15px 10px;
        opacity: 1 !important;  /* Show all scroll items fully on mobile */
        transform: translateY(0) !important;
        margin-bottom: 30px;
        box-shadow: 0 2px 6px rgb(0 0 0 / 0.1);
        border-radius: 8px;
        background: #fff;
    }

    .scroll-item h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .scroll-item p {
        font-size: 0.95rem;
        margin-bottom: 12px;
        color: #444;
    }

    .scroll-item img.main_img {
        height: 50px;
        width: 50px;
        margin-bottom: 10px;
    }

    .button-wrapper {
        display: flex;
        flex-direction: column;
        gap: 10px;
        position: relative;
        width: 100%;
    }

    .primary-btn, 
    .btn.secondary {
        width: 100%;
        text-align: center;
        padding: 12px 0;
        font-size: 1rem;
        border-radius: 6px;
        margin: 0;
    }

    .primary-btn {
        background-color: #003057;
        color: white;
    }

    .primary-btn:hover {
        background-color: #005a99;
        color: white;
    }

    .btn.secondary {
        background-color: #ccc;
        color: #003057;
    }

    .hover-buttons {
        position: relative;
        display: block ;
        background-color: #d8d8d8;
        margin-top: 8px;
        box-shadow: 0 2px 5px rgb(0 0 0 / 0.15);
        border-radius: 6px;
        padding: 5px 0;
        width: 100%;
    }

    .hover-buttons button,
    button.pdf-upload-btn {
        width: 100%;
        background-color: #003057;
        border: none;
        padding: 10px;
        color: white;
        cursor: pointer;
        border-radius: 4px;
        margin: 4px 0;
        font-size: 0.95rem;
        transition: background-color 0.3s ease;
    }

    .hover-buttons button:hover,
    button.pdf-upload-btn:hover {
        background-color: #005a99;
    }

    .div1 {
        display: flex;
        align-items: center;
        gap: 12px;
        justify-content: center;
        margin-bottom: 12px;
    }

    /* Remove margin-top from main_img on mobile */
    img.main_img {
        margin-top: 0;
    }
}
