/*
Theme Name: Mindset Children Home
Theme URI: https://mahimzq.com
Author: Mahim Rahman
Author URI: https://mahimzq.com
Description: A fully customizable WordPress theme for Mindset Children Home.
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mindset-children-home
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-logo-link img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #ff6b35;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
                url('https://images.unsplash.com/photo-1544717297-fa95b6ee9643?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2069&q=80') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content {
    max-width: 900px;
    padding: 0 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 2rem;
    color: #f0f8ff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: 3rem;
    line-height: 1.8;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(255,107,53,0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,107,53,0.4);
    color: white;
    text-decoration: none;
}

.cta-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.cta-secondary:hover {
    background: white;
    color: #333;
}

/* Statistics Section */
.stats-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.stat-label {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* About Section */
.about-section {
    padding: 6rem 2rem;
    background: #f8f9fa;
}

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

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 3rem;
    color: #2c3e50;
    position: relative;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    display: block;
    margin: 1rem auto;
    border-radius: 2px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.about-text h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.about-text ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.about-text li {
    margin-bottom: 0.5rem;
}

.about-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Our Approach Section */
.approach-section {
    padding: 6rem 2rem;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 5px solid #ff6b35;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ff6b35;
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.feature-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #666;
}

/* Services Section */
.services-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.services-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    font-size: 1.2rem;
    line-height: 1.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.15);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-description {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.9;
}

/* Team Section */
.team-section {
    padding: 6rem 2rem;
    background: #f8f9fa;
}

.team-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.team-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.team-image {
    height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    overflow: hidden;
}

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

.team-content {
    padding: 2rem;
}

.team-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.team-role {
    color: #ff6b35;
    font-weight: 500;
    margin-bottom: 1rem;
}

.team-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
}

/* Why Choose Section */
.why-choose-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
}

.why-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    font-size: 1.2rem;
    line-height: 1.8;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.why-card {
    background: rgba(255,255,255,0.1);
    padding: 2.5rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    text-align: center;
}

.why-card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.why-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.why-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.why-description {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.9;
}

/* Testimonials Section */
.testimonials-section {
    padding: 6rem 2rem;
    background: white;
    position: relative;
}

.testimonials-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)),
                url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') center/cover;
    z-index: -1;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: rgba(255,255,255,0.95);
    padding: 3rem;
    border-radius: 20px;
    position: relative;
    border-left: 5px solid #ff6b35;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.testimonial-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    font-weight: 600;
    color: #2c3e50;
}

.testimonial-role {
    color: #666;
    font-size: 0.9rem;
}

/* Quick Logo Size Fix */
.custom-logo-link img {
    height: 60px !important;
    width: auto !important;
}

.logo-text {
    font-size: 2.2rem !important;
    font-weight: 800 !important;
}

/* Contact Section */
.contact-section {
    padding: 6rem 2rem;
    background: #1a1a1a;
    color: white;
}

.contact-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: white;
}

