/*
Theme Name: Hospital Care
Theme URI: http://localhost
Author: Hospital Dev
Description: A professional hospital WordPress theme
Version: 1.0
*/

/* ===================== Body & Basics ===================== */
body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f4f8fb;
    color: #333;
}

/*nav--------------------------------*/
header nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 50;
}

header nav ul li {
    margin-left: 20px; /* spacing between items */
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

/* Header styling */
header {
    background: #286dd1;
    color: #fff;
    padding: 15px 0; /* reduce padding since .header-container has its own */
}

/* Header container for logo + nav */
header .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px; /* horizontal padding only */
}
/* Base button */
.btn-appointment {
    display: inline-block;
    background: #25D366; /* WhatsApp green */
    color: #ffffff !important;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Hover */
.btn-appointment:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
}

/* Sticky state (when scrolling) */
.header-cta.sticky {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    animation: slideIn 0.4s ease forwards;
}

/* Slide-in animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse animation (subtle attention) */
.header-cta.sticky .btn-appointment {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Logo */
header .logo img.custom-logo {
    max-height: 80px;
    width: auto;
}

/* Fallback site title */
header h1 {
    margin: 0;
    font-size: 28px;
}

/* Navigation links */
header nav a {
    color: #fff;
    margin-left: 20px; /* spacing between links */
    text-decoration: none;
    font-weight: 600;
}

/* Responsive: stack on small screens */
@media (max-width: 768px) {
    header .header-container {
        flex-direction: column;
        text-align: center;
    }

    header nav a {
        margin: 10px 0; /* vertical spacing between links */
    }

    header .logo img.custom-logo {
        max-height: 60px;
        margin-bottom: 10px;
    }
}

/* ===================== Hero ===================== */
.hero {
    background: linear-gradient(to right, #0b5ed7, #0dcaf0);
    color: #fff;
    padding: 100px 20px;
    text-align: center;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 500px;           /* Keep your desired height */
    overflow: hidden;        /* Hides the bottom of the image */
    background: #286dd1;     /* Match header to prevent white gaps */
    display: block;
    width: 100%;
	padding-top: 0px;
}
.hero-slider .slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
	/* REDUCE IMAGE SIZE: 0.8 = 80%, 0.7 = 70% */


}
}
.slide img {
	width: 100%;
	height: 100%;
	object-fit: fit;
	object-position: top-center;
}
.hero-slider .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* black semi-transparent */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}
/* Overlay text */
.hero-slider .overlay h1.overlay-main {
    font-size: 72px;       /* big font */
    color: rgb(110, 108, 108); /* updated dark color */
    margin: 0 0 15px 0;
}

.hero-slider .overlay p.overlay-dark {
    font-size: 72px;
    color: rgb(110, 108, 108); /* updated dark color */
    margin: 0 0 10px 0;
}

.hero-slider .overlay p.overlay-light {
    font-size: 64px;
    color: #fff; /* white */
    margin: 0;
}
@media (max-width: 768px) {
    .hero-slider .overlay h1.overlay-main {
        font-size: 40px;
    }
    .hero-slider .overlay p.overlay-dark,
    .hero-slider .overlay p.overlay-light {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .hero-slider .overlay h1.overlay-main {
        font-size: 28px;
    }
    .hero-slider .overlay p.overlay-dark,
    .hero-slider .overlay p.overlay-light {
        font-size: 20px;
    }
}


.slides {
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slider Overlay Text */
.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(11, 109, 183, 0.65);
    color: #fff;
    text-align: center;
    padding: 30px 45px;
    border-radius: 12px;
}

.overlay-text h1 {
    font-size: 44px;
    margin: 0;
}

.overlay-text p {
    font-size: 20px;
    margin-top: 10px;
}

/* ===================== Services Section ===================== */
#home-services {
    background: #f5f8fc;
    padding: 60px 20px;
    text-align: center;
}

#home-services h2 {
    margin-bottom: 40px;
    font-size: 32px;
    color: #0b6db7;
}


