/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* Navbar Styles */
.navbar-custom {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-custom .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 2rem;
    padding-right: 2rem;
}

.navbar-brand {
    position: static;
    transform: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: #8b4513 !important;
    max-width: 60%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 auto;
    text-align: center;
}

.navbar-custom .navbar-toggler {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    z-index: 2;
    /* slightly smaller tappable area and icon */
    padding: 0.25rem 0.4rem;
    border-radius: 6px;
}

/* Reduce the size of the hamburger icon */
.navbar-custom .navbar-toggler .navbar-toggler-icon {
    width: 1.1rem;
    height: 1.1rem;
    background-size: 1.1rem 1.1rem;
}

@media (min-width: 769px) {
    /* on larger screens keep it a bit smaller so it doesn't dominate */
    .navbar-custom .navbar-toggler .navbar-toggler-icon {
        width: 1rem;
        height: 1rem;
        background-size: 1rem 1rem;
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        position: static;
        transform: none;
        margin: 0 auto;
    }

    .navbar-custom .container-fluid {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .navbar-custom .navbar-toggler {
        position: absolute;
        right: 0.75rem;
        top: 50%;
        transform: translateY(-50%);
    }
}

.brand-emoji {
    font-size: 1.3rem;
    margin-right: 5px;
}

.navbar-custom .nav-link {
    color: #333 !important;
    font-weight: 500;
    margin-left: 1rem;
    transition: color 0.3s ease;
}

.navbar-custom .nav-link:hover {
    color: #8b4513 !important;
}

/* Hero Section */
.hero-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('../images/Background.jpg');
    /* move focal point slightly left so faces are visible on wide screens */
    background-position: 35% center;
    background-repeat: no-repeat;
    background-size: cover;
    /* leave enough space below the sticky navbar so content doesn't mix */
    padding-top: 80px;
    min-height: calc(60vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
}

/* keep navbar above hero */
.navbar-custom {
    z-index: 1040;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-text {
    animation: fadeInUp 0.8s ease;
}

/* CTA Button Section Below Hero */
.hero-cta-section {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.1) 0%, rgba(255, 255, 255, 0.95) 100%);
    padding: 2rem 0;
    text-align: center;
}

.hero-cta-section .btn-hero {
    margin-top: 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #f3efe7;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.55);
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #f7f2eb;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.45);
}

.hero-meta {
    font-size: 1rem;
    opacity: 0.95;
    color: #e8e3d9;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.45);
}

.btn-hero {
    background-color: rgba(255, 255, 255, 0.35);
    border: 2px solid white;
    color: white;
    font-weight: 600;
    padding: 15px 40px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.btn-hero:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Headers */
.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #8b4513;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1rem;
    color: #666;
    margin-top: 0.5rem;
}

/* About Section */
.about-section {
    background: white;
    padding: 60px 0;
}

