/* Platform Main CSS - Optimized for Responsiveness */

:root {
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-300: #6ee7b7;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --emerald-900: #064e3b;
    --emerald-950: #022c22;
    
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-900: #0f172a;
}

/* Reset Astra constraints and force full width */
#page, .site, .site-content, #primary, #main {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.ast-container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--slate-100);
    color: var(--slate-900);
    margin: 0;
    line-height: 1.5;
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
    font-family: 'Outfit', sans-serif;
    margin-top: 0;
}

.platform-container {
    width: 100%;
    max-width: 1250px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.75rem;
    padding-right: 1.75rem;
    box-sizing: border-box;
}

.content-width {
    width: 100%;
    /* Content width will now follow the platform-container's max-width */
}

@media (min-width: 1024px) {
    .platform-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .header-layout {
        padding-left: 0.5rem; /* Pull logo closer to left edge on desktop */
    }
}

/* Layout Utilities */
.py-10 { padding-top: 2.25rem; padding-bottom: 2.25rem; }
.space-y-10 > * + * { margin-top: 2.25rem; }

/* Header */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--emerald-100);
    background-color: rgba(240, 249, 255, 0.9);
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.02);
}

.sticky-header.scrolled {
    background-color: rgba(224, 242, 254, 0.98);
    box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(186, 230, 253, 0.5);
}

/* Header Layout */
.header-layout {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
}

@media (max-width: 1023px) {
    .header-layout {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
}

.header-left {
    display: flex;
    align-items: center;
}

.header-center {
    display: flex;
    justify-content: center;
    overflow-x: visible;
}

@media (max-width: 1023px) {
    .header-center {
        order: 3;
        width: 100%;
        margin-top: 0.5rem;
        justify-content: flex-start;
    }
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: flex-end;
}

/* Mobile Menu Specifics */
@media (max-width: 1023px) {
    .mobile-menu-toggle {
        display: block !important;
    }
    
    .header-center {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 2rem;
        flex-direction: column;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--slate-100);
        z-index: 999;
    }
    
    .header-center.active {
        display: flex;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 1.125rem;
        width: 100%;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--slate-50);
    }
    
    .has-megamenu .megamenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 1rem 0;
        box-shadow: none;
        border: none;
        display: none;
    }
    
    .has-megamenu.active .megamenu {
        display: block;
    }
    
    .megamenu-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--emerald-700);
    text-decoration: none;
    white-space: nowrap;
    min-width: 180px;
    transition: all 0.2s;
}

.logo:hover {
    transform: translateY(-1px);
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--emerald-700), var(--emerald-950));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px -2px rgba(4, 120, 87, 0.4);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 60%;
    height: 60%;
    z-index: 2;
}

.logo-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(rgba(255,255,255,0.15), transparent);
    transform: rotate(45deg);
}

@media (min-width: 640px) {
    .logo { font-size: 1.875rem; }
    .logo-icon { width: 3rem; height: 3rem; font-size: 1.5rem; }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    overflow: visible !important;
}

@media (min-width: 1360px) {
    .nav-links { gap: 0.4rem; }
}

.nav-link {
    color: var(--slate-700);
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    padding: 0.4rem 0.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.2rem;
    left: 0.3rem;
    right: 0.3rem;
    height: 2px;
    background-color: #2563eb;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: center;
}

.nav-link:hover {
    color: #2563eb !important;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-link.active {
    color: #2563eb !important;
}

.nav-link.active::after {
    transform: scaleX(1);
}

/* Hide Astra Default Header Elements that might conflict */
.ast-header-break-point .main-header-bar-navigation,
.ast-header-search,
.ast-masthead-custom-menu-items,
.site-header-section-left,
.site-header-section-right {
    display: none !important;
}

/* Unified Header Buttons */
.header-right .login-btn,
.header-right .auth-btn {
    padding: 0.5rem 1.375rem !important;
    border-radius: 0.625rem !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    transition: all 0.25s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    border: 1.5px solid var(--emerald-600) !important;
}

.header-right .login-btn {
    background-color: #bbf7d0 !important; /* emerald-200 */
    color: var(--emerald-900) !important;
    margin-right: 0.5rem;
}

.header-right .login-btn:hover {
    background-color: #86efac !important; /* emerald-300 equivalent */
    border-color: var(--emerald-700) !important;
}

.header-right .auth-btn {
    background-color: var(--emerald-700) !important;
    color: white !important;
    border-color: var(--emerald-700) !important;
}

