/* ============================================
   Tropical Vet Consult - Custom Styles
   ============================================ */

/* CSS Variables */
:root {
    --primary-color: #2e48cc;
    --primary-dark: #27ae60;
    --primary-light: #58d68d;
    --secondary-color: #1a5276;
    --accent-color: #f39c12;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --white: #ffffff;
    --gray: #95a5a6;
    --dark-bg: #1a252f;

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
    --border-radius: 15px;
    --border-radius-lg: 25px;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    padding: 15px 0;
    transition: var(--transition);
    background: transparent !important;
}

.navbar.scrolled {
    background: var(--white) !important;
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    font-size: 2rem;
    color: var(--primary-color);
    animation: bounce 2s infinite;
}

.nav-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    border-radius: 50%;
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
}

.navbar.scrolled .brand-text {
    color: #000000;
}

.nav-link {
    font-weight: 500;
    color: #000000 !important;
    margin: 0 10px;
    position: relative;
}

.navbar.scrolled .nav-link {
    color: #000000 !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-icon {
    margin-right: 5px;
    color: var(--primary-color);
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   Hero Section
   ============================================ */
/* Hero section — layout only, no background here */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(26, 83, 118, 0.5), rgba(46, 204, 112, 0.1));
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Background image lives on ::before so we can control attachment
   independently of the section — fixes iOS / Android blank-bg bug */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    /* top/right/bottom/left: 0 */
    z-index: 0;
    background-image: url('../images/bg.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    /* parallax on desktop */
}

/* iOS & Android do NOT support background-attachment: fixed on
   elements — override to scroll so the image always shows */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding-top: 70px; /* Bare minimum to clear navbar */
        padding-bottom: 30px;
        background: linear-gradient(135deg, rgba(26, 83, 118, 0.4), rgba(11, 26, 38, 0.5));
    }

    .hero-section::before {
        background-attachment: scroll;
        background-position: center center;
        background-size: cover; /* Cover it, but since section is now small, it acts like fitting it */
        opacity: 0.9; 
    }
}

/* Make sure all direct children sit above the ::before layer */
.hero-section>* {
    position: relative;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding-top: 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.hero-badge i {
    color: var(--accent-color);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-title i {
    animation: heartbeat 1.5s infinite;
}

.text-highlight {
    color: var(--primary-light);
    position: relative;
}

.text-highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(46, 204, 113, 0.3);
    border-radius: 4px;
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--dark-color);
}

/* Hero Stats */
.hero-stats {
    margin-top: 50px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary-light);
    margin-bottom: 10px;
    display: block;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Floating Icons Animation */
.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.float-icon {
    position: absolute;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.float-icon:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.float-icon:nth-child(2) {
    top: 60%;
    left: 5%;
    animation-delay: 1s;
}

.float-icon:nth-child(3) {
    top: 30%;
    right: 15%;
    animation-delay: 2s;
}

.float-icon:nth-child(4) {
    top: 70%;
    right: 10%;
    animation-delay: 3s;
}

.float-icon:nth-child(5) {
    top: 45%;
    left: 20%;
    animation-delay: 4s;
}

/* ============================================
   Section Styles
   ============================================ */
.section-header {
    margin-bottom: 40px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(46, 204, 113, 0.1);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.1rem;
}

/* ============================================
   About Section
   ============================================ */
.about-section {
    background: var(--light-color);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 50%;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.about-image:hover {
    transform: scale(1.02);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 20px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.experience-badge i {
    font-size: 2rem;
    display: block;
    margin-bottom: 5px;
}

.exp-years {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
    line-height: 1;
}

.exp-text {
    font-size: 0.8rem;
    line-height: 1.2;
}

.floating-paws {
    position: absolute;
    top: -30px;
    left: -30px;
}

.floating-paws i {
    position: absolute;
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.3;
}

.paw-1 {
    top: 0;
    left: 0;
    transform: rotate(-20deg);
}

.paw-2 {
    top: 30px;
    left: 40px;
    transform: rotate(15deg);
}

.paw-3 {
    top: 60px;
    left: 10px;
    transform: rotate(-10deg);
}

.about-text {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-features {
    margin-top: 25px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.feature-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* ============================================
   Services Section
   ============================================ */
.services-section {
    background: #e0f4ff;
    position: relative;
}

.services-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--light-color), transparent);
}

.service-card {
    background: #22c3e739;
    padding: 35px 30px;
    margin: 10px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 18px rgba(128, 0, 128, 0.18);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
    border: 1px solid rgba(128, 0, 128, 0.12);
}

/* .service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: purple;
    transform: scaleX(0);
    transition: var(--transition);
} */

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 36px rgba(128, 0, 128, 0.628);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
    z-index: 2;
    line-height: 90px;
}

.icon-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-bg i {
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
}

.service-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #000000;
}

