/*
Theme Name: LearnFix
Theme URI: https://example.com/learnfix-theme
Author: Your Name
Author URI: https://example.com
Description: A beautiful, responsive WordPress theme for technology education with bilingual support.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: learnfix
Domain Path: /languages
*/

/* ===== GENERAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 90%;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: #3498db;
    transition: all 0.3s ease;
}

a:hover {
    color: #1a2f38;
}

/* ===== HEADER STYLES ===== */
.site-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 20px;
}

.site-branding {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.site-branding img {
    max-height: 190px;
    width: auto;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    position: absolute;
    margin-top: -90px;
}

.site-branding img:hover {
    transform: scale(1.05);
}

.site-title {
    font-size: 24px;
    margin: 0;
    margin-left: 15px;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* ===== NAVIGATION STYLES ===== */
.main-navigation {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation ul li {
    position: relative;
    margin-left: 30px;
}

.main-navigation ul li a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-navigation ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    transition: width 0.3s ease;
}

.main-navigation ul li a:hover {
    color: #3498db;
}

.main-navigation ul li a:hover::after {
    width: 100%;
}

/* ===== LANGUAGE SWITCHER ===== */
.language-switcher {
    margin-left: 25px;
    display: flex;
    align-items: center;
    background-color: #f1f1f1;
    border-radius: 20px;
    padding: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.language-switcher a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.language-switcher a.active {
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: #fff;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

/* ===== MOBILE MENU TOGGLE ===== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
    background: transparent;
    border: none;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #2c3e50;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ===== MOBILE NAVIGATION ===== */
.mobile-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow-y: auto;
}

.mobile-navigation.active {
    right: 0;
}

.mobile-menu-container {
    padding: 90px 25px 25px;
}

.mobile-navigation ul {
    list-style: none;
    margin: 0 0 30px;
    padding: 0;
}

.mobile-navigation ul li {
    margin-bottom: 5px;
}

.mobile-navigation ul li a {
    text-decoration: none;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 500;
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.mobile-navigation ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    transition: width 0.3s ease;
}

.mobile-navigation ul li a:hover {
    color: #3498db;
    padding-left: 10px;
}

.mobile-navigation ul li a:hover::before {
    width: 100%;
}

.mobile-navigation .language-switcher {
    margin: 20px 0 0;
    justify-content: center;
    background-color: #f1f1f1;
    padding: 5px;
}

/* ===== HERO SECTION STYLES ===== */
.hero-section {
    min-height: 70vh;
    position: relative;
    overflow: hidden;
    width: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(52, 152, 219, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 90% 80%, rgba(46, 204, 113, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.hero-section .container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 0px;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    min-height: 70vh;
    position: relative;
}

.hero-image-column {
    flex: 1 1 50%;
    padding: 0;
    position: relative;
    overflow: hidden;
    animation: fadeInLeft 1s ease;
    z-index: 1;
    height: 70vh;
}

.hero-text-column {
    flex: 1 1 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: fadeInRight 1s ease;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.9) 100%);
    z-index: 1;
    height: 70vh;
}

.hero-text-inner {
    max-width: 500px;
    width: 100%;
    padding: 40px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.3) 0%, rgba(46, 204, 113, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 2;
    mix-blend-mode: overlay;
}

.hero-image-column:hover .hero-image {
    transform: scale(1.05);
}

.hero-image-column:hover .hero-image::before {
    opacity: 1;
}

.hero-title {
    font-size: 48px;
    color: #2c3e50;
    margin-bottom: 25px;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease;
    position: relative;
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.hero-description {
    font-size: 18px;
    color: #555;
    margin-bottom: 35px;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease 0.2s;
    animation-fill-mode: both;
    font-weight: 400;
    width: 100%;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 16px 35px;
    background: linear-gradient(45deg, #3498db, #018cf3);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    animation: fadeInUp 0.8s ease 0.4s;
    animation-fill-mode: both;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.3);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #2980b9, #27ae60);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(52, 152, 219, 0.4);
}

.btn:hover::before {
    opacity: 1;
}

.btn:active {
    transform: translateY(-2px);
}

/* Decorative elements */
.hero-text-column::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.1) 0%, rgba(52, 152, 219, 0) 70%);
    z-index: 0;
}

.hero-text-column::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46, 204, 113, 0.1) 0%, rgba(46, 204, 113, 0) 70%);
    z-index: 0;
}

