/*
Theme Name: Rupson
Theme URI: https://rupson.com.np
Author: Rupson Private Limited
Author URI: https://rupson.com.np
Description: A modern, stylish WordPress theme designed for construction and real estate companies. Features a beautiful landing page, project showcase, photo gallery, team section, and fully customizable image placeholders for admin use.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rupson
Tags: construction, real-estate, business, corporate, modern, responsive, custom-header, custom-menu, featured-images, footer-widgets, full-width-template, sticky-post, theme-options, translation-ready
*/

/* ============================================
   RESET & BASE STYLES - 2025 MODERN DESIGN
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Modern Color Palette - Rupson Blue (from Letterhead) */
    --primary-color: #2563eb;
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    --secondary-color: #0a0a0a;
    --accent-color: #3b82f6;
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    
    /* Text Colors */
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #8a8a8a;
    --text-white: #ffffff;
    
    /* Background Colors */
    --bg-white: #ffffff;
    --bg-light: #fafafa;
    --bg-dark: #0a0a0a;
    --bg-glass: rgba(255, 255, 255, 0.1);
    --bg-glass-strong: rgba(255, 255, 255, 0.85);
    
    /* Shadows - Modern Depth */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 60px rgba(0, 0, 0, 0.16);
    --shadow-glow: 0 0 30px rgba(37, 99, 235, 0.3);
    
    /* Border & Spacing */
    --border-color: #e8e8e8;
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
    
    /* Transitions - Smooth & Modern */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

body {
    font-family: 'Fira Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 70px; /* Account for fixed header */
}

.hero-title {
    font-family: 'Mukta', 'Fira Sans', sans-serif !important;
}

@media (max-width: 768px) {
    body {
        padding-top: 60px; /* Smaller header on mobile */
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.section {
    padding: clamp(4rem, 8vw, 8rem) 0;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-gradient);
    margin: 1.5rem auto;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-medium);
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 4rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 400;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background: var(--primary-gradient);
    color: var(--text-white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: none;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.btn:active {
    transform: translateY(-1px) scale(1);
}

.btn-outline {
    background: var(--bg-glass-strong);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
    background: var(--primary-gradient);
    color: var(--text-white);
    border-color: transparent;
}

/* ============================================
   HEADER & NAVIGATION - GLASSMORPHISM 2025
   ============================================ */
.site-header {
    background: var(--bg-glass-strong);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: var(--shadow-md);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(0);
}

.site-header.hidden {
    transform: translateY(-100%);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
}

.site-logo {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.02em;
    position: relative;
}

.site-logo a {
    color: var(--primary-color);
    text-decoration: none;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    letter-spacing: -0.03em;
    position: relative;
    transition: var(--transition);
    display: inline-block;
}

.site-logo a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.site-logo:hover a {
    transform: translateY(-2px);
}

.site-logo:hover a::after {
    transform: scaleX(1);
}

.site-logo img {
    max-height: 40px;
    width: auto;
    transition: var(--transition);
    filter: drop-shadow(0 2px 8px rgba(37, 99, 235, 0.2));
}

.site-header.scrolled .site-logo img {
    max-height: 36px;
}

.site-logo:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.3));
}

.main-navigation ul {
    display: flex;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: center;
}

.main-navigation a {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 0.4rem 0;
    transition: var(--transition-fast);
}

.main-navigation a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 10px;
    transition: var(--transition);
}

.main-navigation a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.main-navigation a:hover::before,
.main-navigation a.active::before {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    width: 40px;
    height: 40px;
    z-index: 1001;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition);
    position: relative;
}

.mobile-menu-toggle span::before,
.mobile-menu-toggle span::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition);
    left: 0;
}

.mobile-menu-toggle span::before {
    top: -9px;
}

.mobile-menu-toggle span::after {
    bottom: -9px;
}

.mobile-menu-toggle.active span {
    background: transparent;
}

.mobile-menu-toggle.active span::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-toggle.active span::after {
    bottom: 0;
    transform: rotate(-45deg);
}

.mobile-menu-toggle:hover {
    background: var(--bg-light);
}

.mobile-menu-toggle:hover span,
.mobile-menu-toggle:hover span::before,
.mobile-menu-toggle:hover span::after {
    background: var(--primary-color);
}

/* ============================================
   HERO SECTION - MODERN 2025 DESIGN
   ============================================ */
