/* Custom CSS for The Family Estate Plan Record Book Website */

:root {
    --primary-color: #1e88e5;     /* Estate Planning Publishers blue */
    --secondary-color: #1565c0;   /* Darker shade of the primary blue */
    --accent-color: #fee995;      /* Keeping your existing accent color */
    --success-color: #27ae60;     /* Keeping success color */
    --warning-color: #f39c12;     /* Keeping warning color */
    --light-color: #ecf0f1;       /* Keeping light color */
    --dark-color: #0d47a1;        /* Dark blue instead of dark gray */
    --text-muted: #6c757d;        /* Keeping muted text color */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Poppins', serif;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--primary-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Custom Colors */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: #fee995 2px solid;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.text-accent {
    color: var(--accent-color) !important;
}

.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-accent:hover {
    background-color: #c0392b;
    border-color: #c0392b;
    color: white;
    transform: translateY(-2px);
}

/* Gradients */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}



.navbar {
    padding: 1.5px 0;
    transition: var(--transition);
    background-color: var(--primary-color);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    color: var(--secondary-color);
}

.navbar-nav .nav-link:hover {
    background-color: rgba(44, 62, 80, 0.1);
    color: #222;
}

/* Hero Section */
.hero-section {
    min-height: 50vh !important;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,0 1000,300 1000,1000 0,700"/></svg>');
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-image {
    position: relative;
   
    width: 409px;
    height: 600px;

}

.book-mockup {
    perspective: 1000px;
    align-items: center;
    display: block;
    background: no-repeat center center;
    background-size: cover;
}

.book-shadow {
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    transform: rotateX(-10deg) ;
    transition: var(--transition);
}

.book-shadow:hover {
    transform: scale(1.03);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Benefits Section */
.benefit-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
    box-shadow: var(--box-shadow);
}

/* Preview Section */
/* Enhanced Preview Section Styles */
#preview {
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

#preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(44,62,80,0.02)" points="0,200 1000,0 1000,800 0,1000"/></svg>');
    z-index: 1;
}

.preview-container {
    position: relative;
    z-index: 2;
}

/* Custom Carousel Styles */
.preview-carousel {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    background: white;
    position: relative;
}

.carousel-inner {
    border-radius: 20px;
}

.carousel-item {
    padding: 3rem;
    min-height: 500px;
    transition: transform 0.8s ease-in-out;
}

.carousel-item.active {
    animation: slideInFromRight 0.8s ease-in-out;
}

@keyframes slideInFromRight {
    from {
        transform: translateX(20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.preview-image {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.preview-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

.preview-image img {
    width: 409px;
    height: 600px;
    border-radius: 16px;
    transition: var(--transition);
}

.carousel-item:hover .preview-image img {
    transform: scale(1.02);
}

/* Content Styling */
.preview-content h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
}

.preview-content h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.preview-content .lead {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(44, 62, 80, 0.03);
    border-radius: 8px;
    transition: var(--transition);
}

.feature-list li:hover {
    background: rgba(44, 62, 80, 0.06);
    transform: translateX(5px);
}

.feature-list li i {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}


/* Enhanced Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 45px;
    height: 45px;
    background: rgba(44, 62, 80, 0.9);
    border-radius: 50%;
    top: auto;
    bottom: 30px;
    transform: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    opacity: 0.8;
    margin-top: 50px !important;
}

.carousel-control-prev {
    left: 50%;
    margin-left: -70px;
}

.carousel-control-next {
    right: 50%;
    margin-right: -70px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--accent-color);
    transform: scale(1.15);
    box-shadow: 0 12px 35px rgba(231, 76, 60, 0.3);
    opacity: 1;
    color: var(--primary-color);
}

/* Progress Bar */
.carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    width: 0;
    transition: width 0.1s linear;
}

/* Responsive Design */
@media (max-width: 991px) {
    .carousel-item {
        padding: 2rem;
        text-align: center;
    }
    
    .carousel-item .row {
        flex-direction: column-reverse;
    }
    
    .preview-content {
        margin-top: 2rem;
    }
    
    .preview-content h3 {
        font-size: 1.7rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
    }
    
    .carousel-control-prev {
        left: -15px;
    }
    
    .carousel-control-next {
        right: -15px;
    }
}

@media (max-width: 767px) {
    #preview {
        padding: 3rem 0;
    }
    
    .carousel-item {
        padding: 1.5rem;
        min-height: 400px;
    }
    
    .preview-content h3 {
        font-size: 1.5rem;
    }
    
    .preview-content .lead {
        font-size: 1rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
        top: 20px;
        transform: none;
    }
    
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        right: 10px;
    }
}



