﻿@font-face {
    font-family: 'Modam';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/modam-font@latest/fonts/woff2/Modam-Regular.woff2') format('woff2'), url('https://cdn.jsdelivr.net/gh/rastikerdar/modam-font@latest/fonts/woff/Modam-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Modam';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/modam-font@latest/fonts/woff2/Modam-Bold.woff2') format('woff2'), url('https://cdn.jsdelivr.net/gh/rastikerdar/modam-font@latest/fonts/woff/Modam-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Modam';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/modam-font@latest/fonts/woff2/Modam-Light.woff2') format('woff2'), url('https://cdn.jsdelivr.net/gh/rastikerdar/modam-font@latest/fonts/woff/Modam-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}

/* فونت ایران‌سنس */
@font-face {
    font-family: 'IranSans';
    src: url('https://cdn.jsdelivr.net/gh/styopdev/iransans@latest/IRANSans.woff2') format('woff2'), url('https://cdn.jsdelivr.net/gh/styopdev/iransans@latest/IRANSans.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* فونت یکان بخ */
@font-face {
    font-family: 'Yekan';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/yekan-font@master/fonts/YekanBakh-Regular.woff2') format('woff2'), url('https://cdn.jsdelivr.net/gh/rastikerdar/yekan-font@master/fonts/YekanBakh-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Yekan';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/yekan-font@master/fonts/YekanBakh-Bold.woff2') format('woff2'), url('https://cdn.jsdelivr.net/gh/rastikerdar/yekan-font@master/fonts/YekanBakh-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'IranSans', 'Yekan', Tahoma, Arial, sans-serif;
    /*background: #f0f0f0;*/
    direction: rtl;
}

.panel-grid {
    display: grid;
    grid-template-columns: 200px 1fr 1fr 200px;
    grid-template-rows: auto;
    gap: 5px;
   /* background: #e0e0e0;*/
    padding: 2px;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
  
}
.backgroundpattern-left {
    background-image: url(/assets/img/corner_lines_3_large.svg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position:left;
}


/* Left column: گالری تصاویر + تماس با ما */
.col-left {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Center-left: محصولات پزشکی */
.col-center-left {
    grid-column: 2;
    grid-row: 1;
}

/* Center-right: محصولات آزمایشگاهی */
.col-center-right {
    grid-column: 3;
    grid-row: 1;
}

/* Right column: مشاهده تمامی محصولات + اخبار و تازه‌ها */
.col-right {
    grid-column: 4;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Each cell */
.cell {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 40px 10px 40px 10px;
}

    .cell img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* Label boxes */
.label {
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    padding: 5px 14px;
    font-size: 14px;
    font-weight: bold;
    font-family: 'Yekan', 'IranSans', Tahoma, sans-serif;
    color: #222;
    white-space: nowrap;
    z-index: 2;
}
.label-warp {
    position: absolute;
    
    
    padding: 5px 14px;
    font-size: 14px;
    font-weight: bold;
    font-family: 'Yekan', 'IranSans', Tahoma, sans-serif;
    color: #222;
   
    z-index: 2;
}
/* Top-right label position */
.label-top-right {
    top: 10px;
    right: 10px;
}
.label-top-center {
    top: 20px;
    right: 8rem;
}
.label-center-div {
    top:1rem;
    left:1rem;
}
/* Top-left label position */
.label-top-left {
    top: 10px;
    left: 10px;
}

/* Hover effect */
.cell:hover img {
    opacity: 0.92;
    transform: scale(1.02);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.cell img {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Left column cells */
.cell-gallery {
    height: 180px;
}

.cell-contact {
    height: 180px;
}

/* Center cells (taller) */
.cell-medical {
    height: 360px;
}

.cell-lab {
    height: 360px;
}

/* Right column cells */
.cell-all-products {
    height: 180px;
}

.cell-news {
    height: 180px;
}

/* ===== ریسپانسیو موبایل ===== */
@media (max-width: 768px) {
    .panel-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        padding: 5px;
        gap: 5px;
    }

    .col-left,
    .col-center-left,
    .col-center-right,
    .col-right {
        grid-column: 1 !important;
        grid-row: auto !important;
    }

    /* در موبایل ستون چپ (گالری + تماس) کنار هم */
    .col-left {
        flex-direction: row;
        gap: 5px;
    }

        .col-left .cell {
            flex: 1;
        }

    /* در موبایل ستون راست (مشاهده + اخبار) کنار هم */
    .col-right {
        flex-direction: row;
        gap: 5px;
    }

        .col-right .cell {
            flex: 1;
        }

    /* ارتفاع‌ها در موبایل */
    .cell-gallery,
    .cell-contact,
    .cell-all-products,
    .cell-news {
        height: 160px;
    }

    .cell-medical,
    .cell-lab {
        height: 240px;
    }

    /* لیبل‌ها در موبایل */
    .label {
        font-size: 12px;
        padding: 4px 10px;
    }
}

@media (max-width: 420px) {
    .cell-gallery,
    .cell-contact,
    .cell-all-products,
    .cell-news {
        height: 130px;
    }

    .cell-medical,
    .cell-lab {
        height: 200px;
    }

    .label {
        font-size: 11px;
        padding: 3px 8px;
    }
}

/*--------------------footer -----------*/
/* --- Base Reset & Typography --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
   // background-color: #f3f4f6; /* Light gray body so the white footer pops */
}

/* --- Footer Main Styles --- */
.modern-footer {
    /* --- BACKGROUND IMAGE SETUP --- */
    background-color: #ffffff; /* Fallback color if image fails to load */
    background-image: url('/assets/img//FooterBackground.png'); /* <--- CHANGE THIS TO YOUR IMAGE PATH */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    /* ------------------------------ */

    color: #4b5563; /* Dark gray text for white background */
    padding: 4rem 0 0;
    margin-top: 4rem;
    position: relative;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Grid Layout --- */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #e5e7eb; /* Light border for white background */
}

/* --- Branding Column --- */
.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827; /* Very dark/black text */
    text-decoration: none;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
    display: inline-block;
}

    .footer-logo span {
        color: #2563eb; /* Slightly darker blue for better contrast on white */
    }

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 300px;
    color: #6b7280; /* Muted dark gray */
}

/* --- Links Columns --- */
.footer-links h4,
.footer-contact h4 {
    color: #111827; /* Black headings */
    font-size: 1rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
}

    .footer-links ul li {
        margin-bottom: 0.75rem;
    }

        .footer-links ul li a {
            color: #4b5563; /* Dark gray links */
            text-decoration: none;
            font-size: 0.9rem;
            transition: color 0.3s ease;
        }

            .footer-links ul li a:hover {
                color: #2563eb; /* Blue hover effect */
            }

/* --- Contact Column --- */
.footer-contact ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

    .footer-contact ul li {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 0.85rem;
        font-size: 0.9rem;
    }

        .footer-contact ul li svg {
            flex-shrink: 0;
            color: #2563eb; /* Blue icons */
        }

        .footer-contact ul li a {
            color: #4b5563;
            text-decoration: none;
            transition: color 0.3s ease;
        }

            .footer-contact ul li a:hover {
                color: #111827; /* Darken to black on hover */
            }

/* --- Social Icons --- */
.social-icons {
    display: flex;
    gap: 1rem;
}

    .social-icons a {
        color: #9ca3af; /* Light gray icons initially */
        transition: color 0.3s ease, transform 0.3s ease;
    }

        .social-icons a:hover {
            color: #2563eb; /* Turn blue on hover */
            transform: translateY(-2px);
        }

/* --- Bottom Bar --- */
.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: #9ca3af; /* Very light gray text */
}

/* --- Responsive Design (Mobile/Tablet) --- */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-brand {
        text-align: center;
    }

        .footer-brand p {
            max-width: 100%;
        }

    .footer-logo {
        font-size: 1.3rem;
    }

   /* events*/
    .backgroundeventcacultor {
        background-image: url(/assets/img/corner_lines_3_large.svg);
        background-size: cover;
        background-repeat: no-repeat;
        background-position: left;
    }
}