.service-description {
    color: #000000;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-link:hover {
    color: var(--primary-dark);
    gap: 12px;
}

/* ============================================
   Slider Component  (Services & Gallery)
   ============================================ */
.slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
}

.slider-track-outer {
    overflow: hidden;
    width: 100%;
    border-radius: var(--border-radius);
}

.slider-track {
    display: flex;
    gap: 24px;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Desktop: 3 visible, Mobile: 1 visible */
.slider-slide {
    flex: 0 0 calc((100% - 48px) / 3);
    min-width: 0;
}

@media (max-width: 991px) {
    .slider-slide {
        flex: 0 0 calc((100% - 24px) / 2);
    }
}

@media (max-width: 575px) {
    .slider-slide {
        flex: 0 0 100%;
    }
}

/* Arrow Buttons */
.slider-btn {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: var(--white);
    color: var(--primary-color);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    z-index: 2;
}

.slider-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(46, 204, 113, 0.4);
}

.slider-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

/* Dot indicators */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(46, 204, 113, 0.3);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.slider-dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.5);
}

/* ============================================
   Gallery Section
   ============================================ */
.gallery-section {
    background: var(--light-color);
}

/* Filter buttons */
.gallery-filter-btn {
    background: var(--white);
    border: 2px solid transparent;
    color: var(--dark-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-sm);
}

.gallery-filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.gallery-filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
}

/* Gallery columns (in slider context, hidden means display:none for filter) */
.gallery-col.hidden {
    display: none !important;
}

@keyframes galleryFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Gallery item */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    transition: transform 0.4s ease;
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Overlay */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 82, 118, 0.85) 0%, rgba(26, 82, 118, 0.2) 60%, transparent 100%);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gallery-overlay-content i {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.gallery-label {
    font-size: 1rem;
    font-weight: 600;
}

.gallery-zoom-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: var(--white);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.gallery-zoom-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

/* Category badge */
.gallery-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(-8px);
    transition: var(--transition);
}

.gallery-item:hover .gallery-category-badge {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Gallery Lightbox
   ============================================ */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-lightbox.open {
    visibility: visible;
    opacity: 1;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 30, 0.92);
    backdrop-filter: blur(6px);
    cursor: pointer;
}

.lightbox-container {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    animation: lightboxIn 0.3s ease;
}

