@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --primary-red: #E21F26;
    --secondary-white: #FFFFFF;
    --text-dark: #333333;
    --text-muted: #6c757d;
    --light-gray: #f8f9fa;
}

h1,
h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    line-height: 1.65;
    color: var(--text-dark);
    background-color: var(--secondary-white);
}

.container {
    max-width: 1100px;
}

/* Custom Buttons */
.btn-primary-custom {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
    padding: 10px 24px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.btn-outline-custom {
    color: var(--primary-red);
    border-color: var(--primary-red);
    padding: 10px 24px;
    font-weight: 500;
}

.btn-outline-custom:hover {
    background-color: var(--primary-red);
    color: white;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 8px 0;
}

.navbar-brand {
    font-weight: 600;
    color: var(--primary-red) !important;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    margin-left: 1rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-red);
}

/* Hero Section */
.hero-section {
    padding: 30px 0 0 0;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-weight: 700;
    font-size: 3.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title span {
    color: var(--primary-red);
}

/* Features Section */
.feature-card {
    border: none;
    transition: all 0.3s ease;
    height: 100%;
    background: white;
    border-radius: 12px;
    padding: 2rem;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: white;
    padding: 60px 0 20px;
}

.footer a {
    color: #ccc;
    text-decoration: none;
}

.footer a:hover {
    color: var(--primary-red);
}

/* Vertical Timeline Styles */
.timeline-section {
    position: relative;
    padding: 0;
}

.timeline-section::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 40px;
    /* Adjust based on icon size */
    width: 2px;
    background: #e9ecef;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 100px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 10px;
    /* Center the marker on the line (40px line - 30px half marker center is not right.. wait. Line is at 40px. Marker width 60px. Center of marker is 30px. So Left 10px puts center at 40px.) */
    width: 60px;
    height: 60px;
    background: white;
    border: 3px solid var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    color: var(--primary-red);
    z-index: 1;
    box-shadow: 0 0 0 10px white;
}

.timeline-marker.active {
    background: var(--primary-red);
    color: white;
}

.timeline-content {
    background: white;
    padding: 0;
}

@media (max-width: 576px) {
    .timeline-section::before {
        left: 30px;
    }

    .timeline-marker {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        left: 10px;
        box-shadow: 0 0 0 5px white;
    }

    .timeline-item {
        padding-left: 70px;
    }
}


/* Card Hover Effect */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .1) !important;
}

/* WhatsApp Widget */
.wa-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.wa-float-btn {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1002;
}

.wa-float-btn:hover {
    transform: scale(1.1);
}

.wa-float-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    z-index: -1;
    animation: pulse 2s infinite;
    opacity: 0.6;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.wa-float-btn.active {
    transform: rotate(45deg);
    background-color: var(--primary-red);
}

.wa-float-btn.active::after {
    animation: none;
}

.wa-chat-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1001;
}

.wa-chat-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.wa-header {
    background: linear-gradient(135deg, var(--primary-red) 0%, #b0141a 100%);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.wa-body {
    padding: 20px;
    background-color: #f8f9fa;
}

.wa-input-group {
    background: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
}

.wa-form-control {
    border: none;
    border-bottom: 2px solid #eee;
    border-radius: 0;
    padding: 10px 0;
    font-size: 0.9rem;
    width: 100%;
    transition: border-color 0.3s;
    background: transparent;
}

.wa-form-control:focus {
    outline: none;
    box-shadow: none;
    border-color: var(--primary-red);
}

.wa-welcome-msg {
    background: white;
    padding: 15px;
    border-radius: 15px;
    border-bottom-left-radius: 5px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #444;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: relative;
}

.section-title {
    position: relative;
    display: inline-block;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-red);
}