.header-right .auth-btn:hover {
    background-color: var(--emerald-800) !important;
    border-color: var(--emerald-800) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(4, 120, 87, 0.15);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Mega Menu Styles */
.has-megamenu {
    position: static; /* Important for full-width megamenu */
}

.megamenu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-bottom: 1px solid var(--slate-200);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 90;
    padding: 3rem 0;
}

.has-megamenu:hover .megamenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.megamenu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.megamenu-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.megamenu-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--slate-900);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.megamenu-col a {
    color: var(--slate-700);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: all 0.2s;
    padding: 0.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.megamenu-col a:hover {
    color: var(--emerald-700) !important;
    padding-left: 0.5rem;
}

.megamenu-col a.active-cat {
    color: #2563eb !important;
    background: #eff6ff;
    border-left: 3px solid #2563eb;
    padding-left: 1.25rem !important;
}

.megamenu-col a.active-cat .menu-icon {
    color: #2563eb !important;
}

.menu-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--emerald-600);
    flex-shrink: 0;
    margin-top: 0.125rem;
    transition: color 0.2s;
}

.megamenu-col a:hover .menu-icon {
    color: #0066FF;
}

.menu-link-content {
    display: flex;
    flex-direction: column;
}

.megamenu-desc {
    display: block;
    font-size: 0.75rem;
    color: var(--slate-500);
    font-weight: 400;
    margin-top: 0.125rem;
    white-space: normal;
    line-height: 1.3;
}

.megamenu-col a:hover .megamenu-desc {
    color: var(--emerald-600);
}

/* Ensure sticky header doesn't clip megamenu */
.sticky-header {
    overflow: visible !important;
}

/* Hero */
.hero-premium-bg {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    background-image: linear-gradient(to right, rgba(2, 44, 34, 0.98), rgba(2, 44, 34, 0.85), rgba(2, 44, 34, 0.1)), url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?auto=format&fit=crop&w=1800&q=80');
    background-size: cover;
    background-position: center right;
    padding: 3rem 2rem;
    color: white;
    min-height: 500px;
    display: flex;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-premium-bg {
        padding: 4.5rem 3.5rem;
        min-height: 550px;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        width: 100vw;
    }
}

.hero-content-wrapper {
    position: relative;
    max-width: 60rem;
    z-index: 2;
}

.hero-title {
    font-size: 2.375rem;
    font-weight: 700;
    line-height: 1.1;
    color: white;
    max-width: 750px;
}

@media (min-width: 640px) {
    .hero-title { font-size: 3rem; }
}

@media (min-width: 1024px) {
    .hero-title { font-size: 3.625rem; }
}

.hero-subtitle {
    margin-top: 1.5rem;
    font-size: 1.25rem;
    color: var(--emerald-100);
    max-width: 600px;
}

/* Hero Search Bar */
.hero-search-bar {
    margin-top: 2.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem;
    border-radius: 1.25rem;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    max-width: 1150px;
}

.hero-search-field {
    flex: 1;
    min-width: 120px;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    outline: none;
    color: white !important;
    border-radius: 0.75rem;
}

.hero-search-field::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.hero-search-filters {
    display: flex;
    gap: 0.25rem;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 0.5rem;
}

.hero-filter-select {
    border: none;
    background: transparent;
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
    cursor: pointer;
    outline: none;
    padding: 0.5rem;
}

.hero-filter-select option {
    background: var(--emerald-950);
    color: white;
}

