/* --- Глобал Тохиргоо --- */
* {
    margin: 0;
    padding: 0; /* padding-ийг нэмсэн нь box-sizing-той хамт илүү сайн ажиллана */
    box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Фонт тохиргоо */

body.modal-open {
    scroll-behavior: auto !important;
}


body {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; /* Fallback фонт нэмсэн нь, хэрэв MyFont ачаалагдахгүй бол */
    background-color: #f8f9fa; /* Цайвар саарал дэвсгэр өнгө нэмсэн */
     /* Бүх body доторх текстийг хуулж болохгүй болгоно */
            -webkit-user-select: none;  /* Safari */
            -moz-user-select: none;     /* Firefox */
            -ms-user-select: none;      /* IE 10+ */
            user-select: none;          /* Standard syntax */
}

.social-floating-buttons {
    position: fixed; /* Хуудасны хаана ч байрлах боломжтой */
    top: 50%; /* Дээд талаас 50%-т байрлуулна */
    right: 20px; /* Баруун талаас 20px зайтай */
    transform: translateY(-50%); /* Босоо тэнхлэгтээ төвлөрүүлнэ */
    z-index: 1000; /* Бусад бүх контентын дээр харагдана */
    display: flex;
    flex-direction: column; /* Босоо байрлалаар байрлуулна */
    gap: 10px; /* Дүрсүүдийн хооронд зай авах */
    
}

.social-floating-buttons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;       /* Өргөн */
    height: 50px;      /* Өндөр */
    border-radius: 50%; /* Бөөрөнхий хэлбэртэй болгоно */
    color: #FF132B;       /* Дүрсний өнгө */
    font-size: 24px;   /* Дүрсний хэмжээ */
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Сүүдэр нэмнэ */
    transition: transform 0.3s ease; /* Хөдөлгөөнийг зөөлөн болгоно */
}

.social-floating-buttons a:hover {
    transform: scale(1.1); /* Хуруугаар заахад дүрс томроно */
}

/* Дүрс тус бүрийн өнгө */
.social-floating-buttons a.facebook {
    background-color: #ffffff;
}

.social-floating-buttons a.instagram {
    background-color: #ffffff;
}

.social-floating-buttons a.youtube {
    background-color: #ffffff;
}

/* --- Навигацийн Мөр (Navbar) --- */
nav {
    width: 95%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.514); /* Set nav background to white */
    padding: 10px 20px; /* Add some padding to the nav */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* subtle shadow */
    position: sticky; /* "sticky"-ийн оронд "fixed"-г ашиглана */
    z-index: 1000;
    transition: top 0.3s ease-in-out; /* Зөөлөн шилжилт нэмнэ */
}
nav .logo a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px; /* Adjust padding */
}

nav .logo a {
    text-decoration: none;
}
nav .logo img {
    width: 45px; /* Slightly smaller logo */
    margin-right: 10px;
}
nav .logo h5 {
    margin: 0; /* Remove default margin */
    font-size: 16px; /* Adjust font size */
    color: #333;
}
nav .header ul,
nav .header-end ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 10px; /* Space between list items */
    margin: 0; /* Remove default margin */
    padding: 0; /* Remove default padding */
}
nav .header ul li,
nav .header-end ul li {
    position: relative; /* Needed for positioning the text */
}
nav .header ul li a,
nav .header-end ul li a {
    text-decoration: none;
    color: #555;
    padding: 10px 15px;
    border-radius: 25px;
    display: flex; /* Flexbox ашиглан дүрс, текстийг нэг мөрөнд байрлуулна */
    align-items: center;
    transition: all 0.3s ease;
    overflow: hidden;
    white-space: nowrap;
}
nav .header ul li a i,
nav .header-end ul li a i {
    font-size: 18px; /* Adjust icon size */
    margin-right: 0; /* No margin by default for icons */
    transition: margin-right 0.3s ease;
}
nav .header ul li a span,
nav .header-end ul li a span {
    display: none; /* Hide text by default */
    margin-left: 5px; /* Space between icon and text */
    transition: display 0.3s ease;
}
/* Active state for navigation items */
nav .header ul li a.active,
nav .header-end ul li a.active {
    background: linear-gradient(45deg, #ff316f, #ff0000);
    color: white;
    padding: 10px 20px; /* Wider padding when active */
}
nav .header ul li a.active i,
nav .header-end ul li a.active i {
    margin-right: 8px; /* Add margin when active */
}
nav .header ul li a.active span,
nav .header-end ul li a.active span {
    display: inline; /* Show text when active */
}
/* Hover effect for all navigation items */
nav .header ul li a:not(.active):hover,
nav .header-end ul li a:not(.active):hover {
    background-color: #e9ecef; /* Light gray on hover */
    color: #ff2d2d; /* Blue text on hover */
}
nav .header-end ul li a {
    background: linear-gradient(45deg, #ff316f, #ff0000);
    color: white;
}
nav .header-end ul li a i {
    color: white;
}
nav .header-end ul li a.active {
    background: linear-gradient(45deg, #ff0000, #ff316f);
}

/* --- Carousel --- */
#carouselExampleDark {
    width: 96%; /* Carousel-ийн нийт өргөн */
    margin: 20px auto; /* Дээд, доод талдаа зайтай, голлуулсан */
    border-radius: 15px; /* Carousel-ийн гаднах ирмэгүүдийг дугуйлах */
    overflow: hidden; /* Доторх агуулгыг (зургуудыг) халихгүй байхыг баталгаажуулна */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Зөөлөн сүүдэр нэмсэн */
}

/* Carousel доторх элементүүд (слайдууд) */
#carouselExampleDark .carousel-caption {
    position: absolute; /* Байршлыг абсолют болгоно */
    top: 20%; /* Дээд талаас 5% зайтай байрлуулна (та өөрчилж болно) */
    left: 10%; /* Зүүн талаас 5% зайтай байрлуулна (та өөрчилж болно) */
    right: auto; /* Баруун талын зайг автоматаар тохируулна */
    bottom: auto; /* Доод талын зайг автоматаар тохируулна */
    text-align: left; /* Текстийг зүүн тал руу зэрэгцүүлнэ */
    width: 50%; /* Carousel-ийн өргөний 50%-ийг эзлэх (текст урт байвал тохируулна) */
    max-width: 500px; /* Хамгийн их өргөнийг хязгаарлана */
    z-index: 2; /* Бүрхүүлээс илүү өндөр z-index */
    padding-bottom: 0; /* Bootstrap-ын default bottom padding-ийг арилгах */
    padding-top: 0; /* Дээд талын padding-ийг арилгах */
}

#carouselExampleDark .carousel-caption h5{
    margin-top: 40px;
    color: #ffffff;
}