/* ================= SPECIALTIES HOME ================= */
.specialties-section {
    padding: 60px 20px;
    background: #f5f8fc;
    text-align: center;
}

.specialties-section h2 {
    font-size: 32px;
    color: #0b6db7;
    margin-bottom: 40px;
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}
.specialties-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Always 3 columns */
    gap: 20px;
    padding: 20px;
}

.specialty-card {
    width: 100%;
}

/* Card */
.specialty-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.specialty-card:hover {
    transform: translateY(-5px);
}

/* Image */
.specialty-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* Content */
.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    margin-bottom: 10px;
}

.card-content p {
    flex-grow: 1;
    font-size: 14px;
}

/* Button */
.read-more {
    margin-top: 15px;
    color: #0b6db7;
    font-weight: bold;
}

/* ================= SINGLE PAGE ================= */

.specialty-hero {
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.specialty-hero .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.specialty-hero h1 {
    color: #fff;
    font-size: 40px;
}

.specialty-container {
    max-width: 900px;
    margin: 50px auto;
    padding: 0 20px;
}

.specialty-content {
    font-size: 16px;
    line-height: 1.8;
}

/* Buttons */
.specialty-buttons {
    margin-top: 40px;
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 20px;
    background: #0b6db7;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
}

.btn.secondary {
    background: #555;
}



.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    justify-items: center;
}

.card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.card h3 {
    margin: 10px 0;
}

.card p {
    flex-grow: 1;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #0b6db7;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.read-more:hover {
    background: #094a80;
}

/* ===================== Single Service Page ===================== */
#service-single {
    max-width: 900px;
    margin: 50px auto;
    padding: 0 20px;
}

.service-header {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.service-header .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 109, 183, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.service-header .overlay h1 {
    color: #fff;
    font-size: 42px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
    margin: 0;
}

.service-content-wrapper {
    max-width: 900px;
    margin: 50px auto;
    padding: 0 20px;
}

.service-content-wrapper .service-content {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.read-more.back {
    display: inline-block;
    margin-top: 25px;
    padding: 10px 25px;
    background: #0b6db7;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.read-more.back:hover {
    background: #094a80;
}

/* ===================== Footer ===================== */
footer {
    background: #0b5ed7;
    color: #fff;
    text-align: center;
    padding: 15px;
}

/* ===================== Why Choose Us Carousel ===================== */
#why-choose-us {
    background: #ffffff;
    text-align: center;
}

#why-choose-us h2 {
    margin-bottom: 40px;
    font-size: 32px;
    color: #0b6db7;
    text-align: center;
}

.why-carousel {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 20px 0;
}

/* Make the track scrollable horizontally */
.why-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;      /* allow horizontal scrolling */
    scroll-behavior: smooth; /* smooth scrolling when using JS or scrollbar */
    -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
    scrollbar-width: thin; /* Firefox */
}

/* Optional: hide scrollbar for clean look */
.why-track::-webkit-scrollbar {
    height: 8px;
}

.why-track::-webkit-scrollbar-thumb {
    background: rgba(11,109,183,0.5);
    border-radius: 4px;
}


.why-carousel:hover .why-track {
    animation-play-state: paused;
}

.why-card {
    flex: 0 0 350px;      /* fixed width */
    max-width: 310px;
    height: 300px;        /* fixed card height */
    margin: 0 auto;
    background: #f5f8fc;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;           /* important: prevent inner overflow */
}

.why-card:hover {
    transform: translateY(-5px);
}

.why-card img {
    width: 100%;
    height: 140px;            /* same height for all images */
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
    flex-shrink: 0;           /* prevent shrinking */
}

.why-card h3 {
    font-size: 18px;
    text-align: center;
    margin: 10px 0 5px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;       /* single line title */
}


.why-card p {
    font-size: 16px;
    line-height: 2;
    text-align: center;
    margin: 0;
    flex-shrink: 0;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;       /* max 4 lines */
    overflow: hidden;

    word-break: break-word;       /* break long words if needed */
    white-space: normal;          /* allow wrapping to new lines */
}





