/* ============ Paper Types Section ============ */
/* Inter Font - Now loaded via self-hosted WOFF2 in fonts.css */
.bg{
     background: #f8fafc;
}
.paper-types-section {
    padding: 90px 0;
    font-family: 'Inter', sans-serif;
}

.paper-types-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.paper-types-header {
    text-align: center;
    margin-bottom: 60px;
}

.paper-types-header h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 38px;
    line-height: 150%;
    color: #35414B;
    margin-bottom: 3px;
}

.paper-types-header h2 .gradient-text {
    background: linear-gradient(90deg, #2C83FF 35.36%, #4E68E5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Inter', sans-serif;
}

.paper-types-header p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 180%;
    color: #536C8B;
    font-weight: 500;
    max-width: 100%;
}

/* Grid Layout */
.paper-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Card Base Styles */
.paper-type-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 35px 26px;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-height: 520px;
}

/* Explode border effect - before element */
.paper-type-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    transition: all 0.4s ease;
}

/* Explode border effect - after element */
.paper-type-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    transition: all 0.4s ease;
}

.paper-type-card:hover::before {
    border: 3px solid rgba(255, 255, 255, 0.3);
    animation: explode-border-1 0.6s ease-out forwards;
}

.paper-type-card:hover::after {
    border: 3px solid rgba(255, 255, 255, 0.3);
    animation: explode-border-2 0.6s ease-out 0.1s forwards;
}

@keyframes explode-border-1 {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.08); opacity: 0; }
}

@keyframes explode-border-2 {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.15); opacity: 0; }
}

/* Academic Card - Blue Gradient */
.paper-type-card.academic-card {
    background: linear-gradient(105deg, #2243A4 1.17%, #8D9FF6 98.86%), linear-gradient(117deg, #2243A4 1.08%, #5464CA 49.71%, #7C7DE8 97.38%);
    background-size: 150% 150%;
    animation: gradient-flow 8s ease infinite;
    -webkit-animation: gradient-flow 8s ease infinite;
}

.paper-type-card.academic-card:hover {
    box-shadow: 0px 4px 18.7px 9px #C6C8FD;

}

/* Admission Card - Purple/Pink Gradient */
.paper-type-card.admission-card {
    background: linear-gradient(103.82deg, #2756DF 1.08%, #5599F2 97.38%);
    background-size: 150% 150%;
    animation: gradient-flow 8s ease infinite;
    animation-delay: -2s;
}

.paper-type-card.admission-card:hover {
    box-shadow: 0px 4px 18.7px 9px #BDD7FF;

}

/* Personal Card - Blue Gradient (same as academic) */
.paper-type-card.personal-card {
    
    background: linear-gradient(105deg, #2243A4 1.17%, #8D9FF6 98.86%), linear-gradient(
117deg, #2243A4 1.08%, #5464CA 49.71%, #7C7DE8 97.38%);
    background-size: 150% 150%;
    animation: gradient-flow 8s ease infinite;
    animation-delay: -4s;
}

.paper-type-card.personal-card:hover {
    box-shadow: 0px 4px 18.7px 9px #C6C8FD;

}

@keyframes gradient-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Card Header */
.card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float-icon 3s ease-in-out infinite;
}

@keyframes float-icon {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

.card-title-wrap h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 23px;
    line-height: 130%;
    color: #ffffff;
    margin: 0 0 4px 0;
    letter-spacing: 0.5px;
}

.card-title-wrap span {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    line-height: 180%;
}

/* Service Links */
.card-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    flex-grow: 1;
}

.service-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1.5px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 180%;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.service-link span{
    font-family: 'Inter', sans-serif;
}
.service-link:hover {
    transform: translateX(8px);
    text-decoration-thickness: 2px;
    color: #ffffff;
}

.service-link .arrow-icon {
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-link:hover .arrow-icon {
    transform: translateX(4px) scale(1.15);
}

/* Price Box */
.card-price-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    /* border: 1px solid rgba(255, 255, 255, 0.2); */
    border-radius: 16px;
    padding: 15px 23px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.price-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 100%;
    color: #ffffff;
    font-weight: 400;
    margin-bottom: 10px;
}

.price-value {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 33px;
    line-height: 100%;
    color: #ffffff;
}

.price-unit {
    font-size: 18px;
    font-weight: 600;
}

/* CTA Button */
.card-cta-btn {
    display: block;
    width: 93%;
    margin: 0 auto;
    background: #ffffff;
    color: #255394;
    text-align: center;
    padding: 18px 7px;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 100%;
    text-decoration: none;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
}

/* .card-cta-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.card-cta-btn:hover::before {
    width: 350px;
    height: 350px;
} */

.card-cta-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0px 4px 16px rgba(59, 130, 246, 0.25);
    color: #255394;
}

.admission-card .card-cta-btn {
    color: #255394;
}

.admission-card .card-cta-btn:hover {
    color: #255394;
}

.cta-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.card-cta-btn:hover .cta-arrow {
    transform: translateX(4px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .paper-types-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .paper-type-card:last-child {
        grid-column: span 2;
        max-width: 380px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .paper-types-section {
        padding: 60px 0;
    }

    .paper-types-header h2 {
        font-size: 32px;
    }

    .paper-types-header p {
        font-size: 16px;
    }

    .paper-types-grid {
        /* grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px; */
        max-width: unset;
        display: flex;
        flex-wrap: nowrap;
        justify-content: start;
        gap: 15px;
        padding-bottom: 20px;
        overflow-y: hidden;   /* removes right scrollbar */
        overflow-x: auto;
        flex-direction: row;
        scrollbar-width: thin;
        scrollbar-color: #3179be #f1f1f1;
    }

    .paper-type-card:last-child {
        grid-column: span 1;
        max-width: none;
    }
.paper-type-card.academic-card:hover, .paper-type-card.admission-card:hover,.paper-type-card.personal-card:hover {
    box-shadow: unset;
    transform: unset;

}
    .paper-type-card {
        padding: 28px 24px;
        overflow: unset;
    }

    .card-title-wrap h3 {
        font-size: 18px;
    }

    .service-link {
        font-size: 14px;
    }

    .price-value {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .paper-types-section {
        padding: 50px 0;
    }

    .paper-types-header {
        margin-bottom: 45px;
    }

    .paper-types-header h2 {
        font-size: 25px;
    }

    .paper-types-header p {
        font-size: 14px;
    }

    .paper-type-card {
        padding: 24px 15px;
        border-radius: 20px;
                min-width: 330px;
        width: 100%;
    }

    .card-header {
        gap: 12px;
        margin-bottom: 20px;
    }

    .card-icon {
        width: 40px;
        height: 40px;
    }

    .card-icon svg {
        width: 32px;
        height: 32px;
    }

    .card-title-wrap h3 {
        font-size: 16px;
    }

    .card-title-wrap span {
        font-size: 13px;
    }

    .card-links {
        gap: 4px;
        margin-bottom: 20px;
    }

    .service-link {
        font-size: 14px;
        padding: 5px 0;
    }

    .card-price-box {
        padding: 14px 16px;
        margin-bottom: 16px;
    }

    .price-value {
        font-size: 28px;
    }

    .price-unit {
        font-size: 16px;
    }

    .card-cta-btn {
        padding: 14px 15px;
        font-size: 14px;
        border-radius: 12px;
        width: 100%;
    }
}
/* ============ End Paper Types Section ============ */
