/* Custom breadcrumbs, related grids, and premium subpage layout styles */

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-dark);
}

.breadcrumb-item:not(:last-of-type)::after {
    content: "\203A"; /* Single right angle quotation mark */
    color: var(--text-light);
    font-size: 1.1rem;
    margin-left: 8px;
}

.breadcrumb-item.active {
    color: var(--text-main);
    font-weight: 600;
}

.breadcrumb .btn-bookmark {
    margin-left: auto;
}

/* Related section */
.related-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.related-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-main);
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Back button and navigation */
.btn-back-static {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--primary);
    background: transparent;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.25s ease, color 0.2s ease;
}

.btn-back-static:hover {
    color: var(--primary-dark);
    transform: translateX(-4px);
}

/* Logo scaling animation */
.logo-link {
    text-decoration: none;
    transition: transform 0.2s ease;
    display: inline-block;
}

.logo-link:hover {
    transform: scale(1.02);
}

/* Static page tracking and bookmark styling synchronization */
.tracking-options .btn-tracking.active {
    background: var(--primary);
    color: white !important;
    border-color: var(--primary);
}

body.dark-mode .tracking-options .btn-tracking.active {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: #0F172A !important;
}

.btn-bookmark.active {
    color: var(--accent) !important;
    background: rgba(244, 63, 94, 0.1) !important;
}

/* SEO Content Styling */
.seo-content {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 32px;
    border: 1px solid var(--border);
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}

.seo-content h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-main);
    border-left: 4px solid var(--primary);
    padding-left: 12px;
}

.seo-content h3 {
    font-size: 1.2rem;
    margin: 20px 0 10px;
    color: var(--text-main);
}

.seo-content p {
    margin-bottom: 16px;
    line-height: 1.7;
}

.seo-content ul, .seo-content ol {
    margin-bottom: 16px;
    padding-left: 20px;
}

.seo-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Expired state styles */
.scholarship-card.expired {
    filter: grayscale(100%);
    opacity: 0.75;
    background-color: #fafafa;
    border-color: #e5e5e5;
}

.scholarship-card.expired:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
    filter: grayscale(100%);
    cursor: default;
}

/* Premium SEO Footer */
.app-footer-seo {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 48px 0 24px;
    margin-top: 60px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Gateway Onboarding Category and Special Groups */
.gateway-section {
    margin-top: 48px;
    padding-top: 24px;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 32px;
}

.gateway-container {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.gateway-group h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

.gateway-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .gateway-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .gateway-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gateway-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
}

.gateway-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.card-icon {
    font-size: 1.5rem;
}

.gateway-card h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.gateway-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
    flex-grow: 1;
}

.card-cta {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
}

/* Popular Featured Scholarships */
.popular-section {
    background: rgba(79, 70, 229, 0.03);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    margin-top: 48px;
    border: 1px solid rgba(79, 70, 229, 0.08);
}

.popular-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .popular-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .popular-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.popular-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.popular-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.popular-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
}

.popular-card h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    padding-right: 48px;
    white-space: nowrap;
    overflow: hidden;
    text-transform: ellipsis;
}

.popular-card .benefit {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent);
    margin: 0;
}

.popular-card .summary {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
    flex-grow: 1;
}

.popular-card .btn-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 8px;
}

/* Knowledge Hub Previews */
.knowledge-section {
    margin-top: 48px;
}

.knowledge-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .knowledge-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .knowledge-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.knowledge-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.knowledge-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.knowledge-card .icon {
    font-size: 1.6rem;
}

.knowledge-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.knowledge-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
    flex-grow: 1;
}

.knowledge-card .read-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Streamlined FAQ Accordion */
.faq-section {
    margin-top: 48px;
}

.faq-accordion-container {
    max-width: 768px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.faq-accordion-item:hover {
    border-color: var(--primary-light);
}

.faq-accordion-trigger {
    width: 100%;
    background: transparent;
    border: none;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    text-align: left;
    outline: none;
}

.faq-accordion-trigger span {
    padding-right: 16px;
}

.faq-icon {
    font-size: 1.2rem;
    color: var(--primary);
    transition: transform 0.2s ease;
}

.faq-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease-out;
}

