/* ===========================================
   ADVERSITY MEDIA BLOG PAGE STYLES
   Matches portfolio + clients theme exactly
=========================================== */

/* Use exact same CSS variables as other pages */
:root {
    /* Primary Brand Colors */
    --primary-blue: #2B4C8F;
    --accent-orange: #FF8C42;
    --secondary-purple: #6B46C1;
    --accent-teal: #0EA5E9;
    
    /* Extended Palette */
    --primary-dark: #1e3660;
    --primary-light: #4a6bb3;
    --orange-dark: #e6792a;
    --orange-light: #ffab7a;
    --purple-dark: #553c9a;
    --purple-light: #8b5cf6;
    --teal-dark: #0284c7;
    --teal-light: #38bdf8;
    
    /* Neutral Colors */
    --white: #ffffff;
    --light-gray: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --black: #000000;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-purple) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-teal) 100%);
    --gradient-hero: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-purple) 50%, var(--accent-teal) 100%);
    
    /* Typography */
    --font-primary: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-secondary: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 20px;
    
    /* Effects */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-secondary);
    background: var(--white);
    color: var(--gray-800);
    margin: 0;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ========== NAVBAR - EXACT SAME AS OTHER PAGES ========== */
.main-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    transition: var(--transition);
    padding: 15px 0;
    border-bottom: 1px solid rgba(43, 76, 143, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 65px; /* FIXED - Bigger logo like other pages */
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.nav-logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    transition: var(--transition);
    padding: 8px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-blue);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

.get-started-btn {
    background: var(--gradient-hero) !important;
    color: var(--white) !important;
    padding: 12px 24px !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(43, 76, 143, 0.3) !important;
    transition: var(--transition) !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.get-started-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(43, 76, 143, 0.4) !important;
    color: var(--white) !important;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: var(--transition);
}

.menu-toggle:hover {
    background: rgba(43, 76, 143, 0.1);
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 3px;
    transition: var(--transition);
}

/* ========== HERO SECTION - FIXED Z-INDEX ========== */
.blog-hero {
    position: relative;
    text-align: center;
    padding: 150px 20px 100px;
    background: var(--gradient-hero);
    color: var(--white);
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: relative; /* FIXED - Added for z-index */
    z-index: 10; /* FIXED - Put text above bubbles */
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: var(--font-primary);
    line-height: 1.2;
    position: relative; /* FIXED - Added for z-index */
    z-index: 10; /* FIXED - Put text above bubbles */
}

.hero-content p {
    color: rgba(206, 205, 205, 0.9);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
    font-size: 1.1rem;
    position: relative; /* FIXED - Added for z-index */
    z-index: 10; /* FIXED - Put text above bubbles */
}

/* FIXED - Floating bubbles behind text */
.blog-hero .bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08); /* FIXED - More transparent */
    animation: floatBubble 12s ease-in-out infinite;
    z-index: 1; /* FIXED - Behind text but above background */
    pointer-events: none;
    backdrop-filter: blur(10px);
}

.bubble:nth-child(1) { width: 120px; height: 120px; top: 65%; left: 18%; animation-delay: 0s; }
.bubble:nth-child(2) { width: 90px; height: 90px; top: 75%; left: 70%; animation-delay: 3s; }
.bubble:nth-child(3) { width: 60px; height: 60px; top: 60%; left: 45%; animation-delay: 5s; }
.bubble:nth-child(4) { width: 100px; height: 100px; top: 40%; left: 85%; animation-delay: 2s; }
.bubble:nth-child(5) { width: 140px; height: 140px; top: 65%; left: 80%; animation-delay: 4s; }
.bubble:nth-child(6) { width: 140px; height: 140px; top: 10%; left: 15%; animation-delay: 7s; }

@keyframes floatBubble {
    0%, 100% { transform: translateY(0px); opacity: 0.7; }
    50% { transform: translateY(-25px); opacity: 1; }
}

/* ========== BLOG SECTION ========== */
.blogs-wrapper {
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.blog-card {
    display: flex;
    align-items: center;
    gap: 3rem;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.blog-img img {
    width: 100%;
    max-width: 450px;
    height: 300px;
    object-fit: cover;
}

.blog-info {
    flex: 1;
    padding: 2.5rem;
}

.blog-info h2 {
    font-size: 1.8rem;
    color: var(--gray-800);
    margin-bottom: 1rem;
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.3;
}

.blog-info p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.readmore-btn {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(43, 76, 143, 0.2);
}

.readmore-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(43, 76, 143, 0.3);
}

.hidden-section {
    display: none;
    margin-top: 1.5rem;
}

.hidden-section.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.mini-gallery {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.mini-gallery img {
    width: calc(50% - 0.5rem);
    height: 150px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* ========== WHATSAPP FLOAT - SAME AS OTHER PAGES ========== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse 2s infinite;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: var(--white);
    background: #128c7e;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ========== FOOTER - EXACT SAME AS OTHER PAGES ========== */
.main-footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-about {
    max-width: 350px;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1.5rem;
    object-fit: contain;
}

.footer-about p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-400);
    margin-bottom: 2rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-icons a:hover {
    background: var(--accent-orange);
    transform: scale(1.1);
    color: var(--white);
}

.footer-links h3,
.footer-services h3,
.footer-contact h3 {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-family: var(--font-primary);
}

.footer-links ul,
.footer-services ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 0.8rem;
}

.footer-links a,
.footer-services a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    display: block;
    padding: 4px 0;
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--accent-orange);
    padding-left: 8px;
}