#carouselExampleDark .carousel-caption .carousel-button {
    margin-top: 20px;
    display: flex;
    gap: 20px;
}

#carouselExampleDark .carousel-caption .carousel-button a{
    width: 120px;
    background-color: #fff;
    padding: 10px;
    text-decoration: none;
    color: #0a0a0a;
    border-radius: 10px;
    font-size: 15px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease-in-out; /* Зөөлөн шилжилт */

}

#carouselExampleDark .carousel-caption .carousel-button a:hover{
    background-color: #2A2A2A;
    color: white;
}


/* Зураг дээрх харанхуй бүрхүүл (overlay) */
#carouselExampleDark .carousel-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* Хар өнгийн 30% тод бүрхүүл (0.2-оос бага зэрэг тод) */
    z-index: 1; /* Зургийн дээр гарах */
    border-radius: 15px; /* Бүрхүүлд ч мөн радиус өгөх */
}

/* Carousel-ийн гарчиг, текстүүд */
#carouselExampleDark .carousel-caption {
    z-index: 2; /* Бүрхүүлээс илүү өндөр z-index */
    color: var(--bs-white, #fff); /* Цагаан текст */
    padding-bottom: 3rem; /* Доод талын зайг ихэсгэсэн */    
}

/* Carousel доторх зургууд */
#carouselExampleDark .carousel-item img {
    width: 100%;
    height: 800px; /* Энд өөрийн хүссэн өндрийг өгнө. Жишээ нь 600px эсвэл 60vh */
    object-fit: cover; /* Зургийг харьцааг нь алдагдуулахгүйгээр дүүргэнэ */
    object-position: center; /* Зургийг төвлөрүүлж харуулна */
    display: block;
    border-radius: 15px; /* Зураг ч мөн ижил радиустай байх ёстой */
}

/* Carousel-ийн заагчууд (indicators) */
#carouselExampleDark .carousel-indicators button {
    background-color: rgba(255, 255, 255, 0.6); /* Цагаан өнгийн товчлуур, бага зэрэг тод */
    border-radius: 50%; /* Дугуй хэлбэртэй болгох */
    width: 10px; /* Өргөн */
    height: 10px; /* Өндөр */
    margin: 0 5px; /* Хоорондын зай */
    transition: background-color 0.3s ease;
}

#carouselExampleDark .carousel-indicators button.active {
    background-color: #EA212B; /* Идэвхтэй үед улаан */
}

/* Carousel-ийн сумнууд (prev/next controls) */
#carouselExampleDark .carousel-control-prev-icon,
#carouselExampleDark .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5); /* Хагас тунгалаг хар дэвсгэр */
    border-radius: 50%; /* Дугуй хэлбэртэй болгох */
    padding: 15px; /* Дотор зай */
}

.tab {
    width: 95%;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Зөөлөн сүүдэр нэмсэн */
}

.tab .nav {
    display: inline-flex; /* Flexbox-оор агуулгатайгаа нийцүүлэн, өөрөө Inline элемент шиг ажиллана */
    /* эсвэл width: fit-content; ашиглаж болно. */
    gap: 20px;
    margin-bottom: 20px;
    background-color: #2A2A2A;
    padding: 10px 15px; /* Дээд, доод болон хажуу талдаа бага зэрэг зай нэмсэн */
    border-radius: 10px; /* Табны гаднах ирмэгийг дугуйлах */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Зөөлөн сүүдэр нэмсэн */
}

/* Табны холбоосуудын загвар */
.tab .nav .nav-item .nav-link {
    color: #adadad; /* Ерөнхий текстний өнгө */
    background-color: transparent; /* Үндсэн дэвсгэр өнгөгүй байлгах */
    border: none; /* Хилгүй болгох */
    padding: 8px 15px; /* Табны холбоосын доторх зай */
    transition: all 0.3s ease; /* Зөөлөн шилжилт */
}

/* Идэвхтэй байгаа табны загвар */
.tab .nav .nav-item .nav-link.active {
    color: #ffffff; /* Идэвхтэй үед улаан өнгөөр тодруулах */
    font-weight: bold; /* Илүү тод болгох */
    background-color: #3a3a3a; /* Идэвхтэй табны дэвсгэр өнгө (хар хүрэн) */
    border-radius: 8px; /* Идэвхтэй табны буланг дугуйлах */
}

/* Табны холбоос дээр хулгана очих үеийн загвар */
.tab .nav .nav-item .nav-link:hover:not(.active) { /* Идэвхтэй биш үед hover хийхэд */
    color: #fff; /* Текстийг цагаан болгох */
    background-color: #4a4a4a; /* Бага зэрэг цайвар дэвсгэр өнгө */
    border-radius: 8px;
}

.tab-page {
    text-decoration: none;
    color: #1d1b1b;
    padding: 15px;
    margin-left: 20px;
}

.tab-page:hover {
    color: white;
    background-color: #2A2A2A;
    height: 58px;
    border-radius: 10px;
}