.hero-section {
    font-family: 'Mukta', 'Fira Sans', sans-serif !important;
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: clamp(10rem, 18vw, 15rem);
    padding-top: clamp(4rem, 8vw, 6rem);
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 50%, #1d4ed8 100%) !important;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-white);
    text-align: center;
    overflow: hidden;
    will-change: transform;
}

/* Disable fixed background on mobile for better performance */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
        align-items: center; /* Center content instead of flex-end */
        padding-top: 0; /* Remove top padding on mobile */
        padding-bottom: clamp(4rem, 8vw, 6rem); /* Reduce bottom padding */
    }
    
    .hero-content {
        margin-top: 0; /* Ensure no extra margin */
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9) 0%, rgba(30, 64, 175, 0.95) 100%),
                radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 70%),
                radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
    will-change: transform;
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--bg-white), transparent);
    pointer-events: none;
}

.hero-content {
    max-width: 1100px;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
    z-index: 2;
    position: relative;
}

.hero-title {
    font-family: 'Mukta', 'Fira Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Droid Sans', 'Helvetica Neue', sans-serif !important;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    margin-bottom: 3rem;
    color: #ffffff;
    opacity: 0.95;
    line-height: 1.6;
    font-weight: 400;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

.hero-buttons .btn-outline {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-buttons .btn-outline:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ============================================
   FEATURES SECTION - MODERN CARDS 2025
   ============================================ */
.features-section {
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* Ensure 2x2 grid on desktop screens - applies to both homepage and about page */
@media (min-width: 769px) {
    .features-section .features-grid,
    .section .features-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        display: grid !important;
        max-width: 1100px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

.feature-card {
    background: var(--bg-white);
    padding: clamp(2rem, 4vw, 2.5rem);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: transparent;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: var(--primary-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
}

.feature-icon svg,
.feature-icon i {
    width: 40px;
    height: 40px;
    stroke-width: 2;
}

.feature-card:hover .feature-icon {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.feature-card h3 {
    font-size: clamp(1.2rem, 2vw, 1.4rem);
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--text-medium);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ============================================
   PROJECTS SECTION - BENTO GRID 2025
   ============================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.project-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.project-image {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

/* Enhanced Image Container Styles */
.image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    background: var(--bg-light);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition-slow);
}

.image-container:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.image-container:hover img {
    transform: scale(1.08);
}

.image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.image-container:hover::after {
    opacity: 1;
}

/* Image with Overlay Text */
.image-with-overlay {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
}

.image-overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    color: var(--text-white);
    transform: translateY(100%);
    transition: var(--transition);
}

.image-with-overlay:hover .image-overlay-content {
    transform: translateY(0);
}

/* Responsive Image Wrapper */
.responsive-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    background: var(--bg-light);
}

.responsive-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-image::after {
    opacity: 1;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: var(--transition);
}

.project-card:hover .project-content h3 {
    color: var(--primary-color);
}

.project-content p {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    flex-grow: 1;
}

/* ============================================
   GALLERY SECTION - MASONRY STYLE 2025
   ============================================ */
.gallery-section {
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 4rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    aspect-ratio: 4/3;
    background: var(--bg-light);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-xl);
    z-index: 10;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.15);
}

.gallery-item::before {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 3rem;
    z-index: 2;
    transition: var(--transition);
    opacity: 0;
}

.gallery-item:hover::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.4) 0%, rgba(59, 130, 246, 0.4) 100%);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ============================================
   TEAM SECTION - MODERN CARDS 2025
   ============================================ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.team-grid-two-column {
    grid-template-columns: repeat(2, 1fr);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
}

