:root {
    --primary: #E83E8C;
    --primary-light: #FFB8D2;
    --primary-dark: #C21E68;
    --secondary: #212529;
    --bg-color: #FDFDFD;
    --card-bg: #FFFFFF;
    --text-color: #343A40;
    --text-muted: #6C757D;
    --border-color: #E9ECEF;
    --radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Header & Glassmorphism */
header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(232, 62, 140, 0.1);
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    height: 70px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: var(--transition);
}

header.scrolled .header-inner {
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo strong {
    font-weight: 800;
    color: var(--primary);
}

.logo i {
    color: var(--primary);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
}

nav a {
    color: var(--secondary);
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: var(--primary);
}

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

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--secondary);
    cursor: pointer;
    padding: 10px;
}

.mobile-toggle i {
    width: 28px;
    height: 28px;
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background-color: var(--primary) !important;
    color: #FFFFFF !important;
    font-weight: 600;
    border-radius: 50px;
    font-size: 0.9rem;
    border: 2px solid var(--primary) !important;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-nav:hover {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 62, 140, 0.3);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background-color: var(--primary);
    color: white;
    font-weight: 600;
    border-radius: 50px;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 62, 140, 0.2);
}

/* Hero Section */
.hero {
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    text-align: center;
    color: white;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: white !important;
    margin-bottom: 24px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero h1 span {
    color: var(--primary-light) !important;
}

.hero p {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.95) !important;
    max-width: 800px;
    margin: 0 auto 20px;
    text-shadow: 0 1px 5px rgba(0,0,0,0.4);
}

/* Search Bar */
.hero-search {
    background: rgba(255,255,255,0.95);
    padding: 8px;
    border-radius: 60px;
    display: flex;
    max-width: 900px;
    margin: 30px auto 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    backdrop-filter: blur(5px);
}

.search-input-group {
    display: flex;
    align-items: center;
    flex: 1;
    padding: 0 25px;
    border-right: 1px solid var(--border-color);
    gap: 12px;
}

.search-input-group:last-of-type {
    border-right: none;
}

.search-input-group i {
    color: var(--primary);
}

.search-input-group input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1.1rem;
    font-family: inherit;
    color: var(--secondary);
    background: transparent;
}

.hero-search .btn {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* Grid Layouts */
.grid-cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.grid-cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.grid-cols-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    height: 100%;
}

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

/* Category Cards (Homepage) */
.category-card {
    height: 280px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.1);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
    z-index: 1;
    transition: var(--transition);
}

.category-card:hover::before {
    background: linear-gradient(to top, rgba(232, 62, 140, 0.7) 0%, rgba(0,0,0,0.3) 100%);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(232, 62, 140, 0.2);
}

.category-card-content {
    position: relative;
    z-index: 2;
    color: white;
}

.category-card-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    background: var(--primary);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.category-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: white;
}

.category-card p {
    font-size: 0.9rem;
    opacity: 0.9;
    color: white;
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 20px;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Alphabet Filter */
.alphabet-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 50px;
}

.alphabet-link {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition);
    text-decoration: none;
}

.alphabet-link:hover, .alphabet-link.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.alphabet-link.active {
    width: auto;
    padding: 0 15px;
}

/* Footer */
footer {
    background: #1A1D21;
    color: #CED4DA;
    padding: 80px 0 30px;
}

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

.footer-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #ADB5BD;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

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

.footer-bottom p {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

/* Utility */
.text-center { text-align: center; }
.text-left-mobile { text-align: left; }

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Blog Article Styles */
.article-hero {
    padding: 140px 0 !important;
}

.article-h1 {
    color: #fff !important; 
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8); 
    font-size: 3rem !important; 
    margin-bottom: 20px !important; 
    line-height: 1.2 !important;
}

.category-tag {
    background: var(--primary); 
    color: white; 
    padding: 6px 16px; 
    border-radius: 50px; 
    font-size: 0.9rem; 
    font-weight: 600; 
    text-transform: uppercase;
}

.article-meta {
    color: #ddd; 
    font-size: 1.1rem; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px;
}

.article-meta i {
    width: 18px;
    height: 18px;
}

.article-container {
    max-width: 1000px !important; 
    margin-top: -60px !important; 
    position: relative; 
    z-index: 10;
}

.article-inner-wrapper {
    background: white; 
    padding: 60px 80px; 
    border-radius: 20px; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.08); 
    border: 1px solid var(--border-color); 
    color: #333;
}