.faq-accordion-content p {
    padding: 0 24px 20px;
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-accordion-item.open {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

/* ===========================
   CREDIBILITY MODULE
   =========================== */
.credibility-section { margin-top: 48px; }

.credibility-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 640px) { .credibility-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .credibility-grid { grid-template-columns: repeat(4, 1fr); } }

.credibility-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}
.credibility-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}
.credibility-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.cred-icon { font-size: 1.8rem; margin-bottom: 4px; }
.credibility-card h4 { font-size: 1rem; font-weight: 700; color: var(--text-main); margin: 0; }
.credibility-card p { font-size: 0.85rem; color: var(--text-secondary); margin: 0; line-height: 1.6; flex-grow: 1; }
.cred-link { font-size: 0.82rem; font-weight: 600; color: var(--primary); text-decoration: none; display: inline-flex; align-items: center; gap: 3px; transition: gap 0.2s ease; margin-top: 4px; }
.cred-link:hover { gap: 6px; }

/* ===========================
   4-COLUMN FOOTER GRID
   =========================== */
.footer-grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
}
@media (min-width: 640px) { .footer-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid-4 { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

/* ===========================
   AUTHORITY PAGE HERO
   =========================== */
.authority-hero {
    background: linear-gradient(135deg, rgba(79,70,229,0.08) 0%, rgba(139,92,246,0.05) 100%);
    border: 1px solid rgba(79,70,229,0.12);
    border-radius: var(--radius-md);
    padding: 48px 32px;
    text-align: center;
    margin-bottom: 40px;
}
.authority-hero h2 { font-size: 2rem; font-weight: 800; color: var(--text-main); margin-bottom: 12px; }
.authority-hero p { font-size: 1.05rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto; line-height: 1.7; }
.authority-hero .hero-badge {
    display: inline-block;
    background: rgba(79,70,229,0.1);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}

/* ===========================
   MISSION CARDS (About page)
   =========================== */
.mission-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 24px; }
@media (min-width: 768px) { .mission-grid { grid-template-columns: repeat(3, 1fr); } }
.mission-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 24px;
    display: flex; flex-direction: column; gap: 10px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease;
}
.mission-card:hover { transform: translateY(-2px); }
.mission-card .m-icon { font-size: 1.8rem; }
.mission-card h4 { font-size: 1rem; font-weight: 700; color: var(--text-main); margin: 0; }
.mission-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; margin: 0; }

/* ===========================
   CONTACT FORM
   =========================== */
.contact-layout { display: grid; grid-template-columns: 1fr; gap: 32px; margin-top: 32px; }
@media (min-width: 768px) { .contact-layout { grid-template-columns: 2fr 1fr; } }

.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}
.contact-form-card h3 { font-size: 1.3rem; font-weight: 700; color: var(--text-main); margin-bottom: 24px; }

.contact-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; gap: 24px;
}
.contact-info-item { display: flex; flex-direction: column; gap: 6px; }
.contact-info-item .ci-label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary); }
.contact-info-item .ci-value { font-size: 0.95rem; color: var(--text-main); font-weight: 500; }
.contact-info-item .ci-note { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; }

.input-field {
    width: 100%;
    background: var(--bg-main);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.95rem;
    color: var(--text-main);
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}
.input-field:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,0.12); }
.input-field::placeholder { color: var(--text-light); }
select.input-field { cursor: pointer; }
textarea.input-field { resize: vertical; min-height: 120px; }

.form-group-contact { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-group-contact label { font-size: 0.88rem; font-weight: 600; color: var(--text-main); }

.form-row-2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 560px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }

/* ===========================
   SOURCE / POLICY TABLES
   =========================== */
.source-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-top: 16px; }
.source-table th { background: rgba(79,70,229,0.08); color: var(--text-main); font-weight: 700; padding: 12px 16px; text-align: left; border-bottom: 2px solid var(--primary); }
.source-table td { padding: 11px 16px; border-bottom: 1px solid var(--border); color: var(--text-secondary); vertical-align: top; line-height: 1.5; }
.source-table tr:hover td { background: rgba(79,70,229,0.03); }
.source-table a { color: var(--primary); text-decoration: none; font-weight: 500; }
.source-table a:hover { text-decoration: underline; }