.card {
    
    /* 1. Translucent Background (Glass Effect Core) */
    /* THIS IS CRITICAL for glassmorphism. It should be semi-transparent WHITE, not a solid color. */
    background-color: #ffffff; /* White with 15% opacity */
    
    /* 2. Border & Rounded Corners */
    border-radius: 16px; /* Slightly more rounded corners for a modern look */
    /* Add a subtle, semi-transparent border for definition */
    border: 1px solid rgba(255, 255, 255, 0.2); 
    
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); /* Soft, subtle shadow */
    
    /* 5. Text Styling (Ensuring Readability on Glass) */
    color: white; /* Default text color for the card */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* Helps text stand out */

    /* 6. Inner Spacing */
    padding: 20px; 

    /* 7. Transition (Smooth Interactions for the Card itself) */
    /* Apply transition to ALL relevant properties for smooth animation */
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); 

    /* Optional: Adding a slight perspective for depth */
    transform-style: preserve-3d; 
    transform: perspective(1000px); 
}

/* --- */

/* Card Hover Effect */
.card:hover {
    /* TranslateY and Box-shadow create the lift effect */
    transform: translateY(-8px) scale(1.02); /* Lift and slightly scale up */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25); /* Darker, more pronounced shadow on hover */
    
    /* For glassmorphism, changing background-color to solid white on hover might break the effect. */
    /* Instead, you could make it slightly MORE opaque or add a subtle overlay. */
    /* If you still want a more solid white, understand it will lose the "glass" look. */
    background-color: rgba(255, 255, 255, 0.25); /* Make it slightly less transparent on hover */
    
    /* Change text color for the entire card on hover */
    color: #2A2A2A; /* Text inside the card becomes dark on hover */
}

/* --- */

/* Image Styling */
.card img {
    border-radius: 10px; /* Rounded corners for images within the card */
    max-width: 100%; /* Ensures image fits within the card's width */
    height: auto;
    object-fit: cover; /* Ensures image covers its area without distortion */
    margin-bottom: 15px; /* Add some space below the image */
}

/* --- */

/* Heading Styling */
.card h3 {
    color: #1d1b1b; /* Default heading text color */
    margin-bottom: 10px;
    font-size: 23px;
    /* Important: Add transition to the h3 for smooth color change on hover */
    transition: color 0.3s ease; 
}

/* Heading Hover Effect */
/* When the ENTIRE card is hovered, the H3's color changes */
.card:hover h3 { /* Select h3 inside a hovered card */
    color: #2A2A2A; /* Heading text color when card is hovered */
}

/* Paragraph Text Styling */
.card h5 {
    margin-top: -10px;
    color: rgba(255, 255, 255, 0.8); /* Slightly transparent white for default paragraph text */
    line-height: 1.6; /* Improves readability */
}

/* Paragraph Text on Card Hover */
.card:hover h5 {
    color: rgba(42, 42, 42, 0.7); /* Darker, slightly transparent text when card is hovered */
}

.card .social-icons i{
    font-size: 20px;
    color: #4a4a4a;
}

.card:hover .social-icons i{
    font-size: 20px;
    color: #ea212b;
}

.card .card-contact {
    background-color: #4a4a4a;
    padding: 5px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: #ffffff;
    font-size: 15px;
    border: none;
}

.card:hover .card-contact{
    background-color: #ea212b;
    color: #fff;
}

.modal {
    border-radius: 10px;
}

.help-section {
        background-color: #fff; /* Цагаан фон */
        border-radius: 15px; /* Булангуудыг дугуйруулах */
        padding: 40px; /* Дотор зай */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Зөөлөн сүүдэр */
        position: relative; /* Background дугуйнуудад зориулсан */
        overflow: hidden; /* Дугуйнууд гадагш гарахгүй байх */
        width: 95%;
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); /* Soft, subtle shadow */

    }
    /* Background-ийн улаан/улбар шар өнгийн дугуйнууд */
    .help-section::before,
    .help-section::after {
        content: '';
        position: absolute;
        border-radius: 50%; /* Дугуй хэлбэр */
        opacity: 0.1; /* Тунгалаг байдал */
        background: linear-gradient(135deg, #ff6b6b, #ffa07a); /* Улаан/улбар шар градиент */
        z-index: 0; /* Контентын ард байрлуулах */
    }
    .help-section::before {
        width: 250px;
        height: 250px;
        top: -50px;
        right: -50px;
        transform: rotate(45deg); /* Эргүүлэх */
    }
    .help-section::after {
        width: 180px;
        height: 180px;
        bottom: -30px;
        right: 150px;
        transform: rotate(-30deg);
    }
    .content-wrapper {
        position: relative;
        z-index: 1; /* Контентыг дугуйнуудаас дээш байрлуулах */
    }
    .help-text h2 {
        font-size: 2.5rem; /* Гарчгийн фонт хэмжээ */
        font-weight: 700; /* Тод фонт */
        color: #333; /* Бараан саарал өнгө */
        margin-bottom: 20px; /* Доороос зай */
    }
    .help-text {
        display: flex;
        justify-content: center;
        align-items: start;
    }
    .bot-button-wrapper {
        margin-top: 30px; /* Дээшээ зай */
        display: flex;
        flex-direction: column; /* Баганаар байрлуулах */
        align-items: flex-start; /* Зүүн талд тэгшлэх */
    }
    .bot-button {
        background-color: #ef4444; /* Улаан товчлуурын фон */
        color: #fff; /* Цагаан текст */
        padding: 12px 25px; /* Товчлуурын дотор зай */
        border-radius: 8px; /* Булангуудыг дугуйруулах */
        text-decoration: none; /* Доогуур зураасгүй */
        font-weight: 600; /* Тод текст */
        transition: background-color 0.3s ease; /* Hover animation */
        display: inline-flex; /* Icon болон текстийг зэрэгцүүлэх */
        align-items: center; /* Босоогоор голлуулах */
    }
    .bot-button:hover {
        background-color: #dc2626; /* Hover үеийн бараан улаан */
        color: #fff; /* Текстийг цагаан хэвээр үлдээх */
    }
    .bot-button i {
        margin-right: 8px; /* Icon болон текстний хоорондох зай */
    }
    /* --- Cards Section --- */
    .card-item {
        background-color: #f8f9fa; /* Картуудын цайвар саарал фон */
        border-radius: 10px; /* Булангуудыг дугуйруулах */
        padding: 25px; /* Дотор зай */
        display: flex; /* Доторх контентыг зохион байгуулах */
        align-items: center; /* Босоогоор голлуулах */
        justify-content: space-between; /* Хоорондоо зайтай байрлуулах */
        margin-bottom: 15px; /* Доороос зай */
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03); /* Зөөлөн сүүдэр */
        transition: all 0.3s ease; /* Hover animation */
        min-height: 100px; /* Картуудыг ижил өндөртэй байлгах */
    }
    .card-item:hover {
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08); /* Hover үеийн сүүдэр */
        transform: translateY(-3px); /* Hover үеийн дээш хөдөлгөөн */
        background-color: #fff; /* Hover үеийн цагаан фон */
    }
    .card-item .icon-box {
        background-color: #fff; /* Icon хүрээний цагаан фон */
        border-radius: 8px; /* Булангуудыг дугуйруулах */
        padding: 12px; /* Дотор зай */
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50px; /* Өргөн */
        height: 50px; /* Өндөр */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* Зөөлөн сүүдэр */
        margin-right: 20px; /* Баруун талаас зай */
    }
    .card-item .icon-box i {
        color: #ef4444; /* Icon-ий улаан өнгө */
        font-size: 1.5rem; /* Icon-ий хэмжээ */
    }
    .card-item .card-content {
        flex-grow: 1; /* Үлдсэн зайг дүүргэх */
    }
    .card-item .card-content h5 {
        font-size: 1rem; /* Гарчгийн фонт хэмжээ */
        font-weight: 600; /* Тод фонт */
        color: #333; /* Бараан саарал өнгө */
        margin-bottom: 5px; /* Доороос зай */
    }
    .card-item .card-content p {
        font-size: 0.85rem; /* Текстний фонт хэмжээ */
        color: #777; /* Саарал өнгө */
        line-height: 1.4; /* Мөр хоорондын зай */
        margin-bottom: 0; /* Доороос зайгүй */
    }
    .card-item .arrow-icon i {
        color: #ccc; /* Сумны саарал өнгө */
        font-size: 1.2rem; /* Сумны хэмжээ */
    }
    

