/* Font Face Declaration */
@font-face {
    font-family: 'Peaktabien';
    src: url('../fonts/Peaktabien-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Peaktabien';
    src: url('../fonts/Peaktabien-Regular.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Kanit', sans-serif;
    line-height: 1.1;
    color: #333;
    background-color: #f5f5f5;
    overflow-x: auto;
}

.container {
    width: 100%;
    max-width: 1400px; /* เพิ่มจาก 1200px เป็น 1400px */
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Header with Logo and Contact */
.top-header {
    background: #2c3e50;
    padding: 10px 0;
    color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    position: sticky;
    top: 0;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.header-container {
    width: 100%;
    padding: 0 20px;
    display: flex;
    align-items: stretch;
    gap: 15px;
}

/* Left Box: Logo */
.logo-box {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.logo-image {
    height: 120px;
    width: auto;
}

/* Right Box: Content (Title + Contacts) */
.content-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5px 0;
}

/* Top Row: Website Name */
.title-row {
    flex: 1;
    display: flex;
    align-items: center;
}

.website-name {
    font-size: clamp(1.5rem, 5vw, 4.5rem);
    font-weight: 800;
    color: #f1c40f;
    margin: 0;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-family: 'Kanit', sans-serif;
}

/* Bottom Row: Contact Items */
.contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 5px 15px;
    white-space: nowrap;
    font-size: clamp(0.8rem, 2vw, 1.4rem);
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    height: clamp(35px, 5vw, 55px);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.contact-icon {
    width: clamp(25px, 3.5vw, 40px); /* ปรับขนาดไอคอนให้ใหญ่ขึ้นและเท่ากัน */
    height: clamp(25px, 3.5vw, 40px);
    object-fit: cover; /* ใช้ cover เพื่อให้รูปเต็มพื้นที่วงกลม/มน */
    border-radius: 50%; /* ทำให้ไอคอนเป็นวงกลมเหมือนกัน */
}

.line-icon {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    overflow: hidden;
}

.admin-icon {
    border-radius: 50%; /* ทำให้รูป Admin เป็นวงกลม */
    object-fit: cover;
}

.admin-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Racing Car Section */
.racing-car-section {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    padding: 0px 0;
    text-align: center;
}

.racing-car-container {
    text-align: center;
    position: relative;
    width: 100%;
    max-width: 1400px; /* เพิ่มจาก 1200px เป็น 1400px */
    margin: 0 auto;
    overflow: hidden;
    padding: 0px 0px;
}

.racing-car {
    width: 100%;
    height: auto;
    aspect-ratio: 1280 / 720; /* รักษาสัดส่วนภาพ 16:9 ตามขนาดรูปใหม่ */
    object-fit: cover;
    border-radius: 0; /* เปลี่ยนจาก 10px เป็น 0 เพื่อให้ชิดขอบจอ */
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: block;
}

/* Search Section */
.search-section {
    background: linear-gradient(135deg, #f0f2f5, #f0f2f5);
    padding: 2px 0;
    margin-bottom: 2px;
    color: white;
}

.search-input-container {
    margin-bottom: 5px;
}

.search-input {
    width: 100%;
    padding: 11.25px 15px;
    font-size: 0.825rem;
    border: none;
    border-radius: 18.75px;
    outline: none;
    font-family: 'Kanit', sans-serif;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.search-filters {
    display: flex;
    gap: 11.25px;
    margin-bottom: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-select {
    padding: 9px 15px;
    border: none;
    border-radius: 18.75px;
    font-size: 0.75rem;
    font-family: 'Kanit', sans-serif;
    background: white;
    color: #333;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    min-width: 112.5px;
}

.filter-select:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.search-buttons {
    display: flex;
    gap: 11.25px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 9px 22.5px;
    border: none;
    border-radius: 18.75px;
    font-size: 0.825rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Kanit', sans-serif;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-search {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.btn-home {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    width: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Data Section */
.data-section {
    background: #f8f9fa;
    padding: 2px 0;
}

.table-header {
    text-align: center;
    margin-bottom: 5px;
}

.table-header h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    font-weight: 600;
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    padding: 0;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.data-table {
    background: #fff;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: grid !important;
    gap: 3px !important;
    padding: 5px !important;
    width: 100%;
    border-collapse: collapse;
}

@media (min-width: 1025px) {
    .data-table {
        grid-template-columns: repeat(7, 1fr) !important;
    }
}

/* บังคับให้เป็น 7 คอลัมน์สำหรับหน้าจอขนาดใหญ่มาก */
@media (min-width: 1200px) {
    .data-table {
        grid-template-columns: repeat(7, 1fr) !important;
    }
}

.table-row {
    display: contents;
}

.table-row:last-child {
    border-bottom: none;
}

.table-cell {
    padding: 0px;
    text-align: center;
    border: none;
    background: transparent;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: auto;
}

.table-cell.hidden {
    display: none;
}

.table-cell:last-child {
    border-right: none;
}

.table-cell:hover {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* License Plate Styling */
.license-plate {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border: 2px solid #000000; /* ปรับความหนาเส้นขอบให้ดูบางลงตามรูปตัวอย่าง */
    border-radius: 10px;
    box-shadow: 
        0 2px 5px rgba(0,0,0,0.2),
        inset 0 1px 2px rgba(255,255,255,0.8);
    padding: 10px 5px; /* เพิ่ม padding บนล่างเพื่อให้มีระยะห่างจากขอบ */
    margin: 0;
    min-height: 100px;
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Additional CSS for consistent character height */
.license-text span {
    vertical-align: baseline;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1, "lnum" 1;
}

/* Base styling for license text */
.license-text {
    font-family: 'Peaktabien', 'Kanit', sans-serif;
    font-size: 2.2rem; 
    font-weight: 900;
    color: #000000;
    margin-bottom: 5px; /* ปรับระยะห่างจากราคา */
    margin-top: 0px;
    text-align: center;
    line-height: 1.1; 
    font-stretch: normal;
    text-shadow: none; /* เอาเงาออกเพื่อให้ดูแบนเหมือนรูปตัวอย่าง */
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    vertical-align: middle;
    text-rendering: optimizeLegibility;
    -webkit-font-feature-settings: "tnum" 1, "lnum" 1;
    -moz-font-feature-settings: "tnum" 1, "lnum" 1;
    white-space: nowrap;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0px;
    letter-spacing: -1px;
    position: relative;
    width: 100%;
}

/* Thai consonants - larger font size with tighter spacing */
.license-text .thai-consonant {
    font-size: 1.1em; /* ปรับลด em เพราะ parent font-size ใหญ่ขึ้นมากแล้ว */
    letter-spacing: -0.05em;
    vertical-align: middle;
    display: inline-block;
    font-weight: 900;
}

/* Numbers - larger font size with standard spacing */
.license-text .number {
    font-size: 1.1em; /* ปรับลด em เพราะ parent font-size ใหญ่ขึ้นมากแล้ว */
    letter-spacing: -0.05em;
    vertical-align: middle;
    display: inline-block;
    font-weight: 900;
}

.license-price {
    font-size: 1.2rem !important;
    color: #000000;
    font-weight: 500; 
    text-align: center;
    letter-spacing: 0.5px;
    font-stretch: normal;
    position: relative; /* เปลี่ยนจาก absolute เป็น relative เพื่อให้ไหลตามเนื้อหาและไม่ซ้อนกัน */
    bottom: auto;
    width: 100%;
    background: transparent;
    padding: 0;
    margin-top: 5px; /* ระยะห่างจากหมายเลขทะเบียน */
}

/* ปรับสัดส่วนสระและวรรณยุกต์ (Thai Glyph Adjustments) */
.license-text .thai-vowel-upper,
.license-text .thai-tone {
    font-size: 0.8em; /* เพิ่มขนาดขึ้นเล็กน้อยจาก 0.6 เป็น 0.8 เพื่อให้อ่านออกตามสัดส่วน 2.0em */
    margin-left: -0.45em;
    position: relative;
    top: -0.85em;
    display: inline-block;
    width: 0;
    pointer-events: none;
    vertical-align: middle;
}

.license-text .thai-tone {
    top: -1.15em;
    margin-left: -0.4em;
}

.license-text .thai-vowel-lower {
    font-size: 0.8em;
    margin-left: -0.4em;
    position: relative;
    top: 0.25em;
    display: inline-block;
    width: 0;
    pointer-events: none;
    vertical-align: middle;
}

.license-plate:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 12px rgba(0,0,0,0.4),
        inset 0 2px 4px rgba(255,255,255,0.9),
        inset 0 -2px 4px rgba(0,0,0,0.15),
        0 0 0 1px rgba(0,0,0,0.3);
}

/* Background classes for license plates using shared_assets */
.background-ขาวดำ {
    background-image: url('../shared_assets/white_black.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    color: #000000 !important;
}

.background-ทอง {
    background-image: url('../shared_assets/gold.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    color: #000000 !important;
    border-color: #000000 !important;
}

.background-ฟ้า {
    background-image: url('../shared_assets/blue.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    color: #000000 !important;
}

.background-เขียว {
    background-image: url('../shared_assets/green.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    color: #000000 !important;
}

.background-ม่วง {
    background-image: url('../shared_assets/purple.webp') !important;
    background-size: cover !important;
    color: #000000 !important;
    background-position: center center !important;
    border-color: #000000 !important;
}

/* Ensure text is visible on graphic backgrounds */
.background-ทอง .license-text, .background-ฟ้า .license-text, .background-เขียว .license-text, .background-ม่วง .license-text {
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8), -1px -1px 2px rgba(255,255,255,0.8) !important;
}

/* Red Circle Badge for License Plate */
.license-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 32px;
    height: 32px;
    background-color: #1877f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    z-index: 10;
    border: 2px solid #ffffff;
}

/* Animation Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-section, .data-section {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Additional styling for better visual hierarchy */
.table-cell {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.license-plate {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus states for accessibility */
.table-cell:focus-within {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Footer Section for Extra Space */
.footer-space {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 250px 0;
    text-align: center;
    margin-top: 20px;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
}

.footer-content p {
    font-size: 2rem;
    font-weight: 400;
    opacity: 0.8;
}

/* Custom styles for Van and Pickup license plates */
.license-plate.van .license-text,
.license-plate.van {
    color: #0000FF;
    border-color: #0000FF;
}

.license-plate.pickup .license-text,
.license-plate.pickup {
    color: #008000;
    border-color: #008000;
}

/* Upload Button Styles */
.btn-upload {
    background: linear-gradient(135deg, #1877f2, #1565c0);
    color: white;
    border: none;
    padding: 9px 18px;
    border-radius: 18.75px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
    margin-left: 10px;
}

.btn-upload:hover {
    background: linear-gradient(135deg, #1565c0, #0d47a1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.4);
}

/* Modal Styles for Upload System */
.upload-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.upload-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-modal-content {
    background: white;
    border-radius: 0px;
    width: 95%;
    height: 95%;
    max-width: 1400px;
    max-height: 900px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.upload-modal-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.upload-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.upload-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.upload-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.upload-modal-body {
    height: calc(100% - 80px);
    overflow: hidden;
}

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

/* Dynamic plates styling */
.dynamic-plate {
    animation: fadeIn 0.3s ease-in;
}

/* Default border for all dynamic plates (black) - For all other categories including Gold and Purple */
.dynamic-plate .license-plate.default-border {
    border: 1px solid #000000 !important;
    background-color: #ffffff;
}

.dynamic-plate .license-plate.default-border .license-text {
    color: #000000;
    font-weight: 900;
    letter-spacing: 0.75px;
    font-stretch: expanded;
    text-shadow: 0.5px 0.5px 0px rgba(0,0,0,0.3);
}

.dynamic-plate .license-plate.default-border .license-price {
    color: #000000;
    font-weight: normal;
    letter-spacing: 0.75px;
    font-stretch: expanded;
}

/* Van category - Blue border only */
.dynamic-plate .license-plate.van-border {
    border: 1px solid #2196F3 !important;
    background-color: #ffffff;
}

.dynamic-plate .license-plate.van-border .license-text {
    color: #1565C0;
    font-weight: 900;
    letter-spacing: 0.75px;
    font-stretch: expanded;
    text-shadow: 0.5px 0.5px 0px rgba(21, 101, 192, 0.3);
}

.dynamic-plate .license-plate.van-border .license-price {
    color: #000000;
    font-weight: normal;
    letter-spacing: 0.75px;
    font-stretch: expanded;
}

/* Pickup category - Green border only */
.dynamic-plate .license-plate.pickup-border {
    border: 1px solid #008000 !important;
    background-color: #ffffff;
}

/* License Sum Badge in Main Page */
.license-plate {
    position: relative;
}

.license-sum-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    z-index: 2;
}

.background-ทอง .license-sum-badge,
.background-ฟ้า .license-sum-badge,
.background-เขียว .license-sum-badge,
.background-ม่วง .license-sum-badge {
    background: rgba(255, 255, 255, 0.8);
    color: #333;
}

.dynamic-plate .license-plate.pickup-border .license-text {
    color: #2E7D32;
    font-weight: 900;
    letter-spacing: 0.75px;
    font-stretch: expanded;
    text-shadow: 0.5px 0.5px 0px rgba(46, 125, 50, 0.3);
}

.dynamic-plate .license-plate.pickup-border .license-price {
    color: #000000;
    font-weight: normal;
    letter-spacing: 0.75px;
    font-stretch: expanded;
}

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

/* Price filter hidden class */
.table-cell.price-hidden {
    display: none !important;
}

/* Sum filter hidden class */
.table-cell.sum-hidden {
    display: none !important;
}

/* Background images for license plates */
.license-plate.background-ขาวดำ, .license-plate-display.ขาวดำ {
    background-image: url('../shared_assets/white_black.webp');
    background-size: cover;
    background-position: center;
}

.license-plate.background-ทอง, .license-plate-display.ทอง {
    background-image: url('../shared_assets/gold.webp');
    background-size: cover;
    background-position: center;
}

.license-plate.background-ฟ้า, .license-plate-display.ฟ้า {
    background-image: url('../shared_assets/blue.webp');
    background-size: cover;
    background-position: center;
}

.license-plate.background-เขียว, .license-plate-display.เขียว {
    background-image: url('../shared_assets/green.webp');
    background-size: cover;
    background-position: center;
}

.license-plate.background-ม่วง, .license-plate-display.ม่วง {
    background-image: url('../shared_assets/purple.webp');
    background-size: cover;
    background-position: center;
}

/* Sum Circle Styling */
.license-plate {
    position: relative;
}

.sum-circle {
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background-color: #1877f2;
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    z-index: 10;
}

.sum-circle.hidden {
    display: none;
}

/* Screen Reader Only - for accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Force Desktop-like display on all devices */
/* This will override previous responsive adjustments */

/* Removed Desktop-only enforcement */

/* Ensure font sizes remain consistent with desktop - ขยายเพิ่มอีก 50% */
.main-logo {
    font-size: 3.15rem !important; /* เพิ่มจาก 2.1rem เป็น 3.15rem (50% เพิ่มขึ้น) */
}

.logo-subtitle {
    font-size: 1.125rem !important; /* เพิ่มจาก 0.75rem เป็น 1.125rem (50% เพิ่มขึ้น) */
}

.contact-label {
    font-size: 1.23rem !important; /* เพิ่มจาก 0.82rem เป็น 1.23rem (50% เพิ่มขึ้น) */
}

.contact-details-single-line .contact-label {
    font-size: 1.05rem !important; /* เพิ่มจาก 0.7rem เป็น 1.05rem (50% เพิ่มขึ้น) */
}

.contact-item {
    font-size: 1.065rem !important; /* เพิ่มจาก 0.71rem เป็น 1.065rem (50% เพิ่มขึ้น) */
}

.search-input {
    font-size: 1.2375rem !important; /* เล็กลง 25% จาก 1.65rem */
}

.filter-select {
    font-size: 1.125rem !important; /* เล็กลง 25% จาก 1.5rem */
}

.btn {
    font-size: 1.2375rem !important; /* เล็กลง 25% จาก 1.65rem */
}

.table-header h3 {
    font-size: 1.8rem !important;
}

.license-text {
    font-family: 'Peaktabien', 'Kanit', sans-serif !important;
    font-size: 2.8rem !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
    letter-spacing: -0.5px !important;
    text-shadow: 1px 1px 0px #ffffff, 2px 2px 2px rgba(0,0,0,0.4) !important;
}

.license-price {
    font-size: 1.2rem !important;
}

/* Prevent wrapping of elements that should stay in one line */
.header-content,
.contact-info,
.search-filters,
.search-buttons {
    flex-wrap: nowrap !important;
}

/* Remove specific media queries that change column layout or font sizes */
/* This effectively forces the desktop layout */
/* Removed conflicting Media Queries */

/* Prevent iOS Safari from adjusting text size */
@supports (-webkit-touch-callout: none) {
    body {
        -webkit-text-size-adjust: 100% !important;
    }
}




.line-icon {
    filter: none !important;
}



/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
  max-width: 400px; /* Max width for the QR code */
  text-align: center;
  position: relative;
}

/* The Close Button */
.close {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.qr-code-image {
    max-width: 100%;
    height: auto;
}



/* Facebook Posts Section */
.facebook-posts-section {
    background: #f0f2f5;
    padding: 20px 0;
}

.facebook-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.fb-post-wrapper {
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    max-width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fb-title {
    margin-bottom: 10px;
    color: #1877F2;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .fb-post-wrapper iframe {
        width: 100% !important;
    }
}
