/*
Theme Name: Scholarship Theme - Gen Z Neomorphic
Description: Pastel colors, soft shadows, playful 3D elements, bento box layout
Version: 3.0
Author: ScholarshipDekho Team
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&display=swap');

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #2D3561;
    background: #FFFFFF;
    font-weight: 400;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

/* ==================== FLOATING DECORATIVE ELEMENTS ==================== */
body::before {
    content: '★';
    position: fixed;
    top: 15%;
    right: 10%;
    font-size: 3em;
    color: #B794F6;
    opacity: 0.25;
    animation: float 6s ease-in-out infinite;
    z-index: 1;
}

body::after {
    content: '◆';
    position: fixed;
    bottom: 20%;
    left: 8%;
    font-size: 4em;
    color: #A8D8EA;
    opacity: 0.2;
    animation: float 8s ease-in-out infinite reverse;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(-15px) translateX(10px); }
}

/* ==================== HEADER - WHITE WITH COLORFUL ELEMENTS ==================== */
.site-header {
    background: #FFFFFF;
    padding: 24px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow:
        0 8px 32px rgba(183, 148, 246, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.03);
}

.site-header::before {
    content: '→';
    position: absolute;
    top: 50%;
    left: 5%;
    font-size: 2em;
    color: rgba(183, 148, 246, 0.1);
    animation: floatSlow 5s ease-in-out infinite;
}

.site-header::after {
    content: '✦';
    position: absolute;
    top: 30%;
    right: 8%;
    font-size: 1.5em;
    color: rgba(168, 216, 234, 0.15);
    animation: float 7s ease-in-out infinite;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-family: 'Lato', sans-serif;
    font-size: 1.8em;
    margin: 0;
    font-weight: 400;
    letter-spacing: -0.5px;
}

.brand-link {
    color: #2D3561;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 14px;
}

.site-logo {
    height: 46px;
    width: auto;
}

.brand-name {
    font-weight: 400;
}

.site-tagline {
    display: none;
}

/* ==================== NAVIGATION - COLORFUL PILLS ==================== */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 12px;
    margin: 0;
}

.nav-menu a {
    color: #2D3561;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 0.95em;
    background: rgba(183, 148, 246, 0.08);
    position: relative;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    background: linear-gradient(135deg, #B794F6, #9B7EDE);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-menu a:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(183, 148, 246, 0.3);
}

.nav-menu a:hover::before {
    opacity: 1;
}

/* ==================== MOBILE MENU ==================== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    gap: 5px;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    width: 26px;
    height: 3px;
    background: #B794F6;
    border-radius: 2px;
    transition: 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ==================== HERO - PLAYFUL 3D ==================== */
.hero-section {
    text-align: center;
    padding: 30px 24px 30px;
    background: transparent;
    margin-bottom: 0;
    position: relative;
}

.hero-section::before {
    content: '✦';
    position: absolute;
    top: 10%;
    left: 15%;
    font-size: 4em;
    color: #B794F6;
    opacity: 0.2;
    animation: float 7s ease-in-out infinite;
}

.hero-section::after {
    content: '○';
    position: absolute;
    bottom: 15%;
    right: 12%;
    font-size: 5em;
    color: #A8D8EA;
    opacity: 0.15;
    animation: floatSlow 9s ease-in-out infinite reverse;
}

.hero-section h1 {
    font-family: 'Lato', sans-serif;
    font-size: clamp(2.8em, 6vw, 4.5em);
    color: #2D3561;
    margin-bottom: 28px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -1.5px;
    position: relative;
    z-index: 2;
}

.hero-section p {
    font-size: clamp(1.15em, 2vw, 1.35em);
    color: #5B5F7C;
    max-width: 720px;
    margin: 0 auto 52px;
    font-weight: 400;
    line-height: 1.8;
    position: relative;
    z-index: 2;
}

.cta-button {
    display: inline-block;
    background: #FFB142;
    color: #fff;
    padding: 20px 54px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.15em;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    box-shadow:
        0 10px 30px rgba(255, 177, 66, 0.35),
        0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow:
        0 14px 40px rgba(255, 177, 66, 0.45),
        0 6px 16px rgba(0, 0, 0, 0.15);
    background: #FF9F1C;
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    padding: 0;
    min-height: 60vh;
}

/* ==================== SCHOLARSHIPS SECTION - BENTO BOX ==================== */
.featured-scholarships {
    padding: 30px 0;
    background: transparent;
    position: relative;
}

.featured-scholarships::before {
    content: '▲';
    position: absolute;
    top: 8%;
    right: 5%;
    font-size: 3.5em;
    color: #B794F6;
    opacity: 0.15;
    animation: float 10s ease-in-out infinite;
}

.featured-scholarships h2 {
    font-family: 'Lato', sans-serif;
    text-align: center;
    margin-bottom: 40px;
    color: #2D3561;
    font-size: clamp(2.2em, 4.5vw, 3.2em);
    font-weight: 400;
    letter-spacing: -1px;
    position: relative;
}

.featured-scholarships h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 6px;
    background: #B794F6;
    margin: 20px auto 0;
    border-radius: 3px;
}