.custom-badge {
    background: radial-gradient(circle,rgba(251, 63, 63, 1) 0%, rgba(252, 70, 107, 1) 100%);
    padding: 10px 20px;
    border-radius: 10px;
}

.animated-text {
  display: inline-block;
  font-size: 1.75rem;
}

.cursor {
  display: inline-block;
  color: #dc3545;
  font-weight: bold;
  animation: blink 0.7s step-end infinite;
}

.blog-section {
    background-color: #fff; /* Цагаан фон */
    border-radius: 15px; /* Булангуудыг дугуйруулах */
    padding: 40px; /* Дотор зай */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Зөөлөн сүүдэр */
    position: relative; /* Background дугуйнуудад зориулсан */
    overflow: hidden; /* Дугуйнууд гадагш гарахгүй байх */
    width: 95%;
    margin: 0 auto; /* Center the section */
}

.blog-title p {
    font-size: 23px;
    line-height: 30px;
}

.card-blog {
    /* Glassmorphism Core */
    background-color: rgba(255, 255, 255, 0.15); /* White with 15% opacity */
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    
    /* Flexbox for layout */
    display: flex;
    flex-direction: column; /* Image and content side-by-side */
    height: 100%; /* Ensure cards take full height in a row */
    overflow: hidden; /* Ensures content respects border-radius */
    
    /* Transitions for smooth interactions */
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    
    /* Positioning for child elements like .card-day */
    position: relative; /* CRITICAL for absolute positioning of .card-day */
}

.card-blog:hover {
    transform: translateY(-8px) scale(1.02); /* Lift and slightly scale up */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25); /* Darker, more pronounced shadow on hover */
    background-color: rgba(255, 255, 255, 0.25); /* Slightly less transparent on hover */
    color: #2A2A2A; /* Text inside the card becomes dark on hover */
}

/* Blog Card Image Container */
.blog-card {
    flex-shrink: 0; /* Prevents image section from shrinking */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* Needed for positioning the pseudo-element overlay */
    object-fit: cover; /* Crops image to fit while maintaining aspect ratio */
    height: 200px;

}

.blog-card img {
    width: 100%; /* Image fills its container */
    height: 100%; /* Image fills its container */
    object-fit: cover; /* Crops image to fit while maintaining aspect ratio */
    border-radius: 10px 0 0 10px; /* Rounded corners only on the left side */
    display: block;
}

/* Image Overlay on .blog-card hover */
.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 0, 0, 0); /* Start fully transparent red */
    transition: background-color 0.3s ease;
    border-radius: 10px 0 0 10px; /* Match image border-radius */
    pointer-events: none;
    z-index: 1;
}

/* When .card-blog is hovered, apply effect to .blog-card's ::before */
.card-blog:hover .blog-card::before {
    background-color: rgba(255, 0, 0, 0.048); /* Faint red on hover */
}

/* Card Day Styling */
.card-day {
    background-color: #ff00007a;
    width: 70px;
    height: 70px;
    border-radius: 10px; /* Use same border-radius as card for consistency */
    position: absolute;
    top: 0px; /* Adjust vertical position */
    left: 40px; /* Position relative to the *entire* card, over the text side */
    text-align: center; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* Add a subtle shadow */
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden; /* To keep the pseudo-element within the circle's bounds */
}

.card-day .day {
    font-size: 28px;
    color: #f8f9fa; /* Default white color */
    line-height: 1; /* Reset line-height for proper spacing */
    transition: color 0.3s ease; /* Smooth transition for text color */
}