.hero-search-submit {
    background-color: var(--emerald-700);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.hero-search-submit:hover {
    background-color: var(--emerald-800);
}

/* Hero Stats */
.hero-stats {
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

/* Premium Section Backgrounds */
.premium-section-bg {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    padding: 4.5rem 1.5rem;
    margin-bottom: 2.5rem;
    background-size: cover;
    background-position: center;
    color: white;
    box-shadow: none;
}

@media (min-width: 768px) {
    .premium-section-bg {
        padding: 5.5rem 3rem;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        width: 100vw;
    }
}

.premium-section-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
}

.premium-section-bg .section-title {
    margin-bottom: 3.5rem;
}

.premium-section-bg .section-title h2 {
    color: white !important;
    font-size: 2.25rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.premium-section-bg .section-subtitle {
    color: var(--emerald-100) !important;
    font-size: 1.0625rem !important;
    font-weight: 500;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.premium-section-bg .card {
    background: white;
    color: var(--slate-900);
}

.premium-section-bg .stat-card {
    background: white;
    color: var(--slate-900);
}

.premium-section-bg .faq-item {
    background: white;
    color: var(--slate-900);
}

.premium-section-bg .card-meta {
    color: var(--slate-500);
}

.premium-section-bg .card-title {
    color: var(--slate-900);
}

.country-card-premium {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    transition: all 0.2s;
}

.country-card-premium:hover {
    background: white;
    color: var(--emerald-900);
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    .premium-section-bg .section-title h2 {
        font-size: 1.875rem !important;
    }
    
    .premium-section-bg .section-subtitle {
        font-size: 1rem !important;
    }
}

.hero-stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.stat-text {
    font-size: 0.875rem;
    color: var(--emerald-100);
}

@media (max-width: 767px) {
    .hero-search-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
    }
    
    .hero-search-filters {
        flex-direction: column;
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--slate-200);
        padding-top: 0.5rem;
    }
    
    .hero-premium-bg {
        background-image: linear-gradient(rgba(2, 44, 34, 0.95), rgba(2, 44, 34, 0.8)), url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=1000&q=80');
    }
}

/* Sections */
.header-search-form {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
    border-radius: 2rem;
    padding: 0 0.75rem;
    transition: all 0.3s ease;
    width: 140px;
    box-sizing: border-box;
}

.header-search-form:focus-within {
    width: 200px;
    background: white;
    border-color: var(--emerald-400);
    box-shadow: 0 4px 12px rgba(4, 120, 87, 0.1);
}

.header-search-icon {
    color: var(--slate-400);
    flex-shrink: 0;
    transition: color 0.3s;
    margin-left: 0.25rem;
}

.header-search-form:focus-within .header-search-icon {
    color: var(--emerald-600);
}

.header-search-input {
    border: none !important;
    background: transparent !important;
    padding: 0.45rem 0 !important;
    font-size: 0.8125rem;
    width: 100%;
    outline: none !important;
    color: var(--slate-700);
    box-shadow: none !important;
}

.header-search-input::placeholder {
    color: var(--slate-400);
}

.header-search-btn:hover {
    color: var(--emerald-700);
}

@media (max-width: 1279px) {
    .header-search-input {
        width: 100px;
    }
}

@media (max-width: 1023px) {
    .header-search-form {
        margin-right: 1rem;
    }
}

@media (max-width: 640px) {
    .header-search-form {
        display: none; /* Hide on mobile header, can add to mobile menu later if needed */
    }
}

/* Sections */
.preview-section {
    background: white;
    border-radius: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

@media (min-width: 768px) {
    .preview-section { padding: 2.5rem; }
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--slate-900);
    margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .section-title h2 { font-size: 2rem; }
}

@media (min-width: 1024px) {
    .section-title h2 { font-size: 2.25rem; }
}

.section-subtitle {
    font-size: 0.875rem;
    color: var(--slate-500);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid Cards */
.grid-cards {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

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

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

@media (min-width: 1280px) {
    .grid-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.card {
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid var(--slate-200);
    background: white;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-img {
    height: 12rem;
    width: 100%;
    object-fit: cover;
}

.card-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 0.975rem;
    font-weight: 600;
    margin-bottom: 0.4375rem;
    line-height: 1.4;
}

.card-meta {
    font-size: 0.875rem;
    color: var(--slate-500);
    margin-bottom: 1rem;
}

.card-link {
    margin-top: auto;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--emerald-700);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.card-link:hover { text-decoration: underline; }

/* Popular Countries Grid */
.countries-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .countries-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
    .countries-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

.country-card {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    color: var(--slate-700);
    border: 1px solid var(--slate-200);
    border-radius: 0.75rem;
    transition: all 0.2s;
}

.country-card:hover {
    border-color: var(--emerald-300);
    background: var(--emerald-50);
    color: var(--emerald-700);
}

/* Footer Redesign - High Authority */
.platform-footer {
    position: relative !important;
    background-image: linear-gradient(rgba(2, 44, 34, 0.9), rgba(2, 44, 34, 0.85)), url('https://loremflickr.com/1800/1200/graduation,college') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    background-color: #022c22 !important;
    padding: 6rem 0 3rem 0;
    color: white;
    font-family: 'Inter', sans-serif;
    margin-top: 0;
    border-top: 1px solid rgba(16, 185, 129, 0.2);
}

.footer-top-section {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand-col {
    flex: 0 0 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    margin-bottom: 1.5rem;
}

.footer-logo .logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: #10B981;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo .logo-icon svg {
    width: 24px;
    height: 24px;
}

.footer-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    font-family: 'Outfit', sans-serif;
}

.footer-tagline {
    font-size: 1.125rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.footer-social-links {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.social-box {
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: block;
}

.social-icon-box {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 15px -4px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon-box svg {
    width: 1.75rem;
    height: 1.75rem;
    display: block;
}

.social-box:hover {
    transform: translateY(-8px);
}

.social-box:hover .social-icon-box {
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.6);
    filter: brightness(1.1);
}

/* Newsletter Card */
.footer-newsletter-card {
    flex: 1;
    max-width: 650px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
}

.newsletter-badges {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.newsletter-badges .badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: #FBBF24;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.newsletter-badges .badge svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.newsletter-card-inner {
    padding: 2rem;
}

.newsletter-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    display: block;
}

.newsletter-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
}

.newsletter-desc {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.newsletter-form input {
    flex: 1;
    background: white !important;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #0F172A;
    font-size: 0.875rem;
}

.newsletter-form button {
    background: #10B981;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.newsletter-form button:hover {
    background: #059669;
}

.newsletter-features {
    display: flex;
    gap: 1.25rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Footer Grid */
.footer-hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 3rem;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.footer-col .col-title {
    font-size: 0.75rem;
    font-weight: 800;
    color: #FBBF24;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col .col-title svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.col-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.col-links li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
    display: block;
}

.col-links li a:hover {
    color: #10B981;
    transform: translateX(5px);
}

.footer-bottom-copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-top-section {
        flex-direction: column;
        gap: 2.5rem;
        margin-bottom: 2.5rem;
    }
    .footer-brand-col {
        width: 100%;
        max-width: 100%;
        text-align: center;
        align-items: center;
    }
    .footer-logo {
        justify-content: center;
    }
    .footer-social-links {
        justify-content: center;
    }
    .footer-newsletter-card {
        max-width: 100%;
    }
    .footer-links-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .footer-links-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col .col-title {
        justify-content: center;
    }
    .col-links li a:hover {
        transform: translateX(0) scale(1.05);
    }
}
    .newsletter-badges {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* Floating WhatsApp Button */
@keyframes wa-pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 120px;
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 5px 15px rgba(0,0,0,0.2);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: wa-pulse 2s infinite;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1) rotate(5deg);
    animation: none;
}

@media screen and (max-width: 767px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 100px;
        right: 15px;
    }
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

details.faq-item {
    border-radius: 0.75rem;
    border: 1px solid var(--slate-200);
    background: white;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    transition: border-color 0.2s;
}

details.faq-item[open] {
    border-color: var(--emerald-300);
}

summary.faq-q {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    outline: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary.faq-q::-webkit-details-marker {
    display: none;
}

.faq-a {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--slate-600);
    line-height: 1.6;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 640px) {
    .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.stat-card {
    border-radius: 1rem;
    border: 1px solid var(--slate-200);
    background: white;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--emerald-700);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--slate-500);
    font-weight: 600;
    text-transform: uppercase;
}

/* Responsive Overrides */
@media (max-width: 767px) {
    .header-center {
        display: none; /* Hide nav links on mobile for cleaner look */
    }
    
    .hero-title {
        font-size: 1.75rem !important;
    }
    
    .preview-section {
        padding: 1rem !important;
        border-radius: 1rem !important;
    }
    
    .grid-cards {
        grid-template-columns: 1fr !important;
    }
    
    .countries-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    
    .footer-links {
        align-items: center;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .grid-cards {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.newsletter-input {
    height: 3rem;
    border-radius: 0.75rem;
    border: 1px solid var(--slate-200);
    padding: 0 1rem;
    font-family: inherit;
    font-size: 0.875rem;
    width: 100%;
    box-sizing: border-box;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--emerald-300);
    box-shadow: 0 0 0 3px var(--emerald-50);
}

.btn-primary {
    background-color: var(--emerald-700);
    color: white;
    padding: 0 1.5rem;
    height: 3rem;
    border-radius: 0.75rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.875rem;
}

.btn-primary:hover { background-color: var(--emerald-800); }

.btn-secondary {
    border: 1px solid var(--slate-300);
    padding: 0 1.5rem;
    height: 3rem;
    border-radius: 0.75rem;
    font-weight: 600;
    background: white;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.875rem;
    color: var(--slate-700);
}

.btn-secondary:hover { background: var(--slate-50); }

/* Detail Page */
.detail-img {
    height: 15rem;
    width: 100%;
    border-radius: 1.5rem;
    object-fit: cover;
}

@media (min-width: 768px) {
    .detail-img { height: 25rem; }
}

.detail-title {
    margin-top: 1.5rem;
    font-size: 2rem;
    font-weight: 600;
}

@media (min-width: 1024px) {
    .detail-title { font-size: 2.5rem; }
}

.detail-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 1024px) {
    .detail-grid { grid-template-columns: 2fr 1fr; }
}

/* Smart Decision Tools Section */
.tools-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

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

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

@media (min-width: 1280px) {
    .tools-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.tool-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.25rem;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    height: 100%;
}

.tool-card:hover {
    background: white;
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.social-box {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
}

.social-box svg {
    width: 1.125rem;
    height: 1.125rem;
}

.social-box:hover {
    background: #10B981;
    color: white;
    transform: translateY(-3px);
}

.tool-icon-wrapper {
    width: 4rem;
    height: 4rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.3s;
}

.tool-card:hover .tool-icon-wrapper {
    background: var(--emerald-50);
    transform: scale(1.1) rotate(5deg);
}

.tool-info h3 {
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
    transition: color 0.3s;
}

.tool-card:hover .tool-info h3 {
    color: var(--slate-900);
}

.tool-desc {
    color: var(--emerald-100);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-top: 0.5rem;
    transition: color 0.3s;
}

.tool-card:hover .tool-desc {
    color: var(--slate-600);
}

/* Professional FAQ Section */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--slate-200);
    border-radius: 0.75rem;
    background: white;
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: var(--emerald-300);
}

.faq-item[open] {
    border-color: var(--emerald-700);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-q {
    padding: 1rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--slate-900);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-q::-webkit-details-marker {
    display: none;
}

.faq-q i {
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    color: var(--emerald-700);
    font-size: 1rem;
    font-style: normal;
}

.faq-item[open] .faq-q i {
    transform: rotate(45deg);
    color: var(--slate-400);
}

.faq-a {
    padding: 0 1.25rem 1rem 1.25rem;
    margin: 0;
    color: var(--slate-600);
    line-height: 1.5;
    font-size: 0.875rem;
}
/* Sidebar WhatsApp Widget */
.whatsapp-sidebar-widget {
    margin-top: 2rem;
}

.whatsapp-card {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    padding: 1.25rem;
}

.wa-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.wa-icon {
    width: 40px;
    height: 40px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wa-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.wa-info {
    display: flex;
    flex-direction: column;
}

.wa-status {
    font-size: 0.7rem;
    font-weight: 700;
    color: #10b981;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
}

.wa-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
}

.wa-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #064e3b;
}

.wa-msg {
    font-size: 0.8125rem;
    color: #065f46;
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

.wa-btn {
    display: block;
    background: #25d366;
    color: white;
    text-align: center;
    text-decoration: none;
    padding: 0.75rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 700;
    transition: all 0.2s;
}

.wa-btn:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

/* Platform Alerts Styling */
#platform-alerts-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
}

.platform-alert-box {
    background: rgba(2, 44, 34, 0.96);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    transform: translateY(150px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
    max-width: 700px;
    margin: 0 auto;
}

.platform-alert-box.show {
    transform: translateY(0);
    opacity: 1;
}

.alert-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: white;
}

.alert-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.alert-content p {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.alert-btn {
    background: #10B981;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.alert-btn:hover {
    background: #059669;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .platform-alert-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem;
    }
    
    .alert-btn {
        width: 100%;
    }
}

/* Global Grid and Card Architecture */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem;
}

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

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

.card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--slate-200);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--emerald-300);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover .card-img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--emerald-700);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
    margin-top: auto;
}

.card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    background: var(--slate-50);
    color: var(--slate-900);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 10px;
    transition: all 0.2s;
    border: 1px solid var(--slate-200);
}

.card:hover .card-link {
    background: var(--emerald-700);
    color: white;
    border-color: var(--emerald-700);
}

/* Card Badges */
.card-image-wrapper {
    position: relative;
    overflow: hidden;
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.badge-premium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.badge-free {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
}
