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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

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

/* Navigation */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transform: translateY(0) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo .logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.nav-logo h2 {
    color: #2563eb;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
}

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

.nav-link {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #2563eb;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #2563eb;
}

/* Hero Section */
.hero {
    background: #2563eb;
    color: white;
    padding: 0; /* Remove padding to let video fill entire area */
    min-height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100vh; /* Full viewport height */
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px; /* Add padding back for content */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    min-height: 100vh; /* Ensure container takes full height */
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: #2563eb;
    transform: translateY(-2px);
}

/* Slideshow Button Styles */
.hero-slideshow .btn-primary {
    background: white;
    color: #2563eb;
    border-color: white;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 14px 28px;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-slideshow .btn-primary:hover {
    background: #f8fafc;
    color: #1d4ed8;
    border-color: #f8fafc;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.hero-slideshow .btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 14px 28px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-slideshow .btn-secondary:hover {
    background: white;
    color: #2563eb;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.calculator-preview {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    max-width: 400px;
}

.calculator-preview h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.calculator-preview p {
    opacity: 0.9;
}

/* Slideshow Styles */
.hero-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100vh; /* Ensure full viewport height */
}

/* Video Background Styles */
.slide-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    background: #000; /* Fallback background */
    min-width: 100%;
    min-height: 100%;
}

/* Make videos more visible for debugging */
.slide-video:not([poster]) {
    /* border: 2px solid red; */ /* Debug border removed */
    min-height: 200px; /* Ensure videos have minimum height */
}

/* Video container */
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    min-height: 100vh; /* Ensure full viewport height */
}

/* Force videos to fill entire slide area */
.hero-slide .slide-video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100vh !important; /* Ensure full viewport height */
    object-fit: cover !important;
    z-index: 0 !important;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(37, 99, 235, 0.2); /* Light overlay for better text readability */
    z-index: 1;
    transition: background 0.3s ease;
}

/* Slightly darker overlay when video is playing */
.hero-slide.active .slide-video:not([paused]) + .video-overlay {
    background: rgba(37, 99, 235, 0.1);
}

/* Video error fallback */
.hero-slide.video-error {
    background: #2563eb; /* Fallback to original blue background */
}

.hero-slide.video-error .video-overlay {
    background: rgba(37, 99, 235, 0.2); /* Lighter overlay when no video */
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    display: flex;
    align-items: center;
    z-index: 1;
    overflow: hidden; /* Ensure videos don't overflow */
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slideshow-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 2rem;
    z-index: 10;
}

.slideshow-dots {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
}