/* Responsive adjustments for carousel */
@media (max-width: 768px) {
    .why-card {
        min-width: 200px;
    }
}

@media (max-width: 480px) {
    .why-card {
        min-width: 180px;
    }
}

/* ===================== Carousel Scroll Animation ===================== */
@keyframes scroll-left {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* ===================== Modal ===================== */
.why-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
}

.why-modal-content {
    background: #fff;
    max-width: 600px;
    width: 90%;
    padding: 30px;
    border-radius: 10px;
    position: relative;
}

.why-close {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.why-modal h2 {
    color: #0b6db7;
    margin-bottom: 15px;
}
html {
    scroll-behavior: smooth;
}

/* Accreditation Section */
#accreditation {
    background: #f5f8fc;
    text-align: center;
    padding: 10px 20px;
}

#accreditation h2 {
    font-size: 32px;
    color: #0b6db7;
    margin-bottom: 40px;
}

.accreditation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    justify-items: center;
    align-items: center;
}

.accreditation-card {
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.accreditation-card:hover {
    transform: translateY(-5px);
}

.accreditation-card img {
    max-width: 120px;
    max-height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.accreditation-card h3 {
    font-size: 16px;
    color: #333;
    text-align: center;
    margin: 0;
}

/*-----------------------------INSURANCES----------------------*/
/* Insurances Section */
#insurances {
    background: #ffffff;
    text-align: center;
    padding: 60px 20px;
}

#insurances h2 {
    font-size: 32px;
    color: #0b6db7;
    margin-bottom: 40px;
}

/* Carousel container */
.insurance-carousel {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 20px 0;
}

/* Track holding all cards */
.insurance-track {
    display: flex;
    gap: 30px;
    white-space: nowrap;
    transition: transform 0.3s ease;
}

/* Each insurance card */
.insurance-card {
    flex: 0 0 180px;       /* fixed width per card */
    max-width: 180px;
    background: #f5f8fc;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.insurance-card:hover {
    transform: translateY(-5px);
}

.insurance-card img {
    width: 100%;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.insurance-card h3 {
    font-size: 14px;
    color: #333;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .insurance-card {
        flex: 0 0 140px;
        max-width: 140px;
    }
}

@media (max-width: 480px) {
    .insurance-card {
        flex: 0 0 120px;
        max-width: 120px;
    }
}

/* ===================== Health Tips Grid ===================== */
#health-tips {
    background: #f5f8fc;
    padding: 60px 20px;
    text-align: center;
}

#health-tips h2 {
    font-size: 32px;
    color: #0b6db7;
    margin-bottom: 40px;
}

.health-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    justify-items: center;
}

.health-tip-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
    height: 100%;            /* ensures all cards have the same height */
}

.health-tip-card:hover {
    transform: translateY(-5px);
}

.health-tip-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.health-tip-card h3 {
    font-size: 18px;
    margin: 10px 0 5px 0;
}

.health-tip-card p {
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 15px;
    flex-grow: 1;           /* allows text to fill space so button stays at bottom */
}

/* ===================== Read More Button ===================== */
.health-tip-card .read-more {
    margin-top: auto;       /* pushes button to the bottom of card */
    padding: 10px 20px;
    background: #0b6db7;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.health-tip-card .read-more:hover {
    background: #094a80;
}

/* ===================== Single Health Tip Page ===================== */
.health-tip-single {
    max-width: 900px;
    margin: 50px auto;
    padding: 0 20px;
    text-align: center;
}

.health-tip-single img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin: 20px 0;
}

.health-tip-single h1 {
    font-size: 32px;
    color: #0b6db7;
}