.card-day .month {
    text-transform: uppercase;
    font-size: 12px;
    color: #f8f9fa; /* Default white color */
    line-height: 1; /* Reset line-height for proper spacing */
    transition: color 0.3s ease; /* Smooth transition for text color */
}

/* Add a pseudo-element for the overlay effect on .card-day */
.card-day::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0); /* Start fully transparent white overlay */
    border-radius: 10px; /* Match card-day's shape */
    transition: background-color 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: -1; /* Place it behind the text but above the background gradient */
}

/* When .card-blog is hovered, apply effects to .card-day */
.card-blog:hover .card-day {
    /* We don't change the background of .card-day directly here, 
       but rather its pseudo-element's background to white */
    background: white; /* Remove the gradient background on hover */
}

.card-blog:hover .card-day::before {
    background-color: #ffffff; /* Make the overlay solid white */
}

.card-blog:hover .card-day .day,
.card-blog:hover .card-day .month {
    color: #000000; /* Change text color to black */
}

/* Add a pseudo-element for the overlay effect on .card-day */
.card-day::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0); /* Start fully transparent white overlay */
    border-radius: 10px; /* Match card-day's shape */
    transition: background-color 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: -1; /* Place it behind the text but above the background gradient */
}

/* When .card-blog is hovered, apply effect to .card-day's ::before */
.card-blog:hover .card-day::before {
    background-color: rgba(255, 255, 255, 0.3); /* Faint white overlay on hover */
}

.blog-card-body {
    flex-grow: 1; /* Takes up remaining space */
    padding: 1.5rem; /* Consistent padding */
}

.blog-card-body h5 {
    font-size: 17px;
    color: #dc3545;
    margin-bottom: 15px; /* Slightly reduced margin */
    transition: color 0.3s ease; /* Smooth transition for title color */
}

.card-blog:hover .blog-card-body h5 {
    color: #2A2A2A; /* Change title color on hover */
}

.blog-card-body p {
    line-height: 1.6; /* Improved readability */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 20px; /* Adjusted margin */
    color: #333; /* Default text color */
    transition: color 0.3s ease;
}

.card-blog:hover .blog-card-body p {
    color: #555; /* Slightly darker text on hover for contrast */
}

.blog-post-link {
    display: inline-block;
    margin-top: 10px;
    color: #dc3545;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.card-blog:hover .blog-post-link {
    color: #000000;
    text-decoration: underline;
}

.blog-meta-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: 0.9rem;
    color: #1f1f1f;
    border-top: 1px solid rgba(51, 51, 51, 0.3);
    padding-top: 10px;
}

.contact-section {
    background-color: #fff;
    border-radius: 15px; /* Булангуудыг дугуйруулах */
    padding: 40px; /* Дотор зай */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Зөөлөн сүүдэр */
    position: relative; /* Background дугуйнуудад зориулсан */
    overflow: hidden; /* Дугуйнууд гадагш гарахгүй байх */
    width: 95%;
    margin: 0 auto; /* Center the section */
}

.card-contact {
    /* Glassmorphism Core */
    background-color: rgba(255, 255, 255, 0.15); /* White with 15% opacity */
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 25px;
    /* Flexbox for layout */
    display: flex;
    flex-direction: row; /* Image and content side-by-side */

    height: 100%; /* Ensure cards take full height in a row */
    overflow: hidden; /* Ensures content respects border-radius */
    /* Transitions for smooth interactions */
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    /* Positioning for child elements like .card-day */
}

.card-contact:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25); /* Darker, more pronounced shadow on hover */
    background-color: rgba(255, 255, 255, 0.25); /* Slightly less transparent on hover */
    color: #2A2A2A; /* Text inside the card becomes dark on hover */
    border: 1px solid #EA212B;
}

.card-contact-body h4 {
    font-weight: 600;
    color: #6e6e6e;
}

.card-contact:hover .card-contact-body h4 {
    color: #2e2e2e;
}

.card-contact-body i {
    background: radial-gradient(circle,rgba(251, 63, 63, 1) 0%, rgba(252, 70, 107, 1) 100%);
    font-size: 30px;
    padding: 15px;
    border-radius: 10px;
    color: white;
    margin-bottom: 20px;
}

.card-contact:hover .card-contact-body i {
    background: rgba(255, 0, 0, 0.781);
}

.card-contact-body p {
    word-spacing: 1px;
    letter-spacing: -1px;
}

.card-contact-send{
    background-color: #fff; /* Цагаан фон */
    border-radius: 15px; /* Булангуудыг дугуйруулах */
    padding: 40px; /* Дотор зай */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Зөөлөн сүүдэр */
    position: relative; /* Background дугуйнуудад зориулсан */
    overflow: hidden; /* Дугуйнууд гадагш гарахгүй байх */
    width: 95%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); /* Soft, subtle shadow */
}

.card-contact-send:hover {
    border: 1px solid red;
}

.card-contact-send .card-title { 
    color: #dc2626;
}

.map-container {
    background-color: #fff; /* Цагаан фон */
    border-radius: 15px; /* Булангуудыг дугуйруулах */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Зөөлөн сүүдэр */
    position: relative; /* Background дугуйнуудад зориулсан */
    overflow: hidden; /* Дугуйнууд гадагш гарахгүй байх */
    width: 95%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); /* Soft, subtle shadow */
}


.about {
    background-color: #fff; /* Цагаан фон */
    border-radius: 15px; /* Булангуудыг дугуйруулах */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Зөөлөн сүүдэр */
    position: relative; /* Background дугуйнуудад зориулсан */
    overflow: hidden; /* Дугуйнууд гадагш гарахгүй байх */
    width: 95%;
    padding: 40px;
    margin: 0 auto; /* Center the section */
}

