/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #f59e0b;
    --dark-gray: #1f2937;
    --light-gray: #f3f4f6;
    --white: #ffffff;
    --success: #10b981;
    --danger: #ef4444;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: white;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    position: relative;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-logo-horizontal {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

.nav-brand:hover .nav-logo-horizontal {
    transform: scale(1.05);
}

/* Hide text when logo is horizontal */
.nav-brand.has-horizontal-logo span {
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--secondary-color);
    font-weight: 600;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Navbar scroll effect */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .nav-logo-horizontal {
    height: 35px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    color: white;
    padding: 50px 0 100px;
    text-align: center;
}

.hero-logo-square {
    max-width: 200px;
    height: auto;
    margin-bottom: 10px;
    animation: fadeInDown 1s ease-out;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
}

.hero-promise {
    font-size: 2rem;
    margin: 3rem 0 2rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    text-align: center;
    position: relative;
    padding: 0 20px;
}

/* Add decorative elements */
.hero-promise::before,
.hero-promise::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
}

.hero-promise::before {
    left: 50%;
    transform: translate(-150px, -50%);
}

.hero-promise::after {
    right: 50%;
    transform: translate(150px, -50%);
}

/* Animated underline */
.hero-promise {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(245, 158, 11, 0.8) 20%, 
        rgba(245, 158, 11, 1) 50%, 
        rgba(245, 158, 11, 0.8) 80%, 
        transparent 100%);
    background-size: 200% 3px;
    background-position: center bottom;
    background-repeat: no-repeat;
    padding-bottom: 15px;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: -100% bottom; }
    100% { background-position: 100% bottom; }
}

@media (max-width: 768px) {
    .hero-promise {
        font-size: 1.5rem;
    }
    
    .hero-promise::before,
    .hero-promise::after {
        width: 40px;
    }
    
    .hero-promise::before {
        transform: translate(-80px, -50%);
    }
    
    .hero-promise::after {
        transform: translate(80px, -50%);
    }
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    width: 100%;
}

.stat-item {
    background: rgba(255,255,255,0.15);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.stat-item i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.cta-button {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--dark-gray);
    margin-bottom: 3rem;
}

.impact-section {
    position: relative;
    margin: 50px auto;
    max-width: 600px;
    background: #fef3c7;
    padding: 35px;
    transform: rotate(-2deg);
    box-shadow: 
        0 10px 20px rgba(0,0,0,0.1),
        inset 0 0 40px rgba(254, 243, 199, 0.5);
    border: 1px solid #fde68a;
}

.impact-section::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 30px;
    background: rgba(0,0,0,0.1);
    border-radius: 50%;
    filter: blur(15px);
}

.impact-section h3 {
    color: #92400e;
    text-align: center;
    margin-bottom: 15px;
}

.impact-section p {
    color: #78350f;
    text-align: center;
    font-size: 18px;
}

@keyframes float {
    0%, 100% {
        transform: translateY(-10px);
    }
    50% {
        transform: translateY(-20px);
    }
}




/* Challenges Section */
.challenges {
    background: var(--light-gray);
}

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* For desktop - 3 columns with centered last item */
@media (min-width: 1024px) {
    .challenges-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Center the 4th item across all 3 columns */
    .challenge-card:nth-child(4):last-child {
        grid-column: 2 / 3;
    }
}

/* For tablets - 2 columns */
@media (min-width: 768px) and (max-width: 1023px) {
    .challenges-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* For mobile - 1 column */
@media (max-width: 767px) {
    .challenges-grid {
        grid-template-columns: 1fr;
    }
}

.challenge-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.challenge-card:hover {
    transform: translateY(-5px);
}

.challenge-card i {
    display: block;
    margin: 0 auto 20px auto;
    font-size: 48px;
    color: var(--primary-color);
    width: 80px;
    height: 80px;
    line-height: 80px;

    border-radius: 50%;
    text-align: center;
}

.challenge-card[data-category="financial"] i {
    color: #ef4444;

}

.challenge-card[data-category="security"] i {
    color: #f59e0b;
}

.challenge-card[data-category="maintenance"] i {
    color: #3b82f6;
}

.challenge-card[data-category="admin"] i {
    color: #8b5cf6;
}

.challenge-card h3 {
    margin-bottom: 1rem;
    text-align:center;
    
    
}

.challenge-card ul {
    list-style: none;
}

.challenge-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light-gray);
}