/* ===========================
   INFO BLOCKS
   =========================== */
.info-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    margin-bottom: 20px;
}
.info-block h4 { font-size: 1rem; font-weight: 700; color: var(--text-main); margin-bottom: 8px; }
.info-block p, .info-block ul { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; margin: 0; }
.info-block ul { padding-left: 18px; }
.info-block ul li { margin-bottom: 6px; }

.info-highlight {
    background: rgba(79,70,229,0.06);
    border: 1px solid rgba(79,70,229,0.15);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin: 20px 0;
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 500;
}

.tag-badge {
    display: inline-block;
    background: rgba(79,70,229,0.1);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    margin: 3px 3px 3px 0;
}

/* ===========================
   TOAST NOTIFICATION
   =========================== */
#contact-toast {
    display: none;
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9999;
    background: var(--primary);
    color: white;
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    font-size: 0.95rem;
    font-weight: 600;
    max-width: 320px;
}
#contact-toast.show {
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInToast 0.35s ease;
}
@keyframes slideInToast {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Pulsing status indicator next to the logo */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #10b981;
    margin-left: 4px;
    vertical-align: middle;
}

body.dark-mode .status-indicator {
    background: rgba(52, 211, 153, 0.1);
    border-color: rgba(52, 211, 153, 0.2);
    color: #34d399;
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    position: relative;
    display: inline-block;
}

body.dark-mode .status-dot {
    background-color: #34d399;
}

.status-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: inherit;
    border-radius: 50%;
    animation: pulse 1.8s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(3.5);
        opacity: 0;
    }
}

.status-text {
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.03em;
}

/* ==========================================================================
   PREMIUM DESIGN SYSTEM REFRESH (Glassmorphism & Glowing Hover Accents)
   ========================================================================== */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Custom premium scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: rgba(79, 70, 229, 0.25);
    border-radius: 10px;
    border: 2px solid var(--bg-main);
    transition: background 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Elegant logo image interactive zoom */
.logo-wrapper:hover .brand-logo-img {
    transform: rotate(6deg) scale(1.08);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}
.brand-logo-img {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

/* Glassmorphism adjustments for major containers */
.card, .search-container, .gateway-card, .popular-card, .knowledge-card, .credibility-card {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05), 
                0 1px 3px rgba(0, 0, 0, 0.02) !important;
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1),
                box-shadow 0.35s cubic-bezier(0.165, 0.84, 0.44, 1),
                border-color 0.35s ease,
                background-color 0.3s ease !important;
}

/* Dark mode glassmorphism */
body.dark-mode .card, 
body.dark-mode .search-container, 
body.dark-mode .gateway-card, 
body.dark-mode .popular-card, 
body.dark-mode .knowledge-card, 
body.dark-mode .credibility-card {
    background: rgba(30, 41, 59, 0.5) !important;
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.3) !important;
}

/* Glowing card hover effects */
.gateway-card:hover, .popular-card:hover, .knowledge-card:hover, .credibility-card:hover {
    transform: translateY(-5px) scale(1.01) !important;
    border-color: rgba(79, 70, 229, 0.4) !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 20px 40px -15px rgba(79, 70, 229, 0.15), 
                0 0 0 1px rgba(79, 70, 229, 0.1) !important;
}

body.dark-mode .gateway-card:hover, 
body.dark-mode .popular-card:hover, 
body.dark-mode .knowledge-card:hover, 
body.dark-mode .credibility-card:hover {
    border-color: rgba(129, 140, 248, 0.4) !important;
    background-color: rgba(30, 41, 59, 0.8) !important;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 
                0 0 20px rgba(129, 140, 248, 0.08) !important;
}

/* Specific styling for popular cards to highlight benefits */
.popular-card {
    border-left: 3px solid rgba(79, 70, 229, 0.6) !important;
}
body.dark-mode .popular-card {
    border-left: 3px solid rgba(129, 140, 248, 0.6) !important;
}

/* Micro-animations for buttons and interactive items */
.btn, .btn-icon, .read-more, .card-cta, .btn-link {
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}

.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* Credibility card specific top border gradient overlay */
.credibility-card::before {
    height: 4px !important;
    background: linear-gradient(90deg, var(--primary), var(--accent)) !important;
}