.footer-contact p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: var(--gray-400);
    display: flex;
    align-items: center;
}

.footer-contact i {
    color: var(--accent-orange);
    margin-right: 12px;
    width: 16px;
    font-size: 1rem;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--gray-700);
    margin-top: 3rem;
    padding-top: 2rem;
    color: var(--gray-400);
    font-size: 0.9rem;
}

/* ========== RESPONSIVE - MOBILE NAVBAR COLLAPSE FIX ========== */
@media (max-width: 991.98px) {
    /* FIXED - Mobile navbar like other pages */
    .nav-logo img {
        height: 60px; /* Slightly smaller on mobile */
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 10px;
        right: 10px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        box-shadow: 0 10px 40px rgba(43, 76, 143, 0.15);
        border: 1px solid rgba(43, 76, 143, 0.1);
        border-radius: 12px;
        padding: 1.5rem;
        flex-direction: column;
        gap: 0;
        margin-top: 0.5rem;
        z-index: 1050;
        animation: slideDown 0.4s ease;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        margin: 0;
    }

    .nav-links a {
        padding: 15px 20px;
        font-size: 16px;
        color: var(--gray-700);
        border-bottom: 1px solid rgba(43, 76, 143, 0.08);
        border-radius: 6px;
        margin: 2px 0;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        min-height: 44px;
        width: 100%;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: var(--primary-blue);
        background: rgba(43, 76, 143, 0.08);
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    .get-started-btn {
        margin-top: 1rem !important;
        width: 100% !important;
        max-width: 280px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
    }

    .menu-toggle {
        display: flex;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .blog-card {
        flex-direction: column;
        text-align: center;
        gap: 0;
    }

    .blog-img img {
        max-width: 100%;
        height: 250px;
    }

    .blog-info {
        padding: 2rem;
    }

    .mini-gallery img {
        width: 100%;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .blog-info {
        padding: 1.5rem;
    }

    .whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse 2s infinite;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}
/* ========== BLOG IMAGE FIXES - CLEAN VERSION WITH EQUAL SPACING ========== */

/* Blog Card Image Container */
.blog-img {
    flex-shrink: 0; /* Prevent shrinking */
    width: 450px; /* Fixed width */
    height: 300px; /* Fixed height */
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    background: transparent; /* NO extra background */
    display: flex;
    align-items: center;
    justify-content: center; /* Center for equal spacing */
    padding: 0;
    position: relative; /* For proper overflow handling */
}

/* Blog Card Images - EQUAL SPACING ALL SIDES */
.blog-img img {
    width: 85%; /* Image is 85% of container width */
    height: 85%; /* Image is 85% of container height */
    object-fit: cover;
    object-position: center center;
    transition: transform 0.3s ease;
    border-radius: var(--border-radius-lg); /* Rounded corners */
    transform-origin: center center; /* Scale from center */
}

/* Hover effect for images - FIXED CORNER ISSUE */
.blog-card:hover .blog-img img {
    transform: scale(1.05);
}

/* CRITICAL FIX - Prevent border-radius distortion on hover */
.blog-img img:hover {
    border-radius: var(--border-radius-lg) !important; /* Force curved corners */
}

/* Mobile specific image fixes - EQUAL SPACING ALL SIDES */
@media (max-width: 768px) {
    .blog-img {
        width: 100%;
        height: 250px;
        margin-bottom: 0;
        justify-content: center; /* Center on mobile */
        background: transparent; /* NO gray background - keep clean */
    }
    
    .blog-img img {
        width: 85%; /* CONSISTENT - 85% for equal spacing (7.5% on all sides) */
        height: 85%; /* CONSISTENT - 85% for equal spacing (7.5% on all sides) */
        object-fit: cover;
        object-position: center center;
        border-radius: var(--border-radius-lg); /* Keep rounded */
    }
}

/* Very small screens - Same equal spacing */
@media (max-width: 480px) {
    .blog-img {
        height: 220px;
        background: transparent; /* NO gray background */
    }
    
    .blog-img img {
        width: 85%; /* CONSISTENT - Same 85% for equal spacing */
        height: 85%; /* CONSISTENT - Same 85% for equal spacing */
        border-radius: var(--border-radius); /* Slightly smaller radius on very small screens */
    }
}

/* Mini gallery images - FIXED ALIGNMENT */
.mini-gallery img {
    width: calc(50% - 0.5rem);
    height: 150px;
    object-fit: cover;
    object-position: center center;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    transform-origin: center center; /* Scale from center */
}

.mini-gallery img:hover {
    transform: scale(1.02);
    border-radius: var(--border-radius) !important; /* Keep corners curved */
}

/* Mobile mini gallery - Clean version */
@media (max-width: 768px) {
    .mini-gallery img {
        width: calc(50% - 0.5rem); /* Keep 2 columns on mobile */
        height: 140px; /* Slightly reduced height */
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .mini-gallery img {
        width: 100%; /* Single column on very small screens */
        height: 160px;
    }
}

/* BONUS - Better visual consistency */
.blog-card {
    overflow: hidden; /* Prevent any overflow issues */
}

.blog-card .blog-img {
    position: relative;
}

/* Ensure smooth transitions */
.blog-img img,
.mini-gallery img {
    will-change: transform; /* Optimize for animations */
    backface-visibility: hidden; /* Prevent flickering */
}