.scholarships-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.scholarship-card {
    background: #FFFFFF;
    border-radius: 28px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        10px 10px 30px rgba(183, 148, 246, 0.15),
        -10px -10px 30px rgba(255, 255, 255, 0.9),
        0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.scholarship-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: #B794F6;
    border-radius: 0 28px 0 100%;
    opacity: 0.08;
    transition: all 0.4s ease;
}

.scholarship-card:hover::before {
    width: 180px;
    height: 180px;
    opacity: 0.12;
}

.scholarship-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow:
        15px 15px 40px rgba(183, 148, 246, 0.25),
        -15px -15px 40px rgba(255, 255, 255, 1),
        0 8px 24px rgba(0, 0, 0, 0.08);
}

.scholarship-card h3 {
    color: #2D3561;
    font-size: 1.6em;
    margin-bottom: 18px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.scholarship-card h3 a {
    color: #2D3561;
    text-decoration: none;
    transition: color 0.3s ease;
}

.scholarship-card h3 a:hover {
    color: #B794F6;
}

.scholarship-card .excerpt {
    color: #5B5F7C;
    margin-bottom: 28px;
    line-height: 1.8;
    font-size: 1em;
}

.scholarship-card .read-more {
    background: #FFB142;
    color: #fff;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.95em;
    box-shadow:
        0 6px 20px rgba(255, 177, 66, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.1);
}

.scholarship-card .read-more:hover {
    transform: translateY(-3px);
    box-shadow:
        0 10px 28px rgba(255, 177, 66, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.15);
    background: #FF9F1C;
}

/* ==================== ARTICLES SECTION - PLAYFUL CARDS ==================== */
.latest-articles-section {
    padding: 30px 0 30px;
    background: transparent;
    position: relative;
}

.latest-articles-section::after {
    content: '●';
    position: absolute;
    bottom: 10%;
    right: 8%;
    font-size: 4em;
    color: #7EC8E3;
    opacity: 0.12;
    animation: float 11s ease-in-out infinite;
}

.latest-articles-section h2 {
    font-family: 'Lato', sans-serif;
    color: #2D3561;
    font-size: clamp(2.2em, 4.5vw, 3.2em);
    font-weight: 400;
    letter-spacing: -1px;
    margin: 0;
}

.latest-articles-section a[href*="articles"] {
    color: #B794F6;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05em;
    transition: all 0.3s ease;
    padding: 10px 24px;
    border-radius: 50px;
    background: rgba(183, 148, 246, 0.1);
}

.latest-articles-section a[href*="articles"]:hover {
    background: rgba(183, 148, 246, 0.2);
    transform: translateX(6px);
}

.articles-horizontal-scroll {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 30px 4px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.articles-horizontal-scroll::-webkit-scrollbar {
    height: 10px;
}

.articles-horizontal-scroll::-webkit-scrollbar-track {
    background: rgba(183, 148, 246, 0.08);
    border-radius: 10px;
}

.articles-horizontal-scroll::-webkit-scrollbar-thumb {
    background: #B794F6;
    border-radius: 10px;
}

.articles-horizontal-scroll::-webkit-scrollbar-thumb:hover {
    background: #9B7EDE;
}

.article-scroll-card {
    min-width: 360px;
    max-width: 360px;
    background: #FFFFFF;
    border-radius: 28px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow:
        8px 8px 24px rgba(183, 148, 246, 0.12),
        -8px -8px 24px rgba(255, 255, 255, 0.8),
        0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
}

.article-scroll-card::after {
    content: '✦';
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 1.5em;
    color: #B794F6;
    opacity: 0.2;
}

.article-scroll-card:hover {
    transform: translateY(-10px) rotate(-1deg);
    box-shadow:
        12px 12px 32px rgba(183, 148, 246, 0.2),
        -12px -12px 32px rgba(255, 255, 255, 0.9),
        0 8px 24px rgba(0, 0, 0, 0.08);
}

.article-scroll-image a {
    display: block;
    overflow: hidden;
}

.article-scroll-image img {
    transition: transform 0.5s ease;
    border-radius: 28px 28px 0 0;
}

.article-scroll-card:hover .article-scroll-image img {
    transform: scale(1.08);
}

.article-scroll-content {
    padding: 24px;
}

.article-scroll-content span[style*="background"] {
    background: #B794F6 !important;
    color: #fff !important;
    padding: 8px 18px !important;
    border-radius: 50px !important;
    font-size: 0.75em !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(183, 148, 246, 0.3) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.article-scroll-title {
    font-size: 1.3em;
    margin: 18px 0 14px;
    line-height: 1.4;
    font-weight: 700;
}

.article-scroll-title a {
    color: #2D3561;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-scroll-title a:hover {
    color: #2D3561;
}

.article-scroll-excerpt {
    color: #5B5F7C;
    font-size: 0.95em;
    line-height: 1.8;
    margin-bottom: 18px;
}

.article-scroll-link {
    color: #FFB142;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92em;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 177, 66, 0.1);
    border-radius: 50px;
}

.article-scroll-link:hover {
    background: rgba(255, 177, 66, 0.18);
    transform: translateX(5px);
}

/* ==================== INFO SECTION - BENTO BOXES ==================== */
section[style*="background: white"] {
    background: transparent !important;
    padding: 30px 40px 30px !important;
    margin-top: 0 !important;
}

section[style*="background: white"] h2 {
    font-family: 'Lato', sans-serif;
    color: #2D3561 !important;
    font-size: clamp(2.2em, 4.5vw, 3.2em) !important;
    font-weight: 400 !important;
    letter-spacing: -1px !important;
    margin-bottom: 40px !important;
    text-align: center !important;
}

section[style*="background: white"] h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 6px;
    background: #B794F6;
    margin: 20px auto 0;
    border-radius: 3px;
}

section[style*="background: white"] > div {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 32px !important;
}

section[style*="background: white"] > div > div {
    background: #FFFFFF;
    padding: 30px;
    border-radius: 28px;
    box-shadow:
        10px 10px 30px rgba(183, 148, 246, 0.15),
        -10px -10px 30px rgba(255, 255, 255, 0.9),
        0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

section[style*="background: white"] > div > div::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: #B794F6;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

section[style*="background: white"] > div > div:hover::before {
    transform: scaleX(1);
}

section[style*="background: white"] > div > div:hover {
    transform: translateY(-6px);
    box-shadow:
        14px 14px 36px rgba(183, 148, 246, 0.22),
        -14px -14px 36px rgba(255, 255, 255, 1),
        0 6px 20px rgba(0, 0, 0, 0.08);
}

section[style*="background: white"] h3 {
    color: #B794F6 !important;
    font-size: 1.5em !important;
    font-weight: 700 !important;
    margin-bottom: 14px !important;
}

section[style*="background: white"] p {
    color: #5B5F7C !important;
    font-size: 1.02em !important;
    line-height: 1.8 !important;
}

/* ==================== FOOTER ==================== */
.site-footer {
    background: #2D3561;
    color: #E8E9F3;
    text-align: center;
    padding: 30px 0;
    margin-top: 0;
    box-shadow: 0 -8px 32px rgba(45, 53, 97, 0.15);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .site-header {
        padding: 18px 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav .nav-menu {
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        box-shadow: 0 8px 30px rgba(0,0,0,0.2) !important;
        transform: translateY(-100%) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        z-index: 9999 !important;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s 0.3s !important;
        max-height: calc(100vh - 70px) !important;
        overflow-y: auto !important;
    }

    .main-nav .nav-menu.active {
        transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s 0s !important;
    }

    .nav-menu li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        width: 100%;
        padding: 18px 24px;
        text-align: left;
        background: white;
        border-radius: 0;
    }

    .nav-menu a::before {
        display: none;
    }

    .nav-menu a:hover {
        background: rgba(183, 148, 246, 0.1);
        transform: none;
    }

    .hero-section {
        padding: 30px 20px 30px;
    }

    .featured-scholarships,
    .latest-articles-section {
        padding: 30px 0;
    }

    .scholarships-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .article-scroll-card {
        min-width: 300px;
        max-width: 300px;
    }

    body::before,
    body::after,
    .hero-section::before,
    .hero-section::after,
    .featured-scholarships::before,
    .latest-articles-section::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.4em;
    }

    .scholarship-card {
        padding: 24px;
    }

    .article-scroll-card {
        min-width: 280px;
        max-width: 280px;
    }
}

/* ==================== SCHOLARSHIP ARCHIVE ==================== */
.scholarships-archive-header {
    text-align: center;
    padding: 30px 24px;
    background: #FFFFFF;
    border-radius: 28px;
    margin-bottom: 30px;
    box-shadow:
        8px 8px 24px rgba(183, 148, 246, 0.12),
        -8px -8px 24px rgba(255, 255, 255, 0.8);
}

.scholarships-archive-header h1 {
    font-family: 'Lato', sans-serif;
    font-size: clamp(2em, 4vw, 3em);
    color: #2D3561;
    margin-bottom: 15px;
    font-weight: 400;
    letter-spacing: -1px;
}

.scholarships-archive-header p {
    font-size: 1.1em;
    color: #5B5F7C;
    margin: 0;
}

/* ==================== PAGINATION ==================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 12px 18px;
    background: #FFFFFF;
    color: #2D3561;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 45px;
    text-align: center;
    box-shadow:
        4px 4px 12px rgba(183, 148, 246, 0.12),
        -4px -4px 12px rgba(255, 255, 255, 0.8);
}

.pagination .page-numbers:hover {
    background: #B794F6;
    color: white;
    transform: translateY(-2px);
    box-shadow:
        6px 6px 18px rgba(183, 148, 246, 0.3),
        -6px -6px 18px rgba(255, 255, 255, 0.9);
}

.pagination .page-numbers.current {
    background: #B794F6;
    color: white;
    font-weight: 700;
    box-shadow:
        6px 6px 18px rgba(183, 148, 246, 0.3),
        -6px -6px 18px rgba(255, 255, 255, 0.9);
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    padding: 12px 24px;
    font-weight: 700;
}

.pagination .page-numbers.dots {
    background: transparent;
    box-shadow: none;
    pointer-events: none;
}

/* ==================== SINGLE SCHOLARSHIP PAGE ==================== */
.scholarship-single {
    max-width: 100%;
    margin: 0 auto;
}

.scholarship-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 32px;
    margin-top: 30px;
}

.scholarship-content-main {
    min-width: 0;
}

.scholarship-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 0;
    padding: 0;
}