/* Section Header Enhancements */
.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header h2::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Fade in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Testimonials */
/* Testimonials Section Styles */
.testimonial-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    margin: 0 10px; /* Add margin for spacing between cards */
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stars {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.stars i {
    color: #ffc107;
}

blockquote {
    font-style: italic;
    line-height: 1.6;
    color: var(--text-muted);
    flex-grow: 1;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.testimonial-author {
    margin-top: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 1rem;
}

.testimonial-author strong {
    color: var(--primary-color);
    font-weight: 600;
}

.testimonial-author small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Custom Carousel Styles */
.testimonials-carousel {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 0; /* Remove gap as we're using margin on cards */
}

.carousel-slide {
    flex: 0 0 auto;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Desktop: Show 3 cards per slide */
@media (min-width: 992px) {
    .carousel-slide {
        width: calc(100% / 3);
    }
}

/* Tablet: Show 2 cards per slide */
@media (min-width: 768px) and (max-width: 991px) {
    .carousel-slide {
        width: calc(100% / 2);
    }
}

/* Mobile: Show 1 card per slide */
@media (max-width: 767px) {
    .carousel-slide {
        width: 100%;
    }
    
    .testimonial-card {
        margin: 0 5px;
    }
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
}

.carousel-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}





/* Loading animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section styling */
.testimonials-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* CTA Section */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,1000 1000,700 1000,1000"/></svg>');
    z-index: 1;
}

.cta-buttons {
    position: relative;
    z-index: 2;
}

/* Footer */
footer {
    background-color: var(--dark-color) !important;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

/* Utility Classes */
.min-vh-100 {
    min-height: 100vh;
}

.shadow-sm {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.shadow {
    box-shadow: var(--box-shadow) !important;
}

.rounded {
    border-radius: var(--border-radius) !important;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .hero-section {
        text-align: center;
        padding: 5rem 0;
    }
    
    .display-3 {
        font-size: 2.5rem;
        margin-top: 30px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .book-shadow {
        transform: rotateY(20deg);
        width: 100%;
        height: auto;
        align-items: center;
        display: block;
        object-fit: cover;
        border-radius: 12px;
       
    }
    
    .hero-cta .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
}

@media (max-width: 767.98px) {
    .navbar-nav .btn {
        margin: 0.5rem 0;
        text-align: center;
    }
    
    .benefit-card {
        margin-bottom: 2rem;
    }
    
    .carousel-item img {
        max-width: 300px;
        margin: 0 auto 2rem;
    }
    
    .carousel-item .row {
        flex-direction: column-reverse;
    }
    
    .testimonial-card {
        margin-bottom: 1.5rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Button Hover Effects */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Focus States for Accessibility */
.btn:focus,
.nav-link:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    .cta-section,
    footer,
    .carousel-control-prev,
    .carousel-control-next,
    .scroll-indicator {
        display: none !important;
    }
    
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}


/* Blog Header */
.blog-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.blog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,0 1000,200 1000,1000 0,800"/></svg>');
    z-index: 1;
}

.blog-header .container {
    position: relative;
    z-index: 2;
}

/* Featured Article */
.featured-article {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: var(--transition);
    margin: -40px 0 60px;
    position: relative;
    z-index: 10;
}

.featured-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.featured-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.featured-article:hover .featured-image img {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent-color);
    color: #0d47a1;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
}

/* Blog Cards */
.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
    position: relative;
    overflow: hidden;
    height: 350px;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-card-content {
    padding: 24px;
}

.blog-category {
    display: inline-block;
    background: rgba(44, 62, 80, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 12px;
    transition: var(--transition);
}

.blog-category:hover {
    background: var(--primary-color);
    color: white;
}

.blog-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.blog-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.blog-title a:hover {
    color: var(--accent-color);
}

.blog-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.blog-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.read-time {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Sidebar */
.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.recent-post {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.recent-post:last-child {
    border-bottom: none;
}

.recent-post:hover {
    background: rgba(44, 62, 80, 0.02);
    margin: 12px -12px;
    padding: 12px;
    border-radius: 8px;
}

.recent-post-image {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-content h6 {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 4px;
}

.recent-post-content h6 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.recent-post-content h6 a:hover {
    color: var(--accent-color);
}

.recent-post-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.category-item:last-child {
    border-bottom: none;
}

.category-item:hover {
    background: rgba(44, 62, 80, 0.02);
    margin: 8px -12px;
    padding: 8px 12px;
    border-radius: 6px;
}

.category-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.category-item a:hover {
    color: var(--accent-color);
}

.category-count {
    background: rgba(44, 62, 80, 0.1);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Newsletter */
.newsletter-widget {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.newsletter-widget .widget-title::after {
    background: var(--accent-color);
}

.newsletter-form .form-control {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 12px;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25);
    color: white;
}

/* Pagination */
.pagination {
    margin-top: 48px;
}

.page-link {
    color: var(--primary-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin: 0 4px;
    padding: 12px 16px;
    font-weight: 500;
    transition: var(--transition);
}

.page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Responsive */
@media (max-width: 768px) {
    .blog-header {
        padding: 60px 0 40px;
    }
    
    .featured-article {
        margin: -20px 0 40px;
    }
    
    .featured-image {
        height: 220px;
    }
    
    .blog-card-image {
        height: 200px;
    }
    
    .blog-title {
        font-size: 1.1rem;
    }
}

/* Fade in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Contact Header */
.contact-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.contact-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,0 1000,300 1000,1000 0,700"/></svg>');
    z-index: 1;
}

.contact-header .container {
    position: relative;
    z-index: 2;
}

.contact-header h1 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Contact Cards */
.contact-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    height: 100%;
    margin: -60px 0 40px;
    position: relative;
    z-index: 10;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.contact-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.contact-card:hover .contact-icon {
    transform: scale(1.1);
}

/* Form Styles */
.contact-form {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.form-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.form-control {
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--border-radius);
    padding: 12px 16px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #fafbfc;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.25);
    background-color: white;
}

.form-control.is-invalid {
    border-color: var(--accent-color);
}

.form-select {
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--border-radius);
    padding: 12px 16px;
    background-color: #fafbfc;
    transition: var(--transition);
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.25);
    background-color: white;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: #fee995 2px solid !important;
    padding: 12px 32px;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
   
}

.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-color);
    padding: 12px 32px;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-accent:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Map Container */
.map-container {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #f8f9fa 25%, transparent 25%), 
                linear-gradient(-45deg, #f8f9fa 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f8f9fa 75%), 
                linear-gradient(-45deg, transparent 75%, #f8f9fa 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* FAQ Section */
.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.faq-button {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 24px;
    font-weight: 600;
    color: var(--primary-color);
    transition: var(--transition);
    position: relative;
}

.faq-button:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--primary-color);
}

.faq-button::after {
    content: '+';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    transition: var(--transition);
}

.faq-button[aria-expanded="true"]::after {
    content: '−';
}

.faq-button:not(.collapsed) {
    background-color: rgba(44, 62, 80, 0.05);
}

.faq-content {
    padding: 0 24px 24px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Business Hours */
.business-hours {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.hours-item:last-child {
    border-bottom: none;
}

.hours-day {
    font-weight: 600;
    color: var(--primary-color);
}

.hours-time {
    color: var(--text-muted);
}

.hours-closed {
    color: var(--accent-color);
    font-style: italic;
}

/* Success/Error Messages */
.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.alert-success {
    background-color: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--accent-color);
    border-left: 4px solid var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-header {
        padding: 80px 0 60px;
    }
    
    .contact-card {
        margin: -40px 0 30px;
        padding: 30px 20px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .business-hours {
        padding: 24px 20px;
    }
}

/* Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}


/* Author Profile Section */
.author-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.author-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(44,62,80,0.02)" points="0,300 1000,100 1000,900 0,700"/></svg>');
    z-index: 1;
}

.author-container {
    position: relative;
    z-index: 2;
}

.author-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.author-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
}

.author-image-container {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 500px;
}

.author-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.author-card:hover .author-image {
    transform: scale(1.03);
}

.author-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(44, 62, 80, 0.1), transparent);
}

.author-content {
    padding: 3rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.author-badge {
    display: inline-block;
    background: rgba(44, 62, 80, 0.1);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.author-badge:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.author-name {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    position: relative;
}

.author-title {
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.author-bio {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.author-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.author-credentials {
    background: rgba(44, 62, 80, 0.03);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.credential-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.credential-item:last-child {
    margin-bottom: 0;
}

.credential-item i {
    color: var(--primary-color);
    width: 20px;
    margin-right: 0.75rem;
}

.author-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(44, 62, 80, 0.1);
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1rem;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.3);
}

.quote-highlight {
    position: relative;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--primary-color);
    padding: 1rem 0;
    margin: 1.5rem 0;
}

.quote-highlight::before {
    content: '"';
    position: absolute;
    left: -20px;
    top: -10px;
    font-size: 3rem;
    color: var(--accent-color);
    font-family: var(--font-heading);
    opacity: 0.3;
}

/* Section Header */
.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header h2::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .author-section {
        padding: 4rem 0;
    }

    .author-content {
        padding: 2.5rem;
    }

    .author-name {
        font-size: 1.8rem;
    }

    .author-stats {
        gap: 1.5rem;
        justify-content: center;
    }

    .author-image-container {
        min-height: 400px;
    }
}

@media (max-width: 767.98px) {
    .author-section {
        padding: 3rem 0;
    }

    .author-content {
        padding: 2rem;
    }

    .author-name {
        font-size: 1.6rem;
    }

    .author-stats {
        gap: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .author-image-container {
        min-height: 300px;
        order: -1;
    }

    .quote-highlight::before {
        left: -15px;
        font-size: 2.5rem;
    }
}


/* About Header */
.about-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.about-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,0 1000,300 1000,1000 0,700"/></svg>');
    z-index: 1;
}

.about-header .container {
    position: relative;
    z-index: 2;
}

/* Author Profile Section */
.author-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.author-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(44,62,80,0.02)" points="0,300 1000,100 1000,900 0,700"/></svg>');
    z-index: 1;
}

.author-container {
    position: relative;
    z-index: 2;
    margin-top: -60px;
}

.author-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.author-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
}

.author-image-container {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 500px;
}

.author-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.author-card:hover .author-image {
    transform: scale(1.03);
}

.author-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(44, 62, 80, 0.1), transparent);
}

.author-content {
    padding: 3rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.author-badge {
    display: inline-block;
    background: rgba(44, 62, 80, 0.1);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.author-badge:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.author-name {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.author-title {
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.author-bio {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.quote-highlight {
    position: relative;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--primary-color);
    padding: 1rem 0;
    margin: 1.5rem 0;
}

.quote-highlight::before {
    content: '"';
    position: absolute;
    left: -20px;
    top: -10px;
    font-size: 3rem;
    color: var(--accent-color);
    font-family: var(--font-heading);
    opacity: 0.3;
}

/* What's Inside Section */
.whats-inside-section {
    padding: 5rem 0;
    background: white;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    box-shadow: var(--box-shadow);
}

.feature-card h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Who It's For Section */
.who-for-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Always 2 columns */
    gap: 2rem;
    margin-top: 3rem;
}


.audience-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.audience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
}

.audience-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.audience-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    background: rgba(44, 62, 80, 0.1);
    color: var(--primary-color);
}

.audience-card h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* CTA Section */
.cta-section {
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,1000 1000,700 1000,1000"/></svg>');
    z-index: 1;
}

.cta-buttons {
    position: relative;
    z-index: 2;
}

/* Footer */
footer {
    background-color: var(--dark-color) !important;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

/* Fade in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .author-section {
        padding: 4rem 0;
    }

    .author-content {
        padding: 2.5rem;
    }

    .author-name {
        font-size: 1.8rem;
    }

    .author-image-container {
        min-height: 400px;
    }

    .feature-grid,
    .audience-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .about-header {
        padding: 80px 0 60px;
    }

    .author-section {
        padding: 3rem 0;
    }

    .author-content {
        padding: 2rem;
    }

    .author-name {
        font-size: 1.6rem;
    }

    .author-image-container {
        min-height: 300px;
        order: -1;
    }

    .quote-highlight::before {
        left: -15px;
        font-size: 2.5rem;
    }

    .whats-inside-section,
    .who-for-section,
    .cta-section {
        padding: 3rem 0;
    }
}

/* Section Header */
.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header h2::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}



/* Lightbox Overlay */
.estate-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.estate-lightbox.active {
    opacity: 1;
    visibility: visible;
}

/* Lightbox Container */
.lightbox-container {
    background: white;
    border-radius: 24px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    transform: scale(0.8) translateY(50px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.estate-lightbox.active .lightbox-container {
    transform: scale(1) translateY(0);
}

/* Close Button */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    background: var(--accent-color);
    color: white;
    transform: rotate(90deg) scale(1.1);
}

/* Content Layout */
.lightbox-content {
    display: grid;
    grid-template-columns: 45% 55%;
    min-height: 500px;
}

/* Book Image Section */
.book-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

.book-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,0 1000,400 1000,1000 0,600"/></svg>');
}

.book-showcase {
    position: relative;
    z-index: 2;
    perspective: 1000px;
}

.book-image {
    max-width: 280px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transform: rotateY(-15deg) rotateX(5deg);
    transition: all 0.6s ease;
    filter: brightness(1.05);
}

.book-showcase:hover .book-image {
    transform: rotateY(-10deg) rotateX(2deg) scale(1.05);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

/* CTA Section */
.cta-section {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(254, 233, 149, 0.1), transparent);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

/* Content Styling */
.lightbox-badge {
    display: inline-block;
    background: rgba(44, 62, 80, 0.1);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.lightbox-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.2;
    position: relative;
    z-index: 2;
}

.lightbox-subtitle {
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.lightbox-description {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

/* Features List */
.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    position: relative;
    z-index: 2;
}

.features-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.features-list li i {
    color: var(--accent-color);
    margin-right: 0.75rem;
    width: 16px;
    font-size: 0.9rem;
}


/* CTA Button */
.lightbox-cta {
    background: var(--primary-color);
    color: var(--accent-color);
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 8px 25px rgba(254, 233, 149, 0.4);
}

.lightbox-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(254, 233, 149, 0.6);
    background: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
}

.lightbox-cta:active {
    transform: translateY(-1px);
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    position: relative;
    z-index: 2;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trust-item i {
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .lightbox-container {
        width: 95%;
        max-height: 85vh;
        overflow-y: auto;
    }

    .lightbox-content {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .book-section {
        padding: 2rem 1.5rem;
        min-height: 300px;
    }

    .book-image {
        max-width: 200px;
        transform: none;
    }

    .book-showcase:hover .book-image {
        transform: scale(1.02);
    }

    .cta-section {
        padding: 2rem 1.5rem;
    }

    .lightbox-title {
        font-size: 1.6rem;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }

    .trust-indicators {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
}

/* Animation for popup delay */
.popup-animation {
    animation: popupDelay 1s ease-out;
}

@keyframes popupDelay {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }
    80% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Pulse effect for CTA button */
.pulse-glow {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 8px 25px rgba(254, 233, 149, 0.4);
    }
    50% {
        box-shadow: 0 8px 35px rgba(254, 233, 149, 0.7), 0 0 20px rgba(254, 233, 149, 0.3);
    }
    100% {
        box-shadow: 0 8px 25px rgba(254, 233, 149, 0.4);
    }
}



.footer-links:hover {
    color: var(--accent-color) !important;
}

/* Social Proof Testimonials */
.social-proof {
    position: relative;
    height: 24px; /* Adjust based on your needs */
    margin-top: 20px;
    overflow: hidden;
}

.testimonial-count {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateY(20px);
    display: flex;
    align-items: center;
    gap: 8px;
}

.testimonial-count.active {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-count i {
    color: #222;
}
.testimonial-count span {
    color: #1565c0;
}