.team-grid-three-column {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.team-member {
    text-align: center;
    background: var(--bg-white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.team-member:hover::before {
    transform: scaleX(1);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.team-photo {
    width: 220px;
    height: 220px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    overflow: hidden;
    border: 5px solid transparent;
    background-clip: padding-box;
    position: relative;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.team-photo::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    padding: 5px;
    background: var(--primary-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition);
}

.team-member:hover .team-photo::before {
    opacity: 1;
}

.team-member:hover .team-photo {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-member:hover .team-photo img {
    transform: scale(1.1);
}

.team-member h3 {
    font-size: clamp(1.2rem, 2vw, 1.4rem);
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.team-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.team-bio {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   ABOUT PAGE - MODERN 2025
   ============================================ */
.about-hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a1a1a 50%, var(--accent-color) 100%);
    color: var(--text-white);
    padding: clamp(2.5rem, 4vw, 3.5rem) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.about-hero p {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-top: 1rem;
    opacity: 0.95;
    font-weight: 400;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.about-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.about-content h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--text-medium);
    line-height: 1.8;
    font-size: 1.1rem;
}

.stats-section {
    background: var(--primary-gradient);
    color: var(--text-white);
    padding: clamp(4rem, 8vw, 6rem) 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="30" cy="30" r="2"/></g></svg>');
    opacity: 0.5;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-item h3 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.stat-item p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0.95;
    font-weight: 500;
}

/* ============================================
   FOOTER - MODERN 2025
   ============================================ */
.site-footer {
    background: linear-gradient(180deg, var(--secondary-color) 0%, #000000 100%);
    color: var(--text-white);
    padding: clamp(4rem, 8vw, 6rem) 0 2rem;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--primary-gradient);
    opacity: 0.3;
}

/* Footer Social Section - Single Line (Above Copyright) */
.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 0;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.footer-social-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-right: 0.5rem;
}

.footer-social-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-social-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.footer-social-links a:hover {
    color: var(--primary-color);
        background: rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.footer-social-links a i {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.footer-social-links a span {
    display: inline-block;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.footer-widget h3 {
    font-size: clamp(1.2rem, 2vw, 1.4rem);
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.footer-widget p,
.footer-widget a {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 0.75rem;
    display: block;
    transition: var(--transition-fast);
}

.footer-widget a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-widget ul li {
    margin-bottom: 0.75rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-fast);
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

/* ============================================
   RESPONSIVE DESIGN - 2025 MOBILE FIRST
   ============================================ */
/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 400px;
        height: 100vh;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 250, 250, 0.98) 100%);
        backdrop-filter: blur(30px) saturate(180%);
        -webkit-backdrop-filter: blur(30px) saturate(180%);
        box-shadow: -4px 0 40px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        padding-top: 80px;
    }

    .main-navigation.active {
        right: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 0.5rem;
        align-items: stretch;
    }

    .main-navigation a {
        padding: 1.25rem 1.5rem;
        border-radius: var(--border-radius);
        display: block;
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--text-dark);
        border-left: 3px solid transparent;
        transition: var(--transition);
        position: relative;
    }

    .main-navigation a::before {
        display: none;
    }

    .main-navigation a::after {
        content: '→';
        position: absolute;
        right: 1.5rem;
        opacity: 0;
        transform: translateX(-10px);
        transition: var(--transition);
    }

    .main-navigation a:hover,
    .main-navigation a.active {
        background: linear-gradient(90deg, rgba(37, 99, 235, 0.1) 0%, transparent 100%);
        border-left-color: var(--primary-color);
        transform: translateX(5px);
        color: var(--primary-color);
    }

    .main-navigation a:hover::after,
    .main-navigation a.active::after {
        opacity: 1;
        transform: translateX(0);
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    .hero-section {
        min-height: 600px;
        background-attachment: scroll;
    }

    .hero-content {
        padding: 0 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        max-width: 100%;
    }

    .projects-grid,
    .team-grid,
    .team-grid-two-column,
    .team-grid-three-column {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .team-grid-two-column {
        margin-bottom: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .section {
        padding: clamp(3rem, 6vw, 4rem) 0;
    }

    .container {
        padding: 0 1.25rem;
    }

    /* Better image containers on mobile */
    .project-image,
    .gallery-item,
    .team-photo {
        height: auto;
        min-height: 250px;
    }

    /* Contact page responsive */
    .page-contact .section > .container > div {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* About page responsive */
    .about-content .content-wrapper {
        padding: 0 1rem;
    }

    /* Careers page responsive */
    .page-careers .content-wrapper > div {
        padding: 2rem 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .section {
        padding: clamp(2.5rem, 5vw, 3.5rem) 0;
    }

    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
        margin-bottom: 1rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .btn {
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
        width: 100%;
    }

    .hero-section {
        min-height: 500px;
        padding-top: 0; /* No top padding on very small screens */
        padding-bottom: clamp(3rem, 8vw, 5rem); /* Reduced bottom padding */
        align-items: center; /* Center content */
    }
    
    .hero-content {
        padding-top: 0;
        margin-top: 0;
    }

    .hero-title {
        font-size: clamp(2rem, 7vw, 3rem);
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-social {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-social-label {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .footer-social-links {
        justify-content: center;
        gap: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-card,
    .project-card,
    .team-member {
        padding: 1.5rem;
    }

    .main-navigation {
        width: 90%;
        max-width: 320px;
    }

    .container {
        padding: 0 1rem;
    }

    /* Better touch targets */
    a, button {
        min-height: 44px;
        min-width: 44px;
    }

    /* Image containers on small screens */
    .image-container,
    .responsive-image-wrapper {
        border-radius: var(--border-radius);
    }

    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }

    html {
        overflow-x: hidden;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.placeholder-image {
    background: linear-gradient(135deg, var(--bg-light) 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    min-height: 200px;
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.placeholder-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
    border-radius: var(--border-radius);
    position: relative;
    z-index: 1;
}

.placeholder-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(37, 99, 235, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
    z-index: 0;
}

.placeholder-image:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0.1) 100%);
    transform: scale(1.02);
}

.placeholder-image:hover img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* ============================================
   ADDITIONAL MODERN EFFECTS 2025
   ============================================ */

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: var(--primary-color);
    color: var(--text-white);
}

::-moz-selection {
    background: var(--primary-color);
    color: var(--text-white);
}

/* Focus States */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading {
    animation: shimmer 2s infinite;
    background: linear-gradient(to right, #f0f0f0 0%, #e0e0e0 50%, #f0f0f0 100%);
    background-size: 1000px 100%;
}

/* ============================================
   MODERN 2025 ENHANCEMENTS
   ============================================ */

/* Gradient Text Effect */
.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass Card Effect */
.glass-card {
    background: var(--bg-glass-strong);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-lg);
}

/* Modern Input Fields */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-white);
    color: var(--text-dark);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

/* Modern Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 6px;
    border: 2px solid var(--bg-light);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gradient);
}

/* Page Transitions */
.page-content {
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover Lift Effect */
.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* Pulse Animation for CTAs */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Modern Badge/Tag */
.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-gradient);
    color: var(--text-white);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Card Hover Glow */
.card-glow:hover {
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

/* Modern Divider */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 3rem 0;
}

/* Text Gradient Background */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modern Link Hover */
a.link-modern {
    position: relative;
    color: var(--primary-color);
    font-weight: 600;
}

a.link-modern::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition);
}

a.link-modern:hover::after {
    width: 100%;
}

/* Gallery Image Enhancement */
.gallery-item img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Project Image Enhancement */
.project-image img {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image img {
    transform: scale(1.15);
}

/* Team Photo Enhancement */
.team-photo img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-member:hover .team-photo img {
    transform: scale(1.1);
}

/* Responsive Images */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    max-width: 100%;
    height: auto;
}

/* Content Area Images - Better styling for WordPress content */
.content-wrapper img,
.entry-content img,
.page-content img,
article img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin: 2rem auto;
    display: block;
    transition: var(--transition);
}

.content-wrapper img:hover,
.entry-content img:hover,
.page-content img:hover,
article img:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

/* Image Alignment in Content */
.content-wrapper img.alignleft,
.entry-content img.alignleft {
    float: left;
    margin: 1rem 2rem 1rem 0;
    max-width: 50%;
}

.content-wrapper img.alignright,
.entry-content img.alignright {
    float: right;
    margin: 1rem 0 1rem 2rem;
    max-width: 50%;
}

.content-wrapper img.aligncenter,
.entry-content img.aligncenter {
    display: block;
    margin: 2rem auto;
}

@media (max-width: 768px) {
    .content-wrapper img.alignleft,
    .content-wrapper img.alignright,
    .entry-content img.alignleft,
    .entry-content img.alignright {
        float: none;
        display: block;
        margin: 1.5rem auto;
        max-width: 100%;
    }
}

/* Modern Form Styling */
form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

form label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: block;
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   SINGLE POST TEMPLATE - MODERN DESIGN
   ============================================ */
.single-post-featured-image {
    width: calc(100% + 2 * clamp(2.5rem, 5vw, 4rem));
    max-height: 60vh;
    overflow: hidden;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    margin: calc(-1 * clamp(2.5rem, 5vw, 4rem)) calc(-1 * clamp(2.5rem, 5vw, 4rem)) 2rem;
}

.single-post-featured-image img {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: cover;
    object-position: center;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.single-post-content {
    background: var(--bg-light);
    padding-top: clamp(3rem, 6vw, 5rem);
    padding-bottom: 3rem;
}

.single-post-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: clamp(2.5rem, 5vw, 4rem);
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.single-post-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    flex-wrap: wrap;
}

.post-category,
.post-date {
    display: flex;
    align-items: center;
    color: var(--text-medium);
    font-size: 0.95rem;
    font-weight: 500;
}

.post-category i,
.post-date i {
    color: var(--primary-color);
    flex-shrink: 0;
}

.category-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    padding: 0.25rem 0.75rem;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 6px;
    display: inline-block;
}

.category-link:hover {
    background: rgba(37, 99, 235, 0.15);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.post-date time {
    color: var(--text-medium);
}

.single-post-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.single-post-body {
    color: var(--text-medium);
    line-height: 1.8;
    font-size: 1.1rem;
}

.single-post-body p {
    margin-bottom: 1.5rem;
}

.single-post-body h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--text-dark);
    margin: 2.5rem 0 1.5rem;
    line-height: 1.3;
}

.single-post-body h3 {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
    font-weight: 700;
    color: var(--text-dark);
    margin: 2rem 0 1rem;
    line-height: 1.3;
}

.single-post-body h4 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 600;
    color: var(--text-dark);
    margin: 1.5rem 0 1rem;
}

.single-post-body ul,
.single-post-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.single-post-body li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.single-post-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-style: italic;
    color: var(--text-dark);
}

.single-post-body a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: var(--transition);
}

.single-post-body a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.single-post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.single-post-tags i {
    color: var(--primary-color);
    flex-shrink: 0;
}

.tag-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.tag-link:hover {
    background: rgba(37, 99, 235, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.page-links {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
    font-weight: 600;
    color: var(--text-dark);
}

.page-links a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 6px;
    transition: var(--transition);
}

.page-links a:hover {
    background: rgba(37, 99, 235, 0.15);
}

@media (max-width: 768px) {
    .single-post-card {
        padding: 2rem 1.5rem;
        border-radius: var(--border-radius);
    }

    .single-post-featured-image {
        margin: -2rem -1.5rem 1.5rem;
        max-height: 50vh;
        border-radius: var(--border-radius) var(--border-radius) 0 0;
    }

    .single-post-featured-image img {
        max-height: 50vh;
        border-radius: var(--border-radius) var(--border-radius) 0 0;
    }

    .single-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .single-post-featured-image {
        max-height: 50vh;
    }
}

/* ============================================
   CATEGORY ARCHIVE - MODERN GRID DESIGN
   ============================================ */
.category-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a1a1a 50%, var(--primary-color) 100%);
    color: var(--text-white);
    padding: clamp(2.5rem, 4vw, 3.5rem) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.category-header-content {
    position: relative;
    z-index: 1;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.category-badge i {
    color: var(--text-white);
}

.category-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.category-posts {
    background: var(--bg-light);
    padding-top: 4rem;
}

.category-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.category-post-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    margin: 0;
    padding: 0;
    position: relative;
}

.category-post-card > a {
    text-decoration: none;
    color: inherit;
}

.category-post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.category-post-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--bg-light);
    position: relative;
    margin: 0;
    padding: 0;
    display: block;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.category-post-image a {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.category-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
    display: block;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
}