.scholarship-title {
    font-family: 'Lato', sans-serif;
    font-size: clamp(1.8em, 3vw, 2.5em);
    color: #2D3561;
    font-weight: 400;
    margin: 20px 0 0 0;
    line-height: 1.2;
    flex: 1;
}

.quick-apply {
    flex-shrink: 0;
}

.scholarship-box {
    background: #FFFFFF;
    border-radius: 28px;
    box-shadow:
        10px 10px 30px rgba(183, 148, 246, 0.15),
        -10px -10px 30px rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.scholarship-box:hover {
    transform: translateY(-4px);
    box-shadow:
        12px 12px 36px rgba(183, 148, 246, 0.2),
        -12px -12px 36px rgba(255, 255, 255, 1);
}

.box-header {
    background: rgba(183, 148, 246, 0.08);
    padding: 24px 30px;
    border-bottom: 3px solid #B794F6;
}

.box-header h2 {
    color: #2D3561;
    font-size: 1.6em;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
}

.box-header h2 i {
    margin-right: 12px;
    color: #B794F6;
    font-size: 1.2em;
}

.box-content {
    padding: 30px;
    line-height: 1.7;
    color: #5B5F7C;
    font-size: 1.05em;
}

.box-content p {
    margin-bottom: 16px;
}

.box-content ul, .box-content ol {
    padding-left: 25px;
    margin-bottom: 20px;
    list-style-position: outside;
}

.box-content li {
    margin-bottom: 12px;
    padding-left: 8px;
    line-height: 1.7;
}

.box-content h3 {
    color: #2D3561;
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 15px;
    margin-top: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(183, 148, 246, 0.2);
}

.amount-boxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
}

