/* Home Premium Styles - Externalized for Performance */
:root {
    --orange: #E76028;
    --blue: #006DAB;
    --green: #00964C;
}

/* Fix for scrollbar jumping when modal opens */
html {
    overflow-y: scroll !important;
    scroll-behavior: smooth;
}

body.modal-open {
    padding-right: 0px !important;
    overflow-y: auto !important;
}

/* Modern Offer Modal Positioning */
#offermodal .offermodal {
    margin-top: 0;
}

.testimonial-carousel .owl-nav {
    display: none;
}

.container-premium-wide {
    max-width: 1140px;
    margin: 0 auto;
}

@media only screen and (max-width: 1200px) {
    .container-premium-wide {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media only screen and (max-width: 600px) {
    #index_image {
        display: none !important;
    }

    #offermodal .offermodal {
        margin-top: 0;
    }

    #img2 {
        display: none !important;
    }

    #btnR {
        margin-left: 15px !important;
    }

    .Followtest {
        font-size: 10px !important;
    }
}

.placement_carousel .owl-prev,
.placement_carousel .owl-next {
    display: none;
}

.stretch-card>.card {
    width: 100%;
    min-width: 100%
}

body {
    background-color: #f9f9fa;
}

.flex {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto
}

.owl-carousel .item {
    margin: 3px;
}

.owl-carousel .item img {
    display: block;
    width: 100%;
    height: auto;
}

.owl-carousel .item {
    margin: 3px;
}

.owl-carousel {
    margin-bottom: 15px;
}

/* Slider Section */
.dg-slider {
    width: 100%;
    padding-top: 0px;
    position: relative;
    z-index: 1;
    /* min-height: 260px; Prevent layout shift */
}

/* Slider Wrapper */
.dg-slider-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    background: #f5f5f5;
}

/* Slide Item */
.dg-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dg-slide.active {
    opacity: 1;
    z-index: 1;
    position: relative;
}

/* Image */
.dg-slide img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: auto;
}

@media (min-width: 992px) {

    /* .dg-slider { min-height: 600px; } */
    .dg-slide img {
        /* max-height: 600px; */
    }
}

@media (min-width: 768px) and (max-width: 991px) {

    /* .dg-slider { min-height: 500px; } */
    .dg-slide img {
        /* max-height: 500px; */
        padding-top: 0px;
    }

    .dg-prev,
    .dg-next {
        display: none;
    }
}

@media (min-width: 576px) and (max-width: 767px) {

    /* .dg-slider { min-height: 420px; } */
    .dg-slide img {
        /* max-height: 420px; */
        width: 100%;
        padding-top: 0px;
    }

    .dg-prev,
    .dg-next {
        display: none;
    }
}

@media (max-width: 575px) {

    /* .dg-slider { min-height: 320px; } */
    .dg-slide img {
        /* max-height: 320px; */
        width: 100%;
        padding-top: 0px;
    }

    .dg-prev,
    .dg-next {
        display: none;
    }
}

@media (max-width: 400px) {

    /* .dg-slider { min-height: 260px; } */
    .dg-slide img {
        /* max-height: 260px; */
        width: 100%;
    }
}

/* CONTROLS */
.dg-prev,
.dg-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    font-size: 30px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    background: none;
    color: var(--blue);
    transition: color 0.3s;
}

.dg-prev {
    left: 20px;
}

.dg-next {
    right: 20px;
}

.dg-prev:hover,
.dg-next:hover {
    color: var(--orange);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 18px !important;
    font-weight: bold;
}

.swiper-pagination-bullet-active {
    background-color: var(--orange) !important;
}

.swiper-slide {
    box-shadow: none !important;
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.3s;
}

.premium-banner-bx {
    border-radius: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    margin: 0px;
    background: transparent;
    border: none;
    display: block;
    padding: 15px;
}