.about-section h4 {
    color: #8b4513;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Service Cards */
.service-card {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: #8b4513;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.service-card-img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h5 {
    color: #333;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.service-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Blog Section */
.blog-section {
    padding: 60px 0;
}

.blog-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
    border-left: 4px solid #8b4513;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.blog-date {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.blog-card h5 {
    color: #333;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.blog-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.read-more {
    color: #8b4513;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #654321;
    text-decoration: underline;
}

/* Gallery Section */
.gallery-section {
    background: white;
    padding: 60px 0;
}

.nav-tabs {
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 2rem;
}

.nav-tabs .nav-link {
    color: #666;
    font-weight: 600;
    border: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
}

.nav-tabs .nav-link:hover {
    color: #8b4513;
    border-bottom-color: #8b4513;
}

.nav-tabs .nav-link.active {
    color: #8b4513;
    border-bottom-color: #8b4513;
    background-color: transparent;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    height: 300px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Carousel inside gallery item should fill the container */
.gallery-carousel {
    width: 100%;
    height: 100%;
}
.gallery-carousel .carousel-inner,
.gallery-carousel .carousel-item {
    height: 100%;
}
.gallery-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h6 {
    font-weight: 700;
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Social Section */
.social-section {
    padding: 60px 0;
}

.social-benefits {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.btn-social {
    background-color: #8b4513;
    border-color: #8b4513;
    color: white;
    font-weight: 600;
    padding: 12px 30px;
    transition: all 0.3s ease;
}

.btn-social:hover {
    background-color: #654321;
    border-color: #654321;
    transform: scale(1.05);
}

/* Vargani Section */
.vargani-section {
    background: white;
    padding: 60px 0;
}

.vargani-section h3 {
    color: #8b4513;
    font-weight: 700;
}

.vargani-section .lead {
    color: #666;
    font-size: 1.1rem;
}

.vargani-features {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #8b4513;
}

.vargani-features p {
    margin-bottom: 0.8rem;
    color: #333;
    font-weight: 500;
}

.vargani-icon {
    font-size: 8rem;
    opacity: 0.8;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.btn-primary {
    background-color: #8b4513;
    border-color: #8b4513;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #654321;
    border-color: #654321;
    transform: scale(1.05);
}

/* Contact Section */
.contact-section {
    padding: 60px 0;
}

.contact-section h5 {
    color: #8b4513;
    font-weight: 700;
    margin-bottom: 1rem;
}

.form-control {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #8b4513;
    box-shadow: 0 0 0 0.2rem rgba(139, 69, 19, 0.25);
}

.btn-outline-primary {
    color: #8b4513;
    border-color: #8b4513;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: #8b4513;
    border-color: #8b4513;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer strong {
    color: #8b4513;
}

.footer-link {
    color: #8b4513;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #ffa500;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-section {
        padding-top: 60px;
        min-height: calc(50vh - 60px);
        background-position: center center;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-icon {
        font-size: 2.5rem;
    }

    .vargani-icon {
        font-size: 5rem;
    }

    .gallery-item {
        height: 250px;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }
}

@media (min-width: 1200px) {
    .hero-section {
        min-height: 75vh;
        background-position: center center;
    }
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.service-card {
    animation: slideIn 0.5s ease;
}

/* Vargani Page Styles */
.vargani-card {
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.vargani-card:hover {
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.15) !important;
}

.vargani-input {
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.vargani-input:focus {
    border-color: #8b4513;
    box-shadow: 0 0 0 0.2rem rgba(139, 69, 19, 0.25);
}

.vargani-btn {
    background-color: #8b4513;
    border-color: #8b4513;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.vargani-btn:hover {
    background-color: #654321;
    border-color: #654321;
    transform: scale(1.02);
    color: white;
}

.stat-item {
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.stat-item:last-child {
    border-bottom: none;
}

/* Print Styles */
@media print {
    .navbar-custom, .vargani-hero, .footer {
        display: none;
    }
}
    border-radius: 4px;
}

.stat-item p {
    font-size: 0.95rem;
    font-weight: 500;
}

.stat-item h3 {
    font-weight: 700;
    margin: 5px 0;
}

/* Table Styles */
.table {
    margin-bottom: 0;
}

.table thead {
    background-color: #f8f9fa;
}

.table tbody tr {
    border-bottom: 1px solid #dee2e6;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Alert Styles */
.alert {
    border-radius: 5px;
    border: none;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Footer */
footer {
    background-color: #212529;
    margin-top: 50px;
    border-top: 3px solid #dc3545;
}

footer p {
    margin: 0;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .card {
        margin-bottom: 20px;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease;
}

/* Success/Error Messages */
.show {
    display: block !important;
    animation: fadeIn 0.3s ease;
}

/* Typography */
h2, h3, h4 {
    color: #333;
    font-weight: 700;
}

/* Links */
a {
    color: #dc3545;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #c82333;
    text-decoration: underline;
}

/* Section Padding */
section {
    padding: 50px 0;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-5 {
    margin-top: 3rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}