.amount-item {
    padding: 16px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1em;
    color: white;
    text-align: center;
    background: #B794F6;
    box-shadow: 0 4px 12px rgba(183, 148, 246, 0.3);
    transition: all 0.3s ease;
}

.amount-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(155, 126, 222, 0.4);
}

.amount-color-1 {
    background: #8B7AB8;
    box-shadow: 0 4px 12px rgba(139, 122, 184, 0.3);
}

.amount-color-2 {
    background: #9B7EDE;
    box-shadow: 0 4px 12px rgba(155, 126, 222, 0.3);
}

.amount-color-3 {
    background: #8B6FCE;
    box-shadow: 0 4px 12px rgba(139, 111, 206, 0.3);
}

.amount-color-4 {
    background: #A78BCA;
    box-shadow: 0 4px 12px rgba(167, 139, 202, 0.3);
}

.amount-color-5 {
    background: #9370DB;
    box-shadow: 0 4px 12px rgba(147, 112, 219, 0.3);
}

.main-apply-section {
    text-align: center;
    margin: 30px 0;
    padding: 30px;
    background: #FFFFFF;
    border-radius: 28px;
    box-shadow:
        10px 10px 30px rgba(183, 148, 246, 0.15),
        -10px -10px 30px rgba(255, 255, 255, 0.9);
}