.premium-banner-bx img {
    border-radius: 0;
    width: 100%;
    height: auto;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.banner-swiper .swiper-wrapper,
.placement-swiper .swiper-wrapper,
.team-swiper .swiper-wrapper,
.mySwiper .swiper-wrapper {
    transition-timing-function: linear !important;
}

.segment-notice-box {
    background: rgba(0, 109, 171, 0.05);
    border: 1px solid rgba(0, 109, 171, 0.1);
    border-radius: 50px;
    padding: 5px 20px;
    margin-bottom: 15px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.segment-notice-box:hover {
    background: rgba(0, 109, 171, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 109, 171, 0.15);
}

.notice-link {
    color: var(--blue);
    text-decoration: none;
    transition: color 0.3s;
}

.notice-link:hover {
    color: var(--orange);
    text-decoration: underline;
}

/* Premium News Ticker */
.premium-ticker-section {
    width: 100%;
    background: linear-gradient(90deg, #045eadff 0%, #0479c7ff 50%, #1672c2ff 100%);
    overflow: hidden;
    padding: 0;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
    min-height: 42px;
    /* Prevent shift */
}

.ticker-inner {
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.ticker-label {
    background: var(--orange);
    color: #fff;
    padding: 12px 45px 12px 25px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    clip-path: polygon(0 0, 82% 0, 100% 100%, 0% 100%);
    margin-right: -35px;
    position: relative;
    z-index: 11;
    filter: drop-shadow(5px 0 10px rgba(0, 0, 0, 0.3));
}

.ticker-label i {
    font-size: 15px;
    animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.9);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(0.9);
        opacity: 0.7;
    }
}

.ticker-wrapper {
    flex: 1;
    overflow: hidden;
    padding: 12px 0 12px 35px;
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    transition-timing-function: linear !important;
    animation: ticker 40s linear infinite;
}

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

.ticker-item {
    font-size: 14.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 40px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 0.3px;
}

.ticker-item .sep-dot {
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .ticker-label {
        padding: 10px 15px;
        font-size: 11px;
    }

    .ticker-item {
        font-size: 12.5px;
        margin: 0 20px;
    }

    .segment-notice-box {
        border-radius: 15px;
        padding: 15px;
    }
}

/* Premium About Section Styles */
.premium-about-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.97) 0%, rgba(245, 247, 250, 0.95) 100%), url('../images/background/bg4.jpg');
    background-attachment: fixed;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

.premium-about-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 109, 171, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.about-glass-card {
    background: transparent;
    backdrop-filter: none;
    border: none;
    padding: 10px 0;
    box-shadow: none;
    height: auto;
}

.about-image-wrapper {
    position: relative;
    z-index: 1;
    padding: 15px;
}

.about-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(231, 96, 40, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.about-image-main {
    border-radius: 0;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    width: 100%;
    border: none;
}

.about-image-wrapper:hover .about-image-main {
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.2);
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, rgba(231, 96, 40, 0.1) 0%, rgba(231, 96, 40, 0.05) 100%);
    color: var(--orange);
    padding: 8px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 25px;
    border: 1px solid rgba(231, 96, 40, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #000;
}

.about-desc {
    font-size: 1rem;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 20px;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 25px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.highlight-item:hover {
    background: #fff;
    transform: translateX(5px);
    box-shadow: 0 10px 25px rgba(0, 109, 171, 0.05);
}

.highlight-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    background: var(--blue);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 8px 15px rgba(0, 109, 171, 0.2);
}

.highlight-text h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #2d3748;
}

.highlight-text p {
    font-size: 13px;
    color: #718096;
    margin: 0;
    line-height: 1.4;
}

.about-single-image-wrapper {
    position: relative;
    padding: 20px;
    z-index: 1;
}

@media (max-width: 768px) {
    .premium-about-section {
        padding: 30px 0;
    }

    .about-glass-card {
        text-align: center;
        padding: 5px 0;
    }

    .about-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .about-desc {
        font-size: 14px;
        margin-bottom: 15px;
    }
}

.about-single-img {
    width: 100%;
    border-radius: 0;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    transition: all 0.4s ease;
}

@media (max-width: 991px) {
    .about-title {
        font-size: 2.2rem;
    }

    .about-glass-card {
        padding: 15px 0;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }
}

.premium-service-card {
    background: #fff;
    border-radius: 0;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 109, 171, 0.05);
    border: 1px solid rgba(0, 109, 171, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
    color: #333;
}

.premium-service-card p {
    color: #718096;
    font-weight: 500;
    margin: 0;
    line-height: 1.8;
    font-size: 15px;
}

.premium-service-card h5 {
    color: #1a202c;
    font-weight: 800;
    font-size: 22px;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.premium-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, rgba(0, 109, 171, 0.02) 0%, transparent 100%);
    transition: all 0.4s ease;
    z-index: -1;
}

.premium-service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 109, 171, 0.12);
    border-color: rgba(0, 109, 171, 0.2);
}