.health-tip-single .health-tip-content {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Health tip content images: float left with text wrapping */
.health-tip-content img {
    float: left;
    margin: 0 15px 15px 0;
    max-width: 40%;
    height: auto;
}

/* Clear floats at the end of the content */
.health-tip-content::after {
    content: "";
    display: table;
    clear: both;
}

/* Float images right with 'float-right' class */
.health-tip-content img.float-right {
    float: right;
    margin: 0 0 15px 15px;
    max-width: 40%;
    height: auto;
}

/* Responsive: make images full width on small screens */
@media (max-width: 768px) {
    .health-tip-content img,
    .health-tip-content img.float-right {
        float: none;
        max-width: 100%;
        margin: 0 0 15px 0;
    }
}

/*--------------------------------TESTIMONIALS--------------------------*/
.testimonial-section {
    max-width: 1200px;
    margin: auto;
    padding: 40px 0;
}

.testimonial-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.testimonial-card img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
}

.swiper-button-next,
.swiper-button-prev {
    color: #0073aa;
}

/*------------------------------------NEWS--------------*/
.news-section {
    padding: 60px 20px;
    background: #f9f9f9;
}

.section-title {
    text-align: center;
    font-size: 30px;
    font-weight: bold;
    color: #0d6efd; /* 🔵 Blue */
    margin-bottom: 40px;
}


.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.news-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 65%; /* 🔥 CONTROL VIDEO HEIGHT HERE */
    overflow: hidden;
    border-radius: 8px;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* footer */

/* ===== Footer ===== */
.ace-footer {
    background: #0b1c2c;
    color: #ddd;
    padding: 60px 20px 20px;
    font-size: 14px;
}

.ace-footer-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.footer-col h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 18px;
    position: relative;
}

.footer-col h3::after {
    content: "";
    width: 40px;
    height: 2px;
    background: #1e90ff;
    position: absolute;
    left: 0;
    bottom: -5px;
}

.footer-col p {
    line-height: 1.8;
    margin: 5px 0;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #bbb;
    text-decoration: none;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: #1e90ff;
    padding-left: 5px;
}

/* Contact links */
.footer-col a {
    color: #bbb;
}

.footer-col a:hover {
    color: #1e90ff;
}

/* Map link */
.map-link {
    display: inline-block;
    margin-top: 10px;
    font-weight: 500;
}

/* Social */
.ace-social {
    margin-top: 15px;
}

.ace-social a {
    display: inline-block;
    margin-right: 10px;
    color: #fff;
    background: #1e90ff;
    padding: 8px;
    border-radius: 50%;
    transition: 0.3s;
}

.ace-social a:hover {
    background: #fff;
    color: #1e90ff;
}

/* Bottom */
.ace-footer-bottom {
    text-align: center;
    border-top: 1px solid #222;
    margin-top: 40px;
    padding-top: 15px;
    font-size: 13px;
    color: #aaa;
}

/* Back to top */
#backToTop {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #1e90ff;
    color: #fff;
    border: none;
    padding: 12px 15px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: 0.3s;
    z-index: 999;
}

#backToTop:hover {
    background: #0b1c2c;
}

/* about section */
.about-section{
position:relative;
padding:120px 20px;
background:#f4f9ff;
overflow:hidden;
}