.box-footer {
    padding: 20px 30px;
    background: rgba(183, 148, 246, 0.03);
    border-top: 1px solid rgba(183, 148, 246, 0.1);
    text-align: right;
}

.apply-now-btn {
    display: inline-block;
    background: #B794F6;
    color: white;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(183, 148, 246, 0.3);
    font-size: 1em;
    border: none;
    cursor: pointer;
}

.apply-now-btn:hover {
    background: #9B7EDE;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(183, 148, 246, 0.4);
    color: white;
}

.apply-now-btn.primary {
    background: #FFB142;
    font-size: 1.15em;
    padding: 16px 40px;
}

.apply-now-btn.primary:hover {
    background: #FF9F1C;
}

.apply-now-btn.small {
    font-size: 0.9em;
    padding: 10px 24px;
}

.sticky-apply-btn {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.sticky-apply-btn .apply-now-btn {
    width: 100%;
    background: #FFB142;
    margin: 0;
}

.sticky-apply-btn .apply-now-btn:hover {
    background: #FF9F1C;
}

.sticky-apply-btn.show {
    display: block;
}

@media (min-width: 769px) {
    .sticky-apply-btn {
        display: none !important;
    }
}

.amount-box .box-header {
    border-bottom-color: #7EC8E3;
}

.amount-box .box-header h2 i {
    color: #7EC8E3;
}

.intro-box .box-header {
    border-bottom-color: #A8D8EA;
}

.intro-box .box-header h2 i {
    color: #A8D8EA;
}

.eligibility-box .box-header {
    border-bottom-color: #B794F6;
}

.eligibility-box .box-header h2 i {
    color: #B794F6;
}

.documents-box .box-header {
    border-bottom-color: #7EC8E3;
}

.documents-box .box-header h2 i {
    color: #7EC8E3;
}

.apply-box .box-header {
    border-bottom-color: #B794F6;
}

.apply-box .box-header h2 i {
    color: #B794F6;
}

.categories-box .box-header {
    border-bottom-color: #A8D8EA;
}

.categories-box .box-header h2 i {
    color: #A8D8EA;
}

.sub-scholarship-box {
    background: #FFFFFF;
    border-radius: 28px;
    margin-bottom: 25px;
    overflow: hidden;
    box-shadow:
        8px 8px 24px rgba(183, 148, 246, 0.12),
        -8px -8px 24px rgba(255, 255, 255, 0.8);
}

.sub-header {
    background: #B794F6;
    padding: 20px 28px;
    color: white;
}

.sub-header h3 {
    font-size: 1.4em;
    font-weight: 700;
    margin: 0;
}

.sub-details {
    padding: 28px;
}

.sub-section {
    margin-bottom: 20px;
}

.sub-section h4 {
    color: #2D3561;
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 12px;
}

.sub-content {
    color: #5B5F7C;
    line-height: 1.7;
}

.sub-footer {
    padding: 16px 28px;
    background: rgba(183, 148, 246, 0.03);
    border-top: 1px solid rgba(183, 148, 246, 0.1);
    text-align: center;
}

/* ==================== ARTICLE STYLES ==================== */
.article-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
    padding: 20px;
    background: #FFFFFF;
    border-radius: 28px;
    box-shadow:
        8px 8px 24px rgba(183, 148, 246, 0.12),
        -8px -8px 24px rgba(255, 255, 255, 0.8);
}