.category-post-card:hover .category-post-image img {
    transform: scale(1.1);
}

.category-post-image.placeholder {
    background: linear-gradient(135deg, var(--bg-light) 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content {
    text-align: center;
    color: var(--text-light);
}

.category-post-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.category-post-meta {
    margin-bottom: 0;
}

.post-date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-medium);
    font-size: 0.875rem;
    font-weight: 500;
}

.post-date i {
    color: var(--primary-color);
}

.category-post-title {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    font-weight: 600;
    margin-bottom: 0;
    margin-top: 0.75rem;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.category-post-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.category-post-title a:hover {
    color: var(--primary-color);
}


.category-pagination {
    text-align: center;
    padding: 3rem 0 2rem;
}

.category-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    margin: 0 0.25rem;
    background: var(--bg-white);
    color: var(--text-dark);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.category-pagination .page-numbers:hover,
.category-pagination .page-numbers.current {
    background: var(--primary-gradient);
    color: var(--text-white);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.category-pagination .page-numbers.current {
    cursor: default;
}

@media (max-width: 768px) {
    .category-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .category-post-image {
        height: 200px;
    }

    .category-post-content {
        padding: 1.25rem;
    }

    .category-header {
        padding: clamp(2rem, 4vw, 2.5rem) 0;
    }
}

/* ============================================
   NEWS PAGE - FEATURED + GRID LAYOUT
   ============================================ */
.news-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a1a1a 50%, var(--primary-color) 100%);
    color: var(--text-white);
    padding: clamp(2.5rem, 4vw, 3.5rem) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.news-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.news-page-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.news-page-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.news-featured {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.news-featured-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
}

.news-featured-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    overflow: hidden;
    background: var(--bg-light);
    position: relative;
    margin: 0;
    padding: 0;
    display: block;
}

