/* Reset & Base */
:root {
    --primary-color: #496390;
    --primary-light: #5f7aa8;
    --primary-dark: #354a6d;
    --accent-color: #A62D2F;
    --accent-hover: #8f2628;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #f7f9fc;
    --bg-white: #ffffff;
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif !important;
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

.post-body a,
.service-body a {
    color: var(--accent-color) !important;
    text-decoration: underline;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.shadow {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.mb-radius {
    border-radius: 12px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-family: 'Cairo', sans-serif;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(166, 45, 47, 0.3);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(73, 99, 144, 0.3);
}

.btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1002;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all var(--transition);
}

.auth-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 200px 0 140px;
    background: linear-gradient(135deg, #f0f4f8 0%, #ffffff 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/hero-bg.png');
    background-repeat: repeat;
    background-size: 600px;
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
    animation: panBackground 120s linear infinite;
}

@keyframes panBackground {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 1000px 1000px;
    }
}

.hero-slider-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
    overflow: hidden;
    padding-bottom: 2rem;
}

.hero-slide {
    display: none;
    text-align: center;
    animation: slideFadeIn 0.8s ease forwards;
}

.hero-slide.active {
    display: block;
}

@keyframes slideFadeIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.slide-dot {
    width: 12px;
    height: 12px;
    background-color: var(--primary-light);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color var(--transition);
}

.slide-dot.active {
    background-color: var(--accent-color);
}

.hero h1 {
    font-size: 3rem;
    /* line-height: 1.2; */
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-main);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.shape {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    opacity: 0.1;
}

@keyframes floatShape1 {
    0% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-30px) rotate(10deg);
    }

    100% {
        transform: translateY(0) rotate(0);
    }
}

@keyframes floatShape2 {
    0% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(20px) scale(1.1);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -100px;
    right: -100px;
    animation: floatShape1 8s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    bottom: -50px;
    left: -50px;
    animation: floatShape2 6s ease-in-out infinite;
}

/* Services */
.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--primary-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    border: 1px solid #eee;
    border-bottom: 3px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--primary-color);
    z-index: -1;
    transition: height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.service-card:hover::after {
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(73, 99, 144, 0.2);
    border-color: var(--primary-color);
    border-bottom: 3px solid var(--accent-color);
}

.service-card h3,
.service-card p,
.service-card .read-more {
    position: relative;
    z-index: 2;
    transition: color var(--transition);
}

.service-card:hover h3,
.service-card:hover p,
.service-card:hover .read-more {
    color: white;
}

.icon-wrapper {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    transition: transform var(--transition), color var(--transition);
    display: inline-block;
    position: relative;
    z-index: 2;
}

.service-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    color: white;
}

.read-more {
    color: var(--accent-color);
    font-weight: 700;
    display: inline-block;
    margin-top: 1rem;
}

.read-more:hover {
    text-decoration: underline;
}

/* Blog Cards */
.blog-card {
    background: var(--bg-white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow var(--transition), border-color var(--transition);
    border: 1px solid #eee;
    border-bottom: 3px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.2s !important;
}

.blog-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 15px 40px rgba(73, 99, 144, 0.15);
    border-color: var(--primary-light);

}

/* Why Choose Us - Features */
.bg-light {
    background-color: var(--bg-light);
}

.features-wrapper {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.features-text {
    flex: 1;
}

.features-text ul li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.check {
    color: var(--accent-color);
    font-weight: bold;
    margin-left: 10px;
    font-size: 1.2rem;
}

.placeholder-image {
    position: relative;
    overflow: hidden;
    background: #e0e0e0;
}

.placeholder-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #eee;
}

.faq-button {
    width: 100%;
    text-align: right;
    padding: 1.5rem;
    background: transparent;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color var(--transition), color var(--transition);
    font-family: inherit;
}

.faq-button:hover,
.faq-button[aria-expanded="true"] {
    background-color: var(--primary-light);
    color: white;
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform var(--transition);
}

.faq-button[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    background-color: #fafafa;
    transition: max-height 0.4s ease-in-out;
}

.faq-content p {
    margin: 0;
    padding: 1.5rem;
    color: var(--text-main);
    line-height: 1.6;
}

/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer h3,
.footer h4 {
    color: white;
}

.footer-col p {
    color: #f9fafb;
}

.footer-col ul li {
    margin-bottom: 0.9rem;
}

.footer-col a {
    color: #f9fafb;
}

.footer-col a:hover {
    color: var(--accent-color);
}

/* Mobile bottom navigation padding */
.footer-col.links ul li {
    transition: all 0.2s ease-in-out;
}

.footer-col.links ul li:hover {
    transform: translateX(-5px);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    color: #999;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible,
.fade-in-left.visible,
.fade-in-right.visible {
    opacity: 1;
    transform: translate(0);
}

.fade-in-down {
    animation: fadeInDown 0.8s ease-out forwards;
}

.slide-up {
    animation: slideUp 0.8s ease-out forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsiveness */
.mobile-menu {
    display: none !important;
}

@media (max-width: 900px) {
    .mobile-menu {
        display: flex !important;
    }

    .nav-links,
    .auth-buttons {
        display: none;
    }
}

@media (max-width: 900px) {

    .hamburger {
        display: flex;
    }

    .nav-content {
        justify-content: space-between;
    }

    /* Mobile Sidebar */
    .mobile-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--bg-white);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        display: flex;
        flex-direction: column;
        padding: 5rem 2rem 2rem;
    }

    .mobile-menu.active {
        right: 0;
    }

    .mobile-menu .nav-links {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
        width: 100%;
    }

    .mobile-menu .auth-buttons {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-top: 2rem;
    }

    .mobile-menu .auth-buttons .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 768px) {
    .features-wrapper {
        flex-direction: column;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: row;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
        /* display: inline-flex; */
        width: auto;
    }

    .btn-lg {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}