.category-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    background: rgba(183, 148, 246, 0.08);
    color: #2D3561;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95em;
    transition: all 0.3s ease;
}

.category-tab:hover {
    background: rgba(183, 148, 246, 0.15);
    transform: translateY(-2px);
}

.category-tab.active {
    background: #FFB142;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 177, 66, 0.3);
}

.category-tab .tab-count {
    font-size: 0.85em;
    opacity: 0.9;
}

.article-categories a {
    display: inline-block;
    background: #B794F6;
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85em;
    margin-right: 6px;
    margin-bottom: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(183, 148, 246, 0.2);
}

.article-categories a:hover {
    background: #9B7EDE;
}

.article-categories a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(183, 148, 246, 0.3);
}

.article-meta {
    margin-bottom: 30px;
    padding: 18px 24px;
    background: rgba(183, 148, 246, 0.05);
    border-radius: 16px;
    border-left: 4px solid #B794F6;
}

.article-content {
    background: #FFFFFF;
    padding: 30px;
    border-radius: 28px;
    box-shadow:
        10px 10px 30px rgba(183, 148, 246, 0.15),
        -10px -10px 30px rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    font-size: 1.05em;
}

.article-content h2 {
    color: #2D3561;
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: 700;
}

.article-content h3 {
    color: #2D3561;
    font-size: 1.5em;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 700;
}

.article-content h4 {
    color: #2D3561;
    font-size: 1.3em;
    margin-top: 20px;
    margin-bottom: 12px;
    font-weight: 700;
}

.article-content p {
    margin-bottom: 18px;
    color: #5B5F7C;
}

.article-content a {
    color: #B794F6;
    text-decoration: underline;
}

.article-content a:hover {
    color: #9B7EDE;
}

.article-content blockquote {
    border-left: 4px solid #B794F6;
    padding: 20px;
    margin: 25px 0;
    background: rgba(183, 148, 246, 0.05);
    color: #5B5F7C;
    border-radius: 8px;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(183, 148, 246, 0.1);
}

.article-content table th {
    background: #B794F6;
    color: white;
    padding: 16px;
    text-align: left;
    font-weight: 700;
    font-size: 0.95em;
}

.article-content table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(183, 148, 246, 0.1);
    color: #5B5F7C;
}

.article-content table tr:nth-child(even) {
    background-color: rgba(183, 148, 246, 0.03);
}

.article-content table tr:hover {
    background-color: rgba(183, 148, 246, 0.08);
}

/* ==================== SIDEBAR ==================== */
.scholarship-sidebar {
    height: fit-content;
}