@keyframes lightboxIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-img-wrap {
    max-width: 80vw;
    max-height: 75vh;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox-img-wrap img {
    max-width: 80vw;
    max-height: 75vh;
    object-fit: contain;
    display: block;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 25px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: var(--white);
    font-size: 1.4rem;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.lightbox-close:hover {
    background: #e74c3c;
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: var(--white);
    font-size: 1.4rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-caption {
    text-align: center;
    color: var(--white);
}

.lightbox-caption h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.lightbox-caption p {
    font-size: 0.9rem;
    opacity: 0.75;
    margin: 0;
}

/* ============================================
   Blog Section
   ============================================ */
.blog-section {
    background: var(--light-color);
}

.blog-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.blog-card-img {
    position: relative;
    height: 210px;
    overflow: hidden;
    background: #e0f4ff;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.06);
}

.blog-card-img .blog-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 4rem;
    opacity: 0.3;
}

.blog-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.blog-card-body {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-meta {
    font-size: 0.82rem;
    color: var(--gray);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-meta i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.blog-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-excerpt {
    font-size: 0.92rem;
    color: var(--gray);
    margin-bottom: 18px;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.blog-read-more:hover {
    color: var(--primary-dark);
    gap: 12px;
}

/* Blog Modal (full post view) */
.blog-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9990;
    background: rgba(10, 20, 30, 0.85);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.blog-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.blog-modal {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    max-width: 700px;
    width: 90vw;
    max-height: 85vh;
    overflow-y: auto;
    padding: 35px 40px;
    position: relative;
    animation: lightboxIn 0.3s ease;
}

.blog-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
}

.blog-modal-close:hover {
    color: #e74c3c;
    transform: rotate(90deg);
}

.blog-modal-img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.blog-modal-category {
    display: inline-block;
    background: rgba(46, 204, 113, 0.1);
    color: var(--primary-color);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.blog-modal-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.blog-modal-meta {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 18px;
}

.blog-modal-body {
    font-size: 1rem;
    color: #444;
    line-height: 1.8;
    white-space: pre-wrap;
}

@media (max-width: 767px) {
    .blog-card-img {
        height: 160px;
    }

    .blog-modal {
        padding: 25px 20px;
    }

    .blog-modal-title {
        font-size: 1.3rem;
    }
}



.why-us-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.why-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    height: 100%;
    box-shadow: 0 4px 18px rgba(128, 0, 128, 0.15);
    background: rgba(255, 255, 255, 0.5);
}

.why-item:hover {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(128, 0, 128, 0.35);
}

.why-icon {
    width: 60px;
    height: 60px;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.why-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.why-text h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #000000;
}

.why-text p {
    color: #000000;
    font-size: 0.95rem;
    margin: 0;
}

.why-us-image {
    position: relative;
}

.why-us-image img {
    box-shadow: var(--shadow-lg);
}

.floating-animals {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.floating-animals i {
    position: absolute;
    font-size: 2.5rem;
    color: var(--primary-color);
    opacity: 0.3;
    animation: float 4s ease-in-out infinite;
}

.animal-1 {
    top: -20px;
    right: 20px;
    animation-delay: 0s;
}

.animal-2 {
    bottom: 30px;
    left: -20px;
    animation-delay: 1s;
}

.animal-3 {
    bottom: -10px;
    right: 50px;
    animation-delay: 2s;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    background: #e0f4ff;
}

.contact-card {
    background: var(--white);
    padding: 35px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 18px rgba(128, 0, 128, 0.18);
    height: 100%;
    transition: var(--transition);
    border: 1px solid rgba(128, 0, 128, 0.12);
}

.contact-card:hover {
    box-shadow: 0 12px 36px rgba(128, 0, 128, 0.35);
    transform: translateY(-5px);
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--light-color);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.contact-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: #000000;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: 3px;
}

.info-item p {
    margin: 0;
    color: #000000;
}

.info-item a {
    color: #000000;
    font-weight: 500;
}

.info-item a:hover {
    color: var(--primary-color);
}

/* Quick Contact Bar */
.quick-contact-bar {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 40px;
    border-radius: var(--border-radius-lg);
    color: var(--white);
}

.quick-icon {
    font-size: 3rem;
    margin-right: 25px;
}

.quick-contact-bar h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.quick-contact-bar p {
    margin: 0;
    opacity: 0.9;
}

.quick-contact-bar .btn-light {
    background: var(--white);
    color: var(--primary-color);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
}

.quick-contact-bar .btn-light:hover {
    background: var(--dark-color);
    color: var(--white);
}

/* ============================================
   Footer
   ============================================ */
.footer-section {
    background: var(--dark-bg);
    color: var(--white);
}

.footer-top {
    padding: 70px 0 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-brand .brand-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.footer-brand .brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.footer-about {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--white);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-links i {
    font-size: 0.8rem;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
    color: var(--primary-color);
    margin-top: 3px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
}

.copyright,
.cac-info {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.cac-info i {
    color: var(--primary-color);
}

/* ============================================
   Admin Link
   ============================================ */
.admin-link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--dark-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0.3;
    transition: var(--transition);
    z-index: 999;
}

.admin-link:hover {
    opacity: 1;
    background: var(--primary-color);
    transform: rotate(90deg);
}

/* ============================================
   Animations
   ============================================ */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ============================================
   Blog Section
   ============================================ */
.blog-section {
    background: #fdfdfd;
}

.blog-card {
    background: #fff;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.blog-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.blog-meta {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 10px;
}

.blog-meta i {
    color: var(--primary-color);
    margin-right: 5px;
}

.blog-title {
    color: var(--dark-color);
    transition: color 0.3s ease;
    line-height: 1.4;
}

.blog-card:hover .blog-title {
    color: var(--primary-color);
}

.blog-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap 0.3s ease;
    margin-top: 15px;
}

.blog-card:hover .blog-read-more {
    gap: 15px;
    color: var(--dark-color);
}

/* Featured Post Layout */
.blog-card-featured {
    display: flex;
    flex-direction: column;
}

.featured-img-wrap {
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.featured-post-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.blog-card:hover .featured-post-img {
    transform: scale(1.05);
}

.featured-no-img {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #e0f4ff, #c8e6c9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.4;
}

.featured-body {
    flex: 1;
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.featured-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.featured-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}

/* Side Posts Layout */
.blog-card-side {
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 20px;
    align-items: flex-start;
}

.side-post-img {
    width: 110px;
    height: 95px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.side-no-img {
    width: 110px;
    height: 95px;
    border-radius: 12px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #e0f4ff, #c8e6c9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.5;
}

.side-post-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.side-badge {
    position: static;
    display: inline-block;
    margin-bottom: 8px;
    font-size: 0.7rem;
    padding: 4px 10px;
}

.side-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.side-meta {
    margin: 0;
    font-size: 0.82rem;
}

/* Responsive Overrides for Blog */
@media (max-width: 767px) {
    .featured-post-img, .featured-no-img {
        height: 200px;
    }
    
    .featured-body {
        padding: 20px;
    }
    
    .featured-title {
        font-size: 1.25rem;
    }
    
    .blog-card-side {
        padding: 15px;
        gap: 15px;
    }
    
    .side-post-img, .side-no-img {
        width: 90px;
        height: 80px;
    }
    
    .side-title {
        font-size: 1rem;
    }
    
    .side-meta {
        font-size: 0.78rem;
    }
}

@media (max-width: 480px) {
    .blog-card-side {
        flex-direction: column;
        align-items: stretch;
    }
    
    .side-post-img, .side-no-img {
        width: 100%;
        height: 160px;
    }
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .experience-badge {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 20px;
        display: inline-block;
    }

    .quick-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

@media (max-width: 767px) {
    .hero-content {
        padding-top: 10px;
    }

    .hero-badge {
        padding: 5px 12px;
        font-size: 0.8rem;
        margin-bottom: 10px;
    }

    .hero-title {
        font-size: 1.8rem; /* Much smaller to fit inside image */
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .hero-buttons {
        gap: 10px;
    }

    .hero-buttons .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .quick-contact-bar {
        text-align: center;
    }

    .quick-contact-bar .d-flex {
        flex-direction: column;
    }

    .why-us-content {
        gap: 10px;
    }

    .why-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px 10px;
        gap: 10px;
    }

    .why-icon {
        width: 45px;
        height: 45px;
    }

    .why-icon i {
        font-size: 1.2rem;
    }

    .why-text h4 {
        font-size: 1rem;
        margin-bottom: 5px;
    }

    .why-text p {
        font-size: 0.85rem;
    }
    
    /* Services Section Compactness on Mobile */
    .services-section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .service-card {
        padding: 20px 15px; /* Reduced from 35px 30px */
        margin: 5px; /* Reduced from 10px */
    }
    
    .service-icon-wrapper {
        width: 60px; /* Reduced from 90px */
        height: 60px;
        margin: 0 auto 15px; /* Reduced bottom margin */
    }
    
    .service-icon {
        font-size: 1.8rem; /* Reduced from 2.5rem */
        line-height: 60px; /* Match new wrapper height */
    }
    
    .icon-bg i {
        font-size: 2.5rem; /* Reduced from 4rem */
    }
    
    .service-title {
        font-size: 1.1rem; /* Reduced from 1.3rem */
        margin-bottom: 10px;
    }
    
    .service-description {
        font-size: 0.85rem; /* Reduced from 0.95rem */
        margin-bottom: 10px;
    }
}

/* Scroll Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}