/* Contact Page Styles */
.contact-wrapper {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.contact-info-side {
    background-color: var(--primary-red);
    color: white;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.contact-info-side::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.contact-info-side::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.contact-form-side {
    padding: 3rem;
}

.form-floating>.form-control {
    border: none;
    border-bottom: 2px solid #eee;
    background-color: transparent;
    border-radius: 0;
    padding-left: 0;
    box-shadow: none;
}

.form-floating>.form-control:focus {
    border-color: var(--primary-red);
    box-shadow: none;
}

.form-floating>label {
    padding-left: 0;
    color: var(--text-muted);
}

.contact-detail-item {
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
}

.contact-detail-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.social-links a {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: white;
    color: var(--primary-red);
    transform: translateY(-3px);
}



/* Social Share Buttons */
.btn-share {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.3s ease;
    color: var(--primary-red);
    border: 1px solid var(--primary-red);
    background: white;
}

.btn-share:hover {
    background-color: var(--primary-red);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(226, 31, 38, 0.2);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #212529;
    color: white;
    padding: 1rem;
    z-index: 1050;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

/* Button Arrow Animation */
.btn .bi-arrow-right {
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn:hover .bi-arrow-right {
    transform: translateX(5px);
}

.cookie-banner.show {
    transform: translateY(0);
}

/* Offcanvas Custom Styling */
.offcanvas.offcanvas-end {
    width: 320px;
    border-left: none;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
}

.offcanvas-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.offcanvas-body {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.offcanvas-nav {
    list-style: none;
    padding: 1rem 0;
    margin: 0;
}

.offcanvas-nav-item {
    padding: 0 1rem;
}

.offcanvas-nav-link {
    display: flex;
    align-items: center;
    padding: 0.85rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 300;
    border-radius: 12px;
    transition: all 0.25s ease;
    margin-bottom: 0.25rem;
}

.offcanvas-nav-link i {
    font-size: 1.25rem;
    margin-right: 1.25rem;
    width: 24px;
    text-align: center;
    color: #999;
    transition: all 0.25s ease;
}

.offcanvas-nav-link:hover {
    background-color: rgba(226, 31, 38, 0.05);
    color: var(--primary-red);
    padding-left: 1.5rem;
}

.offcanvas-nav-link:hover i {
    color: var(--primary-red);
}

.offcanvas-nav-link.active {
    background-color: var(--primary-red);
    color: white;
}

.offcanvas-nav-link.active i {
    color: white;
}

.offcanvas-footer {
    padding: 2rem;
    margin-top: auto;
    background-color: #fcfcfc;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.offcanvas-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.offcanvas-contact-item i {
    width: 20px;
    margin-right: 10px;
    color: var(--primary-red);
}

.offcanvas-social {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
}

.offcanvas-social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eee;
    color: var(--text-dark);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Theme Utilities */
.bg-dark-rich {
    background-color: #111111;
    color: white;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Section Title for Dark Backgrounds */
.bg-dark-rich .section-title {
    color: white !important;
}

.bg-dark-rich .section-title::after {
    background-color: var(--primary-red);
}

/* Enhanced Card Shadows */
.card.shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12) !important;
}

/* Dark Section Cards */
.card-dark {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: none;
    /* Keep it light as requested */
    transition: all 0.3s ease;
}

.card-dark:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.card-dark h5,
.card-dark h4 {
    color: white;
}

.card-dark .text-muted {
    color: #999 !important;
}

/* Gradient Transitions (Subtle) */
.section-fade-top {
    mask-image: linear-gradient(to bottom, transparent, black 150px);
}

/* Blog Card Specifics */
.blog-card {
    background: white;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    /* Added for stretched-link */
}

.blog-card-img-wrapper {
    position: relative;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.blog-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.blog-card:hover .blog-card-img-wrapper img {
    transform: scale(1.1);
}

.blog-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-title {
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 1.15rem;
}

.blog-card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.blog-card-link {
    font-weight: 500;
    color: var(--primary-red);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.blog-card-link i {
    transition: transform 0.3s ease;
}

.blog-card-link:hover i {
    transform: translateX(5px);
}

/* --- Mobile Responsiveness Adjustments --- */

@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.75rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .display-4 {
        font-size: 2.5rem;
    }

    .display-5 {
        font-size: 2rem !important;
    }
}

@media (max-width: 767.98px) {
    /* Global Spacing */
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    /* Hero Section */
    .hero-title {
        font-size: 2.25rem;
        margin-bottom: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.75rem !important;
    }

    /* Cards & Components */
    .feature-card {
        padding: 1.5rem;
    }

    .blog-card-body {
        padding: 1.25rem;
    }

    .blog-card-title {
        font-size: 1.1rem;
    }

    /* Contact Section */
    .contact-info-side, 
    .contact-form-side {
        padding: 2rem 1.5rem;
    }

    .contact-info-side h1 {
        font-size: 1.75rem;
    }

    /* Typography Utilities */
    .lead {
        font-size: 1.1rem;
    }

    /* Navigation */
    .navbar-brand {
        font-size: 1.25rem;
    }

    .navbar-brand img {
        width: 90px !important;
    }

    /* Offcanvas */
    .offcanvas-footer {
        padding: 1.5rem;
    }

    /* Section Spacing Refinement */
    section.py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

@media (max-width: 575.98px) {
    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .display-4 {
        font-size: 1.75rem;
    }

    .display-5 {
        font-size: 1.5rem !important;
    }

    /* Reducing general padding further */
    .py-5, section.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .card.p-4 {
        padding: 1rem !important;
    }

    .feature-card {
        padding: 1rem;
    }

    .feature-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .feature-card h5 {
        font-size: 1rem;
    }

    footer img {
        width: 100px !important;
    }

    .contact-wrapper {
        border-radius: 0; /* Full width feel on very small screens */
    }
}