.scholarship-sidebar.is-sticky {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: #FFFFFF;
    border-radius: 28px;
    padding: 32px;
    box-shadow:
        10px 10px 30px rgba(183, 148, 246, 0.15),
        -10px -10px 30px rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.8em;
    color: #FFB142;
    margin-bottom: 28px;
    font-weight: 700;
    font-family: 'Lato', sans-serif;
    padding-bottom: 0;
    border-bottom: none;
}

.latest-scholarships {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 28px;
}

.latest-scholarship-item {
    padding: 20px;
    background: #FFFFFF;
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow:
        6px 6px 16px rgba(183, 148, 246, 0.12),
        -6px -6px 16px rgba(255, 255, 255, 0.8);
}

.latest-scholarship-item:hover {
    transform: translateY(-4px);
    box-shadow:
        8px 8px 20px rgba(183, 148, 246, 0.18),
        -8px -8px 20px rgba(255, 255, 255, 1);
}

.latest-scholarship-item h4 {
    margin: 0 0 10px 0;
    font-size: 1.05em;
    font-weight: 700;
    line-height: 1.5;
}

.latest-scholarship-item h4 a {
    color: #2D3561;
    text-decoration: none;
    transition: color 0.3s ease;
}

.latest-scholarship-item h4 a:hover {
    color: #B794F6;
}

.scholarship-amount-small {
    font-size: 0.9em;
    color: #9B7EDE;
    font-weight: 600;
    display: inline-block;
}

.view-all-btn {
    display: block;
    background: #FFB142;
    color: white;
    padding: 16px 28px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(255, 177, 66, 0.35);
}

.view-all-btn:hover {
    background: #FF9F1C;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 177, 66, 0.45);
}

.scholarship-navigation {
    margin-top: 30px;
    padding: 30px;
    background: #FFFFFF;
    border-radius: 28px;
    box-shadow:
        10px 10px 30px rgba(183, 148, 246, 0.15),
        -10px -10px 30px rgba(255, 255, 255, 0.9);
}

.nav-section {
    margin-bottom: 16px;
    text-align: center;
}

.nav-btn {
    display: inline-block;
    background: rgba(183, 148, 246, 0.1);
    color: #2D3561;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    margin: 0 6px;
    font-size: 0.95em;
}

.nav-btn:hover {
    background: rgba(183, 148, 246, 0.2);
    transform: translateY(-2px);
    color: #2D3561;
}

.nav-btn.all-scholarships {
    background: #B794F6;
    color: white;
    font-weight: 700;
    padding: 16px 32px;
    box-shadow: 0 6px 20px rgba(183, 148, 246, 0.3);
}

.nav-btn.all-scholarships:hover {
    background: #9B7EDE;
    color: white;
    box-shadow: 0 10px 28px rgba(183, 148, 246, 0.4);
}

/* ==================== RESPONSIVE ADDITIONS ==================== */
@media (max-width: 1024px) {
    .scholarship-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .scholarship-sidebar {
        position: static;
        order: 2;
    }
}

@media (max-width: 768px) {
    .scholarships-archive-header {
        padding: 24px 20px;
        margin-bottom: 24px;
    }

    .scholarship-header {
        flex-direction: column;
        text-align: left;
        padding: 0;
        align-items: flex-start;
    }

    .scholarship-title {
        margin-right: 0;
        margin-bottom: 5px;
        font-size: 1.6em;
    }

    .box-header,
    .box-content {
        padding: 20px;
    }

    .box-header h2 {
        font-size: 1.4em;
    }

    .box-footer {
        display: none;
    }

    .sub-header,
    .sub-details {
        padding: 20px;
    }

    .sub-footer {
        display: none;
    }

    .scholarship-navigation {
        padding: 24px;
    }

    .nav-btn {
        display: block;
        margin: 10px 0;
        text-align: center;
    }

    .sidebar-widget {
        padding: 24px;
    }

    .article-content {
        padding: 0;
        box-shadow: none;
        background: transparent;
        font-size: 1em;
    }

    .article-category-tabs {
        padding: 16px;
        gap: 8px;
        margin-bottom: 24px;
    }

    .pagination {
        gap: 6px;
        margin-top: 24px;
    }

    .pagination .page-numbers {
        padding: 10px 14px;
        min-width: 40px;
    }
}

