:root {
    --primary-color: #0056b3;
    --secondary-color: #ff0000;
    --light-color: #f3f4f6;
    --dark-color: #1f2937;
    --success-color: #059669;
    --danger-color: #dc2626;
    --text-color: #333;
    --light-bg: #0e7fef;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.5;
}

/* Top Bar Styles */
.top-bar {
    background: linear-gradient(135deg, #2b3481 0%, #1a237e 100%) !important;
    font-size: 14px;
}

.top-bar a {
    transition: all 0.3s ease;
    opacity: 0.9;
}

.top-bar a:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.top-bar i {
    margin-left: 5px;
    font-size: 16px;
}

.top-bar .social-links a {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 2px;
}

.top-bar .social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 991.98px) {
    .top-bar {
        font-size: 12px;
    }
    
    .top-bar i {
        font-size: 14px;
    }
    
    .top-bar .social-links a {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 767.98px) {
    .top-bar .row > div:first-child {
        display: none;
    }
    
    .top-bar .social-links {
        justify-content: center !important;
    }
}

/* Navbar Styles */
.navbar {
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.shadow-sm {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
}

.navbar-brand img {
    height: 50px;
    transition: height 0.3s ease;
}

.nav-link {
    color: #2b3481;
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #1a237e;
    background: rgba(43, 52, 129, 0.05);
}

.nav-link i {
    margin-left: 5px;
    font-size: 1.1em;
    opacity: 0.8;
}

.navbar .btn {
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar .btn i {
    font-size: 1.1em;
}

.navbar .btn-primary {
    background: #2b3481;
    border-color: #2b3481;
}

.navbar .btn-primary:hover {
    background: #1a237e;
    border-color: #1a237e;
    transform: translateY(-1px);
}

.navbar .btn-outline-primary {
    color: #2b3481;
    border-color: #2b3481;
}

.navbar .btn-outline-primary:hover {
    background: #2b3481;
    color: white;
    transform: translateY(-1px);
}

@media (max-width: 991.98px) {
    .navbar {
        padding: 10px 0;
    }

    .navbar-brand img {
        height: 40px;
    }

    .navbar-collapse {
        background: white;
        border-radius: 15px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        padding: 15px;
        margin-top: 10px;
    }

    .nav-link {
        padding: 12px 20px !important;
        margin: 2px 0;
    }

    .navbar .btn {
        width: 100%;
        margin: 5px 0;
        justify-content: center;
    }

    .navbar .d-flex {
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .navbar {
        padding: 8px 0;
    }

    .navbar-brand img {
        height: 35px;
    }

    .nav-link {
        font-size: 14px;
        padding: 10px 15px !important;
    }

    .navbar .btn {
        font-size: 14px;
        padding: 10px;
    }

    .navbar-collapse {
        margin-top: 8px;
        padding: 10px;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: #ffffff;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        margin-top: 15px;
    }

    .nav-link {
        padding: 12px 15px !important;
    }

    .navbar .btn {
        margin: 10px 15px;
        display: block;
        text-align: center;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f3f4f6 0%, #ffffff 100%);
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('/egy-lab/assets/images/pattern.svg') repeat;
    opacity: 0.1;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--dark-color);
    font-size: 1.8rem;
}

.hero .lead {
    font-size: 0.9rem;
    color: #4b55631;
    margin-bottom: 1.2rem;
}

.hero img {
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.hero img:hover {
    transform: translateY(-2px);
}

/* Cards Styles */
.card {
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.card-body {
    padding: 1rem;
}

/* Features Section */
.features .card {
    text-align: center;
    padding: 1rem;
}

.features .card i {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

/* Contact Cards */
.contact-cards .card {
    text-align: center;
    padding: 0.8rem;
}

.contact-cards .card i {
    color: var(--primary-color);
    margin-bottom: 0.4rem;
}

.contact-cards .card a {
    color: var(--dark-color);
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.contact-cards .card a:hover {
    color: var(--primary-color);
}

/* Popular Tests */
.popular-tests .card {
    height: 100%;
}

.popular-tests .card-body {
    display: flex;
    flex-direction: column;
}

.popular-tests .card-body > *:last-child {
    margin-top: auto;
}

/* Working Hours */
.working-hours {
    position: relative;
    overflow: hidden;
}

.working-hours::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f3f4f6 0%, #ffffff 100%);
    opacity: 0.7;
    z-index: 0;
}

.working-hours .container {
    position: relative;
    z-index: 1;
}

.working-hours-content {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.05);
}

/* Working Hours & Contact Section */
.working-hours-contact .card {
    transition: transform 0.3s ease;
    border-radius: 12px;
}

.working-hours-contact .card:hover {
    transform: translateY(-5px);
}

.card-title {
    font-size: 1.5rem;
    color: #2b3481;
}

.working-hours-list {
    margin: 0;
    padding: 0;
}

.hour-item {
    padding: 12px 0;
    border-bottom: 1px dashed #e9ecef;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.hour-item:last-child {
    border-bottom: none;
}

.hour-item i {
    font-size: 1.2rem;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    color: #2b3481;
    text-decoration: none;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.contact-item:hover {
    background: #e9ecef;
    transform: translateX(-5px);
}

.contact-item i {
    font-size: 1.4rem;
}

.contact-item span {
    font-size: 1.1rem;
}

.contact-item.emergency {
    background: #dc354520;
    color: #dc3545;
}

.contact-item.emergency:hover {
    background: #dc354530;
}

@media (max-width: 768px) {
    .working-hours-contact .card {
        margin-bottom: 1rem;
    }
    
    .hour-item, .contact-item {
        font-size: 1rem;
    }
}

.icon-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(43, 52, 129, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-circle i {
    font-size: 24px;
}

.working-hours-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.working-hour-item {
    padding: 12px 0;
    border-bottom: 1px dashed #e9ecef;
    display: flex;
    align-items: center;
    gap: 10px;
}

.working-hour-item:last-child {
    border-bottom: none;
}

.working-hour-item i {
    font-size: 14px;
    opacity: 0.8;
}

.contact-info-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-info-item {
    padding: 12px 0;
    border-bottom: 1px dashed #e9ecef;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-info-item i {
    font-size: 18px;
}

.contact-info-item a {
    color: #2b3481;
    transition: all 0.3s ease;
}

.contact-info-item a:hover {
    color: #1a237e;
}

.contact-info-item.emergency {
    background: rgba(220, 53, 69, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin: 10px 0;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links .btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links .btn:hover {
    transform: translateY(-2px);
    background: #e9ecef;
}

.social-links i {
    font-size: 18px;
}

@media (max-width: 991.98px) {
    .working-hours-contact .card {
        margin-bottom: 20px;
    }
}

/* Buttons */
.btn {
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
}

.text-primary {
    color: var(--primary-color) !important;
}

/* Social Media Icons */
.social-icons a {
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Modern Slider Styles */
.carousel-item {
    height: 500px;
    position: relative;
    overflow: hidden;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 0.3s ease-out;
}

.carousel-item.active img {
    transform: scale(1);
}

.carousel-caption {
    z-index: 2;
    text-align: right;
    right: 10%;
    left: 10%;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    max-width: 550px;
    margin-right: 0;
}

.carousel-caption h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.8s forwards;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.carousel-caption p {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.8s 0.3s forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 3%;
    z-index: 3;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.5);
    background-size: 50%;
    transition: background-color 0.3s;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: rgba(0,0,0,0.8);
}

.carousel-indicators {
    z-index: 3;
    margin-bottom: 1.2rem;
}

.carousel-indicators button {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    border: 2px solid transparent;
    transition: all 0.3s;
}

.carousel-indicators button.active {
    background-color: #fff;
    transform: scale(1.2);
}

@media (max-width: 991.98px) {
    .carousel-item {
        height: 400px;
    }
    
    .carousel-caption h2 {
        font-size: 2.2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .carousel-item {
        height: 300px;
    }
    
    .carousel-caption h2 {
        font-size: 1.8rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
}

/* Offers Section */
.offers-section {
    padding: 50px 0;
    background-color: #f8f9fa;
}

.section-header {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 1rem;
}

.offer-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.offer-image-wrapper {
    position: relative;
    width: 100%;
    background: #f8f9fa;
}

.offer-img {
    width: 100%;
    height: auto;
    display: block;
}

.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #dc3545;
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(220,53,69,0.3);
    transform: rotate(-10deg);
}

.discount-text {
    font-size: 0.8rem;
    opacity: 0.9;
}

.discount-amount {
    font-size: 1.2rem;
    line-height: 1;
}

.offer-card .card-title {
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.4;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.offer-card .card-text {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.offer-footer {
    margin-top: auto;
    padding-top: 1rem;
}

.offer-dates {
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 1rem;
    margin-bottom: 1rem;
}

.offer-dates i {
    color: #0d6efd;
}

.offer-actions {
    margin-top: 1rem;
}

.offer-actions .btn {
    padding: 0.6rem 1rem;
    font-weight: 500;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.offer-actions .btn i {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .offers-section {
        padding: 30px 0;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .offer-title h3 {
        font-size: 16px;
    }
    
    .phone-numbers {
        font-size: 14px;
    }
}

/* Quick Links Section */
.quick-links {
    background: #fff;
    overflow: hidden;
}

.quick-links-wrapper {
    background: #f8f9fa;
    border-radius: 25px;
    padding: 2.5rem 2rem 2rem;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-label {
    position: absolute;
    top: -15px;
    right: 35px;
    background: #fff;
    padding: 5px 20px;
    color: #0056b3;
    font-weight: 600;
    border-radius: 30px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    font-size: 1.1rem;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1.5rem;
    justify-items: center;
}

.quick-link-card {
    background: #fff;
    border-radius: 18px;
    padding: 1.2rem 1rem;
    text-align: center;
    text-decoration: none;
    color: #333;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    position: relative;
    top: 0;
}

.quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,85,179,0.15);
    color: #0056b3;
}

.quick-link-card:active {
    transform: translateY(-2px);
}

.quick-link-card .icon {
    width: 60px;
    height: 60px;
    background: #f0f7ff;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.quick-link-card:hover .icon {
    background: #e0efff;
    transform: scale(1.05);
}

.quick-link-card .icon i {
    font-size: 1.8rem;
    color: #0056b3;
    transition: all 0.3s ease;
}

.quick-link-card:hover .icon i {
    transform: scale(1.1);
}

.quick-link-card .title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    transition: all 0.3s ease;
    color: #444;
}

.quick-link-card:hover .title {
    color: #0056b3;
}

/* Featured Tests Section */
.featured-tests {
    padding: 50px 0;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: #6c757d;
    font-size: 16px;
}

.test-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.test-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.test-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.test-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.test-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.test-description p {
    margin: 0;
}

.test-price {
    margin-bottom: 1rem;
}

.final-price {
    color: #198754;
    font-size: 20px;
    font-weight: 600;
}

.test-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 14px;
}

.meta-item i {
    font-size: 16px;
    color: #0d6efd;
}

.test-actions {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    gap: 1rem;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-btn {
    background: #25D366;
    color: white;
}

.whatsapp-btn:hover {
    background: #128C7E;
    color: white;
}

.details-btn {
    background: #f8f9fa;
    color: #333;
}

.details-btn:hover {
    background: #e9ecef;
    color: #333;
}

@media (max-width: 768px) {
    .featured-tests {
        padding: 30px 0;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .test-content {
        padding: 1rem;
    }
    
    .test-title {
        font-size: 16px;
    }
    
    .final-price {
        font-size: 18px;
    }
    
    .test-actions {
        padding: 1rem;
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
    }
}

/* All Tests Section */
.all-tests {
    background: #f8f9fa;
}

.all-tests .card {
    border: none;
    border-radius: 15px;
}

.all-tests .card-header {
    border-bottom: 1px solid #eee;
}

.all-tests .form-control,
.all-tests .form-select,
.all-tests .btn-outline-secondary {
    border-color: #dee2e6;
}

.all-tests .btn-outline-secondary {
    color: #666;
}

.all-tests .btn-outline-secondary:hover {
    background-color: #f8f9fa;
    color: #333;
}

.all-tests .table > :not(caption) > * > * {
    padding: 1rem;
}

.all-tests .table th {
    font-weight: 600;
    color: #444;
}

.all-tests .badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

.all-tests .btn-group .btn {
    padding: 0.25rem 0.5rem;
    border: 1px solid #dee2e6;
}

.all-tests .btn-group .btn:hover {
    background: #f8f9fa;
}

.all-tests .pagination {
    margin-bottom: 0;
}

.all-tests .page-link {
    padding: 0.375rem 0.75rem;
    color: #666;
    border-color: #dee2e6;
}

.all-tests .page-item.active .page-link {
    background-color: #0056b3;
    border-color: #0056b3;
}

.all-tests .form-check-input {
    cursor: pointer;
}

/* Section Title */
.section-title {
    padding: 20px 0;
}

.section-title h2 {
    color: #2b3481;
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #2b3481;
}

.section-title p {
    font-size: 18px;
    margin-top: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .quick-links-wrapper {
        padding: 2rem 1.5rem 1.5rem;
        border-radius: 20px;
    }
    
    .quick-links-grid {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
        gap: 1rem;
    }
    
    .quick-link-card {
        padding: 1rem 0.8rem;
        border-radius: 15px;
    }
    
    .quick-link-card .icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.8rem;
    }
    
    .quick-link-card .icon i {
        font-size: 1.5rem;
    }
    
    .quick-link-card .title {
        font-size: 0.85rem;
    }
    
    .section-label {
        font-size: 1rem;
        padding: 4px 15px;
    }
}

@media (max-width: 768px) {
    .quick-links-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.8rem;
    }
    
    .quick-link-card {
        padding: 0.8rem;
    }
    
    .quick-link-card .icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0.5rem;
    }
    
    .quick-link-card .icon i {
        font-size: 1.2rem;
    }
    
    .quick-link-card .title {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .price-badge {
        width: 40px;
        height: 40px;
    }
    
    .price-badge .price {
        font-size: 1.2rem;
    }
    
    .price-badge .currency {
        font-size: 0.6rem;
    }
    
    .phones {
        flex-direction: column;
        gap: 0.2rem;
    }
    
    .download-btn {
        width: 25px;
        height: 25px;
    }
    
    .download-btn i {
        font-size: 0.8rem;
    }
    
    .book-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    .carousel-caption {
        text-align: center;
        right: 5%;
        left: 5%;
    }
    
    .carousel-caption h2 {
        font-size: 1.8rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
    
    .offers-section h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 991.98px) {
    .hero {
        padding: 1.5rem 0;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero img {
        margin-top: 0.8rem;
    }
    
    #mainSlider .carousel-item {
        height: 250px;
    }
    
    #mainSlider .carousel-caption {
        padding: 0.8rem;
    }
    
    #mainSlider .carousel-caption h2 {
        font-size: 1.5rem;
    }
    
    #mainSlider .carousel-caption p {
        font-size: 0.8rem;
    }
}

@media (max-width: 767.98px) {
    .navbar {
        padding: 0.2rem 0;
    }
    
    .hero h1 {
        font-size: 1.4rem;
    }
    
    .card-body {
        padding: 0.8rem;
    }
    
    .features .card i {
        font-size: 1.6rem;
    }
    
    #mainSlider .carousel-item {
        height: 200px;
    }
    
    #mainSlider .carousel-caption {
        padding: 0.6rem;
    }
    
    #mainSlider .carousel-caption h2 {
        font-size: 1.2rem;
    }
    
    #mainSlider .carousel-caption p {
        font-size: 0.7rem;
    }
    
    #mainSlider .carousel-control-prev,
    #mainSlider .carousel-control-next {
        width: 25px;
        height: 25px;
        margin: 0 0.4rem;
    }
}

/* Social Contact Bar */
.social-contact-bar {
    background: linear-gradient(135deg, #2b3481 0%, #1a237e 100%);
    color: white;
    font-size: 14px;
}

.social-contact-bar a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.social-contact-bar a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.social-contact-bar .contact-info a {
    padding: 4px 8px;
    border-radius: 4px;
}

.social-contact-bar .contact-info i {
    margin-left: 5px;
    font-size: 16px;
}

.social-contact-bar .social-links a {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.social-contact-bar .social-links a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

@media (max-width: 991.98px) {
    .social-contact-bar {
        font-size: 12px;
    }
    
    .social-contact-bar .contact-info a {
        padding: 2px 4px;
    }
    
    .social-contact-bar .contact-info i {
        font-size: 14px;
    }
    
    .social-contact-bar .social-links a {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 767.98px) {
    .social-contact-bar .contact-info {
        display: none;
    }
    
    .social-contact-bar .social-links {
        margin: 0 auto;
    }
}

.footer-copyright {
    text-align: center;
    padding: 15px 0;
    background: #2b3481;
    color: #fff;
}

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

.footer-copyright a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Tests Page Styles */
.test-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 12px;
}

.test-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1) !important;
}

.test-card .card-title {
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.4;
    font-size: 1.1rem;
}

.test-price-section {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.test-card .badge {
    padding: 0.5em 0.8em;
    font-weight: 500;
}

.test-card .btn-sm {
    width: 100%;
    padding: 0.5rem;
    font-weight: 500;
}

.test-filters {
    margin-bottom: 2rem;
}

.test-filters .card {
    background: #fff;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.test-filters .form-label {
    font-weight: 500;
    color: #555;
}

.test-filters .form-control,
.test-filters .form-select {
    border-color: #e0e0e0;
}

.test-filters .form-control:focus,
.test-filters .form-select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.test-empty-state {
    padding: 3rem 0;
    text-align: center;
}

.test-empty-state i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.test-empty-state h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.test-empty-state p {
    color: #666;
    max-width: 400px;
    margin: 0 auto;
}

/* Offers Page Styles */
.offer-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
    border: none;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.offer-image-wrapper {
    position: relative;
    width: 100%;
    background: #f8f9fa;
    overflow: hidden;
}

.offer-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.offer-card:hover .offer-img {
    transform: scale(1.05);
}

.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #dc3545, #ff4d5a);
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    width: 65px;
    height: 65px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(220,53,69,0.3);
    transform: rotate(-12deg);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: rotate(-12deg) scale(1);
    }
    50% {
        transform: rotate(-12deg) scale(1.05);
    }
    100% {
        transform: rotate(-12deg) scale(1);
    }
}

.discount-text {
    font-size: 0.8rem;
    opacity: 0.9;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
}

.discount-amount {
    font-size: 1.3rem;
    line-height: 1;
    font-weight: 700;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
}

.offer-card .card-body {
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.offer-card .card-title {
    color: #2c3e50;
    font-weight: 700;
    line-height: 1.4;
    font-size: 1.15rem;
    margin-bottom: 1rem;
    position: relative;
    padding-right: 15px;
}

.offer-card .card-title::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #0d6efd, #0dcaf0);
    border-radius: 2px;
}

.offer-card .card-text {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.offer-footer {
    margin-top: auto;
    padding-top: 1rem;
}

.offer-dates {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.offer-dates .small {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #555;
}

.offer-dates i {
    color: #0d6efd;
    font-size: 1.1rem;
}

.offer-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.offer-actions .btn {
    padding: 0.8rem 1.2rem;
    font-weight: 600;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.offer-actions .btn-outline-primary {
    border-width: 2px;
}

.offer-actions .btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13,110,253,0.2);
}

.offer-actions .btn-success {
    background: linear-gradient(45deg, #25D366, #128C7E);
    border: none;
}

.offer-actions .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37,211,102,0.2);
}

.offer-actions .btn i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .offer-card {
        border-radius: 12px;
    }
    
    .discount-badge {
        width: 55px;
        height: 55px;
    }
    
    .discount-amount {
        font-size: 1.1rem;
    }
    
    .offer-card .card-title {
        font-size: 1.1rem;
    }
    
    .offer-actions .btn {
        padding: 0.7rem 1rem;
    }
}
