/* LIC Agent Website Styles */
:root {
    --lic-blue: #0A3D91;
    --lic-yellow: #F7C600;
    --lic-light-blue: #1E5BA8;
    --lic-dark-blue: #062B61;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

/* Call Float Button */
.call-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 110px;
    right: 40px;
    background-color: var(--lic-blue);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.call-float:hover {
    background-color: var(--lic-dark-blue);
    color: white;
    transform: scale(1.1);
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: white;
    transform: scale(1.1);
}

/* Owner Photo Styles */
.owner-photo-container {
    text-align: center;
}

.owner-photo {
    max-width: 400px;
    border: 4px solid var(--lic-blue);
    box-shadow: 0 10px 30px rgba(10, 61, 145, 0.3);
    transition: transform 0.3s ease;
}

.owner-photo:hover {
    transform: scale(1.05);
}

.photo-caption {
    margin-top: 15px;
}

.photo-caption h4,
.photo-caption h5 {
    margin-bottom: 5px;
}

.hero-caption {
    margin-top: 15px;
}

.hero-caption h4 {
    margin-bottom: 5px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--lic-blue) 0%, var(--lic-light-blue) 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,133.3C960,128,1056,96,1152,90.7C1248,85,1344,107,1392,117.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

/* Blog Cards */
.blog-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
}

.blog-image {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-category .badge {
    font-size: 0.75rem;
    padding: 4px 8px;
}

/* Service Cards */
.service-card {
    text-align: center;
    border: none;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: visible;
}

.service-card .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: visible;
    justify-content: space-between;
}

.service-card .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card .card-content p {
    flex: 1;
}

.service-card .btn {
    margin-top: auto;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--lic-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: var(--lic-blue);
}

/* Achievement Cards */
.achievement-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 5px solid var(--lic-yellow);
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 60px;
    color: var(--lic-yellow);
    opacity: 0.3;
}

/* Blog Cards */
.blog-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.blog-image {
    height: 200px;
    object-fit: cover;
}

.blog-placeholder {
    height: 200px;
}

/* CTA Buttons */
.btn-primary {
    background-color: var(--lic-blue);
    border-color: var(--lic-blue);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--lic-light-blue);
    border-color: var(--lic-light-blue);
    transform: translateY(-2px);
}

.btn-warning {
    background-color: var(--lic-yellow);
    border-color: var(--lic-yellow);
    color: var(--lic-blue);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background-color: #E5B400;
    border-color: #E5B400;
    color: var(--lic-blue);
    transform: translateY(-2px);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 180px;
    right: 40px;
    width: 50px;
    height: 50px;
    background-color: var(--lic-blue);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: none;
    z-index: 999;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background-color: var(--lic-light-blue);
    transform: scale(1.1);
}

/* Contact Form */
.contact-form {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-control, .form-select {
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--lic-blue);
    box-shadow: 0 0 0 0.2rem rgba(10, 61, 145, 0.25);
}

/* Stats Section */
.stats-card {
    background: linear-gradient(135deg, var(--lic-blue) 0%, var(--lic-light-blue) 100%);
    color: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.stats-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--lic-yellow);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
    
    .call-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 80px;
        right: 20px;
    }
    
    .back-to-top {
        bottom: 140px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Hide scrollbars globally but keep functionality */
::-webkit-scrollbar {
    display: none;
}

* {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Container and Row Fixes */
.container, .container-fluid {
    max-width: 1140px;
    margin: 0 auto;
    overflow-x: hidden;
    overflow-y: visible;
    padding-left: 30px;
    padding-right: 30px;
}

.row {
    margin: 0;
    overflow-x: hidden;
    overflow-y: visible;
}

/* Section Spacing */
section {
    overflow-x: hidden;
    overflow-y: visible;
    padding-left: 30px;
    padding-right: 30px;
}

/* Service Cards Container */
.service-cards-container {
    overflow-y: visible;
    max-height: none;
}

/* Remove scrollbar from service cards */
.service-card {
    overflow: visible;
}

/* Service page specific overflow control */
.services-page .row {
    overflow-y: visible !important;
}

.services-page section {
    overflow-y: visible !important;
}

/* Services Overview Section - Remove all scrollbars */
section.py-5 {
    overflow: visible !important;
    overflow-y: visible !important;
    overflow-x: hidden !important;
}

section.py-5 .row {
    overflow: visible !important;
    overflow-y: visible !important;
}

section.py-5 .col-lg-4,
section.py-5 .col-md-6 {
    overflow: visible !important;
    overflow-y: visible !important;
}

/* Additional spacing for better visual balance */
.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

@media (max-width: 768px) {
    section {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .container, .container-fluid {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Hero Section Mobile Fixes */
    .hero-section {
        padding: 60px 0 !important;
        text-align: center;
    }
    
    .hero-section .row {
        flex-direction: column;
    }
    
    .hero-section .col-lg-6 {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .hero-image img {
        max-width: 250px !important;
        height: auto !important;
        margin: 0 auto;
        display: block;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 30px;
    }
    
    .hero-content h1 {
        font-size: 2rem !important;
        margin-bottom: 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .hero-buttons .btn-warning {
        margin-bottom: 25px; /* Add more space below the Call Now button */
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .trust-badges {
        justify-content: center;
        margin-top: 30px;
    }
    
    .owner-photo {
        max-width: 250px !important;
        height: auto !important;
    }
}

/* Image and Media Fixes */
img {
    max-width: 100%;
    height: auto;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--lic-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Active Navigation Link */
.navbar-nav .nav-link.active {
    color: var(--lic-yellow) !important;
    font-weight: 600;
    position: relative;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--lic-yellow);
    border-radius: 1px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