/* Floating gradient shape */
.about-bg-shape{
position:absolute;
top:-100px;
right:-100px;
width:400px;
height:400px;
background:linear-gradient(135deg,#0073aa,#00c6ff);
border-radius:50%;
opacity:0.1;
animation:float 6s ease-in-out infinite;
}

@keyframes float{
0%{transform:translateY(0);}
50%{transform:translateY(20px);}
100%{transform:translateY(0);}
}

.about-wrapper{
max-width:1200px;
margin:auto;
display:flex;
align-items:center;
gap:60px;
flex-wrap:wrap;
position:relative;
z-index:2;
}

.about-image{
flex:1;
}

.about-image img{
width:100%;
height:450px;
object-fit:cover;
border-radius:16px;
box-shadow:0 20px 50px rgba(0,0,0,0.15);
}

.about-content{
flex:1;
}

.about-title{
font-size:36px;
font-weight:700;
margin-bottom:20px;
color:#0a2540;
}

.about-text{
font-size:17px;
line-height:1.7;
color:#444;
margin-bottom:30px;
}

/* Stats */
.about-stats{
display:grid;
grid-template-columns:repeat(2,1fr);
gap:20px;
margin-bottom:30px;
}

.stat{
background:#fff;
padding:20px;
border-radius:12px;
box-shadow:0 10px 25px rgba(0,0,0,0.08);
text-align:center;
}

.stat h3{
font-size:28px;
color:#0073aa;
margin-bottom:5px;
}

.stat p{
font-size:14px;
color:#666;
}

/* Button */
.about-btn{
display:inline-block;
padding:14px 28px;
background:linear-gradient(135deg,#0073aa,#00b4db);
color:#fff;
text-decoration:none;
border-radius:8px;
font-weight:600;
transition:0.3s;
}

.about-btn:hover{
transform:translateY(-4px);
box-shadow:0 15px 30px rgba(0,0,0,0.2);
}

/* Animation */
.reveal-left{
opacity:0;
transform:translateX(-80px);
transition:1s;
}

.reveal-right{
opacity:0;
transform:translateX(80px);
transition:1s;
}

.reveal-left.active,
.reveal-right.active{
opacity:1;
transform:translateX(0);
}

/* about page */
.about-full-page{
padding:100px 20px;
max-width:900px;
margin:auto;
}

.about-full-image{
width:60%;
height:auto;
object-fit:cover;
border-radius:12px;
margin-bottom:30px;
}

.about-text-full{
font-size:17px;
line-height:1.7;
color:#444;
}
/* About Page Header Image */
.about-header{
position:relative;
width:100%;
height:400px;
background-size:cover;
background-position:center;
display:flex;
align-items:center;
justify-content:center;
}

.about-header .overlay{
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
background: rgba(0,0,0,0.4); /* dark overlay */
display:flex;
align-items:center;
justify-content:center;
}

.about-header .about-page-title{
color:#fff;
font-size:48px;
font-weight:700;
text-align:center;
padding:0 20px;
z-index:2;
}

/* About Content Section */
.about-content-section{
padding:80px 20px;
max-width:900px;
margin:auto;
}

.about-text-full{
font-size:17px;
line-height:1.8;
color:#333;
}

/* About Page Header Image */
.about-header{
position:relative;
width:100%;
height:450px;
background-size:cover;
background-position:center;
display:flex;
align-items:center;
justify-content:center;
}

.about-header .overlay{
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
background: rgba(0,0,0,0.4); /* dark overlay */
display:flex;
align-items:center;
justify-content:center;
}

.about-header .about-page-title{
color:#fff;
font-size:48px;
font-weight:700;
text-align:center;
padding:0 20px;
z-index:2;
}

/* Full-Width Content */
.about-content-section.full-width{
padding:80px 40px;
width:100%;
max-width:1400px; /* can adjust */
margin:auto;
}

.about-text-full{
font-size:18px;
line-height:1.9;
color:#333;
max-width:1200px; /* optional for readability */
margin:auto;
}

/* Optional: Make paragraphs slightly wider on large screens */
.about-text-full p{
margin-bottom:24px;
}

/* Reveal Animations */
.reveal-header,
.reveal-content{
opacity:0;
transform:translateY(40px);
transition: all 1s ease-out;
}

.reveal-header.active,
.reveal-content.active{
opacity:1;
transform:translateY(0);
}

/*-----------------------new overlay text-----------------*/
.typing-container{
    font-size:48px;
    font-weight:bold;
    color:#fff;
}

.cursor{
    animation: blink 1s infinite;
}

@keyframes blink{
    50%{
        opacity:0;
    }
}

.final-text{
    opacity:0;
    transform:translateY(20px);
    transition:all 1s ease;
    font-size:28px;
    font-weight:bold;
}
/* GRID */
.page-template-about-page .grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:center;}
.page-template-about-page .grid-3 { display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:30px; }

/* HERO */
.page-template-about-page .about-header {position:relative;background-size:cover;background-position:center;height:60vh;}
.page-template-about-page .overlay {background: rgba(0,0,0,0.5);height:100%;display:flex;justify-content:center;align-items:center;}
.page-template-about-page .about-page-title {color:#fff;font-size:3rem;text-align:center;}

/* INTRO IMAGE */
.page-template-about-page .about-image img {width:100%; max-width:500px; height:auto; border-radius:20px; object-fit:cover;}

/* SERVICE & ACHIEVEMENT CARDS */
.service-card, .achievement-card {
    display:block; padding:20px; background:#f5f5f5; border-radius:12px; text-align:center; text-decoration:none; color:inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover, .achievement-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 25px rgba(0,0,0,0.15);
    cursor:pointer;
}

/* MISSION & VISION CARDS */
.about-mvv .card {padding:20px; background:#e8f5f9; border-radius:12px; text-align:center;}

/* CTA */
.about-cta {background:#007f5f; color:#fff; padding:50px 20px; text-align:center;}
.about-cta .cta-button {display:inline-block; background:#00b894; color:#fff; padding:15px 30px; border-radius:10px; text-decoration:none; transition:0.3s;}
.about-cta .cta-button:hover {background:#009f6a;}

/* REVEAL ANIMATIONS */
.reveal-content, .reveal-header {opacity:0; transform:translateY(50px); transition: all 0.8s ease-out;}
.reveal-content.active, .reveal-header.active {opacity:1; transform:translateY(0);}

/* RESPONSIVE */
@media(max-width:768px){
    .page-template-about-page .grid-2, .page-template-about-page .grid-3 {grid-template-columns:1fr;}
    .page-template-about-page .about-header {height:40vh;}
    .page-template-about-page .about-page-title {font-size:2rem;}
}
./* ===== ABOUT SPECIALTIES CLEAN FIX ===== */



/* Card */
.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #333;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

/* Hover */
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

/* IMAGE WRAPPER */
.service-img {
  width: 100%;
  height: 200px; /* 🔥 CONTROL HEIGHT HERE */
  overflow: hidden;
}

/* IMAGE */
.service-thumb,
.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 🔥 forces uniform cropping */
  display: block;
}

/* CONTENT SPACING */
.service-card h3,
.service-card p,
.read-more-btn {
  padding-left: 15px;
  padding-right: 15px;
}

/* TITLE */
.service-card h3 {
  margin: 15px 0 5px;
  font-size: 18px;
}

/* TEXT */
.service-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  flex-grow: 1; /* 🔥 makes all cards equal height */
}

/* READ MORE */
.read-more-btn {
  margin: 15px;
  margin-top: auto; /* 🔥 stick to bottom */
  font-weight: 600;
  color: #0bbf72;
  font-size: 14px;
}

/* OPTIONAL: subtle hover effect */
.service-card:hover .read-more-btn {
  text-decoration: underline;
}

/* CTA SECTION */
.about-cta {
    background: linear-gradient(135deg, #0a7cff, #0056b3);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

/* Container */
.about-cta .container {
    max-width: 900px;
    margin: 0 auto;
}

/* Heading */
.about-cta h2 {
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 700;
}

/* Phone Text */
.cta-phone {
    font-size: 18px;
    margin-bottom: 25px;
}

.cta-phone a {
    color: #fff;
    font-weight: bold;
    text-decoration: underline;
}

/* Buttons Wrapper */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Main Button */
.cta-button {
    background: #ffffff;
    color: #0a7cff;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
}

.cta-button:hover {
    background: #e6e6e6;
    transform: translateY(-2px);
}

/* Secondary Button (Call) */
.cta-button.secondary {
    background: #28a745;
    color: #fff;
}

.cta-button.secondary:hover {
    background: #1f8a38;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .about-cta h2 {
        font-size: 24px;
    }

    .cta-button {
        width: 100%;
        text-align: center;
    }
}