/* ===== SLIDER STYLES ===== */
.slider-container {
    position: relative;
    margin: 50px 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.slider {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide {
    min-width: 100%;
    position: relative;
    overflow: hidden;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.slide:hover img {
    transform: scale(1.05);
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
    color: #fff;
    padding: 40px 30px 30px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease;
}

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-content h2 {
    font-size: 28px;
    margin-bottom: 12px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.slide-content h2::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.slide-content p {
    font-size: 15px;
    opacity: 0.9;
    max-width: 500px;
    line-height: 1.6;
}

.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
}

.slider-nav button {
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 15px;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.slider-nav button:hover {
    background-color: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.slider-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dots button.active {
    background-color: #fff;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}


/* ===== SLIDE SECTION STYLES ===== */

    .animate-on-scroll {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .animate-on-scroll.visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Stagger animations for elements within sections */
    .stagger-animation {
        opacity: 0;
        transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    }
    
    .stagger-animation.visible {
        opacity: 1;
    }
    
    .service-card {
        transform: translateY(20px);
    }
    
    .blog-card {
        transform: translateY(20px);
    }
    
    .feature-item {
        transform: translateY(20px);
    }
    
    /* Contact Section Styles */
    .contact-section {
        padding: 100px 0;
        background: linear-gradient(135deg, #f5f7fa, #e4e8f0);
        position: relative;
        overflow: hidden;
        margin-top:40px;
    }
    
    .contact-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><path d="M0,0 L100,100 M100,0 L0,100" stroke="rgba(79, 172, 254, 0.05)" stroke-width="1"/></svg>');
        z-index: 0;
    }
    
    .contact-content {
        display: flex;
        align-items: stretch; /* Changed from center to stretch */
        gap: 50px;
        position: relative;
        z-index: 1;
    }
    
    .contact-image-column,
    .contact-form-column {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .contact-image-container {
        position: relative;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        transform: translateZ(0);
        flex-grow: 1; /* Allow container to grow and fill available space */
        height: 100%; /* Take full height of parent */
    }
    
    .contact-image {
        width: 100%;
        height: 100%; /* Fill container height */
        object-fit: cover; /* Cover the container without distortion */
        display: block;
        transition: transform 0.8s ease;
    }
    
    .contact-image-container:hover .contact-image {
        transform: scale(1.05);
    }
    
    .contact-form-container {
        background: white;
        border-radius: 15px;
        padding: 40px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
        flex-grow: 1; /* Allow container to grow and fill available space */
        display: flex;
        flex-direction: column;
    }
    
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
        color: #2c3e50;
        position: relative;
        display: inline-block;
    }
    
    .section-title::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 0;
        width: 60px;
        height: 4px;
        background: linear-gradient(90deg, #4facfe, #00f2fe);
        border-radius: 2px;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        color: #7f8c8d;
        margin-bottom: 30px;
    }
    
    .contact-form {
        display: flex;
        flex-direction: column;
        gap: 20px;
        flex-grow: 1; /* Allow form to grow and fill available space */
    }
    
    .form-row {
        display: flex;
        gap: 20px;
    }
    
    .form-group {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .form-group label {
        font-weight: 600;
        margin-bottom: 8px;
        color: #2c3e50;
        font-size: 0.9rem;
    }
    
    .form-control {
        padding: 12px 15px;
        border: 2px solid #e1e8ed;
        border-radius: 8px;
        font-size: 1rem;
        transition: all 0.3s ease;
        background-color: #f8f9fa;
    }
    
    .form-control:focus {
        outline: none;
        border-color: #4facfe;
        background-color: white;
        box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
    }
    
    textarea.form-control {
        min-height: 120px;
        resize: vertical;
    }
    
    .btn-submit {
        padding: 14px 30px;
        background: linear-gradient(90deg, #4facfe, #00f2fe);
        color: white;
        border: none;
        border-radius: 50px;
        font-weight: 600;
        font-size: 1rem;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 5px 15px rgba(79, 172, 254, 0.3);
        align-self: flex-start;
        margin-top: auto; /* Push button to bottom of form */
    }
    
    .btn-submit:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(79, 172, 254, 0.4);
    }
    
    .contact-info {
        margin-top: 30px;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-info-item {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .contact-info-icon {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: linear-gradient(135deg, #4facfe, #00f2fe);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
    }
    
    .contact-info-text {
        color: #2c3e50;
    }
    
    /* Responsive Design */
    @media (max-width: 992px) {
        .contact-content {
            flex-direction: column;
        }
        
        .form-row {
            flex-direction: column;
        }
    }

/* reCAPTCHA Container */
.recaptcha-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    min-height: 78px; /* Minimum height for reCAPTCHA */
    margin: 20px 0;
}

.g-recaptcha {
    display: block !important;
    position: relative;
    transform-origin: 0 0;
    -webkit-transform-origin: 0 0;
}

/* Mobile-first responsive scaling */
@media screen and (max-width: 320px) {
    .g-recaptcha {
        transform: scale(0.68);
        -webkit-transform: scale(0.68);
    }
    .recaptcha-container {
        min-height: 65px;
    }
}

@media screen and (min-width: 321px) and (max-width: 480px) {
    .g-recaptcha {
        transform: scale(0.77);
        -webkit-transform: scale(0.77);
    }
}

@media screen and (min-width: 481px) and (max-width: 768px) {
    .g-recaptcha {
        transform: scale(0.9);
        -webkit-transform: scale(0.9);
    }
}

/* Error message for reCAPTCHA */
.recaptcha-error {
    color: #e74c3c;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    margin-top: 10px;
    display: none;
    background-color: #fdf2f2;
    padding: 10px;
    border-radius: 4px;
    border-left: 4px solid #e74c3c;
}
/* ===== ABOUT SECTION STYLES ===== */

.about-section {
    padding: 80px 0;
    background-color: #fff;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1 1 45%;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1 1 50%;
}

.section-title {
    font-size: 42px;
    color: #2c3e50;
    margin-bottom: 30px;
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.about-description {
    font-size: 18px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 40px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-item i {
    font-size: 36px;
    color: #3498db;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.feature-item p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* Single Post Styles */
.entry-header {
    padding: 40px 0;
    background-color: #f8f9fa;
    margin-bottom: 30px;
}

.entry-title {
    font-size: 36px;
    margin: 10px 0 0;
    line-height: 1.2;
}

.entry-meta {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 10px;
}

.post-thumbnail {
    margin-bottom: 30px;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.entry-content {
    margin-bottom: 40px;
}



.entry-footer {
    padding: 20px 0;
    border-top: 1px solid #eee;
    margin-bottom: 40px;
}

.entry-categories, .entry-tags {
    margin-bottom: 10px;
}

.entry-categories span, .entry-tags span {
    font-weight: bold;
    margin-right: 5px;
}

.nav-links {
    display: flex;
    justify-content: space-between;
}

.nav-previous, .nav-next {
    flex: 0 0 48%;
}

.nav-title {
    font-weight: bold;
    display: block;
    margin-top: 5px;
}

.comment-form {
    margin-top: 30px;
}
/* ===== SERVICES SECTION STYLES ===== */
.services-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.service-icon i {
    font-size: 30px;
    color: #3498db;
}

.service-content {
    padding: 30px;
    text-align: center;
}

.service-content h3 {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.service-content p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* ===== BLOG SECTION STYLES ===== */
/* Blog Section Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 50px;
    margin-bottom: 40px;
}

.blog-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.blog-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #fff;
    border-radius: 4px;
    padding: 5px 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.blog-date .day {
    display: block;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
}

.blog-date .month {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
}

.blog-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 12px;
    color: #6c757d;
}

.blog-content h3 {
    font-size: 18px;
    margin: 0 0 10px;
    line-height: 1.3;
}

.blog-content h3 a {
    color: #333;
    text-decoration: none;
}

.blog-content h3 a:hover {
    color: #007bff;
}

.blog-excerpt {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
    flex-grow: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    margin-top: auto;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(3px);
}

.blog-cta {
    text-align: center;
    margin-top: 20px;
}

/* Single Post Cover Styles */
.post-thumbnail-cover {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 400px;
    overflow: hidden;
}

.post-thumbnail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

.post-title-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.post-thumbnail-cover .entry-header {
    text-align: center;
    color: #fff;
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
}

.post-thumbnail-cover .entry-title {
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.post-thumbnail-cover .entry-meta {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
}

.post-thumbnail-cover .entry-meta span {
    margin-right: 15px;
}

.post-thumbnail-cover .entry-meta span:last-child {
    margin-right: 0;
}

/* Entry content styling */
.entry-content {
    padding: 60px 0;
    background-color: #fff;
}

.entry-content p {
    margin-bottom: 25px;
    line-height: 1.8;
    font-size: 1.1rem;
}

.entry-content h2 {
    font-size: 2rem;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.entry-content h3 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.entry-content blockquote {
    border-left: 4px solid #007bff;
    padding: 15px 20px;
    margin: 30px 0;
    background-color: #f8f9fa;
    font-style: italic;
    font-size: 1.2rem;
}

/* Entry footer styling */
.entry-footer {
    padding: 30px 0;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
}

.entry-categories, .entry-tags {
    margin-bottom: 10px;
}

.entry-categories span, .entry-tags span {
    font-weight: bold;
    margin-right: 5px;
}

.entry-categories a, .entry-tags a {
    color: #007bff;
    text-decoration: none;
    margin-right: 5px;
}

.entry-categories a:hover, .entry-tags a:hover {
    text-decoration: underline;
}

/* Post navigation styling */

.nav-links {
    display: flex;
    justify-content: space-between;
}

.nav-previous, .nav-next {
    flex: 0 0 48%;
}

.nav-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
    display: block;
    margin-bottom: 5px;
}

.nav-title {
    font-weight: bold;
    color: #333;
    font-size: 1.1rem;
    line-height: 1.4;
}

.nav-title:hover {
    color: #007bff;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .post-thumbnail-cover .entry-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .post-thumbnail-cover {
        height: 50vh;
        min-height: 300px;
    }
    
    .post-thumbnail-cover .entry-title {
        font-size: 2rem;
    }
    
    .entry-content {
        padding: 40px 0;
    }
    
    .nav-links {
        flex-direction: column;
    }
    
    .nav-previous, .nav-next {
        flex: 0 0 100%;
        margin-bottom: 15px;
    }
    
    .nav-next {
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .post-thumbnail-cover .entry-title {
        font-size: 1.8rem;
    }
    
    .entry-content p {
        font-size: 1rem;
    }
    
    .post-thumbnail-cover .entry-meta {
        font-size: 0.9rem;
    }
    
    .post-thumbnail-cover .entry-meta span {
        display: block;
        margin: 5px 0;
    }
}
/* Entry footer styling */
.entry-footer {
    padding: 30px 0;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
}

.entry-categories, .entry-tags {
    margin-bottom: 10px;
}

.entry-categories span, .entry-tags span {
    font-weight: bold;
    margin-right: 5px;
}

.entry-categories a, .entry-tags a {
    color: #007bff;
    text-decoration: none;
    margin-right: 5px;
}

.entry-categories a:hover, .entry-tags a:hover {
    text-decoration: underline;
}

/* Post navigation styling */

.nav-links {
    display: flex;
    justify-content: space-between;
}

.nav-previous, .nav-next {
    flex: 0 0 48%;
}

.nav-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
    display: block;
    margin-bottom: 5px;
}

.nav-title {
    font-weight: bold;
    color: #333;
    font-size: 1.1rem;
    line-height: 1.4;
}

.nav-title:hover {
    color: #007bff;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .post-thumbnail-cover .entry-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .post-thumbnail-cover {
        height: 50vh;
        min-height: 300px;
    }
    
    .post-thumbnail-cover .entry-title {
        font-size: 2rem;
    }
    
    .entry-content {
        padding: 40px 0;
    }
    
    .nav-links {
        flex-direction: column;
    }
    
    .nav-previous, .nav-next {
        flex: 0 0 100%;
        margin-bottom: 15px;
    }
    
    .nav-next {
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .post-thumbnail-cover .entry-title {
        font-size: 1.8rem;
    }
    
    .entry-content p {
        font-size: 1rem;
    }
}
/* ===== RESPONSIVE STYLES ===== */
@media screen and (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-image,
    .about-text {
        flex: 1 1 100%;
    }
    
    .section-title {
        font-size: 36px;
    }
}

@media screen and (max-width: 768px) {
    .about-section,
    .services-section,
    .blog-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .services-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .about-section,
    .services-section,
    .blog-section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .about-description {
        font-size: 16px;
    }
    
    .service-content,
    .blog-content {
        padding: 20px;
    }
}

/* ===== MODERN FOOTER STYLES ===== */
.site-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ecf0f1;
    padding: 0;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71, #e74c3c, #f39c12);
    background-size: 300% 300%;
    animation: gradient 8s ease infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.footer-top {
    padding: 25px 0 20px;
    position: relative;
    z-index: 1;
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
}

.footer-widget {
    flex: 1 1 25%;
    padding: 15px;
    min-width: 250px;
    position: relative;
}

.footer-widget::after {
    content: '';
    position: absolute;
    top: 15px;
    right: 0;
    height: calc(100% - 30px);
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.footer-widget:last-child::after {
    display: none;
}

.footer-logo {
    margin-bottom: 25px;
    display: inline-block;
}

.footer-logo img {
    display: none;
    max-height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.footer-logo:hover img {
    transform: scale(1.05);
}

.footer-title {
    font-size: 24px;
    color: #fff;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 10px;
    width: 271px;
    height: 1px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    margin-top: 40px;
}

.footer-description {
    color: #b8c5d6;
    margin-bottom: 30px;
    line-height: 1.8;
    font-size: 15px;
}


.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.social-link i {
    position: relative;
    z-index: 1;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.social-link:hover::before {
    opacity: 1;
}

.widget-title {
    color: #fff;
    font-size: 18px;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(52, 152, 219, 0.3);
    position: relative;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 14px;
    position: relative;
    padding-left: 20px;
}

.footer-links li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
    transition: all 0.3s ease;
}

.footer-links li a {
    color: #b8c5d6;
    transition: all 0.3s ease;
    font-size: 15px;
    display: block;
}

.footer-links li:hover::before {
    left: 5px;
    color: #2ecc71;
}

.footer-links li:hover a {
    color: #fff;
    padding-left: 5px;
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
    color: #b8c5d6;
    font-size: 15px;
}

.contact-info li i {
    color: #3498db;
    margin-right: 15px;
    margin-top: 3px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.newsletter-text {
    color: #b8c5d6;
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 15px;
}

.newsletter-form {
    position: absolute;
}

.newsletter-form input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
    outline: none;
    border-color: #3498db;
    background-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.btn-newsletter {
    position: absolute;
    right: -133px;
    top: 0%;
    transform: translateY(-50%);
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: #fff;
    border: none;
    padding: 14px 15px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.btn-newsletter:hover {
    transform: translateY(-50%) translateY(-2px);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
}

.footer-bottom {
    background-color: rgba(15, 15, 30, 0.7);
    backdrop-filter: blur(10px);
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.copyright p {
    margin: 0;
    color: #b8c5d6;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.copyright p::before {
    content: '©';
    margin-right: 5px;
    font-size: 16px;
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
}

.footer-bottom-links a {
    color: #b8c5d6;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.footer-bottom-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    transition: width 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #fff;
}

.footer-bottom-links a:hover::after {
    width: 100%;
}

/* ============================================
   BOUTON RETOUR HAUT
   ============================================ */

#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 999999;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
    pointer-events: none;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

#back-to-top:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.5);
}

#back-to-top svg {
    width: 22px;
    height: 22px;
}
/* Decorative elements */
.site-footer::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.1) 0%, rgba(52, 152, 219, 0) 70%);
    z-index: 0;
}

.site-footer::before {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46, 204, 113, 0.05) 0%, rgba(46, 204, 113, 0) 70%);
    z-index: 0;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* ===== RESPONSIVE STYLES ===== */
@media screen and (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-navigation {
        display: none;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .hero-text-inner {
        padding: 30px;
    }
    
    .btn {
        padding: 14px 30px;
        font-size: 15px;
    }
    
    .footer-widget {
        flex: 1 1 50%;
    }
    
    .footer-widget::after {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        min-height: auto;
    }
    
    .hero-image-column,
    .hero-text-column {
        flex: 1 1 100%;
        height: 40vh;
    }
    
    .hero-image-column {
        order: 2;
    }
    
    .hero-text-column {
        order: 1;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        min-height: 50vh;
    }
    
    .hero-image {
        position: relative;
        height: 100%;
    }
    
    .hero-text-inner {
        padding: 30px 20px;
    }
    
    .hero-title {
        font-size: 36px;
        margin-bottom: 20px;
    }
    
    .hero-title::after {
        width: 80px;
        bottom: -10px;
    }
    
    .hero-description {
        font-size: 15px;
        margin-bottom: 25px;
        max-width: 100%;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .slide-content h2 {
        font-size: 22px;
    }
    
    .slide-content p {
        font-size: 14px;
    }
    
    .slider-nav button {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin: 0 10px;
    }
    
    .footer-top {
        padding: 50px 0 30px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .site-header .container {
        padding: 20px 15px;
    }
    
    .site-branding img {
        max-height: 100px;
        position: absolute;
        margin-top: -45px;
    }
    
    .site-title {
        font-size: 20px;
        margin-left: 10px;
    }
    
    .mobile-navigation {
        width: 100%;
        right: -100%;
    }
    
    .hero-text-inner {
        padding: 25px 15px;
    }
    
    .hero-title {
        font-size: 30px;
    }
    
    .hero-description {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .btn {
        padding: 12px 22px;
        font-size: 13px;
    }
    
    .hero-text-column {
        min-height: 60vh;
    }
    
    .hero-image-column {
        height: 35vh;
    }
    
    .slide-content {
        padding: 25px 15px 15px;
    }
    
    .slide-content h2 {
        font-size: 18px;
    }
    
    .slide-content p {
        font-size: 13px;
    }
    
    .slider-nav button {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .slider-dots button {
        width: 8px;
        height: 8px;
    }
    
    .footer-widget {
        flex: 1 1 100%;
    }
    
    .newsletter-form {
        display: flex;
        position:relative;
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-newsletter {
        position: static;
        transform: none;
        width: 100%;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