.news-featured-image a {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.news-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
    transition: var(--transition-slow);
}

.news-featured-card:hover .news-featured-image img {
    transform: scale(1.05);
}

.news-featured-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-featured-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.news-category,
.news-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-medium);
    font-size: 0.9rem;
    font-weight: 500;
}

.news-category i,
.news-date i {
    color: var(--primary-color);
    flex-shrink: 0;
}

.news-category a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    padding: 0.25rem 0.75rem;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 6px;
    transition: var(--transition);
}

.news-category a:hover {
    background: rgba(37, 99, 235, 0.15);
}

.news-featured-title {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 800;
    margin-bottom: 0;
    margin-top: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.news-featured-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.news-featured-title a:hover {
    color: var(--primary-color);
}

.news-featured-excerpt {
    color: var(--text-medium);
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    align-self: flex-start;
}

.news-read-more:hover {
    color: var(--accent-color);
    transform: translateX(6px);
}

.news-read-more i {
    transition: var(--transition);
}

.news-read-more:hover i {
    transform: translateX(4px);
}

.news-grid-section {
    padding-top: 4rem;
}

.news-grid-heading {
    margin-top: 2rem !important;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.news-grid-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

.news-grid-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.news-grid-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--bg-light);
    position: relative;
    margin: 0;
    padding: 0;
    display: block;
}