.contact-text {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.contact-details {
    margin-bottom: 3rem;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-detail span {
    margin-right: 1rem;
    font-size: 1.3rem;
    color: #ff6b35;
    min-width: 30px;
}

.contact-form {
    background: rgba(255,255,255,0.1);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.7);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b35;
    background: rgba(255,255,255,0.15);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.form-success-message {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: 8px;
}

/* Footer */
.footer {
    background: #0a0a0a;
    color: white;
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-text {
    margin-bottom: 2rem;
    opacity: 0.8;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-link {
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #ff6b35;
}

/* Post Grid Styles */
.posts-grid .post-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.posts-grid .post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.posts-grid .post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    animation: bounce 2s infinite;
    font-size: 1.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 1.5rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .features-grid,
    .services-grid,
    .team-grid,
    .why-choose-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(44, 62, 80, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .navbar {
        padding: 1rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .stats-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 2rem;
    }
    
    .features-grid,
    .services-grid,
    .team-grid,
    .why-choose-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .social-links {
        gap: 1rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .feature-card,
    .service-card,
    .why-card {
        padding: 2rem 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .navbar {
        padding: 0.75rem 1rem;
    }
}


/* Enhanced Logo Styling - Add to your style.css */

/* Logo Container */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Custom Logo (when uploaded) */
.custom-logo-link {
    display: inline-block;
    line-height: 0;
    transition: transform 0.3s ease;
}

.custom-logo-link:hover {
    transform: scale(1.05);
}

.custom-logo-link img {
    height: 60px !important; /* Increased from 40px */
    width: auto !important;
    max-width: 250px;
    display: block;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.3));
}

/* Text Logo (fallback when no image uploaded) */
.logo-text {
    font-size: 2.2rem !important; /* Increased from 1.8rem */
    font-weight: 800;
    color: white;
    text-decoration: none;
    white-space: nowrap;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: -0.5px;
    line-height: 1.1;
    transition: all 0.3s ease;
}

.logo-text:hover {
    color: #ff6b35;
    text-decoration: none;
    transform: scale(1.02);
}

/* Navigation adjustments for larger logo */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(15px);
    z-index: 1000;
    padding: 1.2rem 2rem; /* Slightly increased padding */
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    min-height: 80px; /* Ensure consistent height */
}

/* Responsive Logo Adjustments */
@media (max-width: 768px) {
    .custom-logo-link img {
        height: 45px !important;
        max-width: 180px;
    }
    
    .logo-text {
        font-size: 1.8rem !important;
    }
    
    .navbar {
        padding: 1rem;
        min-height: 70px;
    }
}

@media (max-width: 480px) {
    .custom-logo-link img {
        height: 40px !important;
        max-width: 150px;
    }
    
    .logo-text {
        font-size: 1.5rem !important;
    }
    
    .navbar {
        padding: 0.8rem 1rem;
        min-height: 65px;
    }
    
    .nav-container {
        justify-content: space-between;
    }
}




/* Logo Animation on Scroll */
.navbar.scrolled .custom-logo-link img {
    height: 50px !important;
    transition: height 0.3s ease;
}

.navbar.scrolled .logo-text {
    font-size: 1.9rem !important;
    transition: font-size 0.3s ease;
}

/* SOLID VIBRANT COLORS FOR ALL CARDS */
/* This completely replaces white backgrounds with solid colors */

/* Reset all card types */
.feature-card, .service-card, .team-card, .why-card, .testimonial-card, .post-card {
    border: none !important;
    border-left: none !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    padding: 2.5rem !important;
}

/* Remove any existing pseudo elements */
.feature-card::before, .service-card::before, .team-card::before, 
.why-card::before, .testimonial-card::before, .post-card::before {
    display: none !important;
}

/* CARD COLOR 1 - SOLID CORAL */
.features-grid .feature-card:nth-child(1),
.services-grid .service-card:nth-child(1),
.team-grid .team-card:nth-child(1),
.why-choose-grid .why-card:nth-child(1),
.testimonials-grid .testimonial-card:nth-child(1),
.posts-grid .post-card:nth-child(1) {
    background: #ff7675 !important;
    color: white !important;
}

.features-grid .feature-card:nth-child(1):hover,
.services-grid .service-card:nth-child(1):hover,
.team-grid .team-card:nth-child(1):hover,
.why-choose-grid .why-card:nth-child(1):hover,
.testimonials-grid .testimonial-card:nth-child(1):hover,
.posts-grid .post-card:nth-child(1):hover {
    background: #e84393 !important;
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 50px rgba(255,118,117,0.5) !important;
}

/* CARD COLOR 2 - SOLID PURPLE */
.features-grid .feature-card:nth-child(2),
.services-grid .service-card:nth-child(2),
.team-grid .team-card:nth-child(2),
.why-choose-grid .why-card:nth-child(2),
.testimonials-grid .testimonial-card:nth-child(2),
.posts-grid .post-card:nth-child(2) {
    background: #a29bfe !important;
    color: white !important;
}

.features-grid .feature-card:nth-child(2):hover,
.services-grid .service-card:nth-child(2):hover,
.team-grid .team-card:nth-child(2):hover,
.why-choose-grid .why-card:nth-child(2):hover,
.testimonials-grid .testimonial-card:nth-child(2):hover,
.posts-grid .post-card:nth-child(2):hover {
    background: #6c5ce7 !important;
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 50px rgba(162,155,254,0.5) !important;
}

/* CARD COLOR 3 - SOLID TEAL */
.features-grid .feature-card:nth-child(3),
.services-grid .service-card:nth-child(3),
.team-grid .team-card:nth-child(3),
.why-choose-grid .why-card:nth-child(3),
.testimonials-grid .testimonial-card:nth-child(3),
.posts-grid .post-card:nth-child(3) {
    background: #00cec9 !important;
    color: white !important;
}

.features-grid .feature-card:nth-child(3):hover,
.services-grid .service-card:nth-child(3):hover,
.team-grid .team-card:nth-child(3):hover,
.why-choose-grid .why-card:nth-child(3):hover,
.testimonials-grid .testimonial-card:nth-child(3):hover,
.posts-grid .post-card:nth-child(3):hover {
    background: #00b894 !important;
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 50px rgba(0,206,201,0.5) !important;
}

/* CARD COLOR 4 - SOLID GREEN */
.features-grid .feature-card:nth-child(4),
.services-grid .service-card:nth-child(4),
.team-grid .team-card:nth-child(4),
.why-choose-grid .why-card:nth-child(4),
.testimonials-grid .testimonial-card:nth-child(4),
.posts-grid .post-card:nth-child(4) {
    background: #55a3ff !important;
    color: white !important;
}

.features-grid .feature-card:nth-child(4):hover,
.services-grid .service-card:nth-child(4):hover,
.team-grid .team-card:nth-child(4):hover,
.why-choose-grid .why-card:nth-child(4):hover,
.testimonials-grid .testimonial-card:nth-child(4):hover,
.posts-grid .post-card:nth-child(4):hover {
    background: #2d3436 !important;
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 50px rgba(85,163,255,0.5) !important;
}

/* CARD COLOR 5 - SOLID ORANGE */
.features-grid .feature-card:nth-child(5),
.services-grid .service-card:nth-child(5),
.team-grid .team-card:nth-child(5),
.why-choose-grid .why-card:nth-child(5),
.testimonials-grid .testimonial-card:nth-child(5),
.posts-grid .post-card:nth-child(5) {
    background: #fdcb6e !important;
    color: #2c3e50 !important;
}

.features-grid .feature-card:nth-child(5):hover,
.services-grid .service-card:nth-child(5):hover,
.team-grid .team-card:nth-child(5):hover,
.why-choose-grid .why-card:nth-child(5):hover,
.testimonials-grid .testimonial-card:nth-child(5):hover,
.posts-grid .post-card:nth-child(5):hover {
    background: #e17055 !important;
    color: white !important;
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 50px rgba(253,203,110,0.5) !important;
}

/* CARD COLOR 6 - SOLID BLUE */
.features-grid .feature-card:nth-child(6),
.services-grid .service-card:nth-child(6),
.team-grid .team-card:nth-child(6),
.why-choose-grid .why-card:nth-child(6),
.testimonials-grid .testimonial-card:nth-child(6),
.posts-grid .post-card:nth-child(6) {
    background: #74b9ff !important;
    color: white !important;
}

.features-grid .feature-card:nth-child(6):hover,
.services-grid .service-card:nth-child(6):hover,
.team-grid .team-card:nth-child(6):hover,
.why-choose-grid .why-card:nth-child(6):hover,
.testimonials-grid .testimonial-card:nth-child(6):hover,
.posts-grid .post-card:nth-child(6):hover {
    background: #0984e3 !important;
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 50px rgba(116,185,255,0.5) !important;
}

/* Cycle colors for additional cards */
.features-grid .feature-card:nth-child(7),
.services-grid .service-card:nth-child(7),
.team-grid .team-card:nth-child(7),
.why-choose-grid .why-card:nth-child(7),
.testimonials-grid .testimonial-card:nth-child(7),
.posts-grid .post-card:nth-child(7) {
    background: #ff7675 !important;
    color: white !important;
}

.features-grid .feature-card:nth-child(8),
.services-grid .service-card:nth-child(8),
.team-grid .team-card:nth-child(8),
.why-choose-grid .why-card:nth-child(8),
.testimonials-grid .testimonial-card:nth-child(8),
.posts-grid .post-card:nth-child(8) {
    background: #a29bfe !important;
    color: white !important;
}

/* Text color overrides for all card content */
.feature-card .feature-title, 
.service-card .service-title, 
.team-card .team-name, 
.why-card .why-title, 
.testimonial-card .testimonial-author,
.post-card .entry-title a {
    color: inherit !important;
    font-weight: 700 !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3) !important;
}

.feature-card .feature-description, 
.service-card .service-description,
.team-card .team-description, 
.team-card .team-role,
.why-card .why-description, 
.testimonial-card .testimonial-content,
.testimonial-card .testimonial-role,
.post-card .entry-summary,
.post-card .entry-meta,
.post-card .read-more {
    color: inherit !important;
    opacity: 0.9 !important;
}

/* Icon colors */
.feature-icon, .service-icon, .why-icon {
    color: rgba(255,255,255,0.9) !important;
    font-size: 3rem !important;
    margin-bottom: 1.5rem !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3) !important;
}

/* Special styling for post cards */
.posts-grid .post-card {
    padding: 0 !important;
}

.posts-grid .post-card .post-content {
    padding: 2rem !important;
}

.posts-grid .post-card .post-thumbnail {
    filter: brightness(1.1) contrast(1.1) !important;
}

/* Team image styling */
.team-card .team-image {
    background: rgba(255,255,255,0.2) !important;
    margin-bottom: 1.5rem !important;
}

/* Ensure service section icons are visible */
.services-grid .service-card .service-icon {
    background: rgba(255,255,255,0.15) !important;
    border-radius: 50% !important;
    width: 80px !important;
    height: 80px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 1.5rem !important;
    backdrop-filter: blur(10px) !important;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}