/* Base styles */
:root {
    --primary: #6a11cb;
    --primary-light: #2575fc;
    --dark: #1F2937;
    --gray: #6B7280;
    --light: #f9fafb;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

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

.container-main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-main h1,
h2,
h3 {
    color: var(--dark);
    margin-bottom: 1rem;
}

.container-main h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
}

.container-main h2 {
    font-size: 2rem;
    font-weight: 700;
}

.container-main h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

.container-main p {
    font-size: 1rem;
    color: var(--gray);
    line-height: 1.6;
}

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

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



/* === NAVBAR === */
.header {
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: #6a11cb;
}

.logo img {
    height: 32px;
    margin-right: 8px;
}

.logo .logo-fallback {
    display: none;
}

.logo,
.logo a,
.logo img {
    -webkit-tap-highlight-color: transparent;

    -webkit-user-drag: none;
    user-select: none;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-divider {
    width: 2px;
    height: 24px;
    background-color: #ccc;
    margin: 0 10px;
    display: inline-block;
}

.nav-link {
    font-family: 'Roboto', sans-serif;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #6a11cb;
}

.nav-link.active {
    font-weight: 600;
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.nav-icon svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.nav-icon:hover svg {
    transform: scale(1.1);
}

/* Icons */
.telegram-icon {
    background-color: #e9f5ff;
}

.telegram-icon:hover {
    background-color: #d1ebff;
}

.telegram-icon svg path {
    fill: #0088cc;
}

.whatsapp-icon {
    background-color: #e7f7e9;
}

.whatsapp-icon:hover {
    background-color: #d4f0d9;
}

.whatsapp-icon svg path {
    fill: #25D366;
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: #f1f1f1;
    padding: 6px 10px;
    border-radius: 20px;
    font-weight: 600;
    color: #4E69CB;
    text-decoration: none;
    transition: background 0.3s;
}

.nav-phone:hover {
    background-color: #e3e3e3;
    color: #6a11cb;
}

.nav-phone svg {
    width: 20px;
    height: 20px;
    fill: #6a11cb;
}

.language-select {
    margin-left: 10px;
    padding: 4px 6px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 0.9rem;
}

/* Toggle Button */
.mobile-toggle {
    display: none;
    width: 32px;
    height: 28px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

/* Bars */
.mobile-toggle .bar {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-toggle .bar:nth-child(1) {
    top: 0;
}

.mobile-toggle .bar:nth-child(2) {
    top: 12px;
}

.mobile-toggle .bar:nth-child(3) {
    bottom: 0;
}

/* Open (X) State */
.mobile-toggle.open .bar:nth-child(1) {
    transform: rotate(45deg);
    top: 12px;
}

.mobile-toggle.open .bar:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.open .bar:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 12px;
}

/* Show on mobile */
@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .nav-phone .phone-number {
        display: none;
    }
}

/* Right-side Icons Group */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #fff;
        position: absolute;
        top: 64px;
        left: 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
        padding: 20px;
    }

    .nav.show {
        display: flex;
        margin-top: 15px;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-container {
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .nav-right {
        gap: 10px;
        margin-left: auto;
    }
}

/* Minimal Hero Section */
.minimal-hero-section {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
    text-align: center;
    border-radius: 0 0 30px 30px;
}

.minimal-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
    z-index: 0;
}

.minimal-hero-text {
    position: relative;
    z-index: 1;
    font-family: 'Roboto', sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.minimal-hero-text h1 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.minimal-hero-text p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Blog Search & Filter */
.blog-search-filter {
    padding: 2rem 0;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 64px;
    z-index: 900;
}

.blog-search-filter .container-main {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    background-color: var(--white);
    transition: var(--transition);
    outline: none;
    box-shadow: var(--shadow-sm);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236B7280' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.5rem center;
    padding-right: 3rem;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.1);
}

.search-input::placeholder {
    color: #94a3b8;
}

.filter-select {
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    background-color: var(--white);
    transition: var(--transition);
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236B7280' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    padding-right: 2.5rem;
    min-width: 180px;
    box-shadow: var(--shadow-sm);
}

.filter-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.1);
}

/* Blog Posts Section */
.blog-posts-section {
    padding: 3rem 0;
    background-color: var(--light);
    position: relative;
}

.blog-posts-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236a11cb' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 0;
}

.loading-indicator {
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.loading-indicator::before {
    content: '';
    width: 1.5rem;
    height: 1.5rem;
    border: 3px solid rgba(106, 17, 203, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.blog-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

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

.blog-content h3 {
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.blog-content p {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--gray);
}

.blog-category {
    background: linear-gradient(135deg, rgba(106, 17, 203, 0.1) 0%, rgba(37, 117, 252, 0.1) 100%);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
}

.blog-date {
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.blog-date::before {
    content: '\f073';
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background-color: #f3f4f6;
    color: var(--gray);
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 6px rgba(106, 17, 203, 0.2);
    text-decoration: none;
    margin-top: auto;
}

.read-more-btn:hover {
    box-shadow: 0 7px 14px rgba(106, 17, 203, 0.3);
    transform: translateY(-2px);
    color: var(--white);
}

.read-more-btn i {
    margin-left: 0.5rem;
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.read-more-btn:hover i {
    transform: translateX(3px);
}

.coming-soon-text {
    text-align: center;
    font-size: 1.5rem;
    color: var(--gray);
    margin: 3rem 0;
    font-style: italic;
}

/* Footer with attribution */
.footer {
    text-align: center;
    padding: 2rem 0 1rem;
    font-size: 0.9rem;
    color: var(--gray);
    background-color: var(--white);
    border-top: 1px solid #e2e8f0;
}



/* Animation for cards */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card {
    animation: fadeIn 0.5s ease forwards;
}

/* Responsive styles */
@media (max-width: 768px) {
    .blog-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .blog-search-filter .container-main {
        flex-direction: column;
    }

    .search-input,
    .filter-select {
        width: 100%;
    }



    h1 {
        font-size: 2rem;
    }
}