/* ========================================
   My Sasta Insurance - Articles Page Styles
   Modern Glassmorphic Design
   ======================================== */

/* Color Variables */
:root {
    --primary: #009688;
    --secondary: #263238;
    --accent: #FFCA28;
    --background: #F9FAFB;
    --white: #FFFFFF;
    --text-dark: #263238;
    --text-light: #6B7280;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow: rgba(0, 0, 0, 0.1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--background);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Glass Effect */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    padding: 15px 0;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.cta-button {
    background: var(--primary);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 150, 136, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-button svg {
    vertical-align: middle;
    flex-shrink: 0;
}

.cta-button:hover {
    background: #00796B;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 150, 136, 0.4);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--background) 0%, #E0F2F1 100%);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), #00796B);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 150, 136, 0.3);
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.highlight {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
    filter: blur(60px);
}

.shape1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary), #4DB6AC);
    top: -200px;
    right: -100px;
}

.shape2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--accent), #FFD54F);
    bottom: -150px;
    left: -100px;
}

/* Categories Section */
.categories {
    padding: 40px 0;
    background: var(--white);
    position: sticky;
    top: 80px;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.category-filters {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 150, 136, 0.2);
    color: var(--text-dark);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 150, 136, 0.3);
}

/* Articles Section */
.articles {
    padding: 60px 0;
    background: var(--background);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.article-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px var(--shadow);
}

.article-card.hidden {
    display: none;
}

.article-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px 20px 0 0;
    margin: -1px -1px 0 -1px;
}

.article-icon {
    font-size: 72px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.article-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.category {
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.read-time {
    color: var(--text-light);
    font-size: 13px;
}

.article-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-content p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.read-more:hover {
    color: #00796B;
    text-decoration: underline;
}

/* Load More Section */
.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: var(--text-light);
    border: 2px solid rgba(0, 150, 136, 0.2);
    padding: 16px 40px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    cursor: not-allowed;
    transition: all 0.3s ease;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary), #00796B);
}

.cta-content {
    text-align: center;
    padding: 60px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-content h2 {
    font-size: 42px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
}

.primary-button {
    background: var(--white);
    color: var(--primary);
    padding: 16px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.primary-button:hover {
    background: var(--accent);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
    background: var(--secondary);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.disclaimer {
    font-size: 13px;
    color: var(--accent) !important;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.7);
}

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

/* Animations */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu {
        display: none;
    }

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

    .hero h1 {
        font-size: 40px;
    }

    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .category-filters {
        gap: 10px;
    }

    .filter-btn {
        padding: 10px 18px;
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .logo img {
        height: 35px;
    }

    .logo-text {
        font-size: 14px;
    }

    .cta-button {
        padding: 8px 14px;
        font-size: 12px;
    }

    .hero {
        padding: 100px 0 40px;
    }

    .hero h1 {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .articles-section {
        padding: 40px 0;
    }

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

    .article-card {
        margin-bottom: 0;
    }

    .article-image {
        height: 140px;
    }

    .article-icon {
        font-size: 56px;
    }

    .article-content {
        padding: 18px;
    }

    .article-meta {
        margin-bottom: 10px;
    }

    .article-content h3 {
        font-size: 17px;
        margin-bottom: 8px;
    }

    .article-content p {
        font-size: 13px;
        line-height: 1.5;
    }

    .cta-content {
        padding: 35px 18px;
    }

    .cta-content h2 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .cta-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .categories {
        position: static;
        margin-bottom: 30px;
    }

    .category-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
        gap: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .category-btn {
        padding: 8px 16px;
        font-size: 13px;
        white-space: nowrap;
    }

    .category-filters::-webkit-scrollbar {
        height: 4px;
    }

    .category-filters::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 10px;
    }

    .category-filters::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 10px;
    }

    /* Compact Footer */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        gap: 25px;
        margin-bottom: 25px;
    }

    .footer-section h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .footer-section p {
        font-size: 13px;
        line-height: 1.5;
    }

    .footer-section ul li {
        margin-bottom: 8px;
    }

    .footer-section ul li a {
        font-size: 13px;
    }

    .footer-bottom {
        padding-top: 20px;
    }

    .footer-bottom p {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .disclaimer {
        font-size: 11px;
    }
}