@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@500;600;700&display=swap');

/* Main Website Styles */

:root {
    --primary-color: #0d6efd;
    --primary-dark: #1d4ed8;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --chat-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --heading-font: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    font-family: var(--chat-font);
    color: var(--dark-color);
}

/* ==================== Authentic WhatsApp Style Chat Interface ==================== */
.profile-chat-card {
    font-family: var(--chat-font);
    border: none;
    border-radius: 16px;
    box-shadow: 0 15px 35px -10px rgba(11, 20, 26, 0.15), 0 0 1px rgba(11, 20, 26, 0.2);
    overflow: hidden;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* WhatsApp Header */
.profile-chat-header {
    background: #005c4b;
    color: #ffffff;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.chat-header-title {
    font-family: var(--heading-font);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1px;
}

.chat-header-subtitle {
    font-size: 12px;
    color: #d1fae5;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 5px;
}

.chat-avatar-agent {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #128c7e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #ffffff;
    margin-right: 12px;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.chat-status-pulse {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 11px;
    height: 11px;
    background-color: #25d366;
    border-radius: 50%;
    border: 2px solid #005c4b;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    animation: waStatusRing 2s infinite;
}

@keyframes waStatusRing {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 5px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.chat-header-actions .btn {
    font-size: 12px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

/* WhatsApp Canvas Stream */
.profile-chat-stream {
    height: 480px;
    overflow-y: auto;
    padding: 20px 22px;
    background-color: #efeae2;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%239fa8a3' fill-opacity='0.16' fill-rule='evenodd'/%3E%3C/svg%3E");
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-chat-stream::-webkit-scrollbar {
    width: 6px;
}

.profile-chat-stream::-webkit-scrollbar-thumb {
    background: rgba(11, 20, 26, 0.2);
    border-radius: 6px;
}

/* WhatsApp Encryption Pill */
.wa-encryption-pill {
    background: #ffeecd;
    color: #54656f;
    font-size: 11.5px;
    text-align: center;
    padding: 6px 14px;
    border-radius: 8px;
    max-width: 440px;
    margin: 0 auto 10px;
    box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.1);
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Date Pill */
.chat-date-divider {
    text-align: center;
    position: relative;
    margin: 4px 0 8px;
}

.chat-date-pill {
    display: inline-block;
    padding: 4px 12px;
    background: #ffffff;
    color: #54656f;
    font-size: 11.5px;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
    letter-spacing: 0.3px;
}

/* Message Rows */
.chat-msg-row {
    display: flex;
    max-width: 78%;
    position: relative;
    animation: waMsgFadeIn 0.15s ease-out;
}

@keyframes waMsgFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-msg-row.user-msg {
    align-self: flex-end;
}

.chat-msg-row.admin-msg {
    align-self: flex-start;
}

/* WhatsApp Message Bubbles */
.chat-msg-bubble {
    padding: 6px 10px 6px 10px;
    font-size: 14.2px;
    line-height: 1.45;
    word-break: break-word;
    position: relative;
    box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
}

/* Outgoing Message: WhatsApp Light Green */
.user-msg .chat-msg-bubble {
    background: #d9fdd3;
    color: #111b21;
    border-radius: 8px 0px 8px 8px;
}

.user-msg .chat-msg-bubble::after {
    content: "";
    position: absolute;
    top: 0;
    right: -8px;
    width: 0;
    height: 0;
    border-top: 8px solid #d9fdd3;
    border-right: 8px solid transparent;
}

/* Incoming Message: WhatsApp Crisp White */
.admin-msg .chat-msg-bubble {
    background: #ffffff;
    color: #111b21;
    border-radius: 0px 8px 8px 8px;
}

.admin-msg .chat-msg-bubble::after {
    content: "";
    position: absolute;
    top: 0;
    left: -8px;
    width: 0;
    height: 0;
    border-top: 8px solid #ffffff;
    border-left: 8px solid transparent;
}

.admin-sender-name {
    font-size: 12.5px;
    font-weight: 700;
    color: #005c4b;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* WhatsApp Inlined Timestamp */
.wa-msg-meta {
    float: right;
    margin-left: 10px;
    margin-top: 4px;
    font-size: 11px;
    color: #667781;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    line-height: 1;
}

.wa-ticks {
    font-size: 14px;
    color: #53bdeb;
}

/* WhatsApp Composer (Bottom Bar) */
.chat-composer-wrap {
    background: #f0f2f5;
    padding: 10px 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
}

.chat-composer-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0f2f5;
}

.wa-input-wrap {
    flex: 1;
    background: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 4px 12px;
    box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.08);
}

.chat-input-area {
    flex: 1;
    border: none;
    background: transparent;
    resize: none;
    padding: 6px 0;
    font-size: 14.5px;
    line-height: 1.4;
    outline: none !important;
    box-shadow: none !important;
    max-height: 100px;
    color: #111b21;
    font-family: var(--chat-font);
}

.chat-tool-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: #54656f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.chat-tool-btn:hover {
    color: #111b21;
    background: rgba(0, 0, 0, 0.05);
}

/* WhatsApp Circular Teal/Green Send Button */
.chat-send-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #00a884;
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 168, 132, 0.35);
    transition: all 0.15s ease;
}

.chat-send-btn:hover:not(:disabled) {
    background: #008f6f;
    transform: scale(1.05);
}

.chat-send-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.chat-send-btn:disabled {
    background: #aebac1;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Quick Topic Suggestions */
.chat-suggestions-bar {
    background: #f0f2f5;
    padding: 6px 16px 2px;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.chat-suggestions-bar::-webkit-scrollbar {
    display: none;
}

.chat-chip {
    white-space: nowrap;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 16px;
    background: #ffffff;
    color: #54656f;
    border: 1px solid rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.06);
}

.chat-chip:hover {
    background: #d9fdd3;
    color: #005c4b;
    border-color: #25d366;
}

/* Attachment in WhatsApp Bubble */
.chat-bubble-attachment {
    margin-top: 4px;
    margin-bottom: 4px;
    border-radius: 6px;
    overflow: hidden;
    max-width: 260px;
}

.chat-bubble-attachment img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    cursor: pointer;
}

.chat-bubble-attachment .attachment-file-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(0,0,0,0.05);
    border-radius: 6px;
    color: inherit;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

/* Interactive Attachment Preview Bar */
.chat-attachment-preview {
    background: #f0f2f5;
    padding: 6px 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

.attachment-preview-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #111b21;
    font-weight: 500;
}

/* Floating Emoji Popover Grid */
.emoji-picker-popover {
    position: absolute;
    bottom: 65px;
    left: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(11, 20, 26, 0.16);
    padding: 10px;
    width: 280px;
    z-index: 1050;
    display: none;
    animation: popoverFade 0.15s ease-out;
}

@keyframes popoverFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}