@media (max-width: 480px) {
    .box-header h2 {
        font-size: 1.2em;
    }

    .article-content table {
        font-size: 0.85em;
        display: block;
        overflow-x: auto;
    }
}

/* ==================== REGISTRATION FORM MODAL ==================== */
.application-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(45, 53, 97, 0.8);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: #FFFFFF;
    margin: 5% auto;
    max-width: 600px;
    width: 90%;
    border-radius: 28px;
    box-shadow:
        20px 20px 60px rgba(183, 148, 246, 0.2),
        -20px -20px 60px rgba(255, 255, 255, 0.9);
    animation: slideDown 0.4s ease;
    overflow: hidden;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 30px;
    background: #FFB142;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8em;
    font-weight: 700;
    font-family: 'Lato', sans-serif;
}

.close-modal {
    font-size: 2.5em;
    font-weight: 300;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

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

.modal-body {
    padding: 40px;
}

/* Registration Form Styles */
.custom-registration-form {
    width: 100%;
}

.custom-registration-form > p {
    color: #5B5F7C;
    margin-bottom: 24px;
    font-size: 1.05em;
}

.scholarship-info {
    background: rgba(183, 148, 246, 0.08);
    padding: 16px 20px;
    border-radius: 16px;
    border-left: 4px solid #B794F6;
    margin-bottom: 24px;
}

.scholarship-info p {
    margin: 0;
    color: #2D3561;
    font-size: 1em;
}

.scholarship-info strong {
    color: #B794F6;
    font-weight: 700;
}

.custom-registration-form .form-group {
    margin-bottom: 20px;
}

.custom-registration-form label {
    display: block;
    margin-bottom: 8px;
    color: #2D3561;
    font-weight: 600;
    font-size: 0.95em;
}

.custom-registration-form input[type="text"],
.custom-registration-form input[type="email"],
.custom-registration-form input[type="tel"],
.custom-registration-form select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(183, 148, 246, 0.2);
    border-radius: 16px;
    font-family: 'Lato', sans-serif;
    font-size: 1em;
    color: #2D3561;
    background: #FFFFFF;
    transition: all 0.3s ease;
    box-shadow:
        inset 3px 3px 8px rgba(183, 148, 246, 0.08),
        inset -3px -3px 8px rgba(255, 255, 255, 0.9);
}

.custom-registration-form input:focus,
.custom-registration-form select:focus {
    outline: none;
    border-color: #B794F6;
    box-shadow:
        inset 3px 3px 8px rgba(183, 148, 246, 0.12),
        inset -3px -3px 8px rgba(255, 255, 255, 0.9),
        0 0 0 4px rgba(183, 148, 246, 0.1);
}

.custom-registration-form input.error,
.custom-registration-form select.error {
    border-color: #e74c3c;
}

.error-message {
    display: block;
    color: #e74c3c;
    font-size: 0.85em;
    margin-top: 6px;
    font-weight: 500;
}

.registration-success {
    text-align: center;
    padding: 40px 20px;
}

.registration-success h3 {
    color: #FFB142;
    font-size: 2em;
    margin-bottom: 16px;
    font-family: 'Lato', sans-serif;
}

.registration-success p {
    color: #5B5F7C;
    font-size: 1.1em;
}

.btn-next,
.btn-complete {
    width: 100%;
    background: #FFB142;
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
    font-family: 'Lato', sans-serif;
    box-shadow:
        0 10px 30px rgba(255, 177, 66, 0.35),
        0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-next:hover,
.btn-complete:hover {
    background: #FF9F1C;
    transform: translateY(-3px);
    box-shadow:
        0 14px 40px rgba(255, 177, 66, 0.45),
        0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn-next:active,
.btn-complete:active {
    transform: translateY(-1px);
}

/* Mobile Responsive for Modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
        max-width: 95%;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-header h2 {
        font-size: 1.4em;
    }

    .modal-body {
        padding: 24px;
    }
}
