:root {
    --purple: #7E7EEF;
    --orange: #F2994A;
    --dark-blue: #2D2D7D;
    --light-gray: #F8F9FA;
    --text-color: #666666;
    --white: #ffffff;
    --font-cairo: 'Cairo', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-cairo);
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.8;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

html {
    overflow-x: hidden;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header */
header {
    height: 90px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background-color: var(--white); /* Ensure background is white by default for blog pages */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.main-content {
    padding-top: 100px;
    min-height: 80vh;
}

header.scrolled {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 80px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 100px;
    transition: var(--transition);
}

header.scrolled .logo img {
    height: 80px;
}

.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu ul li a {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-blue);
}

.lang-toggle a {
    color: var(--purple) !important;
}

.nav-menu ul li a:hover,
.nav-menu ul li a.active {
    color: var(--orange);
}

.btn {
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 700;
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-orange {
    background-color: var(--orange);
    color: var(--white);
}

.btn-purple {
    background-color: var(--purple);
    color: var(--white);
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Hero */
.hero {
    padding: 180px 0 100px;
    background: linear-gradient(to bottom, #F0F4FF, #ffffff);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

.hero-text h1 {
    font-size: 42px;
    font-weight: 800;
    color: var(--dark-blue);
    line-height: 1.3;
}

.hero-text h1 .highlight {
    color: var(--purple);
}

.hero-text p {
    font-size: 18px;
    margin: 20px 0 40px;
    color: #555;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Features */
.features {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.f-orange {
    background-color: #FFF8F2;
}

.f-green {
    background-color: #F2FFF8;
}

.f-purple {
    background-color: #F8F2FF;
}

.f-icon-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.f-icon-container img {
    width: 45px;
}

.feature-card h3 {
    color: var(--dark-blue);
    font-size: 20px;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 15px;
    color: #666;
}

/* About */
.about {
    padding: 80px 0;
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.about-content h3 {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: 25px;
}

/* Services */
.services {
    padding: 80px 0;
    background-color: #fcfcfc;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.s-icon {
    margin: -30px -30px 25px -30px;
    height: 180px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    display: block;
}

.s-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card h3 {
    color: var(--dark-blue);
    margin-bottom: 20px;
    font-size: 20px;
}

.btn-link {
    color: var(--purple);
    font-weight: 700;
    margin-top: 20px;
    display: inline-block;
}

.btn-link:hover {
    color: var(--orange);
}

/* Stats */
.stats {
    padding: 60px 0;
    background-color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 50px;
    font-weight: 800;
    color: var(--purple);
}

.stat-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-blue);
}

/* Footer */
footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-content .white-logo {
    display: block;
    margin: 0 auto 60px;
    height: 70px;
    filter: brightness(0) invert(1);
}

.footer-bottom-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.f-col h4 {
    font-size: 20px;
    margin-bottom: 30px;
    font-weight: 700;
}

.footer-about p {
    color: #cbd5e1;
    font-size: 15px;
}

.footer-contact ul li {
    margin-bottom: 15px;
    color: #cbd5e1;
    font-size: 15px;
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links ul li a {
    color: #cbd5e1;
}

.footer-links ul li a:hover {
    color: var(--orange);
}

.social-links {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.social-links a:hover {
    background-color: var(--orange);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: #94a3b8;
}

/* Floating */
.floating-btns {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 99999;
}

.btn-float {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 28px;
    transition: all 0.3s ease;
}

.btn-float:hover {
    transform: scale(1.1);
}

.whatsapp {
    background-color: #25D366;
}

.phone {
    background-color: var(--orange);
    font-size: 20px;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 100px 0;
    background: #fdfdfd;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.why-image img {
    width: 100%;
    border-radius: 30px;
}

.why-subtitle {
    color: var(--purple);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.why-title {
    font-size: 2.5rem;
    color: var(--dark-blue);
    margin-bottom: 25px;
    line-height: 1.2;
}

.why-desc {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.8;
}

.why-points {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.why-point {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.point-icon {
    background: #eef2ff;
    color: var(--purple);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: bold;
}

.point-text h4 {
    color: var(--dark-blue);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.point-text p {
    color: #777;
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .why-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .why-image {
        order: 2;
    }

    .why-content {
        order: 1;
    }
}

/* Portfolio Section */
.portfolio {
    padding: 100px 0;
    background: #fff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.portfolio-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    height: 300px;
}

.portfolio-item:hover {
    transform: translateY(-10px);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive */
@media (max-width: 992px) {

    .hero-grid,
    .about-grid,
    .footer-bottom-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}


@media (max-width: 768px) {
    .container {
        padding: 0 15px !important;
    }

    .hero-text h1 {
        font-size: 24px !important;
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .hero-text p {
        font-size: 14px !important;
        line-height: 1.6;
    }

    .section-title {
        font-size: 22px !important;
    }
}

#main-header {
    z-index: 10000;
}

/* Dropdown Menu Styles */
.has-dropdown {
    position: relative;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 10px 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    list-style: none;
    z-index: 9999;
    display: block !important;
    transform: translateX(-50%) translateY(15px);
}

.submenu li {
    width: 100%;
}

.submenu li a {
    color: #333 !important;
    padding: 12px 20px !important;
    display: block !important;
    font-size: 15px !important;
    text-align: right;
    transition: all 0.2s ease;
}

.submenu li a:hover {
    background: #fdf2ed;
    color: #FF5E14 !important;
}

.has-dropdown:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-toggle i {
    font-size: 10px;
    margin-right: 5px;
    transition: transform 0.3s ease;
}

/* Mobile Toggle Animation */
.mobile-toggle span {
    transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Responsive Mobile Navigation */
@media (max-width: 991px) {
    .mobile-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        z-index: 1001;
    }

    .mobile-toggle span {
        width: 30px;
        height: 3px;
        background: #2D2D7D;
        /* Using Dark Blue for clear visibility */
        border-radius: 3px;
    }

    /* Keep it dark even when scrolled if background remains white */
    .scrolled .mobile-toggle span {
        background: #333;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        padding: 80px 20px;
        transition: 0.4s ease-in-out;
        z-index: 1000;
        display: block;
        /* Overriding desktop flex */
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .nav-menu ul li a {
        color: #333 !important;
        font-size: 18px;
    }

    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        padding: 0;
        height: 0;
        overflow: hidden;
        transform: none;
        margin-right: 15px;
        background: #f8f8f8;
        border-right: 3px solid #FF5E14;
    }

    .has-dropdown.open .submenu {
        height: auto;
        padding: 10px 0;
        margin-top: 10px;
    }

    .has-dropdown.open .dropdown-toggle i {
        transform: rotate(180deg);
    }
}


/* Social Icons Styling */
.header-social {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
}

.header-social a i {
    color: #007bff;
    /* Vibrant Blue for visibility */
    font-size: 18px;
    transition: all 0.3s ease;
}

.header-social a:hover i {
    color: #FF5E14;
    transform: translateY(-3px);
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-links a i {
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-links a:hover i {
    color: #FF5E14;
    transform: scale(1.2);
}

.footer-contact ul li i {
    margin-left: 10px;
    color: #FF5E14;
    width: 20px;
    text-align: center;
}

@media (max-width: 991px) {
    .header-social {
        margin: 20px 0;
        justify-content: center;
    }
}

/* MQM AI Chatbot Styles */
.chat-bubble {
    background: #2D2D7D;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.chat-bubble i {
    font-size: 24px;
}

.chat-bubble:hover {
    transform: scale(1.1);
    background: #FF5E14;
}

.chat-window {
    position: fixed;
    bottom: 30px;
    left: 100px;
    width: 380px;
    max-width: calc(100vw - 120px);
    height: 550px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-header {
    background: #2D2D7D;
    color: white;
    padding: 20px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bot-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bot-info i {
    font-size: 30px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 12px;
}

.bot-info h4 {
    margin: 0;
    font-size: 16px;
}

.bot-info span {
    font-size: 12px;
    opacity: 0.8;
}

#close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.message.bot {
    background: #f1f4f9;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.message.user {
    background: #2D2D7D;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.quick-replies button {
    background: white;
    border: 1px solid #2D2D7D;
    color: #2D2D7D;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-replies button:hover {
    background: #2D2D7D;
    color: white;
}

.chat-form {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    border: none;
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 10px;
    outline: none;
    font-family: inherit;
}

.chat-form button {
    background: #FF5E14;
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.chat-form button:hover {
    transform: scale(1.05);
    background: #e55512;
}

@media (max-width: 480px) {
    .chat-window {
        width: calc(100% - 40px);
        left: 20px;
        right: auto;
        bottom: 90px;
        height: 70vh;
    }
}

/* ==========================================================================
   Luxury Admin UI (RTL Optimized & Professional)
   ========================================================================== */
.admin-login-page {
    background: url('admin_bg.png') no-repeat center center fixed !important;
    background-size: cover !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.admin-login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 45, 125, 0.4);
    backdrop-filter: blur(10px);
    z-index: 0;
}

.login-card {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
    padding: 60px 45px;
    border-radius: 40px;
    width: 100%;
    max-width: 480px;
}

.login-card h2 {
    color: white;
    margin-top: 10px;
    font-weight: 800;
}

.login-card label {
    color: rgba(255, 255, 255, 0.8);
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.login-card input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    height: 60px;
    border-radius: 15px;
    margin-bottom: 25px;
}

.admin-sidebar {
    width: 280px;
    background: #2D2D7D;
    color: white;
    padding: 40px 0;
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    z-index: 1001;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.1);
}

.admin-main {
    flex: 1;
    margin-right: 280px;
    margin-left: 0;
    background: #f4f7fe;
    padding: 60px 50px;
    min-height: 100vh;
    text-align: right;
}

.sidebar-menu li a {
    padding: 15px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: rgba(255, 255, 255, 0.7);
    transition: 0.3s;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-right: 4px solid var(--orange);
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    gap: 25px;
}

.cms-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    margin-top: 20px;
}

.cms-table th {
    padding: 20px;
    color: #2D2D7D;
    font-weight: 800;
    text-align: right;
}

.cms-table td {
    padding: 20px;
    background: white;
    vertical-align: middle;
}

.cms-table tr td:first-child {
    border-radius: 0 20px 20px 0;
}

.cms-table tr td:last-child {
    border-radius: 20px 0 0 20px;
}

.modal-content {
    background: white;
    border-radius: 40px;
    padding: 50px;
    max-width: 850px;
    width: 90%;
    margin: 40px auto;
}

@media (max-width: 1024px) {
    .admin-sidebar {
        width: 100px;
    }

    .admin-main {
        margin-right: 100px;
    }

    .sidebar-menu span {
        display: none;
    }
}

@media (max-width: 768px) {
    .admin-sidebar {
        width: 100%;
        height: auto;
        position: fixed;
        bottom: 0;
        top: auto;
        padding: 10px;
        flex-direction: row;
    }

    .admin-main {
        margin-right: 0;
        padding: 30px 20px 100px;
    }

    .sidebar-menu {
        display: flex;
        justify-content: center;
        width: 100%;
    }
}

/* Logo White Backgrounds - NEW */
.logo-container,
.logo-box-white {
    background: #ffffff !important;
    padding: 12px;
    border-radius: 12px;
    display: inline-block !important;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    line-height: 0;
}

.sidebar-logo .logo-box-white img {
    height: 40px !important;
    object-fit: contain;
}

.btn-sm {
    padding: 8px 15px;
    font-size: 13px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: 0.3s;
}

.btn-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.logo-container img,
.logo-box-white img {
    height: 50px !important;
    width: auto !important;
    filter: none !important;
}

/* ==========================================================================
   Blog & Articles Section
   ========================================================================== */

.blog-listing-header {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, var(--dark-blue), var(--purple));
    color: white;
    text-align: center;
    position: relative;
    z-index: 1;
}

.blog-page .main-content {
    padding-top: 90px;
}

.blog-listing-header .container {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.blog-listing-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: white;
    width: 100%;
}

.blog-listing-header p {
    font-size: 1.2rem;
    opacity: 1;
    color: white;
    width: 100%;
    line-height: 1.6;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border-radius: 30px;
    border: 2px solid #eee;
    background: white;
    color: var(--text-color);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--purple);
    border-color: var(--purple);
    color: white;
}

.blog-content-wrapper {
    padding: 40px 0;
    position: relative;
    z-index: 2;
    background: white;
}

.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.blog-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-category {
    color: var(--purple);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 15px;
    display: block;
}

.blog-title {
    font-size: 20px;
    color: var(--dark-blue);
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-excerpt {
    font-size: 15px;
    color: #666;
    margin-bottom: 25px;
    flex: 1;
}

.blog-link {
    color: var(--orange);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: gap 0.3s;
}

.blog-link:hover {
    gap: 15px;
}

/* Individual Post Page */
.post-header {
    padding-top: 100px;
    margin-bottom: 30px;
}

.post-header .blog-category {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(126, 126, 239, 0.1);
    border-radius: 5px;
    margin-bottom: 20px;
}

.post-header .title {
    font-size: 2.8rem;
    color: var(--dark-blue);
    margin-bottom: 20px;
    line-height: 1.2;
}

.post-meta {
    color: #888;
    font-size: 14px;
    margin-bottom: 40px;
    display: flex;
    gap: 20px;
}

.post-featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
}

.post-body {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
    max-width: 850px;
    margin: 0 auto;
}

.post-body h2, .post-body h3 {
    color: var(--dark-blue);
    margin: 40px 0 20px;
}

.post-body p {
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .blog-listing-header {
        padding: 80px 0 40px;
    }

    .blog-listing-header h1 {
        font-size: 2rem !important;
        margin-bottom: 10px;
    }

    .blog-listing-header p {
        font-size: 1rem !important;
        padding: 0 20px;
        line-height: 1.6;
    }

    .blog-page .main-content {
        padding-top: 80px;
    }

    .blog-content-wrapper {
        margin-top: 0;
        padding: 40px 15px;
    }

    .blog-filters {
        margin-bottom: 20px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .blog-preview-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .post-header .title {
        font-size: 1.8rem;
    }
    
    .post-body {
        font-size: 16px;
    }
}


.sidebar-logo .logo-box-white {
    margin: 0 auto 10px;
    display: block;
    width: fit-content;
}

/* Blog Interactions */
.post-interactions {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin: 40px 0;
}

.interaction-btn {
    background: white;
    border: 2px solid #eee;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 700;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.interaction-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.interaction-btn.liked {
    color: #e74c3c;
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.05);
}

.interaction-btn.liked i {
    transform: scale(1.2);
}

.interaction-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Comments Section */
.comments-section {
    padding: 60px 0;
    max-width: 850px;
    margin: 0 auto;
}

.comments-section h3 {
    margin-bottom: 30px;
    color: var(--dark-blue);
    font-size: 1.8rem;
}

.comment-form {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 20px;
    margin-top: 40px;
}

.comment-form textarea {
    width: 100%;
    height: 120px;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    margin-bottom: 20px;
    font-family: inherit;
    font-size: 16px;
    resize: none;
    transition: border-color 0.3s;
}

.comment-form textarea:focus {
    border-color: var(--purple);
    outline: none;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-right: 4px solid var(--purple);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #888;
}

.comment-author {
    font-weight: 700;
    color: var(--dark-blue);
}

.comment-content {
    line-height: 1.6;
    color: #444;
}

@media (max-width: 768px) {
    .comments-section {
        padding: 40px 15px;
    }
}