.emoji-item {
    font-size: 1.35rem;
    text-align: center;
    padding: 6px 0;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.1s ease, transform 0.1s ease;
    user-select: none;
}

.emoji-item:hover {
    background: #f0f2f5;
    transform: scale(1.18);
}

/* WhatsApp Typing indicator */
.chat-typing-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #ffffff;
    border-radius: 0px 8px 8px 8px;
    width: fit-content;
    box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #8696a0;
    border-radius: 50%;
    animation: waTypingBounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes waTypingBounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-4px); }
}

/* Error banner */
.chat-error-banner {
    background: #fee2e2;
    color: #991b1b;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 12.5px;
    margin: 8px 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}



/* Announcement Bar */
.announcement-bar {
    background: linear-gradient(90deg, #0d6efd, #6610f2);
    color: white;
    padding: 10px 0;
    text-align: center;
    font-size: 0.9rem;
}

.announcement-content a {
    color: white;
    text-decoration: none;
}

.announcement-content a:hover {
    text-decoration: underline;
}

/* Header */
.site-header {
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .navbar {
    padding: 12px 0;
}

.site-header .navbar-brand {
    display: inline-flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    padding: 0;
    margin-right: 1.5rem;
    text-decoration: none;
}

.site-header .navbar-brand img,
.site-header .navbar-logo {
    height: 100px;
    max-height: 100px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    vertical-align: middle;
    transition: height 0.25s ease, max-width 0.25s ease;
}

.site-header .brand-text {
    font-family: var(--heading-font);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.site-header .nav-link {
    font-weight: 500;
    color: var(--dark-color);
    padding: 8px 14px !important;
    border-radius: 6px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.site-header .nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.05);
}

.site-header .header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-header .header-actions .btn {
    padding: 8px 18px;
    font-weight: 500;
    border-radius: 8px;
    white-space: nowrap;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 500px;
}

.hero-slider {
    height: 100%;
}

.hero-slide {
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    color: white;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons .btn {
    margin: 5px;
    padding: 12px 30px;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--secondary-color);
}

/* Event Cards */
.event-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.event-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.event-card:hover .event-image img {
    transform: scale(1.1);
}

.event-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.event-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.event-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--warning-color);
    color: var(--dark-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.event-content {
    padding: 20px;
}

.event-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.event-meta i {
    margin-right: 5px;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
}

.event-price small {
    font-size: 0.8rem;
    font-weight: normal;
    color: var(--secondary-color);
}

/* Service Cards */
.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    color: white;
    font-size: 2rem;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    color: white;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-section .btn-outline-primary {
    color: white;
    border-color: white;
}

.cta-section .btn-outline-primary:hover {
    background: white;
    color: var(--primary-color);
}

/* Footer */
.site-footer {
    background: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.site-footer h5 {
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.site-footer p {
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: background 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
}
 
.footer-contact i {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    opacity: 0.7;
}

/* Responsive Base */
@media (max-width: 991.98px) {
    .site-header .navbar {
        padding: 10px 0;
    }
    
    .site-header .navbar-brand img,
    .site-header .navbar-logo {
        height: 100px;
        max-height: 100px;
        max-width: 180px;
    }
    
    .site-header .brand-text {
        font-size: 1.3rem;
    }
    
    .site-header .navbar-collapse {
        background: #ffffff;
        padding: 18px;
        border-radius: 12px;
        margin-top: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        border: 1px solid rgba(0, 0, 0, 0.06);
    }
    
    .site-header .navbar-nav .nav-link {
        padding: 10px 14px !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    }
    
    .site-header .header-actions {
        flex-direction: column;
        width: 100%;
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid #e9ecef;
        gap: 10px;
    }
    
    .site-header .header-actions .btn {
        width: 100%;
        text-align: center;
        margin: 0 !important;
        padding: 10px 16px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Hidden Admin Access Button */
.hidden-admin-btn {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background: rgba(13, 110, 253, 0.15);
    border-radius: 4px 0 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
    backdrop-filter: blur(2px);
}

.hidden-admin-btn.reveal {
    opacity: 0.6;
    cursor: pointer;
}

.hidden-admin-btn.reveal:hover {
    opacity: 1;
    background: rgba(13, 110, 253, 0.8);
}

.hidden-admin-btn i {
    color: var(--primary-color);
    font-size: 14px;
}

.hidden-admin-btn.reveal:hover i {
    color: white;
}

/* Product Card Images */
.product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-placeholder {
    font-size: 3rem;
    color: #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-placeholder-large {
    font-size: 4rem;
    color: #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    background: #f8f9fa;
    border-radius: 8px;
}

.product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Main product image */
#mainImage {
    width: 100%;
    height: 400px;
    object-fit: contain;
    object-position: center;
}

/* Thumbnail images */
.thumbnail-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.thumbnail:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* ==================== Clickable Service Cards ==================== */
.service-card-clickable {
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.service-card-clickable:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service-card .service-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.service-card .btn {
    margin-top: auto;
    position: relative;
    z-index: 2;
}

/* ==================== Service Detail Page ==================== */
.service-detail-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

.service-price-large {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.service-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--secondary-color);
}

/* ==================== Announcements Page ==================== */
.announcement-card {
    border-left: 4px solid var(--primary-color);
}

.announcement-card.announcement-active {
    border-left-color: var(--success-color);
}

.announcement-text {
    color: var(--secondary-color);
    font-size: 1rem;
}

.announcement-all-link {
    color: white;
    text-decoration: none;
    white-space: nowrap;
    opacity: 0.9;
}

.announcement-all-link:hover {
    color: white;
    text-decoration: underline;
    opacity: 1;
}

/* ==================== Profile (Guest) Page ==================== */
.profile-tabs .nav-link {
    color: var(--dark-color);
    font-weight: 500;
}

.profile-tabs .nav-link.active {
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    color: white;
}

.profile-stat-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    padding: 25px;
    text-align: center;
    height: 100%;
}

.profile-stat-card i {
    font-size: 2rem;
    color: var(--primary-color);
}

.profile-stat-card h3 {
    font-size: 2rem;
    font-weight: bold;
    margin: 10px 0 0;
}

.profile-stat-card p {
    color: var(--secondary-color);
    margin-bottom: 0;
}

/* Message thread bubbles */
.chat-bubble {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 12px;
    max-width: 85%;
    word-wrap: break-word;
}

.chat-bubble-user {
    background: #f1f3f5;
    border-top-left-radius: 2px;
}

.chat-bubble-admin {
    background: rgba(13, 110, 253, 0.1);
    border: 1px solid rgba(13, 110, 253, 0.25);
    margin-left: auto;
    border-top-right-radius: 2px;
}

.chat-reply-header {
    font-weight: 600;
    color: var(--primary-color);
    text-align: right;
    margin-bottom: 5px;
    max-width: 85%;
    margin-left: auto;
}

/* ==================== Shop Order Form ==================== */
.order-total {
    background: var(--light-color);
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 1.1rem;
}

.order-total strong {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.payment-instructions .alert {
    font-size: 0.95rem;
}

/* ==================== About Page (admin-managed content) ==================== */
.about-featured-image {
    max-height: 420px;
    object-fit: cover;
}

.about-page-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--dark-color);
}

.about-page-content h2 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.about-page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ==================== Pulse Badge & Realtime Tab Tracker ==================== */
.pulse-badge {
    animation: pulseGlow 1.8s infinite;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    font-weight: 700;
    text-transform: uppercase;
    vertical-align: middle;
}

@keyframes pulseGlow {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(220, 53, 69, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.pulse-badge.bg-success {
    animation: pulseGlowSuccess 1.8s infinite;
}

@keyframes pulseGlowSuccess {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(25, 135, 84, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0);
    }
}

.pulse-badge.bg-warning {
    animation: pulseGlowWarning 1.8s infinite;
}

@keyframes pulseGlowWarning {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(255, 193, 7, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

/* ==================== WhatsApp Web & Mobile Authentic Conversation Interface ==================== */
.profile-chat-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(11, 20, 26, 0.12);
    overflow: hidden;
    background: #efeae2;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(11, 20, 26, 0.08);
}

/* WhatsApp Header */
.profile-chat-header {
    background: #005c4b;
    color: #ffffff;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 5;
}

.chat-avatar-agent {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #008069;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #ffffff;
    margin-right: 12px;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.chat-status-pulse {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 11px;
    height: 11px;
    background-color: #25d366;
    border-radius: 50%;
    border: 2px solid #005c4b;
}

.chat-header-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 1px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-header-subtitle {
    font-size: 0.8rem;
    color: #d1d7db;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-header-actions .btn {
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.chat-header-actions .btn-whatsapp-direct {
    background: #25d366;
    color: #ffffff;
    border: none;
    font-weight: 600;
}
.chat-header-actions .btn-whatsapp-direct:hover {
    background: #20ba59;
    color: #ffffff;
}

/* WhatsApp Chat Wallpaper Stream */
.profile-chat-stream {
    height: 480px;
    overflow-y: auto;
    padding: 16px 20px 24px;
    background-color: #efeae2;
    background-image: 
        radial-gradient(#d1d7db 1px, transparent 1px),
        radial-gradient(#d1d7db 1px, #efeae2 1px);
    background-size: 28px 28px;
    background-position: 0 0, 14px 14px;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.profile-chat-stream::-webkit-scrollbar {
    width: 6px;
}

.profile-chat-stream::-webkit-scrollbar-thumb {
    background: rgba(11, 20, 26, 0.2);
    border-radius: 4px;
}

/* WhatsApp Encryption Notice Banner */
.wa-encryption-pill {
    background: #ffeecd;
    color: #54656f;
    font-size: 0.76rem;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    padding: 6px 14px;
    border-radius: 8px;
    margin: 4px auto 10px;
    max-width: 480px;
    box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* WhatsApp Date Pill Divider */
.chat-date-divider {
    text-align: center;
    position: relative;
    margin: 6px 0 10px;
}

.chat-date-pill {
    display: inline-block;
    padding: 4px 12px;
    background: #ffffff;
    color: #54656f;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 7.5px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
}

/* WhatsApp Message Row & Bubbles - Strict Two-Sided Alignment */
.chat-msg-row {
    display: flex !important;
    width: 100% !important;
    margin-bottom: 8px;
    box-sizing: border-box;
    align-self: stretch !important;
    animation: waMsgFadeIn 0.15s ease-out;
}

@keyframes waMsgFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Outgoing (User) on the RIGHT */
.chat-msg-row.user-msg {
    justify-content: flex-end !important;
    text-align: right;
}

/* Incoming (Support/Admin) on the LEFT */
.chat-msg-row.admin-msg {
    justify-content: flex-start !important;
    text-align: left;
}

.chat-msg-bubble {
    position: relative;
    max-width: 78%;
    min-width: 100px;
    padding: 6px 10px 8px 10px;
    font-size: 0.92rem;
    line-height: 1.45;
    word-break: break-word;
    box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
    text-align: left;
}

/* Outgoing (User) WhatsApp Bubble - Align to Right */
.user-msg .chat-msg-bubble {
    background: #d9fdd3;
    color: #111b21;
    border-radius: 7.5px 0px 7.5px 7.5px;
    margin-left: auto !important;
    margin-right: 6px !important;
}

.user-msg .chat-msg-bubble::after {
    content: "";
    position: absolute;
    top: 0;
    right: -8px;
    width: 0;
    height: 0;
    border-top: 8px solid #d9fdd3;
    border-right: 8px solid transparent;
}

/* Incoming (Admin/Support) WhatsApp Bubble - Align to Left */
.admin-msg .chat-msg-bubble {
    background: #ffffff;
    color: #111b21;
    border-radius: 0px 7.5px 7.5px 7.5px;
    margin-right: auto !important;
    margin-left: 6px !important;
}

.admin-msg .chat-msg-bubble::after {
    content: "";
    position: absolute;
    top: 0;
    left: -8px;
    width: 0;
    height: 0;
    border-top: 8px solid #ffffff;
    border-left: 8px solid transparent;
}

/* Bubble Content & Subject Tag */
.wa-bubble-header {
    font-size: 0.78rem;
    font-weight: 700;
    color: #008069;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.wa-subject-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #128c7e;
    background: rgba(18, 140, 126, 0.1);
    padding: 2px 7px;
    border-radius: 5px;
    margin-bottom: 4px;
}

.chat-msg-text {
    font-size: 0.92rem;
    color: #111b21;
    white-space: pre-wrap;
}

/* Inlined Timestamp & Read Checkmarks */
.wa-msg-meta {
    float: right;
    margin-left: 10px;
    margin-top: 5px;
    margin-bottom: -2px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.69rem;
    color: #667781;
    line-height: 1;
    user-select: none;
}

.wa-ticks-read {
    color: #53bdeb;
    font-size: 0.9rem;
}

.wa-ticks-sent {
    color: #8696a0;
    font-size: 0.9rem;
}

/* Attachments */
.chat-bubble-attachment {
    border-radius: 6px;
    overflow: hidden;
    margin-top: 4px;
    margin-bottom: 4px;
}

.chat-bubble-attachment img {
    max-width: 100%;
    max-height: 260px;
    border-radius: 6px;
    display: block;
    cursor: pointer;
    transition: opacity 0.2s;
}

.chat-bubble-attachment img:hover {
    opacity: 0.95;
}

.attachment-file-card {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(11, 20, 26, 0.06);
    padding: 8px 12px;
    border-radius: 6px;
    color: #111b21 !important;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s;
}

.attachment-file-card:hover {
    background: rgba(11, 20, 26, 0.12);
}

/* WhatsApp Typing Row */
#chatTypingIndicator.d-none {
    display: none !important;
}

.wa-typing-bubble {
    background: #ffffff;
    border-radius: 0px 7.5px 7.5px 7.5px;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
}

.wa-typing-bubble::after {
    content: "";
    position: absolute;
    top: 0;
    left: -8px;
    width: 0;
    height: 0;
    border-top: 8px solid #ffffff;
    border-left: 8px solid transparent;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #8696a0;
    border-radius: 50%;
    animation: waTypingBounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes waTypingBounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-4px); }
}

/* Quick Topic Suggestions */
.chat-suggestions-bar {
    background: #f0f2f5;
    padding: 6px 14px;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    border-top: 1px solid rgba(11, 20, 26, 0.06);
}

.chat-suggestions-bar::-webkit-scrollbar {
    display: none;
}

.chat-chip {
    white-space: nowrap;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 16px;
    background: #ffffff;
    color: #54656f;
    border: 1px solid #d1d7db;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.chat-chip:hover {
    background: #d9fdd3;
    color: #005c4b;
    border-color: #25d366;
}

/* Attachment Preview bar */
.chat-attachment-preview {
    background: #e9edef;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #d1d7db;
}

.attachment-preview-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #111b21;
    font-weight: 500;
}

/* WhatsApp Composer Footer */
.chat-composer-wrap {
    background: #f0f2f5;
    padding: 8px 12px;
    border-top: 1px solid rgba(11, 20, 26, 0.08);
    position: relative;
    z-index: 10;
}

.chat-composer-box {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    position: relative;
}

.chat-tool-btn {
    background: transparent;
    border: none;
    color: #54656f;
    font-size: 1.35rem;
    padding: 6px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: color 0.2s, transform 0.15s;
    height: 40px;
    width: 40px;
    flex-shrink: 0;
}

.chat-tool-btn:hover {
    color: #111b21;
    background: rgba(11, 20, 26, 0.05);
}

.chat-input-pill {
    flex: 1;
    background: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 0.92rem;
    line-height: 1.45;
    outline: none !important;
    box-shadow: none !important;
    max-height: 120px;
    min-height: 40px;
    color: #111b21;
    resize: none;
}

.chat-input-pill::placeholder {
    color: #8696a0;
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #00a884;
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(11, 20, 26, 0.15);
    transition: background 0.2s, transform 0.15s;
}

.chat-send-btn:hover:not(:disabled) {
    background: #008f6f;
    transform: scale(1.05);
}

.chat-send-btn:disabled {
    background: #8696a0;
    opacity: 0.6;
    cursor: not-allowed;
}

/* Emoji Popover */
.emoji-picker-popover {
    position: absolute;
    bottom: 60px;
    left: 12px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(11, 20, 26, 0.18);
    padding: 12px;
    width: 290px;
    display: none;
    z-index: 100;
    border: 1px solid #e9edef;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    font-size: 1.4rem;
    max-height: 180px;
    overflow-y: auto;
}

.emoji-item {
    text-align: center;
    padding: 4px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    user-select: none;
}

.emoji-item:hover {
    background: #f0f2f5;
    transform: scale(1.2);
}

/* Error Banner */
.chat-error-banner {
    background: #fee2e2;
    color: #991b1b;
    padding: 6px 14px;
    font-size: 0.82rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #fecaca;
}

/* ============================================================
   RESPONSIVE OVERHAUL - fluid images & full breakpoint coverage
   ============================================================ */

/* Fluid images everywhere: never overflow their container */
img,
.event-image img,
.gallery-item img,
.product-image img,
.service-card img {
    max-width: 100%;
    height: auto;
}

/* Give fixed-height media containers intrinsic, aspect-based sizing
   so they scale smoothly instead of cropping badly on small screens */
.event-image {
    aspect-ratio: 16 / 10;
    height: auto;
    min-height: 0;
}

.gallery-item {
    aspect-ratio: 1 / 1;
    height: auto;
}

.product-image {
    height: auto;
    aspect-ratio: 1 / 1;
}

/* Keep product placeholder icons centered in the now-fluid box */
.product-placeholder {
    position: absolute;
    inset: 0;
}

/* Main product image: fluid height with a sane cap */
#mainImage {
    height: auto;
    aspect-ratio: 4 / 3;
    max-height: 480px;
    object-fit: contain;
}

.product-placeholder-large {
    height: auto;
    aspect-ratio: 4 / 3;
}

/* ---------- Large tablets / small desktops (<=1199px) ---------- */
@media (max-width: 1199.98px) {
    .hero-section {
        height: 70vh;
    }
    .hero-content h1 {
        font-size: 2.75rem;
    }
    .section {
        padding: 70px 0;
    }
}

/* ---------- Tablets (<=991px) ---------- */
@media (max-width: 991.98px) {
    .hero-section {
        height: 62vh;
        min-height: 420px;
    }
    .hero-content h1 {
        font-size: 2.25rem;
    }
    .hero-content p {
        font-size: 1.05rem;
    }
    .hero-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    .hero-buttons .btn {
        margin: 0 !important;
    }
    .section {
        padding: 60px 0;
    }
    .section-header h2 {
        font-size: 1.75rem;
    }
    .event-image,
    .gallery-item,
    .product-image {
        aspect-ratio: 16 / 11;
    }
    .event-content {
        padding: 18px;
    }
    .event-footer {
        flex-wrap: wrap;
        gap: 8px;
    }
    .event-footer .btn {
        width: 100%;
        text-align: center;
    }
    footer .col-lg-4 {
        margin-bottom: 28px;
    }
    .chat-widget {
        width: min(92vw, 380px);
        right: 12px;
        bottom: 12px;
    }
}
/* ---------- Large phones (<=767px) ---------- */
@media (max-width: 767.98px) {
    .navbar-brand img,
    .navbar-logo {
        height: 100px !important;
        max-height: 100px !important;
        max-width: 160px !important;
    }
    .hero-section {
        height: auto;
        min-height: 60vh;
        padding: 70px 0 60px;
    }
    .hero-content {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        transform: none;
        text-align: center;
        padding: 20px 0;
    }
    .hero-content h1 {
        font-size: clamp(1.8rem, 5vw, 2.2rem);
        line-height: 1.25;
        margin-bottom: 14px;
    }
    .hero-content p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 24px;
    }
    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        justify-content: center;
    }
    .hero-buttons .btn {
        width: 100%;
        max-width: 320px;
        margin: 0 !important;
    }
    .section {
        padding: 48px 0;
    }
    .section-header h2 {
        font-size: 1.6rem;
    }
    .section-header p {
        font-size: 0.95rem;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .announcement-bar {
        font-size: 0.82rem;
        padding: 8px 0;
    }
    .announcement-content {
        display: block;
        line-height: 1.5;
    }
    .footer-bottom {
        font-size: 0.85rem;
    }
    .form-control,
    .form-select {
        font-size: 16px; /* prevents iOS zoom-on-focus */
        padding: 10px 12px;
    }
    .btn-lg {
        padding: 10px 22px;
        font-size: 1rem;
    }
    .table-wrap,
    .booking-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    table {
        min-width: 560px;
    }
    .event-detail-image img,
    .service-detail-image img,
    .product-detail-image img {
        width: 100%;
        height: auto;
        max-height: 420px;
        object-fit: contain;
    }
    .thumbnail {
        width: 64px;
        height: 64px;
    }
    .chat-widget {
        width: calc(100vw - 20px);
        right: 10px;
        bottom: 10px;
        height: min(70vh, 560px);
    }
}

/* ---------- Small phones (<=575px) ---------- */
@media (max-width: 575.98px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    .site-header .navbar {
        padding: 8px 0;
    }
    .navbar-brand img,
    .navbar-logo {
        height: 100px !important;
        max-height: 100px !important;
        max-width: 140px !important;
    }
    .brand-text {
        font-size: 1.15rem;
    }
    .hero-section {
        min-height: 52vh;
        padding: 50px 0 45px;
    }
    .hero-content h1 {
        font-size: 1.65rem;
    }
    .hero-content p {
        font-size: 0.95rem;
    }
    .section {
        padding: 40px 0;
    }
    .section-header h2 {
        font-size: 1.4rem;
    }
    .event-content h3,
    .service-card h3 {
        font-size: 1.1rem;
    }
    .event-meta {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }
    .event-price {
        font-size: 1.05rem;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .cta-section h2 {
        font-size: 1.45rem;
    }
    .cta-section .btn {
        width: 100%;
        max-width: 320px;
        margin: 6px 0 !important;
    }
    .back-to-top {
        width: 42px !important;
        height: 42px !important;
        bottom: 14px !important;
        right: 14px !important;
    }
    body {
        overflow-x: hidden;
    }
}

/* ---------- Tiny phones (<=400px) ---------- */
@media (max-width: 400px) {
    .navbar-brand img,
    .navbar-logo {
        height: 28px !important;
        max-height: 30px !important;
        max-width: 120px !important;
    }
    .brand-text {
        font-size: 1.05rem;
    }
    .hero-content h1 {
        font-size: 1.45rem;
    }
    .hero-buttons .btn {
        padding: 9px 14px;
        font-size: 0.9rem;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .section-header h2 {
        font-size: 1.3rem;
    }
    .btn {
        font-size: 0.92rem;
    }
}

/* ---------- Touch devices: tame hover-only effects ---------- */
@media (hover: none) {
    .event-card:hover .event-image img,
    .gallery-item:hover img,
    .product-card:hover .product-image img {
        transform: none;
    }
    .gallery-item {
        cursor: pointer;
    }
}

/* Content photos invite a click to view full size */
.event-image img,
.gallery-item img,
#mainImage,
.thumbnail,
.img-fluid,
.service-detail-image {
    cursor: zoom-in;
}

/* Lightbox image should not show the zoom cursor when zoomed in 1:1 */
.lightbox img {
    cursor: zoom-in !important;
}

/* ---------- Landscape phones: reclaim vertical space ---------- */
@media (max-width: 915px) and (orientation: landscape) {
    .hero-section {
        min-height: 380px;
        height: auto;
        padding: 48px 0;
    }
    .chat-widget {
        height: 78vh;
    }
}

/* ---------- Reduced motion respect ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}