.news-grid-image a {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.news-grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
    display: block;
    margin: 0;
    padding: 0;
    border: none;
}

.news-grid-card:hover .news-grid-image img {
    transform: scale(1.1);
}

.news-grid-image.placeholder {
    background: linear-gradient(135deg, var(--bg-light) 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-grid-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-grid-meta {
    margin-bottom: 0;
}

.news-grid-date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-medium);
    font-size: 0.875rem;
    font-weight: 500;
}

.news-grid-date i {
    color: var(--primary-color);
}

.news-grid-title {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    font-weight: 600;
    margin-bottom: 0;
    margin-top: 0.75rem;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.news-grid-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.news-grid-title a:hover {
    color: var(--primary-color);
}

.news-pagination {
    text-align: center;
    padding: 3rem 0 2rem;
}

.news-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    margin: 0 0.25rem;
    background: var(--bg-white);
    color: var(--text-dark);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.news-pagination .page-numbers:hover,
.news-pagination .page-numbers.current {
    background: var(--primary-gradient);
    color: var(--text-white);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.news-pagination .page-numbers.current {
    cursor: default;
}

@media (max-width: 768px) {
    .news-featured-card {
        grid-template-columns: 1fr;
    }

    .news-featured-image {
        min-height: 300px;
    }

    .news-featured-content {
        padding: 2rem 1.5rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .news-grid-image {
        height: 200px;
    }

    .news-grid-content {
        padding: 1.25rem;
    }
}

/* ============================================
   CONTACT PAGE - MOBILE FRIENDLY LAYOUT
   ============================================ */
.page-contact .contact-grid,
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form {
        order: -1; /* Move form to top on mobile */
    }
}

/* ============================================
   SINGLE POST CTA SECTION
   ============================================ */
.single-post-cta {
    position: relative;
}

.single-post-cta .btn {
    transition: all 0.3s ease;
}

.single-post-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.single-post-cta .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-white);
}

.single-post-cta a[href^="tel:"],
.single-post-cta a[href^="mailto:"] {
    transition: var(--transition);
}

.single-post-cta a[href^="tel"]:hover,
.single-post-cta a[href^="mailto:"]:hover {
    opacity: 0.8;
    transform: translateX(3px);
}

/* Related News Section */
.related-news-section {
    margin-top: 0;
}

@media (max-width: 768px) {
    .single-post-cta {
        padding: 3rem 0 !important;
    }
    
    .single-post-cta h2 {
        font-size: 1.75rem !important;
    }
    
    .single-post-cta p {
        font-size: 1rem !important;
        padding: 0 1rem;
    }
    
    .single-post-cta .btn {
        width: 100%;
        max-width: 300px;
        padding: 0.875rem 1.5rem !important;
        font-size: 1rem !important;
    }
    
    .single-post-cta > .container > div > div:last-child {
        flex-direction: column;
        gap: 1rem !important;
    }
}

