/* /public_html/assets/style.css - Final Version with new styles */

@font-face {
    font-family: 'IRANSansX';
    src: url('fonts/IRANSansXVF.ttf') format('truetype-variations'),
         url('fonts/IRANSansXVF.ttf') format('truetype');
    font-weight: 100 900;
    font-display: swap;
}

body {
    font-family: 'IRANSansX', 'Tahoma', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5; /* Updated to a slightly different light gray */
    color: #333;
    line-height: 1.6;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 100%;
    margin: 0;
    padding: 15px;
    background-color: transparent; /* Changed to transparent for a unified background */
    border-radius: 0;
    box-shadow: none;
}

h1.page-title {
    color: #dd1a20; /* Changed to a strong blue for a professional look */
    text-align: center;
    margin-top: 5px;
    margin-bottom: 20px;
    font-size: 2em;
    font-weight: 700;
}

/* --- Filters --- */
.filters-container {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: center;
    flex-wrap: wrap;
    padding: 15px;
    background-color: #ffffff; /* Changed to white for a clean look */
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* Added a subtle shadow */
    border: 1px solid #e0e6ed;
}
.filters-container select,
.filters-container input[type="text"] {
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #ced4da;
    font-family: 'IRANSansX', Tahoma, sans-serif;
    font-size: 0.95em;
    background-color: #fff;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    height: 44px;
    box-sizing: border-box;
}
.filters-container select:focus,
.filters-container input[type="text"]:focus {
    border-color: #dd1a20;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .25);
    outline: none;
}
.filters-container select { flex: 1 1 180px; }
#searchInputPublic { flex: 2 1 250px; direction: rtl; }
#filterSubmitButton {
    padding: 0 20px; height: 44px;
    background-color: #dd1a20;
    color: white; border: none;
    border-radius: 8px; cursor: pointer; font-size: 1em;
    font-family: 'IRANSansX', Tahoma, sans-serif;
    transition: background-color 0.2s ease-in-out, transform 0.1s ease;
    flex-shrink: 0;
    line-height: 44px;
}
#filterSubmitButton:hover { 
    background-color: #0056b3;
    transform: translateY(-2px); /* Add a subtle lift effect */
}