/* Solutions Tabs */
.solutions-tabs {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
    overflow: visible;
    min-height: 520px;
    display: flex;
    flex-direction: column;
}

.tab-buttons {
    display: flex;
    border-bottom: 2px solid var(--light-gray);
}

.tab-btn {
    flex: 1;
    padding: 1.5rem;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    position: relative;
}

.tab-btn:hover {
    background-color: rgba(30, 58, 138, 0.1);
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
}

.tab-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.tab-content {
    padding: 3rem;
    position: relative;
    min-height: 400px;
    transition: height 0.3s ease;
    overflow: visible;
    flex: 1;
    min-height: 500px;
}


.tab-pane {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    margin-bottom: 2rem;
}

.tab-pane.active {
    display: block;
    opacity: 1;
    position: relative;
}

.feature-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.feature {
    flex: 0 1 calc(25% - 20px);
    min-width: 250px;
    max-width: 300px;
}

.feature i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Security Plan Styles */
.security-plan {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.phase {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
}

.phase h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.phase ul {
    list-style: none;
}

.phase li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.phase li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* Tab-like Horizontal Maintenance Design */
.maintenance-schedule {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    margin-top: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.maintenance-tabs {
    display: flex;
    background: var(--primary-color);
}

.maintenance-tab {
    flex: 1;
    padding: 20px;
    text-align: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: inherit;
}

.maintenance-tab:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255,255,255,0.3);
}

.maintenance-tab:hover {
    background: rgba(245, 158, 11, 0.3);
}

.maintenance-tab.active {
    background: white;
    color: var(--primary-color);
}

.maintenance-tab.active::after {
    display: none;
}

.maintenance-tab i {
    font-size: 28px;
    display: block;
    margin-bottom: 10px;
}

.maintenance-tab .tab-frequency {
    font-weight: 600;
    font-size: 1.1rem;
}

.maintenance-contents {
    background: white;
    min-height: 200px;
}

.maintenance-content {
    padding: 40px;
    display: none;
}

.maintenance-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.maintenance-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.maintenance-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.maintenance-item i {
    font-size: 20px;
    color: var(--secondary-color);
    margin-top: 3px;
}

.maintenance-item-content h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.maintenance-item-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .maintenance-tabs {
        flex-wrap: wrap;
    }
    
    .maintenance-tab {
        flex: 1 1 50%;
        padding: 15px;
    }
    
    .maintenance-tab:nth-child(2n)::after {
        display: none;
    }
    
    .maintenance-tab:nth-child(1),
    .maintenance-tab:nth-child(2) {
        border-bottom: 1px solid rgba(255,255,255,0.3);
    }
    
    .maintenance-tab i {
        font-size: 24px;
    }
    
    .maintenance-tab .tab-frequency {
        font-size: 0.9rem;
    }
    
    .maintenance-content {
        padding: 30px 20px;
    }
    
    .maintenance-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .maintenance-tabs {
        flex-direction: column;
    }
    
    .maintenance-tab {
        flex: 1 1 100%;
    }
    
    .maintenance-tab:not(:last-child) {
        border-bottom: 1px solid rgba(255,255,255,0.3);
    }
    
    .maintenance-tab::after {
        display: none !important;
    }
}

/* Renovation Items */
.renovation-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.reno-item {
    text-align: center;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 10px;
}

.reno-item i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Investment Section */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.pricing-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured {
    border: 2px solid var(--secondary-color);
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--secondary-color);
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.875rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
}