.doctor-profile-card {
    background-color: #fff;
    border-radius: 15px;
    padding: 30px;
}
.doctor-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
.profile-content {
    padding-left: 30px;
}
.profile-title {
    font-size: 20px;
    font-weight: bold;
    color: #FF2D2D;
}
.profile-name {
    font-size: 24px;
    font-weight: bold;
    color: #343a40;
    margin-top: 5px;
}
.profile-position {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 15px;
}
.btn-more-info {
    color: #FF2D2D;
    border: 1px solid #FF2D2D;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
    transition: all 0.3s ease;
    background-color: white;
}
.btn-more-info:hover {
    background-color: #FF2D2D;
    color: #fff;
}
.profile-description {
    color: #495057;
    margin-top: 25px;
}
.feature-item {
    text-align: center;
    margin-top: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);

}
.feature-item .icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: #FF2D2D;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 15px;
    border: 2px solid #FF2D2D;
}
.feature-item h6 {
    font-weight: bold;
    color: #FF2D2D;
}
.feature-item p {
    font-size: 14px;
    color: #6c757d;
}

.team-section {
    padding: 80px 0;
}
.team-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
}
.team-member-card {
    text-align: center;
    padding: 20px;
}
.team-member-card img {
    width: 100%;
    max-width: 250px; /* Зургийн хэмжээг тохируулах */
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.team-member-card h5 {
    font-size: 20px;
    font-weight: bold;
    color: #343a40;
    margin-bottom: 5px;
}
.team-member-card p {
    font-size: 16px;
    color: #6c757d;
}
.team-divider {
    position: relative;
    text-align: center;
    width: 100%;
    height: 50px; /* Хуваагчийн нийт өндөр */
    margin: 50px 0; /* Дээд, доод зай */
}

.team-divider .line-horizontal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #3a3a3a; /* Шугамын өнгө, хар дэвсгэр дээр цагаан */
}

.team-divider .line-vertical {
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 30px; /* Босоо шугамын өндөр */
    background-color: #3a3a3a; /* Шугамын өнгө */
    transform: translateX(-50%);
}

.team-divider .text {
    position: absolute;
    bottom: 0;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #FF2D2D; /* Текстний өнгө */
    font-size: 25px;
    padding: 5px 15px;
}

.single-treatment-section {
    background-color: #fff; /* Цагаан фон */
    border-radius: 15px; /* Булангуудыг дугуйруулах */
    padding: 40px; /* Дотор зай */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Зөөлөн сүүдэр */
    position: relative; /* Background дугуйнуудад зориулсан */
    overflow: hidden; /* Дугуйнууд гадагш гарахгүй байх */
    width: 95%;
    margin: 0 auto; /* Center the section */
}


.blog {
    background-color: #fff; /* Цагаан фон */
    border-radius: 15px; /* Булангуудыг дугуйруулах */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Зөөлөн сүүдэр */
    position: relative; /* Background дугуйнуудад зориулсан */
    overflow: hidden; /* Дугуйнууд гадагш гарахгүй байх */
    width: 95%;
    padding: 40px;
    margin: 0 auto; /* Center the section */
}
.top-post-card {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 10px;
    height: 350px !important; /* card өндөр */
    width: 100%;
}


.top-post-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.9); /* Зургийг бага зэрэг бараан болгох */
}

.top-post-card:hover img {
    transform: scale(1.05); /* Хулганаар дээгүүр явахад томордог эффект */
}

.top-post-card .card-img-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    border-radius: 10px;
}

.top-post-card .card-title {
    font-size: 1.5rem;
}

/* Card styles for Recent Posts */
.recent-post-card {
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #212529; /* Цэсний текстийн өнгө */
}

.recent-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.recent-post-card img {
    height: 200px;
    object-fit: cover;
}

.recent-post-card .card-meta {
    font-size: 0.85rem;
}

.recent-post-card .badge {
    padding: 0.4em 0.8em;
    font-weight: 600;
}

/* Custom badge colors to match the image */
.bg-warning {
    background-color: #ffc107 !important;
}
.bg-primary {
    background-color: #0d6efd !important;
}
.bg-success {
    background-color: #198754 !important;
}
.bg-info {
    background-color: #0dcaf0 !important;
}

/* result sectiion */

.result-section {
    background-color: #fff; /* Цагаан фон */
    border-radius: 15px; /* Булангуудыг дугуйруулах */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Зөөлөн сүүдэр */
    position: relative; /* Background дугуйнуудад зориулсан */
    overflow: hidden; /* Дугуйнууд гадагш гарахгүй байх */
    width: 95%;
    margin: 0 auto; /* Center the section */
}