.premium-service-card:hover::before {
    height: 100%;
}

.premium-service-card .icon-lg {
    width: 70px;
    height: 70px;
    background: rgba(0, 109, 171, 0.08);
    color: var(--blue);
    border-radius: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 30px;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 109, 171, 0.05);
}

.premium-service-card:hover .icon-lg {
    background: var(--blue);
    color: #fff;
    transform: rotateY(360deg);
    box-shadow: 0 10px 20px rgba(0, 109, 171, 0.2);
}

.premium-service-card .service-number {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 80px;
    font-weight: 900;
    color: rgba(0, 109, 171, 0.03);
    transition: all 0.4s ease;
    line-height: 1;
}

.premium-service-card:hover .service-number {
    color: rgba(0, 109, 171, 0.08);
    transform: scale(1.1);
}

/* College Style Collage */
.about-collage-vertical {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 20px 0;
    position: relative;
}

.collage-item {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    border: none;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.collage-top {
    width: 80%;
    height: 180px;
    align-self: flex-start;
    z-index: 2;
    transform: rotate(-2deg);
}

.collage-main {
    width: 100%;
    height: 300px;
    z-index: 1;
    margin-top: -40px;
    margin-bottom: -40px;
}

.collage-bottom {
    width: 80%;
    height: 180px;
    align-self: flex-end;
    z-index: 2;
    transform: rotate(2deg);
}

.collage-item:hover {
    z-index: 10;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.trust-badge-floating {
    position: absolute;
    top: 20%;
    right: -20px;
    background: var(--orange);
    color: #fff;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    box-shadow: 0 10px 25px rgba(231, 96, 40, 0.4);
    z-index: 11;
    animation: float-badge 5s ease-in-out infinite;
    border: 4px solid #fff;
    text-align: center;
}

@keyframes float-badge {

    0%,
    100% {
        transform: translateY(0) rotate(5deg);
    }

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

@media (max-width: 991px) {
    .about-collage-vertical {
        padding-top: 50px;
        height: auto;
    }

    .collage-top,
    .collage-bottom {
        width: 90%;
    }
}

/* --- Expanded Mini-Premium Modal --- */
.modal {
    z-index: 99999 !important;
}

.modal-backdrop {
    z-index: 99998 !important;
}

#offermodal .modal-dialog {
    max-width: 700px;
    margin: 1.75rem auto;
    display: flex;
    align-items: center;
    min-height: calc(100% - 3.5rem);
}

#offermodal .modal-content {
    background: #ffffff;
    border: none;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.2);
    animation: miniFadeUp 0.5s ease-out;
    position: relative;
}

@keyframes miniFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

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

.compact-modal-body {
    padding: 20px !important;
    text-align: center;
}

.compact-image-row {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 25px;
}

.compact-img-card {
    flex: 1;
    background: #fff;
    padding: 5px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.compact-img-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(231, 96, 40, 0.15);
}

.compact-img-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.compact-content-area {
    margin-top: 10px;
}

.compact-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--orange);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.compact-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 25px;
    padding: 0 10px;
}

.compact-btn-group {
    display: flex;
    gap: 10px;
}

.compact-btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.btn-compact-dark {
    background: #1e293b;
    color: #fff !important;
}

.btn-compact-orange {
    background: var(--orange);
    color: #fff !important;
    box-shadow: 0 8px 15px rgba(231, 96, 40, 0.2);
}

.compact-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.compact-close-x {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 35px;
    height: 35px;
    background: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.compact-close-x:hover {
    background: var(--orange);
    color: #fff;
}

@media (max-width: 576px) {
    #offermodal .modal-dialog {
        margin: 0 auto;
        max-width: 300px;
        width: 90%;
        min-height: auto;
        height: auto;
        top: 50%;
        transform: translateY(-50%) !important;
        position: absolute;
        left: 50%;
        margin-left: -150px;
    }

    .compact-modal-body {
        padding: 10px !important;
    }

    .compact-image-row {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 12px;
    }

    .compact-img-card {
        padding: 0;
        border: none;
        width: 100%;
    }

    .compact-img-card img {
        width: 100% !important;
        border-radius: 6px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .compact-content-area {
        padding: 0;
    }

    .compact-desc {
        display: none;
    }

    .compact-btn {
        padding: 10px;
        font-size: 13px;
        border-radius: 6px;
    }
}