.article-content {
    font-size: 1.15rem;
    line-height: 1.7; 
}

.article-content h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-top: 60px;
    margin-bottom: 25px;
    font-weight: 800;
    border-left: 5px solid var(--primary);
    padding-left: 20px;
    line-height: 1.2;
}

.article-content h3 {
    font-size: 1.6rem;
    color: var(--secondary);
    margin-top: 45px;
    margin-bottom: 20px;
    font-weight: 700;
    border-bottom: 2px solid var(--primary-light);
    display: inline-block;
    padding-bottom: 5px;
}

.article-content p {
    margin-bottom: 25px;
}

.article-content ul, .article-content ol {
    padding-left: 40px;
    margin-bottom: 25px;
}

.article-content li {
    margin-bottom: 12px;
}

.article-content img {
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.article-content table th, .article-content table td {
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.article-content table th {
    background-color: #F8F9FA;
    font-weight: 700;
}

.article-content table tr:nth-child(even) {
    background-color: #FCFCFC;
}

.article-separator {
    border: none; 
    border-top: 1px solid var(--border-color); 
    margin: 60px 0;
}

.article-cta {
    background: linear-gradient(135deg, rgba(255,184,210,0.2) 0%, rgba(232,62,140,0.05) 100%); 
    padding: 40px; 
    border-radius: 16px; 
    text-align: center;
}

.article-cta h3 {
    font-size: 1.5rem; 
    color: var(--secondary); 
    margin-bottom: 15px;
}

.article-cta p {
    font-size: 1.1rem; 
    color: var(--text-muted); 
    margin-bottom: 25px;
}

.related-article-card {
    padding: 0 !important; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column;
}

.related-article-image {
    height: 200px; 
    width: 100%; 
    background-color: var(--secondary); 
    position: relative;
}

.related-article-image img {
    width: 100%; 
    height: 100%; 
    object-fit: cover;
}

.related-article-body {
    padding: 25px;
}

.related-article-body h3 {
    font-size: 1.2rem; 
    color: var(--secondary); 
    margin-bottom: 12px; 
    line-height: 1.4; 
    font-weight: 700;
}

.related-article-meta {
    color: var(--text-muted); 
    font-size: 0.9rem; 
    display: flex; 
    align-items: center; 
    gap: 6px;
}

@media (max-width: 992px) {
    .grid-cols-3, .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
    
    .mobile-toggle {
        display: block;
        order: 3;
    }

    .header-right {
        order: 2;
        margin-left: auto;
        margin-right: 10px;
    }

    .logo {
        order: 1;
    }
    
    nav {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        display: none;
        z-index: 1001;
    }
    
    header.scrolled nav {
        top: 70px;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    nav a::after {
        display: none;
    }

    .article-inner-wrapper {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .grid-cols-2, .grid-cols-3, .grid-cols-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero h1 { font-size: 2.2rem; }
    header { background-color: white; }
    
    .header-inner {
        height: 65px;
    }

    .logo span {
        font-size: 1rem;
    }
    
    .btn-nav {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .hero-search {
        flex-direction: column;
        border-radius: 20px;
        padding: 15px;
    }
    .search-input-group {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 15px 0;
    }
    .search-input-group:last-of-type { border-bottom: none; }
    .hero-search .btn { width: 100%; }

    .article-h1 {
        font-size: 2rem !important;
    }

    .article-hero {
        padding: 100px 0 !important;
    }

    .article-inner-wrapper {
        padding: 30px 20px;
        border-radius: 0;
        box-shadow: none;
        border-left: none;
        border-right: none;
    }

    .article-content {
        font-size: 1.05rem;
    }

    .article-content h2 {
        font-size: 1.7rem;
        margin-top: 40px;
        padding-left: 15px;
    }

    .article-content h3 {
        font-size: 1.4rem;
        margin-top: 30px;
    }

    .article-content ul, .article-content ol {
        padding-left: 20px;
    }

    .article-container {
        margin-top: 0 !important;
        padding-left: 0;
        padding-right: 0;
    }

    .text-left-mobile {
        text-align: left !important;
    }
}

@media (max-width: 480px) {
    .header-inner {
        padding-left: 10px;
        padding-right: 10px;
    }
    .logo span {
        display: none;
    }
    .header-right {
        margin-right: 5px;
    }
    .btn-nav {
        padding: 6px 12px;
        font-size: 0.7rem;
        max-width: 140px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}