.slideshow-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.slideshow-dots .dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.slideshow-dots .dot.active {
    background: white;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.slideshow-arrows {
    display: flex;
    gap: 1rem;
}

.slideshow-arrows .arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.slideshow-arrows .arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.slideshow-arrows .arrow:active {
    transform: scale(0.95);
}

/* Properties Section */
.properties-carousel {
    padding: 100px 0;
    background: #f8fafc;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1e293b;
}

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

.carousel-wrapper {
    overflow: hidden;
    border-radius: 16px;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 2rem;
}

.property-card {
    min-width: 350px;
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.property-image {
    width: 100%;
    height: 250px;
    background: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

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

.property-image {
    position: relative;
    overflow: hidden;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.property-image:hover .image-overlay {
    opacity: 1;
}

.image-zillow-link {
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border: 2px solid white;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.image-zillow-link:hover {
    background: white;
    color: #2563eb;
    transform: translateY(-2px);
}

.overlay-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.zillow-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 16px;
    background: #0066cc;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.zillow-link-btn:hover {
    background: #0052a3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 102, 204, 0.3);
}

.zillow-icon {
    font-size: 1rem;
}

.property-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.property-placeholder .icon {
    font-size: 3rem;
    opacity: 0.8;
}

.property-content {
    padding: 1.5rem;
}

.property-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.property-location {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-location::before {
    content: "📍";
    font-size: 0.9rem;
}

.property-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.property-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.property-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
}

.property-size {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0 1rem;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #2563eb;
    background: white;
    color: #2563eb;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: #2563eb;
    color: white;
    transform: scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #2563eb;
    transform: scale(1.2);
}

.see-all-container {
    text-align: center;
    margin-top: 2rem;
}

.see-all-btn {
    padding: 12px 32px;
    font-size: 1.1rem;
}

/* Properties Page Styles */
.properties-header {
    padding: 100px 0 60px;
    background: #2563eb;
    color: white;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.page-subtitle {
    font-size: 1.25rem;
    text-align: center;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.filter-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
}

.filter-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.filter-select {
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    min-width: 150px;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.2);
}

.filter-select option {
    background: #1e293b;
    color: white;
}

.results-info {
    text-align: center;
    font-weight: 500;
    opacity: 0.9;
}

.properties-grid-section {
    padding: 80px 0;
    background: #f8fafc;
}

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

.property-card-grid {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
}

.property-card-grid:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.property-type-badge {
    background: rgba(37, 99, 235, 0.9);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.loan-type-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.loan-program {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
}

.load-more-container {
    text-align: center;
    margin-top: 3rem;
}

.contact-cta {
    padding: 80px 0;
    background: white;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e293b;
}

.cta-content p {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

.cta-buttons .btn-secondary {
    background: transparent !important;
    color: #2563eb !important;
    border-color: #2563eb !important;
}

.cta-buttons .btn-secondary:hover {
    background: #2563eb !important;
    color: white !important;
    transform: translateY(-2px);
}

/* Section Divider */
.section-divider {
    border-top: 2px solid #e2e8f0;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 20px;
}

/* About Us Section */
.about {
    padding: 100px 0;
    background: #f8fafc;
}

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

.about-text p {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: #64748b;
    font-weight: 500;
    margin: 0;
}

/* Team Section */
.team-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #e2e8f0;
}

.team-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin-bottom: 3rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.team-member {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.team-member-photo {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
    background: #f8fafc;
}

.team-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-member:hover .team-member-photo img {
    transform: scale(1.05);
}

/* Adjust Luis Martinez photo positioning */
.team-member:nth-child(2) .team-member-photo img {
    object-position: center 20%;
}

.team-member-info {
    padding: 2rem;
}

.team-member-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    text-align: center;
}

.team-member-title {
    font-size: 1.125rem;
    color: #2563eb;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
}

.team-member-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.team-member-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.credential {
    background: #f0f9ff;
    color: #0c4a6e;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #bae6fd;
}

.team-contact-cta {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.team-contact-btn {
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}

.team-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background: #f8fafc;
}

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

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-size: 1.125rem;
    color: #374151;
    line-height: 1.6;
    font-style: italic;
    margin: 0;
}

.testimonial-author h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: #64748b;
    font-size: 0.95rem;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e293b;
}

.contact-info p {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-person {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contact-person h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-item strong {
    color: #1e293b;
    font-weight: 600;
}

.contact-item a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #1d4ed8;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

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

/* Calculator Styles */
.calculator-main {
    padding: 2rem 0;
    min-height: calc(100vh - 140px);
}

.calculator-header {
    text-align: center;
    margin-bottom: 3rem;
}

.calculator-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.calculator-header p {
    font-size: 1.125rem;
    color: #64748b;
}

.additional-tools {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.tool-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.additional-tools h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.75rem;
    margin-top: 0;
}

.additional-tools p {
    margin: 0;
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
    font-weight: 400;
}

.tool-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.tool-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.calculator-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    min-height: 600px;
}

.calculator-section {
    padding: 2rem;
    border-right: 1px solid #e2e8f0;
}

.calculator-section:last-child {
    border-right: none;
}

.calculator-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1e293b;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #374151;
}

.input-group input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #2563eb;
}

.expense-toggles {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.expense-toggles h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #374151;
}

.toggle-group {
    margin-bottom: 1rem;
}

.toggle-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #374151;
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toggle-container input[type="number"] {
    flex: 1;
    padding: 8px 10px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
}

.toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2563eb;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.calculated-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.calculated-item:last-child {
    border-bottom: none;
}

.calculated-item label {
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
}

.calculated-item span {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item label {
    font-weight: 500;
    color: #374151;
    font-size: 0.95rem;
}

.result-item span {
    font-weight: 700;
    font-size: 1.1rem;
}

.primary-result {
    background: #f0f9ff;
    margin: -1rem;
    padding: 1.5rem 1rem;
    border-radius: 8px;
    border: 2px solid #0ea5e9;
}

.primary-result label {
    color: #0c4a6e;
    font-weight: 600;
}

.primary-result span {
    color: #0c4a6e;
    font-size: 1.5rem;
}

.calculator-contact {
    background: #f8fafc;
    padding: 2rem;
    border-top: 1px solid #e2e8f0;
}

.calculator-contact h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.calculator-contact .contact-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.calculator-contact .contact-person {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.calculator-contact .contact-person h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.calculator-contact .contact-details p {
    margin: 0;
    color: #64748b;
}

.calculator-contact .contact-details a {
    color: #2563eb;
    text-decoration: none;
}

.calculator-contact .contact-details a:hover {
    color: #1d4ed8;
}

/* Market Analysis Styles */
.market-analysis-section {
    padding: 80px 0;
    background: #f8fafc;
}

.market-analysis-content {
    max-width: 800px;
    margin: 0 auto;
}

.tool-card {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid #e2e8f0;
}

.tool-icon-large {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.tool-card h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.tool-card p {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.feature-list li {
    padding: 0.75rem 0;
    color: #374151;
    font-size: 1rem;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    padding-left: 2rem;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
    font-size: 1.2rem;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
    margin-top: 1rem;
}

/* CTA Text and Button Container Styles */
.cta-text {
    font-size: 1.125rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
}

.cta-button-container {
    text-align: center;
    margin-top: 1rem;
}

.market-info-section {
    padding: 80px 0;
    background: white;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.info-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.info-card p {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Toolkits Page Styles */
.market-analysis-content h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 1rem;
    text-align: center;
    font-style: italic;
}

.intro-text {
    font-size: 1.125rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 2rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.programs-list {
    margin: 2rem 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.program-header {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.program-header:hover {
    background: #f1f5f9;
    border-color: #2563eb;
    transform: translateY(-1px);
}

.program-header.active {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

.program-header h4,
.program-header h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    transition: color 0.3s ease;
}

.program-header.active h4,
.program-header.active h5 {
    color: white;
}

.expand-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2563eb;
    transition: all 0.3s ease;
    user-select: none;
}

.program-header.active .expand-icon {
    color: white;
    transform: rotate(180deg);
}

.program-content {
    background: white;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: none;
    animation: slideDown 0.3s ease;
}

.program-content p {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.programs-overview {
    margin-top: 2rem;
}

.programs-section {
    margin-bottom: 3rem;
}

.programs-section h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #2563eb;
}

.closing-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
    text-align: center;
}

.closing-text {
    font-size: 1.125rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-style: italic;
}

/* Responsive adjustments for toolkits */
@media (max-width: 768px) {
    .programs-list {
        margin: 1.5rem 0;
    }
    
    .program-header {
        padding: 0.875rem 1.25rem;
    }
    
    .program-header h4,
    .program-header h5 {
        font-size: 1rem;
    }
    
    .program-content {
        padding: 1.25rem;
    }
    
    .expand-icon {
        font-size: 1.25rem;
    }
    
    .section-subtitle {
        font-size: 1.25rem;
    }
    
    .intro-text {
        font-size: 1rem;
    }
    
    .programs-section h4 {
        font-size: 1.25rem;
    }
}

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

.footer p {
    margin: 0;
    color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }
    
    .calculator-section {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .calculator-section:last-child {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 1rem 20px;
    }
    
    .nav-logo {
        gap: 0.5rem;
    }
    
    .nav-logo .logo-img {
        height: 50px;
    }
    
    .nav-logo h2 {
        font-size: 1.25rem;
    }
    
    .nav-menu {
        margin-top: 1rem;
        gap: 1rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .slideshow-nav {
        bottom: 20px;
        gap: 1rem;
    }
    
    .slideshow-dots {
        gap: 0.4rem;
    }
    
    .slideshow-dots .dot {
        width: 8px;
        height: 8px;
    }
    
    .slideshow-arrows .arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-stats {
        flex-direction: row;
        justify-content: space-around;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .team-member-photo {
        height: 350px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .calculator-header h1 {
        font-size: 2rem;
    }
    
    .additional-tools {
        margin-top: 1rem;
        padding: 0.75rem 1rem;
    }
    
    .tool-icon {
        font-size: 1.25rem;
    }
    
    .additional-tools h3 {
        font-size: 1rem;
    }
    
    .additional-tools p {
        font-size: 0.9rem;
    }
    
    .calculator-section {
        padding: 1.5rem;
    }
    
    .calculator-contact .contact-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-logo .logo-img {
        height: 44px;
    }
    
    .nav-logo h2 {
        font-size: 1.1rem;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .slideshow-nav {
        bottom: 15px;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .slideshow-dots {
        gap: 0.3rem;
    }
    
    .slideshow-dots .dot {
        width: 7px;
        height: 7px;
    }
    
    .slideshow-arrows {
        order: -1;
    }
    
    .slideshow-arrows .arrow {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features {
        padding: 60px 0;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .team-section-title {
        font-size: 1.5rem;
    }
    
    .team-member-info {
        padding: 1.5rem;
    }
    
    .team-member-name {
        font-size: 1.25rem;
    }
    
    .team-member-title {
        font-size: 1rem;
    }
    
    .team-contact-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .contact {
        padding: 60px 0;
    }
    
    /* Properties page responsive */
    .page-title {
        font-size: 2.5rem;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-select {
        min-width: auto;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Contact Popup Modal Styles */
.contact-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.contact-popup[style*="display: none"] {
    display: none !important;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.popup-container {
    position: relative;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10001;
    animation: slideUp 0.3s ease;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f1f5f9;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 24px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10002;
    line-height: 1;
    padding: 0;
}

.popup-close:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: rotate(90deg);
}

.popup-content {
    padding: 2.5rem 2rem 2rem;
}

.popup-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    text-align: center;
}

.popup-content > p {
    text-align: center;
    color: #64748b;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.popup-content .form-group {
    margin-bottom: 1.25rem;
}

.popup-content .form-group input,
.popup-content .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.popup-content .form-group input:focus,
.popup-content .form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.popup-content .form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.popup-content .btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive popup */
@media (max-width: 768px) {
    .popup-container {
        width: 95%;
        max-height: 95vh;
    }
    
    .popup-content {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .popup-content h3 {
        font-size: 1.5rem;
    }
    
    .popup-close {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 20px;
    }
}