.price-desc {
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

.benefits {
    list-style: none;
    margin-bottom: 2rem;
}

.benefits li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.benefits i {
    color: var(--success);
    margin-right: 0.5rem;
}

.select-plan {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.select-plan:hover {
    background: var(--secondary-color);
}

/* ROI Calculator */
.roi-calculator {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.calculator {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.calc-input label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.calc-input input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 5px;
    font-size: 1.125rem;
}

.calc-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 5px;
}

.result-item.total {
    background: var(--primary-color);
    color: white;
}

.negative {
    color: var(--danger);
    font-weight: 700;
}

.positive {
    color: var(--success);
    font-weight: 700;
}

/* Timeline */

/* ===== ALTERNATIVE: HORIZONTAL WIDE TIMELINE ===== */
@media (min-width: 1200px) {
    .timeline-wrapper {
        display: flex;
        flex-direction: column;
        gap: 0;
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .timeline-line {
        display: none; /* Hide vertical line */
    }
    
    .timeline-item {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        gap: 40px;
        align-items: center;
        margin-bottom: 40px;
    }
    
    /* Reset all panels to same style */
    .timeline-panel {
        float: none !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 500px;
    }
    
    /* Left panels align right */
    .timeline-item.left .timeline-panel {
        justify-self: end;
        text-align: right;
    }
    
    /* Right panels align left */
    .timeline-item.right .timeline-panel {
        justify-self: start;
        text-align: left;
        grid-column: 3;
    }
    
    /* Center badge */
    .timeline-badge {
        position: relative;
        left: auto;
        transform: none;
        grid-column: 2;
    }
    
    /* Hide arrows */
    .timeline-panel::before {
        display: none;
    }
    
    /* Add horizontal connecting lines */
    .timeline-item::before,
    .timeline-item::after {
        content: '';
        height: 2px;
        background: #e2e8f0;
    }
    
    .timeline-item::before {
        grid-column: 1;
    }
    
    .timeline-item::after {
        grid-column: 3;
    }
    
    .timeline-item.left::after {
        display: none;
    }
    
    .timeline-item.right::before {
        display: none;
    }
}

.timeline {
    background: var(--light-gray);
}

.timeline-modern {
    background: #f8f9fa;
    padding: 80px 0;
}

.timeline-wrapper {
    position: relative;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    width: 4px;
    background: #e2e8f0;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 80px;
    display: block;
    align-items: center;
    justify-content: center;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-content {
    position: relative;
}

.timeline-badge {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
    z-index: 3;
    top: -30px; /* Position above panel */
}

.timeline-panel {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    width: 45%;
    max-width: 500px; /* Add max width for better control */
}

.timeline-item.left .timeline-panel {
    float: left;
    margin-right: 55%;
}

.timeline-item.right .timeline-panel {
    float: right;
    margin-left: 55%;
}

.timeline-panel::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background: white;
    transform: rotate(45deg);
}

.timeline-item.left .timeline-panel::before {
    right: -10px;
}

.timeline-item.right .timeline-panel::before {
    left: -10px;
}

.timeline-heading {
    margin-bottom: 15px;
}

.timeline-heading h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.timeline-date {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.timeline-body ul {
    list-style: none;
    padding: 0;
}

.timeline-body li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.timeline-body li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* Testimonials */
.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.quote-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author h4 {
    color: var(--primary-color);
}

/* Guarantees */
.guarantee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.guarantee-item {
    text-align: center;
    padding: 2rem;
}

.guarantee-item i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 500px;
}

.faq-item.active .fa-chevron-down {
    transform: rotate(180deg);
}

/* Contact */
.contact {
    background: var(--light-gray);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-logo-square {
    max-width: 180px;
    height: auto;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-form {
    display: grid;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 5px;
    font-family: inherit;
}

.submit-btn {
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: var(--secondary-color);
}

/* Footer */
.footer {
    background: var(--dark-gray);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo-horizontal {
    height: 50px;
    width: auto;
    margin-bottom: 15px;
}

.footer h3,
.footer h4 {
    margin-bottom: 1rem;
}

.footer ul {
    list-style: none;
}

.footer a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4b5563;
}

/* Budget Explanation Section */
.budgets-explanation {
    background: #f8f9fa;
    padding: 80px 0;
}

.budget-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.budget-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.budget-card:hover {
    transform: translateY(-5px);
}

.budget-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.budget-icon i {
    font-size: 36px;
    color: white;
}

.budget-card h3 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.budget-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.amount {
    font-size: 24px;
    color: var(--secondary-color);
    font-weight: bold;
}

.amount-note {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.budget-list {
    list-style: none;
    padding: 0;
}

.budget-list li {
    padding: 10px 0;
    display: flex;
    align-items: center;
}

.budget-list i {
    color: var(--secondary-color);
    margin-right: 10px;
    width: 20px;
}

.legal-note {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    display: flex;
    align-items: start;
}

.legal-note i {
    color: #1976d2;
    margin-right: 10px;
    margin-top: 2px;
}

.payment-options {
    margin-top: 20px;
}

.options-grid {
    display: grid;
    gap: 15px;
    margin-top: 10px;
}

.option {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.option i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
}

.transparency-section {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 25px;
    padding: 50px;
    margin-top: 50px;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    overflow: hidden;
}

/* Background pattern */
.transparency-section::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(0.8); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0.1; }
}

.transparency-section h3 {
    position: relative;
    z-index: 1;
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    color: white;
}

.transparency-section h3 i {
    font-size: 36px;
    margin-right: 15px;
    vertical-align: middle;
}

.transparency-content {
    position: relative;
    z-index: 1;
}

.transparency-content > p {
    font-size: 18px;
    text-align: center;
    margin-bottom: 15px;
    opacity: 0.95;
}

.transparency-content ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

}

.transparency-content li {
    padding: 15px 15px;
    display: flex;
    flex: 0 1 calc(50% - 20px);
    align-items: flex-start;
    gap: 12px;

}

.transparency-content li:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.transparency-content li i {
    color: #4caf50;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.transparency-content li strong {
    display: inline;
    color: var(--primary-color); /* or use specific color */
    font-weight: 600;
    margin-right: 5px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .transparency-section {
        padding: 10px 10px;
    }
    
    .transparency-content ul {
        grid-template-columns: 1fr;
    }
    
    .transparency-section h3 {
        font-size: 22px;
    }
}

/* Feedback Survey Section */
.feedback-survey {
    background: white;
    padding: 80px 0;
}

.survey-form {
    max-width: 800px;
    margin: 0 auto;
    background: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.survey-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.survey-section:last-of-type {
    border-bottom: none;
    margin-bottom: 20px;
}

.survey-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.rating-scale {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
}

.rating-scale input[type="radio"] {
    display: none;
}

.rating-scale label {
    padding: 10px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rating-scale input[type="radio"]:checked + label {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-group input[type="radio"] {
    display: none;
}

.radio-group label {
    padding: 15px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
}

.radio-group input[type="radio"]:checked + label {
    background: #fff3cd;
    border-color: var(--secondary-color);
}

.priority-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.priority-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: white;
    border-radius: 8px;
}

.priority-item select {
    width: 60px;
    padding: 8px;
}

.priority-item label {
    flex: 1;
    margin: 0;
}

.form-help-text {
    font-size: 14px;
    color: #666;
    font-style: italic;
}

.survey-actions {
    text-align: center;
    margin-top: 30px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.privacy-note {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

.privacy-note i {
    color: var(--primary-color);
    margin-right: 5px;
}

.survey-success {
    text-align: center;
    padding: 60px;
    background: #d4edda;
    color: #155724;
    border-radius: 15px;
}

.survey-success i {
    font-size: 60px;
    color: #4caf50;
    margin-bottom: 20px;
}

.survey-success h3 {
    color: #155724;
    margin-bottom: 10px;
}

.survey-error {
    text-align: center;
    padding: 60px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 15px;
}

.survey-error i {
    font-size: 60px;
    color: #dc3545;
    margin-bottom: 20px;
}

.survey-error h3 {
    color: #721c24;
    margin-bottom: 10px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 400px;
    margin: 2rem 0;
}

/* Animation Classes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Responsive Design */
@media (max-width: 768px) {
    
       /* Solutions Section Tabs Specifically */
    #solutions .tab-buttons,
    .section.solutions .tab-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px;
        border-bottom: none;
    }
    
    #solutions .tab-btn,
    .section.solutions .tab-btn {
        padding: 1rem;
        font-size: 0.9rem;
        border-radius: 8px;
        border: 2px solid var(--light-gray);
        background: white;
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        transition: all 0.3s ease;
    }
    
    #solutions .tab-btn:hover,
    .section.solutions .tab-btn:hover {
        background-color: var(--light-gray);
    }
    
    #solutions .tab-btn.active,
    .section.solutions .tab-btn.active {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
        box-shadow: 0 2px 10px rgba(30, 58, 138, 0.3);
    }
    
    #solutions .tab-content,
    .section.solutions .tab-content {
        padding: 2rem 1.5rem;
        border-top: 2px solid var(--light-gray);
        margin-top: 10px;
    }

    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        z-index: -1;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 0.5rem 1rem;
        display: block;
    }
    
    .nav-link::after {
        bottom: -2px;
    }
    
    .nav-link.active {
        background: rgba(245, 158, 11, 0.1);
        border-radius: 5px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-promise {
        font-size: 1.4rem;
    }
    
        .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin: 2rem auto 3rem;
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
        min-height: 120px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }
    
    .stat-item i {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
        margin-bottom: 0.3rem;
    }
    
    .stat-item p {
        font-size: 0.85rem;
        line-height: 1.2;
    }
    
    .calculator {
        grid-template-columns: 1fr;
    }
    
    .timeline-line {
        left: 30px;
    }
    
    /* Fix mobile timeline alignment */
@media (max-width: 768px) {
    .timeline-line {
        left: 30px;
    }
    
/* Alternating section backgrounds */
.section:nth-of-type(odd) {
    background: #ffffff;
}

.section:nth-of-type(even) {
    background: #f8f9fa;
}

/* Specific section backgrounds */
.challenges {
    background: #f8f9fa;
}

.solutions {
    background: #ffffff;
}

.budgets-explanation {
    background: #f8f9fa;
}

.timeline-modern {
    background: #ffffff;
}

.feedback-survey {
    background: #f8f9fa;
}

.contact {
    background: #ffffff;
}

/* Ensure proper padding and spacing */
.section {
    padding: 80px 0;
    position: relative;
}    
    
    .timeline-badge {
        left: 30px;
        transform: translateX(-50%);
    }
    
    .timeline-item {
        flex-direction: row !important;
        justify-content: flex-start;
    }
    
    .timeline-panel {
        width: calc(100% - 90px);
        margin-left: 60px !important;
        margin-right: 0 !important;
    }
}
    
    .timeline-badge {
        left: 30px;
    }
    
    .timeline-panel {
        width: calc(100% - 90px);
        margin-left: 90px !important;
        margin-right: 0 !important;
        float: none !important;
    }
    
    .timeline-panel::before {
        left: -10px !important;
    }
    
    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 60px;
    }
    
    .timeline-content {
        width: 100%;
        margin: 1rem 0;
    }
    
    .timeline-marker {
        position: absolute;
        left: 0;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .budget-types {
        grid-template-columns: 1fr;
    }
    
    .rating-scale {
        flex-direction: column;
    }
    
    .survey-form {
        padding: 20px;
    }
    
    .nav-logo-horizontal {
        height: 35px;
    }
    
    .hero-logo-square {
        max-width: 150px;
    }
    
    .footer-logo-horizontal {
        height: 40px;
    }
    
    .contact-logo-square {
        max-width: 150px;
    }
}

/* For very small screens */
@media (max-width: 480px) {
    
        .hero-stats {
        grid-template-columns: 1fr 1fr; /* Explicit equal columns */
        gap: 0.75rem;
        padding: 0 10px;
    }
    
    .stat-item {
        padding: 1.2rem 0.5rem;
        min-height: 110px;
    }
    
    .stat-item i {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .stat-item h3 {
        font-size: 1.5rem;
        margin-bottom: 0.3rem;
    }
    
    .stat-item p {
        font-size: 0.75rem;
        word-wrap: break-word;
        max-width: 100%;
    }
    
        #solutions .tab-buttons,
    .section.solutions .tab-buttons {
        gap: 8px;
        padding: 8px;
    }
    
    #solutions .tab-btn,
    .section.solutions .tab-btn {
        padding: 0.8rem 0.5rem;
        font-size: 0.85rem;
        min-height: 55px;
        line-height: 1.2;
    }
    
    #solutions .tab-content,
    .section.solutions .tab-content {
        padding: 1.5rem 1rem;
    }
}

/* For extra small screens (less than 360px) */
@media (max-width: 360px) {
    #solutions .tab-buttons,
    .section.solutions .tab-buttons {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    #solutions .tab-btn,
    .section.solutions .tab-btn {
        width: 100%;
        padding: 1rem;
    }
    
    .nav-logo-horizontal {
        height: 30px;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0 5px;
    }
    
    .stat-item {
        padding: 1.2rem 0.8rem;
        min-height: 110px;
    }
    
    .stat-item i {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .stat-item h3 {
        font-size: 1.5rem;
        margin-bottom: 0.3rem;
    }
    
    .stat-item p {
        font-size: 0.75rem;
        line-height: 1.2;
    }
}

/* RTL Support for Arabic */
[dir="rtl"] .budget-list i,
[dir="rtl"] .transparency-content li i,
[dir="rtl"] .legal-note i,
[dir="rtl"] .option i {
    margin-right: 0;
    margin-left: 10px;
}

[dir="rtl"] .priority-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .hero-stats {
    direction: rtl;
}

[dir="rtl"] .stat-item {
    direction: rtl;
    text-align: center;
}

/* Legal Pages Styles */
.legal-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 100px 0 60px;
    text-align: center;
}

.legal-title {
    font-size: 48px;
    margin-bottom: 20px;
}

.legal-subtitle {
    font-size: 20px;
    opacity: 0.9;
}

.legal-content {
    padding: 60px 0;
    background: #f8f9fa;
}

.legal-intro {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.legal-section {
    margin-bottom: 50px;
}

.legal-section h2 {
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.legal-section h2 i {
    font-size: 28px;
    color: var(--secondary-color);
}

.legal-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.legal-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 24px;
}

.legal-card ul {
    list-style: none;
    padding-left: 0;
}

.legal-card ul li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
}

.legal-card ul li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.legal-card.warning {
    background: #fff3cd;
    border-left: 5px solid #ffc107;
}

.legal-card.warning h3 {
    color: #856404;
}

.majority-table {
    margin-top: 20px;
}

.majority-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.majority-type {
    font-weight: bold;
    color: var(--primary-color);
}

.legal-info {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    margin: 0;
}

.legal-info dt {
    font-weight: bold;
    color: var(--primary-color);
}

.legal-info dd {
    margin: 0;
    margin-bottom: 10px;
}

.legal-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 50px;
    border-radius: 15px;
    text-align: center;
    margin-top: 50px;
}

.legal-cta h2 {
    color: white;
    margin-bottom: 20px;
}

.legal-cta .btn-primary {
    background: white;
    color: var(--primary-color);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.legal-cta .btn-primary:hover {
    transform: translateY(-2px);
}

.legal-contact-box {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.legal-contact-box h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.legal-update {
    text-align: center;
    margin-top: 50px;
    color: #666;
}

.legal-update p {
    display: inline-block;
    margin: 0 20px;
}

/* PDF Viewer Styles */
.pdf-viewer-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.pdf-intro {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.pdf-intro p {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}

.pdf-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-download,
.btn-fullscreen {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-download {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-fullscreen {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-fullscreen:hover {
    background: var(--primary-color);
    color: white;
}

.pdf-container {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 50px;
}

.pdf-container iframe {
    border: none;
    display: block;
}

/* Fullscreen mode */
.pdf-container:fullscreen {
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-container:fullscreen iframe {
    width: 95%;
    max-width: 1200px;
}

.pdf-summary {
    margin-top: 50px;
}

.pdf-summary h2 {
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.summary-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.summary-card h3 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-card h3 i {
    color: var(--secondary-color);
    font-size: 24px;
}

.summary-card p {
    color: #666;
    line-height: 1.6;
}

/* PDF Mobile Responsive */
@media (max-width: 768px) {
    .pdf-container iframe {
        height: 500px;
    }
    
    .pdf-actions {
        justify-content: center;
    }
    
    .btn-download,
    .btn-fullscreen {
        font-size: 14px;
        padding: 10px 20px;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .legal-title {
        font-size: 36px;
    }
    
    .legal-section h2 {
        font-size: 24px;
    }
    
    .majority-row {
        grid-template-columns: 1fr;
    }
    
    .legal-info {
        grid-template-columns: 1fr;
    }
}

/* Fallback message styling */
.pdf-fallback {
    padding: 50px;
    text-align: center;
    background: #f5f5f5;
    border-radius: 10px;
}

.pdf-fallback i {
    font-size: 60px;
    color: #ccc;
    margin-bottom: 20px;
}

.pdf-fallback p {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

/* Ensure proper spacing for fixed navbar */
body {
    padding-top: 70px;
}

.legal-hero {
    padding-top: 120px;
}

.legal-content:first-child,
section:first-child {
    padding-top: 90px;
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    .legal-hero {
        padding-top: 100px;
    }
}

/* Active state improvements */
.nav-link.active {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .cta-button,
    .btn-primary,
    .hamburger {
        display: none !important;
    }
    
    body {
        padding-top: 0 !important;
    }
    
    .section {
        page-break-inside: avoid;
    }
}

/* Bring logo closer to top */
.hero-logo-square {
    max-width: 200px;
    height: auto;
    margin-bottom: 30px;
    margin-top: -20px; /* Add negative margin to pull it up */
    animation: fadeInDown 1s ease-out;
}

@media (max-width: 768px) {
    .hero-logo-square {
        max-width: 150px;
        margin-top: -10px; /* Less negative margin on mobile */
    }
}

/* Target the container to reduce space at top */
.hero .container {
    padding-top: 0; /* Remove any container padding */
}

/* Ensure body padding accounts for navbar height */
body {
    padding-top: 70px; /* This should match your navbar height */
}

@media (max-width: 768px) {
    body {
        padding-top: 60px; /* Adjust for mobile navbar height */
    }
}

/* ===== FIXES FOR REPORTED ISSUES ===== */

/* 1. Fix Solutions Tab Content Height */
.tab-content {
    padding: 3rem;
    position: relative;
    min-height: 400px;
    overflow: visible;
    transition: height 0.3s ease;
}

.tab-pane {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: relative;
    width: 100%;
}

.tab-pane.active {
    display: block;
    opacity: 1;
    position: relative;
}

.solutions-tabs {
    margin-bottom: 3rem;
    overflow: visible;
}

/* 2. Center Fourth Challenge Box */
@media (min-width: 1024px) {
    .challenges-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .challenge-card:nth-child(4):last-child {
        grid-column: 2 / 3;
    }
}

/* 3. Enhanced Hero Promise */
.hero-promise {
    font-size: 2rem;
    margin: 3rem 0 2rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    text-align: center;
    position: relative;
    padding: 0 20px 15px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(245, 158, 11, 0.8) 20%, 
        rgba(245, 158, 11, 1) 50%, 
        rgba(245, 158, 11, 0.8) 80%, 
        transparent 100%);
    background-size: 200% 3px;
    background-position: center bottom;
    background-repeat: no-repeat;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: -100% bottom; }
    100% { background-position: 100% bottom; }
}

/* 4. Fix Timeline Display */
.timeline-item {
    position: relative;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-badge {
    z-index: 2;
    background: var(--primary-color);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
}

/* 5. Alternating Section Backgrounds */
.challenges {
    background: #f8f9fa;
}

.solutions {
    background: #ffffff;
}

.budgets-explanation {
    background: #f8f9fa;
}

.timeline-modern {
    background: #ffffff;
}

.feedback-survey {
    background: #f8f9fa;
}

.contact {
    background: #ffffff;
}

/* Mobile Navigation Fix */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        position: relative;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        height: calc(100vh - 70px);
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    /* Add overlay behind menu */
    .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 0.75rem 1.5rem;
        display: block;
        width: 100%;
    }
}

/* Form Status Messages */
.alert {
    padding: 12px 20px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.hero-counter {
    margin-top: 20px;
    font-size: 18px;
    opacity: 0.9;
}

.hero-counter .separator {
    margin: 0 15px;
}

.hero-counter strong {
    color: var(--secondary-color);
    font-size: 20px;
}