/* --- Outage Cards (Improved) --- */
.outage-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.outage-card {
  position: relative;
  background-color: #ffffff;
  border: 1px solid #e0e6ed;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08); /* More prominent shadow for a "cool" look */
  font-size: 0.95em;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.outage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-star {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5em;
  cursor: pointer;
}

.card-star .star-char {
  color: #ccc;
  transition: color 0.2s ease;
}
.card-star .starred .star-char {
  color: #ffc107;
}

.card-date {
  text-align: center;
  font-weight: 700;
  font-size: 1.2em;
  color: #dd1a20;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 0.9em;
  color: #555;
  border-top: 1px dashed #e9ecef;
  padding-top: 10px;
}
.card-meta strong {
    color: #222;
    font-weight: 600;
}

.card-address {
  font-size: 0.95em;
  color: #222;
  direction: rtl;
  line-height: 1.6em;
}

/* بولد کردن ساعت و شهر */
.card-meta .meta-city, .card-meta .meta-times {
    font-weight: 700;
    color: #000;
}
.card-meta .meta-city {
    font-size: 1.05em;
}


/* Special row colors */
.user-starred-row {
  background-color: #fff8e1 !important; /* Changed to a warm, soft yellow */
  font-weight: 500;
  border-right: 4px solid #ffc107; /* Changed to match star color */
  box-shadow: 0 6px 16px rgba(255,193,7,0.2); /* Shadow with star color */
}
.php-pinned-row {
  background-color: #e3f2fd !important; /* Changed to a soft blue */
  border-right: 4px solid #dd1a20; /* Stronger blue border */
  box-shadow: 0 6px 16px rgba(0,123,255,0.2);
}

.star-icon:hover { transform: scale(1.15); }
.star-icon.starred { color: #ffb300; }
.star-icon.not-starred { color: #ced4da; }
.star-icon.not-starred:hover { color: #ffb300; }

.share-button-cell { text-align: center !important; }
.share-button { background-color: #17a2b8; color: white; border: none; padding: 8px 12px; border-radius: 6px; cursor: pointer; font-size: 0.9em; font-family: 'IRANSansX', Tahoma, sans-serif; transition: background-color 0.2s ease, transform 0.1s ease; }
.share-button:hover { background-color: #138496; transform: translateY(-1px); }

/* --- Pagination --- */
.pagination-container { text-align: center; margin: 30px 0; padding: 10px 0;}
.pagination-container button, .pagination-container span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    margin: 0 4px;
    border: 1px solid #dee2e6;
    text-decoration: none;
    color: #dd1a20;
    background-color:#fff;
    border-radius: 8px;
    font-size: 0.9em;
    cursor:pointer;
    transition: all 0.2s;
    font-weight: 500;
}
.pagination-container button:hover:not(:disabled) { background-color: #e9ecef; border-color: #dd1a20; color: #0056b3;}
.pagination-container button.current { background-color: #dd1a20f; color: white; border-color: #dd1a20; font-weight:700; cursor:default; }
.pagination-container button:disabled, .pagination-container span.disabled { color: #adb5bd; border-color: #e9ecef; cursor: default; background-color:#f8f9fa; }
.pagination-container span { cursor: default; background-color: transparent; border: none; }

/* --- AJAX States & Misc --- */
#outageListContainer .loading-indicator { text-align: center; padding: 40px 15px; font-size: 1.1em; color: #6c757d;}
#outageListContainer .loading-indicator::before { content: ""; display: inline-block; width: 20px; height: 20px; border: 3px solid rgba(0, 123, 255, 0.2); border-radius: 50%; border-top-color: #dd1a20; animation: spin 0.8s linear infinite; margin-left: 10px; vertical-align: -4px;}
@keyframes spin { to { transform: rotate(360deg); } }
#outageListContainer .no-data-ajax { text-align: center; padding: 25px; font-size: 1.1em; color: #555; background-color: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); margin-top: 15px;}
.error-message-box { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; padding: 12px; border-radius: 6px; margin-bottom: 15px; text-align: center; font-size: 0.95em;}
.footer-note { text-align: center; margin-top: 30px; margin-bottom: 15px; font-size: 0.85em; color: #7f8c8d; }
.footer-note a { color: #dd1a20; text-decoration: none; font-weight: 600; }
.footer-note a:hover { text-decoration: underline; }
#scrollTopBtn { display: none; position: fixed; bottom: 25px; left: 25px; z-index: 1000; border: none; outline: none; background-color: rgba(0, 123, 255, 0.9); color: white; cursor: pointer; padding: 0; width: 42px; height: 42px; border-radius: 50%; font-size: 18px; line-height: 42px; text-align: center; box-shadow: 0 4px 8px rgba(0,0,0,0.25); transition: all 0.3s;}
#scrollTopBtn:hover { background-color: #0056b3; transform: translateY(-3px) scale(1.05); }
.debug-notice, .debug-error { padding: 10px; margin: 15px 0; font-size: 0.9em; border-radius: 6px; }
.debug-notice { color:darkorange; background:#fff3cd; border:1px solid #ffeeba; }
.debug-error { color:darkred; background:#f8d7da; border:1px solid #f5c6cb; }

/* --- FAQ Accordion (Improved) --- */
.faq-section {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 15px;
}
.faq-section h2 {
    font-size: 2em;
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-weight: 700;
}
.faq-item {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    background-color: #ffffff;
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}
.faq-item:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.faq-question {
    padding: 18px 22px;
    cursor: pointer;
    position: relative;
    font-weight: 600;
    font-size: 1.1em;
    color: #34495e;
    background-color: #f9f9f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}
.faq-question:hover {
    background-color: #f0f0f0;
}

.faq-question::after {
    content: '+';
    font-size: 1.5em;
    color: #888;
    transition: transform 0.3s ease;
    font-weight: 300;
    line-height: 1;
}

.faq-question.active::after {
    content: '−';
    transform: rotate(0deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 22px;
    font-size: 1em;
    color: #495057;
    background-color: #fff;
    transition: max-height 0.4s ease, padding 0.4s ease;
    line-height: 1.8;
}

.faq-answer.open {
    padding: 15px 22px 20px;
}

/* --- Mobile Card View Styles (Improved) --- */
@media (max-width: 768px) {
    body { padding: 0; background-color: #f0f2f5; }
    .container { margin: 0; padding: 6px; box-shadow: none; border-radius: 0; background-color: transparent; }
    h1.page-title { font-size: 1.8em; margin-top: 15px; margin-bottom: 15px;}
    .filters-container { flex-direction: column; gap: 10px; padding:10px; margin-bottom:15px; }
    .filters-container select, .filters-container input[type="text"], .filters-container button { width: 100%; font-size: 0.9em; padding:10px; height:auto; }
    #filterSubmitButton { padding: 10px 15px; }

    .table-responsive-wrapper { border: none; margin-top:0; overflow-x: visible; }
    #outageTable thead { display: none; }
    #outageTable, #outageTable tbody, #outageTable tr, #outageTable td { display: block; width: 100% !important; box-sizing: border-box; }
    #outageTable tr {
        background-color: #fff;
        border: 1px solid #e0e6ed;
        border-radius: 12px;
        margin-bottom: 12px;
        padding: 15px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        position: relative;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    #outageTable tr:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 14px rgba(0,0,0,0.1);
    }
    #outageTable td { border: none; padding: 4px 0; font-size: 0.9em; word-wrap: break-word; white-space: normal; text-align: right !important; }
    #outageTable td[data-label]::before { content: attr(data-label); font-weight: 500; color: #718096; margin-left: 5px; display: inline-block; font-size:0.95em; }

    /* بولد کردن ساعت و شهر در موبایل */
    #outageTable tr td[data-label="تاریخ:"] {
        order: 1; text-align: center !important; font-size: 1.1em; font-weight: 700; color: #dd1a20; margin-bottom: 8px; padding-top: 5px !important;
    }
    #outageTable tr td[data-label="شهر:"] {
        order: 5; font-weight: 700; color: #000; font-size: 0.95em; border-top: 1px dashed #e9ecef; padding-top: 8px !important; margin-top: 8px;
    }
    #outageTable tr td[data-label="ساعت شروع:"] {
        order: 3; font-weight: 700; color: #000; font-size: 0.95em;
    }
    #outageTable tr td[data-label="ساعت پایان:"] {
        order: 4; font-weight: 700; color: #000; font-size: 0.95em; margin-bottom: 8px;
    }
    #outageTable td.address-cell { order: 6; font-weight: 500; font-size: 0.9em; color: #333; margin-top: 8px; padding-top: 8px !important; border-top: 1px dashed #e9ecef; line-height: 1.5;}
	#outageTable td.city-cell { order: 2; font-weight: 700; font-size: 1em; color: #000; margin-top: 5px; padding-top: 5px !important; line-height: 1.5; text-align: right !important;}

    #outageTable tr td.share-button-cell { order: 7; padding: 10px 0 5px 0 !important; text-align: center !important; margin-top: 8px; border-top: 1px solid #f0f0f0; }
    #outageTable tr td.share-button-cell button.share-button { width: auto; display: inline-block; padding: 8px 15px; font-size: 0.85em;}

    .php-pinned-row { border-right: 4px solid #dd1a20; padding-right: 8px !important; border-left: none; }
    .user-starred-row { border-right: 4px solid #ffc107; background-color: #fff8e1 !important; padding-right: 8px !important; border-left: none;}

    #scrollTopBtn { bottom: 15px; left: 15px; width: 40px; height: 40px; line-height: 40px; font-size: 16px;}
    .faq-section h2 { font-size: 1.5em; }
    .faq-question { font-size: 1em; padding: 15px 18px; }
    .faq-answer { font-size: 0.9em; }
    .faq-answer.open { padding: 12px 18px 15px; }
}

/* --- Banner Styles --- */
.banner-ad-slot-top, .banner-ad-slot-bottom { width: 100%; margin: 20px 0; padding: 0; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.banner-ad-slot-top img, .banner-ad-slot-bottom img { width: 100%; height: auto; display: block; max-width: 100%; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.05); }
@media (max-width: 768px) { .banner-ad-slot-top, .banner-ad-slot-bottom { margin: 15px 0; } }

#searchInput {
    width: 72%;
	padding: 14px 20px;
    border: 1px solid #dce4ec;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 1.05em;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
	font-family: 'IRANSansX';
}

#searchInput:focus {
    border-color: #dd1a20;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .25);
    outline: none;
}

.star-char {
  font-size: 22px;
  line-height: 1;
  padding: 0;
  display: inline-block;
  vertical-align: middle;
}

.star-label {
  font-size: 11px;
  color: #555;
  display: inline-block;
  vertical-align: middle;
  line-height: 22px;
}

.starred .star-char {
  color: #f1c40f;
}

.not-starred .star-char {
  color: #ccc;
}

td.star-cell {
  white-space: nowrap;
  text-align: center !important;
  cursor: default;
  user-select: none;
  width: 90px;
  direction: rtl;
}

@media (max-width: 768px) {
	#searchInput, .city-filter{
		width: 90% !important;
		margin: 0 auto;
	}
  td.star-cell {
    width: 80px;
    padding: 0 5px;
    text-align: center !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

.star-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1em;
  color: #777;
  user-select: none;
}

.star-icon.starred .star-char {
  color: #ffc107;
}

.star-icon.starred .star-label {
  color: #444;
  font-weight: 500;
}
.faq-section {
    max-width: 100%;
    margin: 3rem auto;
    padding: 0 1rem;
}

.faq-section h2 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.faq-item {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    background-color: #f9f9f9;
    box-shadow: 0 6px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.faq-question {
    padding: 1rem 1.2rem;
    cursor: pointer;
    position: relative;
    font-weight: 600;
    font-size: 0.95rem;
    color: #34495e;
    background-color: #f1f1f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '⌄';
    font-size: 1.2rem;
    color: #888;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.2rem;
    font-size: 0.95rem;
    color: #000;
    background-color: #fff;
    transition: max-height 0.4s ease, padding 0.4s ease;
    line-height: 1.7;
}

.faq-answer.open {
    padding: 0.8rem 1.2rem 1.2rem;
}

@media (max-width: 600px) {
    .faq-section h2 {
        font-size: 1.5rem;
    }

    .faq-question {
        font-size: 1rem;
    }

    .faq-answer {
        font-size: 0.9rem;
    }
}


       #searchInput { direction: rtl; }
        .intro-text { margin-bottom: 20px; line-height: 1.8; text-align: justify; font-size: 1em; color: #444; }
        .faq-section { margin-top: 40px; margin-bottom: 25px; padding: 25px; background-color: #f8f9fa; border: 1px solid #e9ecef; border-radius: 10px; }
        .faq-section h2 { font-size: 1.8em; margin-bottom: 25px; text-align: center; color: #343a40; font-weight: 700; }
        .faq-item { margin-bottom: 15px; border: 1px solid #dee2e6; border-radius: 8px; background-color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.05); }
        .faq-item h3 { font-size: 1.1em; margin-bottom: 0; color: #dd1a20; cursor: pointer; padding: 15px; transition: background-color 0.2s; border-radius: 8px 8px 0 0; }
        .faq-item h3:hover { background-color: #e9ecef; }
        .faq-item p { font-size: 0.98em; line-height: 1.7; margin-bottom: 0; color: #495057; padding: 15px; border-top: 1px solid #dee2e6; }

		.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 3rem 0;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    background: #dd1a20;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    border-radius: 10px;
    transition: background 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.pagination a:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.pagination a.active {
    background: #0056b3;
    pointer-events: none;
    font-weight: 700;
}

@media (max-width: 480px) {
    .pagination a {
        min-width: 35px;
        height: 35px;
        font-size: 14px;
        padding: 0 12px;
        border-radius: 8px;
    }
}

/* --- Style updates for filter controls --- */

/* 1. Create a flex container to place items side-by-side */
.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
	width: 100%;
}

/* 2. Make both search and city filter take up equal space */
.filter-controls #searchInput,
.filter-controls .city-filter {
}

/* 3. Style the city filter container and dropdown to match the search input */
.city-filter {
    display: flex;
	width: 26%;
}

#citySelect {
	font-family: 'IRANSansX', 'Tahoma', Arial, sans-serif;
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    color: #333;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23666%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: left 15px center;
    background-size: 12px;
    padding-left: 40px;
}


.current-page{
	display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    background: #dd1a20;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    border-radius: 10px;
    transition: background 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* --- Add to Home Screen (A2HS) Popup Styles --- */

.a2hs-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    padding: 25px;
    z-index: 1000;
    transform: translateY(150%);
    transition: transform 0.4s ease-in-out;
    font-family: inherit;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* Class to show the popup with a slide-up animation */
.a2hs-popup.show {
    transform: translateY(0);
}

.a2hs-content {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.a2hs-logo {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.a2hs-text h4 {
    margin: 0 0 8px 0;
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
}

.a2hs-text p {
    margin: 0;
    font-size: 0.95em;
    color: #555;
    line-height: 1.5;
}

.a2hs-button {
	font-family: 'IRANSansX', 'Tahoma', Arial, sans-serif;
    background-color: #dd1a20;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.a2hs-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.a2hs-close {
    position: absolute;
    top: 12px;
    left: 18px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}
.a2hs-close:hover {
    color: #555;
}

/* Specific styles for iOS instructions */
.a2hs-ios-manual {
    display: none;
    font-size: 14px;
    color: #444;
    background-color: #f0f0f0;
    padding: 10px 15px;
    border-radius: 10px;
    margin-top: 15px;
    line-height: 1.6;
}

.a2hs-ios-manual p {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.a2hs-ios-manual img {
    width: 24px;
    height: auto;
    display: inline-block;
    vertical-align: middle;
}

/* Responsive adjustments for small screens */
@media (max-width: 480px) {
    .a2hs-popup {
        padding: 15px;
    }
    .a2hs-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .a2hs-logo {
        width: 60px;
        height: 60px;
    }
    .a2hs-text h4 {
        font-size: 1em;
    }
    .a2hs-text p {
        font-size: 0.9em;
    }
    .a2hs-close {
        top: 8px;
        left: 8px;
        font-size: 24px;
    }
    .a2hs-button {
        width: 100%;
        margin-top: 10px;
        padding: 10px 20px;
    }
    .a2hs-ios-manual {
        font-size: 12px;
        padding: 8px;
    }
}
}