.gallery-container {
    position: relative;
    padding: 60px 0;
}
.main-content-gallery {
    max-width: 900px;
    margin: auto;
    text-align: center;
}
.gallery-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 40px;
    margin-top: 30px;
}
.gallery-subtitle {
    font-size: 1.25rem;
    color: #6c757d;
}
.tags-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 40px;
    margin-bottom: 60px;
}
.tag-pill {
    background-color: transparent;
    border: 1px solid #dee2e6;
    color: #343a40;
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.tag-pill.active,
.tag-pill:hover {
    background-color: #343a40;
    color: #fff;
    border-color: #343a40;
}
.tag-pill-primary {
    background-color: #343a40;
    color: #fff;
    border-color: #343a40;
}
.view-more {
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #dee2e6;
    color: #343a40;
    border-radius: 50px;
    padding: 8px 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.view-more:hover {
    background-color: #343a40;
    color: #fff;
    border-color: #343a40;
}
.carousel-stack {
    position: relative;
    top: 30px;
    height: 400px; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-stack .card {
    position: absolute;
    width: 350px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s ease, opacity 0.5s ease, z-index 0.5s ease;
    cursor: pointer;
}
.carousel-stack .card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-center {
    z-index: 5;
    transform: scale(1.1);
}
.card-left-1 {
    z-index: 4;
    transform: translateX(-150px) scale(0.9);
    opacity: 0.8;
}
.card-left-2 {
    z-index: 3;
    transform: translateX(-300px) scale(0.7);
    opacity: 0.5;
}
.card-right-1 {
    z-index: 4;
    transform: translateX(150px) scale(0.9);
    opacity: 0.8;
}
.card-right-2 {
    z-index: 3;
    transform: translateX(300px) scale(0.7);
    opacity: 0.5;
}
.carousel-controls {
    margin-top: 40px;
}
.carousel-controls .btn-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #dee2e6;
    color: #343a40;
    font-size: 1.25rem;
    margin: 70px 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.carousel-controls .btn-circle:hover {
    background-color: #343a40;
    color: #fff;
}


/* FAQ section */
.faq-container {
    max-width: 95%;
    padding: 40px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.faq-header {
    margin-bottom: 50px;
}
.faq-header h1 {
    font-size: 2,5rem;
    color: #DC3545;
    font-weight: 700;
}
.faq-header p {
    font-weight: 500;
    color: #6c757d;
}
.image-container img{
    width: 150px;
}
.accordion-button {
    padding: 1.5rem 1rem;
    background-color: #fff;
    border-radius: 0;
    border-bottom: 1px solid #dee2e6;
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
}
.accordion-button:focus {
    box-shadow: none;
    border-color: #dee2e6;
    color: red;
    background-color: rgba(255, 0, 0, 0.082);
}
.accordion-button::after {
    width: 24px;
    height: 24px;
    background-size: 1.5rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath d='M8 1a.5.5 0 0 1 .5.5v6h6a.5.5 0 0 1 0 1h-6v6a.5.5 0 0 1-1 0v-6h-6a.5.5 0 0 1 0-1h6v-6A.5.5 0 0 1 8 1z'/%3e%3c/svg%3e");
    transition: transform 0.3s ease-in-out;
}
.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath d='M4 8a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7A.5.5 0 0 1 4 8z'/%3e%3c/svg%3e");
    transform: rotate(0deg);
}
.accordion-item:last-of-type .accordion-button.collapsed {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}
.accordion-item:first-of-type .accordion-button {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}
.accordion-item {
    border: none;
}
.accordion-body {
    padding-bottom: 1.5rem;
    color: #6c757d;
}
.chat-box {
    background: #fff;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: 400px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    border-radius: 10px;
    background: #f8f9fa;
    margin-bottom: 10px;
}

.chat-message {
    padding: 8px 12px;
    border-radius: 10px;
    max-width: 80%;
    margin-bottom: 8px;
}

.chat-message.bot {
    background: #e9ecef;
    align-self: flex-start;
}

.chat-message.user {
    background: #dc35463f;
    color: rgb(3, 3, 3);
    align-self: flex-end;
}

.chat-input {
    display: flex;
    gap: 5px;
}

.chat-input input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 8px 10px;
}

.chat-input button {
    background: #dc3546;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
}

.login-required {
    text-align: center;
    color: #6c757d;
    font-size: 14px;
}


.footer-bg {
    background-color: #fff; /* Цагаан фон */
    border-radius: 15px; /* Булангуудыг дугуйруулах */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Зөөлөн сүүдэр */
    position: relative; /* Background дугуйнуудад зориулсан */
    overflow: hidden; /* Дугуйнууд гадагш гарахгүй байх */
    width: 95%;
    margin: 0 auto; /* Center the section */
    padding: 0 40px;
}

.footer-logo {
    width: 100px;
}
.footer-links a {
    color: #6c757d;
    text-decoration: none;
}
.footer-links a:hover {
    color: #495057;
    text-decoration: underline;
}

.social-icons a {
    color: #6c757d;
    font-size: 1.5rem;
    margin-right: 15px;
    text-decoration: none;
}

.social-icons a:hover {
    color: #495057;
}

.footer-links p {
    color: #6c757d;
    text-decoration: none;
}
.footer-links p:hover {
    color: #495057;
    text-decoration: underline;
}

.social-icons p {
    color: #6c757d;
    font-size: 1.5rem;
    margin-right: 15px;
    text-decoration: none;
}

.social-icons p:hover {
    color: #495057;
}

.bottom-footer {
    border-top: 1px solid #dee2e6;
}



/* Responsive Adjustments */
@media (max-width: 768px) {
    .card-blog {
        flex-direction: column; /* Stack image and content on smaller screens */
    }

    .blog-card {
        width: 100%; /* Image takes full width */
        height: 200px; /* Fixed height for image on smaller screens */
    }

    .blog-card img {
        border-radius: 10px 10px 0 0; /* Rounded top corners for stacked layout */
    }

    .blog-card::before {
        border-radius: 10px 10px 0 0; /* Match image border-radius */
    }

    .blog-card-body {
        padding-top: 1.5rem; /* Reset top padding */
    }

    .card-day {
        top: 15px; /* Position at the top */
        left: 20px; /* Position to the left, relative to the card */
        transform: translateX(0); /* Remove horizontal transform */
    }
    .navbar {
        flex-direction: column; /* Навигацийн мөрийг бага дэлгэц дээр босоо болгох */
        height: auto;
        gap: 10px;
        padding: 10px;
    }

    .navbar-nav {
        gap: 5px; /* Цэсүүдийн хоорондох зайг багасгах */
        width: 100%; /* Бүтэн өргөнийг эзлэх */
        justify-content: flex-start; /* Цэсийг зүүн тал руу байрлуулах */
        margin-top: 10px; /* Логоноос зай авах */
    }

    .navbar-nav .nav-link {
        padding: 0.7rem 1rem; /* Жижиг дэлгэц дээр padding-ийг тохируулах */
    }

    #carouselExampleDark .carousel-item img {
        height: 700px; /* Дунд зэргийн дэлгэц дээр Carousel-ийн өндөр */
    }
    #carouselExampleDark .carousel-caption {
        padding-bottom: 1rem; /* Доод талын зайг багасгах */
        font-size: 0.8rem;
    }

    #carouselExampleDark .carousel-caption h5 {
        font-size: 1.1rem;
    }

    #carouselExampleDark .carousel-control-prev-icon,
    #carouselExampleDark .carousel-control-next-icon {
        padding: 10px; /* Сумнуудын padding-ийг багасгах */
    }

    #carouselExampleDark .carousel-caption .carousel-button a{
    padding: 10px;
    color: #0a0a0a;
    border-radius: 10px;
    font-size: 12px;
    }

    .tab-fl {
        display: flex;
        flex-direction: column;
    }

    .tab h1.text-center {
        font-size: 28px;
    }

    .animated-text {
      font-size: 1.2rem;
    }
    .card-blog {
        padding: 0px; /* Padding-ийг багасгана */
        transform: translateY(0) scale(1); /* Hover эффектийг багасгана эсвэл устгана */
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Сүүдрийг багасгана */
    }

    .card-blog:hover {
        transform: translateY(-4px) scale(1.01); /* Гар утсанд зориулсан бага зэргийн hover эффект */
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    .blog-card img {
        max-width: 250px; /* Зургийн хамгийн их өргөнийг багасгана */
    }

    .card-day {
        width: 55px; /* Өдрийн картны хэмжээг багасгана */
        height: 55px;
        top: 8px; /* Байрлалыг тохируулна */
        left: 15px;
    }

    .card-day .day {
        font-size: 24px; /* Өдрийн фонтын хэмжээг багасгана */
    }

    .card-day .month {
        font-size: 10px; /* Сарны фонтын хэмжээг багасгана */
    }

    .card-blog {
        display: flex;
        flex-direction: column;
    }
    .gallery-title {
        font-size: 1.5rem;
        line-height: 25px;
    }

    .blog-title p {
        font-size: 15px;
    }

    .single-treatment-section {
        padding: 10px;
    }

    .profile-content {
        padding: 0;
    }

    .team-divider .text {
        font-size: 20px;
        padding: 0;
    }


}

 @media (max-width: 768px) {
    nav {
        flex-direction: column; /* Stack items vertically */
        align-items: center; /* Center items horizontally */
        padding: 15px 10px;
    }

    nav .logo {
        margin-bottom: 15px;
        text-align: center;
    }

    nav .logo h5 {
        font-size: 14px; /* Adjust font size for mobile */
    }

    nav .header,
    nav .header-end {
        width: 100%;
        margin-top: 10px; /* Space between logo and menu */
    }

    nav .header ul,
    nav .header-end ul {
        flex-wrap: wrap; /* Allow items to wrap to next line */
        justify-content: space-around; /* Distribute space evenly */
        gap: 5px; /* Smaller gap for compact display */
    }

    nav .header ul li,
    nav .header-end ul li {
        flex-grow: 1; /* Allow items to grow and fill space */
        text-align: center;
    }
    
    nav .header ul li a,
    nav .header-end ul li a {
        padding: 10px; /* Uniform padding for icons */
        flex-direction: column; /* Stack icon and text vertically if text is shown */
        border-radius: 10px; /* Slightly less rounded for app-like buttons */
    }

    /* On mobile, text is always hidden initially */
    nav .header ul li a span,
    nav .header-end ul li a span {
        display: none;
        font-size: 12px; /* Smaller font size for text on mobile */
        margin-left: 0; /* Remove left margin for stacked layout */
        margin-top: 5px; /* Space between icon and text */
    }

    /* Active state on mobile */
    nav .header ul li a.active,
    nav .header-end ul li a.active {
        background-color: #ff2d2d;
        color: white;
        padding: 10px; /* Keep padding consistent when active */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Add shadow for active item */
    }

    nav .header ul li a.active i,
    nav .header-end ul li a.active i {
        margin-right: 0; /* Remove right margin, as text is below */
    }

    nav .header ul li a.active span,
    nav .header-end ul li a.active span {
        display: block; /* Show text as a block below the icon */
    }

    /* Mobile-specific hover effect for non-active items to show text */
    nav .header ul li a:not(.active):hover,
    nav .header-end ul li a:not(.active):hover {
        background-color: #000000; /* Lighter hover background */
        color: #ff2d2d;
    }
    nav .header ul li a:not(.active):hover span,
    nav .header-end ul li a:not(.active):hover span {
        display: block; /* Show text on hover even if not active on mobile */
        color: #007bff;
    }

    #carouselExampleDark {
        width: 98%;
        margin: 10px auto;
        border-radius: 10px;
    }

    #carouselExampleDark .carousel-item,
    #carouselExampleDark .carousel-item::before,
    #carouselExampleDark .carousel-item img {
        border-radius: 10px;
    }

    #carouselExampleDark .carousel-item img {
        height: 500px; /* Жижиг дэлгэц дээр Carousel-ийн өндөр */
    }

    #carouselExampleDark .carousel-caption {
        padding-bottom: 1rem; /* Доод талын зайг багасгах */
        font-size: 0.8rem;
    }

    #carouselExampleDark .carousel-caption h5 {
        font-size: 1.1rem;
    }

    #carouselExampleDark .carousel-control-prev-icon,
    #carouselExampleDark .carousel-control-next-icon {
        padding: 10px; /* Сумнуудын padding-ийг багасгах */
    }

    #carouselExampleDark .carousel-caption .carousel-button a{
    padding: 10px;
    color: #0a0a0a;
    border-radius: 10px;
    font-size: 12px;
    }

    .tab-fl {
        display: flex;
        flex-direction: column;
    }

    .tab h1.text-center {
        font-size: 28px;
    }

    .animated-text {
      font-size: 1.2rem;
    }

    .blog-section {
        padding: 20px 0;
    }

    .contact-section {
        padding: 20px 0;
    }

    .about { 
        padding: 10px;
    }

    .blog {
        padding: 10px;
    }
    
}