@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');

:root {
    /* JDWS Brand Colors */
    --primary-color: #B91D5C; /* Deep Red - Primary brand color */
    --secondary-color: #F5E6D3; /* Desert Beige - Warm background */
    --accent-black: #1A1A1A; /* Almost Black - Text and accents */
    --pure-white: #FFFFFF; /* White - Clean backgrounds */
    
    /* UI Colors */
    --text-color: #1A1A1A; /* Darker for better readability */
    --text-light: #555; /* Secondary text */
    --border-color: #D4B8A6; /* Beige tone for borders */
    
    /* Alert & Status Colors */
    --alert-bg: #B91D5C; /* Deep red for alert button */
    --alert-hover: #9A1849; /* Darker red for hover */
    --warning-bg: #ffebee;
    --warning-text: #c62828;
    --info-bg: #F5E6D3; /* Using beige for info */
    --info-text: #1A1A1A;
    --success-bg: #e8f5e9;
    --success-text: #1b5e20;

    --flag-h: 18px;
    --flag-h-md: 20px;
}

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

/* --- FIX FOR HORIZONTAL SCROLL --- */
html, body {
    /* overflow-x: hidden;  <-- Removed to allow scrolling if absolutely necessary, though we aim to fix the overflow */
    width: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--secondary-color); /* Desert beige background */
}

.container {
    max-width: 1400px;
    margin: auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--pure-white);
    padding: 0.5rem 0;
    border-bottom: 2px solid var(--primary-color); /* Deep red border */
    box-shadow: 0 2px 4px rgba(185, 29, 92, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 55px;
    height: 55px;
    flex: 0 0 auto; /* Prevent flex shrinking weirdness */
}
.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.desktop-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

.desktop-nav ul li {
    margin-left: 5px; /* Further reduced */
}

.desktop-nav ul li {
    position: relative;
}

.desktop-nav ul li a {
    text-decoration: none;
    color: var(--accent-black);
    font-weight: 600;
    font-size: 0.85rem; /* Further reduced */
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px; /* Further reduced */
    padding: 6px 8px; /* Further reduced */
    border-radius: 6px;
    position: relative;
}

.desktop-nav ul li a i {
    font-size: 0.9em;
    transition: transform 0.3s ease;
}

.desktop-nav ul li a:hover {
    color: var(--pure-white) !important; /* Force white color on hover */
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(185, 29, 92, 0.3);
}

.desktop-nav ul li a:hover i {
    transform: scale(1.1);
}

/* Tooltip on hover */
.desktop-nav ul li a::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -40px; /* Increased from -35px to prevent overlap */
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background-color: var(--accent-black);
    color: var(--pure-white);
    padding: 8px 14px; /* Increased padding */
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

/* Remove tooltip from language dropdown links */
.language-dropdown li a::after {
    display: none !important;
    content: none !important;
}

.desktop-nav ul li a:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Language Selector Styles */
.language-selector {
    position: relative;
}

/* Navigation Dropdown (Resources menu) */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--accent-black);
    padding: 6px 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-dropdown-button:hover {
    color: var(--pure-white);
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(185, 29, 92, 0.3);
}

.nav-dropdown-button i {
    font-size: 0.9em;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--pure-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    list-style: none !important;
    padding: 8px 0 !important;
    margin: 0;
    margin-top: 8px;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0.2s;
}

.nav-dropdown:hover .nav-dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0s;
}

.nav-dropdown-menu li {
    list-style: none !important;
}

.nav-dropdown-menu li a {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 10px 16px !important;
    color: var(--text-color) !important;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    background: transparent;
}

.nav-dropdown-menu li a:hover,
.nav-dropdown-menu li a:focus {
    background-color: var(--primary-color) !important;
    color: var(--pure-white) !important;
    transform: none !important;
    box-shadow: none !important;
}

.nav-dropdown-menu li a::after {
    display: none !important;
}

.nav-dropdown-menu li a i {
    width: 20px;
    text-align: center;
}

/* RTL support for dropdown */
[dir="rtl"] .nav-dropdown-menu {
    left: auto;
    right: 50%;
    transform: translateX(50%) translateY(10px);
}

[dir="rtl"] .nav-dropdown:hover .nav-dropdown-menu {
    transform: translateX(50%) translateY(0);
}

.language-button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem; /* Reduced from 1em */
    font-weight: 600; /* Increased from 500 */
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-black);
    transition: color 0.3s ease;
}

.language-button:hover {
    color: var(--primary-color);
}
.language-button .fa-chevron-down {
    font-size: 0.7em;
    transition: transform 0.3s ease;
}
.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: transparent;
    border: none;
    border-radius: 8px;
    list-style: none !important;
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0;
    margin-top: 20px;
    width: 150px;
    box-shadow: none;
    z-index: 10;
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0.2s;
}

.language-dropdown li {
    list-style: none !important;
    list-style-type: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    background: none !important;
}

.language-dropdown li::before,
.language-dropdown li::marker {
    display: none !important;
    content: none !important;
}

.language-selector:hover .language-dropdown,
.language-selector:focus-within .language-dropdown {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0s;
}

.language-selector:hover .language-button .fa-chevron-down {
    transform: rotate(180deg);
}
.language-dropdown li a {
    display: block;
    padding: 8px 15px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease, padding-left 0.3s ease;
}
.language-dropdown li a:hover {
    color: var(--primary-color);
    padding-left: 20px; /* Slight indent on hover */
}
/* Current language styling - no hover effect */
.language-dropdown li a.current-lang {
    font-weight: 600;
    color: var(--primary-color);
    cursor: default;
}
.language-dropdown li a.current-lang:hover {
    padding-left: 8px; /* No indent for current language */
}
.flag-icon {
    margin-right: 10px;
    height: 16px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

/* Alert Button Styles - Enhanced prominence */
.alert-button-wrapper {
    position: relative;
    width: 110px; /* Slightly larger */
    height: 44px; /* Slightly larger */
    display: flex;
    justify-content: center;
    align-items: center;
}
.alert-button {
    position: relative;
    z-index: 2;
    background-color: var(--alert-bg); /* Deep red background */
    color: var(--pure-white);
    border: 2px solid var(--alert-bg);
    padding: 10px 24px; /* Slightly larger padding */
    border-radius: 22px;
    cursor: pointer;
    font-weight: 700; /* Bolder */
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(185, 29, 92, 0.4); /* Prominent shadow */
}
.alert-button:hover {
    background-color: var(--alert-hover);
    border-color: var(--alert-hover);
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(185, 29, 92, 0.5);
}
.alert-button-wrapper::before {
    content: '';
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 22px;
    animation: pulse 2s infinite ease-out;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 0 0 rgba(185, 29, 92, 0.7);
    }
    70% {
        transform: translate(-50%, -50%) scale(1.7);
        box-shadow: 0 0 10px 15px rgba(185, 29, 92, 0);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 0 0 rgba(185, 29, 92, 0);
    }
}

/* Exit Button Styles */
.exit-button-wrapper {
    position: relative;
    width: 100px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.exit-button {
    position: relative;
    z-index: 2;
    background-color: var(--accent-black);
    color: var(--pure-white);
    border: 2px solid var(--accent-black);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 0.9em;
}
.exit-button:hover {
    background-color: #444;
    border-color: #444;
    transform: scale(1.05);
}

/* Exit Button Mobile Styles */
.exit-button-mobile {
    background-color: var(--accent-black) !important;
    color: #fff !important;
    font-weight: bold;
    text-align: center;
    border-radius: 5px;
    margin: 5px 0;
    padding: 12px 15px !important;
}
.exit-button-mobile:hover {
    background-color: #c82333 !important;
}

/* Hamburger & Mobile Menu Styles */
.hamburger-button {
    display: none; /* Hidden by default */
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 8px 10px;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-color);
}

.mobile-menu {
    display: none; /* Hidden by default */
    position: absolute;
    top: 67px; /* Adjusted to new header height */
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 100;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.mobile-menu.active {
    display: block;
    max-height: 85vh; /* Fit within viewport */
    overflow-y: auto; /* Scroll if content is taller */
}

/* Mobile Menu Sections */
.mobile-menu-section {
    padding: 10px 0;
}

.mobile-menu-label {
    display: block;
    padding: 8px 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-color);
    background-color: rgba(185, 29, 92, 0.05);
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--text-color);
    border-bottom: 1px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.mobile-menu a:hover,
.mobile-menu a:active {
    background-color: var(--primary-color) !important;
    color: var(--pure-white) !important;
    padding-left: 30px;
}

.mobile-menu a i {
    font-size: 1.1em;
}

.mobile-menu hr {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 5px 0;
}

/* Mobile menu language selector */
.mobile-menu a {
    white-space: nowrap;
    overflow: visible;
}

.mobile-menu .flag-icon {
    flex-shrink: 0;
}

.mobile-lang-section {
    display: flex;
    gap: 0;
    padding: 8px 10px;
    background: rgba(185, 29, 92, 0.05);
    border-top: 1px solid var(--border-color);
}

.mobile-lang-section a {
    flex: 1;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px !important;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    border-bottom: none !important;
    border-radius: 6px;
}

.mobile-lang-section a:hover {
    background-color: var(--primary-color) !important;
    color: var(--pure-white) !important;
    padding-left: 8px !important;
}

.mobile-lang-section a.current-mobile-lang {
    background: var(--primary-color);
    color: var(--pure-white);
    border-radius: 6px;
}

.mobile-lang-section .flag-icon {
    width: 20px;
    height: 14px;
}


/* Main Content & Form */
main {
    padding: 2rem 0;
}

/* ------------------------------------------------ */
/* --- NEW SECTION FOR "Learn More" BUTTON --- */
/* ------------------------------------------------ */

.info-button-section {
    display: none; /* Hidden per user request - Learn More is in top nav */
    text-align: center;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.info-button {
    display: inline-block;
    text-decoration: none;
    background-color: var(--light-green-bg);
    color: var(--dark-green-text);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 500;
    border: 1px solid #c8e6c9;
    transition: all 0.3s ease;
}

.info-button:hover {
    background-color: #c8e6c9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.consent-boxes .notice-message {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    background-color: var(--info-bg);
    color: var(--info-text);
    border: 1px solid #b2ebf2;
}
.consent-boxes .notice-message.warning {
    background-color: var(--warning-bg);
    color: var(--warning-text);
    border: 1px solid #ef9a9a;
}

/* --- Hero Banner --- */
.hero-banner {
    text-align: center;
    margin: 1.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.hero-banner-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* On mobile (< 768px), cap the portrait image height so it doesn't dominate */
@media (max-width: 767px) {
    .hero-banner {
        margin: 1rem 0;
    }
    .hero-banner-img {
        max-height: 55vh;
        object-fit: cover;
        object-position: center top;
    }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-banner {
        margin: 1.5rem auto;
        max-width: 100%;
    }
}

/* Desktop */
@media (min-width: 1025px) {
    .hero-banner {
        margin: 1.5rem auto;
        max-width: 100%;
    }
}

/* --- Form Navigation Button --- */
.form-navigation {
    text-align: center;
    padding: 2rem 0;
}
.voicenote-nav-button {
    padding: 12px 30px;
    height: auto;
    transition: opacity 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px; /* Space between icon and text */
}

.voicenote-nav-button i {
    font-size: 1.1em;
}

/* Disabled state for the button */
.voicenote-nav-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}


#report-form {
    background: #FDF8F3; /* Lighter beige for better contrast */
    border: 2px solid var(--border-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
#report-form fieldset { border: none; }
#report-form fieldset:disabled { opacity: 0.5; }

.form-header { text-align: center; margin-bottom: 2rem; }
.form-header h2 { margin-bottom: 0.5rem; }

.anonymous-box, .imminent-danger-box {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    background-color: var(--yellow-bg);
    border: 1px solid #fff59d;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.form-group { position: relative; display: flex; align-items: center; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group i { position: absolute; left: 15px; color: #999; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--pure-white);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(185, 29, 92, 0.1);
}
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708 .708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}
.form-group .country-code { 
    padding: 12px 15px; 
    background: var(--secondary-color); 
    border: 2px solid var(--border-color); 
    border-right: none; 
    border-top-left-radius: 8px; 
    border-bottom-left-radius: 8px; 
    white-space: nowrap; 
    font-weight: 600;
    color: var(--accent-black);
}
.form-group input[type="tel"] { 
    padding-left: 15px; 
    border-top-left-radius: 0; 
    border-bottom-left-radius: 0; 
}

/* Field help text styling */
.form-group .field-help {
    position: absolute;
    bottom: -18px;
    left: 40px;
    font-size: 0.75rem;
    color: #888;
    font-style: italic;
}

.send-button { 
    display: block; 
    width: 100%; 
    padding: 15px; 
    background-color: var(--alert-bg); 
    color: white; 
    border: none; 
    border-radius: 8px; 
    font-size: 1.2rem; 
    font-weight: 600; 
    cursor: pointer; 
    margin-top: 1rem; 
    transition: background-color 0.3s, transform 0.1s; 
    box-shadow: 0 4px 6px rgba(185, 29, 92, 0.3);
}
.send-button:hover { 
    background-color: var(--alert-hover); 
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(185, 29, 92, 0.4);
}
.send-button:active {
    transform: translateY(0);
}
#form-status { margin-top: 1rem; padding: 1rem; text-align: center; border-radius: 8px; display: none; font-weight: 500; }
#form-status.success { background-color: var(--success-bg); color: var(--success-text); display: block; }
#form-status.error { background-color: var(--warning-bg); color: var(--warning-text); display: block; }

/* Footer */
footer { 
    background-color: var(--accent-black); 
    color: var(--pure-white); 
    padding-top: 2rem; 
    margin-top: 2rem; 
    border-top: 3px solid var(--primary-color); 
}
.footer-container { 
    display: flex; 
    justify-content: space-between; 
    padding-bottom: 2rem; 
}
.footer-col { flex: 1; padding: 0 1rem; }
.footer-col h4 { 
    margin-bottom: 1rem; 
    color: var(--pure-white);
    font-weight: 700;
}
.footer-col p { 
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}
.footer-col .logo { margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { 
    margin-bottom: 0.5rem;
}
.footer-col ul li a { 
    text-decoration: none; 
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}
.footer-col ul li a:hover {
    color: var(--primary-color);
}
.social-icons { 
    display: flex; 
    gap: 8px; 
    margin-top: 1rem;
}
.social-icons a { 
    color: #fff; 
    background: var(--primary-color); 
    width: 35px; 
    height: 35px; 
    display: inline-flex; 
    justify-content: center; 
    align-items: center; 
    border-radius: 50%; 
    text-decoration: none; 
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.social-icons a:hover {
    background: var(--alert-hover);
    transform: scale(1.1);
}
/* Security Badge */
.security-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--alert-hover));
    color: var(--pure-white);
    padding: 1.5rem 0;
    margin-bottom: 2rem; /* Space between badge and footer content */
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(185, 29, 92, 0.3);
}
.security-badge .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.security-badge i {
    font-size: 1.4rem;
}

/* Footer Disclaimer */
.footer-disclaimer {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
    margin: 2rem auto 1rem;
    border-left: 4px solid var(--primary-color);
    max-width: 1200px;
}
.footer-disclaimer p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--pure-white);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.footer-disclaimer i {
    color: #FFD700;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.copyright { 
    text-align: center; 
    padding: 1rem 0; 
    border-top: 1px solid rgba(255, 255, 255, 0.2); 
    font-size: 0.9rem; 
    color: rgba(255, 255, 255, 0.8);
}


/* ------------------------- */
/* --- Responsive Styles --- */
/* ------------------------- */
@media (max-width: 1450px) {
    /* Hide desktop nav and show hamburger button earlier to prevent overlap */
    .desktop-nav {
        display: none;
    }
    .hamburger-button {
        display: block;
    }
}

@media (max-width: 850px) {
    /* Adjust exit button for smaller screens */
    .exit-button-wrapper {
        width: 80px;
    }
    .exit-button {
        padding: 6px 15px;
        font-size: 0.8em;
    }
}

@media (max-width: 768px) {
    /* Stack form grid into a single column */
    .form-grid {
        grid-template-columns: 1fr;
    }

    /* Adjust form padding for smaller screens */
    #report-form {
        padding: 1.5rem;
    }
    .container {
        padding: 0 15px;
    }

    /* Full-width buttons on mobile for easier tapping */
    .send-button {
        width: 100%;
        font-size: 1.1rem;
        padding: 16px;
    }

    /* Voicenote button on mobile */
    .voicenote-nav-button {
        width: 100%;
        justify-content: center;
        font-size: 1rem;
        padding: 14px 20px;
    }

    /* Improved spacing for mobile */
    .form-group {
        margin-bottom: 1.2rem;
    }

    /* Ensure minimum font size for inputs on mobile */
    .form-group input, 
    .form-group select, 
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px 14px 14px 40px;
    }

    /* Stack footer columns and center content */
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding-top: 1rem; /* Adjust padding for mobile */
    }
    .footer-col .logo {
        margin-left: auto;
        margin-right: auto;
    }
    .social-icons {
        justify-content: center;
    }
    
    /* Security badge mobile adjustments */
    .security-badge {
        font-size: 1rem;
        padding: 1.2rem 1rem;
        margin-bottom: 1.5rem; /* Space below badge on mobile */
    }
    .security-badge .container {
        flex-direction: column;
        gap: 8px;
    }
    .security-badge i {
        font-size: 1.2rem;
    }
    
    /* Footer disclaimer mobile adjustments */
    .footer-disclaimer {
        margin: 1.5rem 1rem 1rem;
        padding: 1.2rem 1rem;
        font-size: 0.9rem;
    }
    .footer-disclaimer p {
        font-size: 0.9rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ---------------------------------- */
/* --- Voice Note Recorder Styles --- */
/* ---------------------------------- */

.recorder-container {
    background: var(--secondary-color);
    border: 1px solid #e0e0e0;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
    text-align: center;
}

.recorder-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.record-button, .stop-button {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s, transform 0.2s;
}

.record-button {
    background-color: #e53935; /* Red */
}
.record-button:hover {
    background-color: #c62828;
}
.record-button.recording {
    animation: pulse-red 1.5s infinite;
}

.stop-button {
    background-color: #555;
}
.stop-button:hover {
    background-color: #333;
}

.record-button:disabled, .stop-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.timer {
    font-size: 1.5rem;
    font-weight: 500;
    color: #333;
    min-width: 80px;
}

.audio-playback-area {
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.audio-playback-area h3 {
    margin-bottom: 1rem;
}

#audioPlayer {
    width: 100%;
    max-width: 500px;
    margin-bottom: 1.5rem;
}

.send-button-voicenote {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.send-button-voicenote:hover {
    background-color: #2bbbad;
}

.send-button-voicenote:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#form-status-voicenote { margin-top: 1rem; padding: 1rem; text-align: center; border-radius: 5px; display: none; }
#form-status-voicenote.success { background-color: var(--success-bg); color: var(--success-text); display: block; }
#form-status-voicenote.error { background-color: var(--warning-bg); color: var(--warning-text); display: block; }

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(229, 57, 53, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(229, 57, 53, 0);
    }
}

/* ----------------------------------------- */
/* --- NEW Styles for Information Page --- */
/* ----------------------------------------- */

/* This wrapper creates the grey box for the content */
.info-content-wrapper {
    background: var(--secondary-color); /* The light grey color */
    border: 1px solid #e0e0e0;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem; /* Adds space below the header */
    margin-bottom: 2rem; /* Adds space above the footer */
}

@media (max-width: 768px) {
    .info-content-wrapper {
        padding: 1rem; /* Less padding on mobile */
    }
}

/* Styles for each content section within the grey box */
.info-page-section {
    text-align: center;
    padding-bottom: 2.5rem; /* Increased spacing between sections */
    margin-bottom: 2.5rem; /* Increased spacing between sections */
    border-bottom: 1px solid var(--border-color);
}

.info-page-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Styling for the main heading (H1) */
.info-page-section h1 {
    font-size: 2em;
    font-weight: 800; /* Increased from 700 */
    margin-bottom: 1rem;
    color: var(--accent-black);
}

/* Styling for section sub-headings (H2) */
.info-page-section h2 {
    font-size: 1.6em;
    font-weight: 700; /* Increased from 600 */
    margin-bottom: 2rem;
    color: var(--accent-black);
}

/* Styling for the paragraph text */
.info-page-section p {
    font-size: 1.1em;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    color: var(--text-light);
}

/* Text block styling for information pages */
.text-block {
    background-color: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    padding: 2.5rem 3rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto 2rem auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.text-block p {
    text-align: left;
    margin-bottom: 1.2em;
    line-height: 1.6;
    max-width: 100%;
}

/* RTL support for Arabic text blocks */
[dir="rtl"] .text-block,
.text-block[style*="direction: rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .text-block p,
.text-block[style*="direction: rtl"] p {
    text-align: right;
    direction: rtl;
}

/* Styles for the storyboard image container */
.storyboard-container {
    padding: 0;
    background-color: transparent;
    border: none;
}

.responsive-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto; /* Ensures it's centered */
    border-radius: 5px;
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr; /* Always 1 column for a stacked layout */
    gap: 2rem;
    margin-top: 1rem;

    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Container for each individual video */
.video-item {
    background-color: #fff; /* White background for contrast */
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.video-item h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.2em;
    font-weight: 500;
}

.responsive-video {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* ---------------------------------------------- */
/* --- NEW Styles for Responsive YouTube Embed --- */
/* ---------------------------------------------- */

.youtube-video-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 854px; /* Optional: sets a max-width for very large screens */
    margin: 0 auto; /* Center the container */
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #000; /* Black background while loading */
    border-radius: 8px; /* Match other elements */
    border: 1px solid var(--border-color);
}

.youtube-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --- About Page Layout --- */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 2rem; }
.about-item { display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: center; background: #fff; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; }
.about-img { width: 100%; height: 220px; object-fit: cover; display: block; }
.about-copy { padding: 1rem 1rem 1.25rem; }
.about-copy h2 { margin-bottom: .5rem; }
.about-bullets { opacity: .9; }
@media (min-width: 768px) {
    .about-item { grid-template-columns: 1.1fr 1fr; }
    .about-item.reverse { grid-template-columns: 1fr 1.1fr; }
    .about-item.reverse .about-img { order: 2; }
    .about-item.reverse .about-copy { order: 1; }
    .about-img { height: 280px; }
}

/* --- Header/Nav fixes --- */
.site-nav {
    display: flex;
    align-items: center;
    gap: 10px; /* Reduced gap */
    flex-wrap: nowrap;
}

.site-nav a {
    white-space: nowrap;
    letter-spacing: 0; /* Tighter tracking */
    font-size: 0.85rem; /* Smaller font */
    padding: 6px 8px; /* Smaller padding */
}

.header-right {
    gap: 8px; /* Reduced gap */
}

.alert-button-wrapper {
    width: auto; /* Allow auto width */
    height: 36px; /* Smaller height */
}

.alert-button {
    padding: 6px 16px; /* Smaller padding */
    font-size: 0.85rem;
    height: 36px;
}

.exit-button-wrapper {
    width: auto;
    height: 36px;
}

.exit-button {
    padding: 6px 16px;
    font-size: 0.85rem;
    height: 36px;
}

/* Allow header to expand beyond 1400px if needed to fit content */
header .container {
    max-width: 98%; /* Use almost full width */
    padding: 0 10px;
}

/* Ensure header elements don't collide; allow the logo image to scale down slightly if needed */
.nav-container{gap:12px;}
.logo img{max-width:100%;height:100%;}
@media (max-width:1060px){
    .logo{width:50px;height:50px;}
}

/* --- Free Numbers / Numéros Verts --- */
#hotline-grid{display:grid;gap:32px;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));align-items:start;}
.hotline-card{background:#fff;border:1px solid #e8e8e8;border-radius:8px;overflow:hidden;box-shadow:0 1px 2px rgba(0,0,0,.04);transition:transform .15s ease,box-shadow .15s ease;}
.hotline-card:hover{transform:translateY(-2px);box-shadow:0 4px 14px rgba(0,0,0,.08);}
.flag-banner{width:100%;height:160px;object-fit:cover;display:block;}
@media(min-width:768px){.flag-banner{height:180px;}}
.card-body{padding:14px 16px;}
.card-body h3{margin:0 0 6px;font-weight:700;}
.card-phone{margin:0;opacity:.9;}

/* Ensure flag <img> look crisp in titles or inline contexts */
:root { --flag-h: 18px; --flag-h-md: 20px; }
.flag-img { height: var(--flag-h); width: auto; aspect-ratio: 4 / 3; object-fit: contain; vertical-align: -2px; border-radius: 2px; }
@media (min-width: 768px) { .flag-img { height: var(--flag-h-md); } }

/* Utility: visually hidden but accessible */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* --- Green Numbers page --- */
.flag-img {
    height: var(--flag-h);
    width: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    vertical-align: -2px;
    border-radius: 2px;
}
@media (min-width: 768px) {
    .flag-img {
        height: var(--flag-h-md);
    }
}
.grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* RTL Support for Arabic */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .nav-container {
    flex-direction: row-reverse;
}

[dir="rtl"] .site-nav {
    flex-direction: row-reverse;
}

[dir="rtl"] .header-right {
    flex-direction: row-reverse;
}

[dir="rtl"] .form-grid {
    direction: rtl;
}

[dir="rtl"] .form-group {
    text-align: right;
}

[dir="rtl"] .form-group i {
    right: auto;
    left: 12px;
}

[dir="rtl"] .form-group input,
[dir="rtl"] .form-group select,
[dir="rtl"] .form-group textarea {
    padding: 12px 40px 12px 12px;
    text-align: right;
}

/* RTL support for field help */
[dir="rtl"] .form-group .field-help {
    left: auto;
    right: 40px;
    text-align: right;
}

[dir="rtl"] .anonymous-box {
    text-align: right;
}

[dir="rtl"] .anonymous-box input[type="checkbox"] {
    margin-left: 8px;
    margin-right: 0;
}

[dir="rtl"] .consent-boxes label {
    text-align: right;
}

[dir="rtl"] .consent-boxes input[type="checkbox"] {
    margin-left: 8px;
    margin-right: 0;
}

[dir="rtl"] .notice-message {
    text-align: right;
}

[dir="rtl"] .notice-message i {
    margin-left: 8px;
    margin-right: 0;
}

[dir="rtl"] .fa-chevron-down {
    margin-right: 8px;
    margin-left: 0;
}

[dir="rtl"] .recorder-controls {
    text-align: right;
}

[dir="rtl"] .audio-playback-area {
    text-align: right;
}

[dir="rtl"] .info-content-wrapper {
    text-align: right;
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 {
    text-align: right;
}

[dir="rtl"] .form-header {
    text-align: right;
}

[dir="rtl"] .mobile-menu {
    text-align: right;
}

[dir="rtl"] .language-dropdown {
    right: auto;
    left: 0;
}

/* Arabic font support */
[dir="rtl"] body,
[dir="rtl"] input,
[dir="rtl"] select,
[dir="rtl"] textarea,
[dir="rtl"] button {
    font-family: 'Poppins', 'Arial', 'Tahoma', sans-serif;
}

/* Status message RTL support */
[dir="rtl"] #form-status,
[dir="rtl"] #form-status-voicenote {
    text-align: right;
}

[dir="rtl"] .success,
[dir="rtl"] .error {
    text-align: right;
    direction: rtl;
}

/* Flag icon RTL support */
[dir="rtl"] .flag-icon {
    margin-right: 0;
    margin-left: 10px;
}

/* ---------------------------------------------- */
/* --- GBV Services Page Styles --- */
/* ---------------------------------------------- */

#services-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1rem;
}

.country-section {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.country-header {
    background: var(--secondary-color);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.country-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-color);
    font-weight: 600;
}

.flag-banner-small {
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.services-list {
    padding: 0;
}

.service-card {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
    transition: background-color 0.2s ease;
}

.service-card:last-child {
    border-bottom: none;
}

.service-card:hover {
    background-color: #f8f9fa;
}

.service-header {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.service-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
    line-height: 1.3;
}

.service-type {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

[dir="rtl"] .service-header {
    align-items: flex-end;
}

[dir="rtl"] .service-tags {
    justify-content: flex-end;
}

.service-contact {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.service-contact a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.service-contact a:hover {
    text-decoration: underline;
}

.service-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.service-info p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.service-info strong {
    color: var(--text-color);
    font-weight: 600;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .country-header {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .country-header h2 {
        font-size: 1.3rem;
    }
    
    .service-card {
        padding: 1rem;
    }
    
    .service-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .service-type {
        align-self: flex-start;
    }
    
    .service-contact {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
}

/* RTL Support for Services */
[dir="rtl"] .country-header {
    direction: rtl;
}

[dir="rtl"] .service-header {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .service-details {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .service-contact {
    direction: rtl;
    flex-direction: row-reverse;
}

[dir="rtl"] .service-info {
    direction: rtl;
    text-align: right;
}

/* Enhanced Services Filter Styles */
.services-filters {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid #e9ecef;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-size: 0.875rem;
}

.filter-group select,
.filter-group input {
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(38, 166, 154, 0.25);
}

.filter-group select:disabled {
    background-color: #e9ecef;
    opacity: 0.6;
    cursor: not-allowed;
}

.search-row {
    margin-top: 1rem;
}

.search-row .form-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-row .form-group i {
    color: #6c757d;
    margin-left: 0.75rem;
    position: absolute;
    z-index: 2;
    pointer-events: none;
}

.search-row .form-group input {
    padding-left: 2.5rem;
    flex: 1;
}

.results-summary {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

/* Enhanced Services Grid */
.services-grid {
    margin-top: 2rem;
}

.country-section {
    margin-bottom: 3rem;
}

.country-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
}

.country-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
}

.country-header img {
    margin-right: 0.75rem;
    border-radius: 2px;
}

.country-header .flag-emoji {
    margin-right: 0.75rem;
}

/* Main container adjustments for wider layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.services-section {
    width: 100%;
    max-width: none;
}

.services-grid-cards {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
    margin-bottom: 1rem !important;
}

/* Enhanced Service Card Styles */
.service-card {
    background: white !important;
    border: 1px solid #e9ecef !important;
    border-radius: 8px !important;
    padding: 1.5rem !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    min-height: 280px !important;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.service-header {
    margin-bottom: 1rem !important;
}

.service-header h3 {
    margin: 0 0 1rem 0 !important;
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.3;
    display: block !important;
    min-height: auto !important;
}

.service-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    margin-bottom: 1rem !important;
    align-items: flex-start !important;
}

.service-type {
    background: #3498db;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-type i {
    font-size: 1.2rem;
}

.region-tag {
    background: #95a5a6;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.region-tag i {
    font-size: 1.1rem;
}

.contact-info {
    margin-bottom: 1rem;
}

.service-contact {
    margin: 0.25rem 0;
    display: flex;
    align-items: center;
    font-size: 0.875rem;
}

.service-contact span[aria-hidden="true"] {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.service-contact a {
    color: #2c3e50;
    text-decoration: none;
}

.service-contact a:hover {
    text-decoration: underline;
}

.service-contact a[href^="https://wa.me"] {
    color: #25d366;
}

.service-info,
.service-hours,
.service-languages {
    margin-bottom: 0.75rem;
}

.service-info i,
.service-hours i,
.service-languages i {
    margin-bottom: 0.5rem;
}

.service-info p,
.service-hours p,
.service-languages p {
    margin: 0;
    font-size: 0.875rem;
}

.service-info span,
.service-hours span,
.service-languages span {
    color: #6c757d;
}

/* RTL Support for Arabic pages */
.service-card[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

.service-card[dir="rtl"] .service-tags {
    justify-content: flex-end;
}

.service-card[dir="rtl"] .service-contact span[aria-hidden="true"] {
    margin-right: 0;
    margin-left: 0.5rem;
}

.service-type {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-type i {
    font-size: 1.2rem;
}

.service-contact {
    margin: 0.4rem 0;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    gap: 0.75rem;
}

.service-contact i {
    font-size: 1.3rem;
    min-width: 20px;
    color: var(--primary-color);
}

.service-contact span[aria-hidden="true"] {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.service-contact a {
    color: #2c3e50;
    text-decoration: none;
}

.service-contact a:hover {
    text-decoration: underline;
}

.service-contact a[href^="https://wa.me"] {
    color: #25d366;
}

.service-info {
    margin-top: 1rem;
    font-size: 0.95rem;
}

.service-info p,
.service-hours p,
.service-languages p {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-info i,
.service-hours i,
.service-languages i {
    font-size: 1.2rem;
    min-width: 18px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.service-info strong,
.service-hours strong,
.service-languages strong {
    margin: 0.5rem 0;
}

.service-info strong {
    color: #2c3e50;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .services-filters {
        padding: 1rem;
    }
    
    .filters-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .search-row .form-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-row .form-group input {
        margin-bottom: 0.5rem;
    }
    
    .services-grid-cards {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .service-card {
        padding: 1rem;
        min-height: auto;
    }
    
    .service-header h3 {
        font-size: 1.2rem;
        min-height: auto;
    }
    
    .service-type {
        padding: 0.6rem 1.1rem;
        font-size: 1rem;
    }
    
    .service-type i {
        font-size: 1.3rem;
    }
    
    .region-tag i {
        font-size: 1.2rem;
    }
    
    .service-contact i {
        font-size: 1.4rem;
        min-width: 22px;
    }
    
    .service-info i,
    .service-hours i,
    .service-languages i {
        font-size: 1.3rem;
        min-width: 20px;
    }
    
    .country-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .country-header img,
    .country-header .flag-emoji {
        margin-bottom: 0.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .services-grid-cards {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.75rem !important;
    }
    
    .service-card {
        min-height: 300px;
    }
}

@media (min-width: 1200px) {
    .services-grid-cards {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 2rem !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .service-header h3 {
        font-size: 1.1rem;
    }
    
    .service-type {
        padding: 0.55rem 1rem;
        font-size: 0.95rem;
    }
    
    .service-type i {
        font-size: 1.25rem;
    }
    
    .service-contact {
        font-size: 0.9rem;
    }
    
    .service-contact i {
        font-size: 1.35rem;
    }
    
    .service-info i,
    .service-hours i,
    .service-languages i {
        font-size: 1.25rem;
    }
    
    .services-filters {
        margin: 1rem 0;
        padding: 0.75rem;
    }
}

/* === Country Selection Styles === */
.country-selection-section {
    padding: 2rem 0;
}

.country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.country-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.25rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    justify-items: center;
    align-items: center;
    gap: 0.5rem;
    min-height: 180px;
}

.country-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(185, 29, 92, 0.2);
    border-color: var(--primary-color);
}

.country-flag {
    width: 90px;
    height: 60px;
    object-fit: contain;
    object-position: center;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    grid-row: 1;
}

.country-flag-emoji {
    font-size: 3.5rem;
    display: block;
    line-height: 1;
    grid-row: 1;
}

.country-card .country-name {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    grid-row: 2;
    width: 100%;
}

.country-card .country-services {
    margin: 0;
    color: #6c757d;
    font-size: 0.85rem;
    grid-row: 3;
}

/* Breadcrumb / Back Navigation */
.country-breadcrumb {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.back-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.back-button:hover {
    background: var(--alert-hover);
    transform: translateX(-3px);
}

.back-button i {
    font-size: 0.9rem;
}

.selected-country-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.flag-small {
    width: 32px;
    height: 24px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* RTL Support for breadcrumb */
[dir="rtl"] .back-button:hover {
    transform: translateX(3px);
}

[dir="rtl"] .back-button i {
    transform: scaleX(-1);
}

/* Filters Results Section */
.filters-results-section {
    animation: fadeInUp 0.4s ease;
}

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

/* Enhanced Services Filters */
.services-filters {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.filter-group label i {
    color: var(--primary-color);
}

.search-row {
    margin-top: 1.5rem;
}

.search-row label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.search-row label i {
    color: var(--primary-color);
}

.search-row .form-group {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
    margin-top: 0.5rem;
}

.search-row .form-group input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-row .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.secondary-button {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.secondary-button:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.results-summary {
    margin-top: 1rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

/* Mobile Responsiveness for Country Selection */
@media (max-width: 768px) {
    .country-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 500px;
    }
    
    .country-card {
        padding: 1rem;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        text-align: left;
        min-height: auto;
        column-gap: 1rem;
        row-gap: 0.25rem;
    }
    
    .country-flag {
        width: 70px;
        height: 50px;
        grid-column: 1;
        grid-row: 1 / 3;
    }
    
    .country-flag-emoji {
        font-size: 3rem;
        grid-column: 1;
        grid-row: 1 / 3;
    }
    
    .country-card .country-name {
        font-size: 1.05rem;
        text-align: left;
        grid-column: 2;
        grid-row: 1;
        align-self: end;
    }
    
    .country-card .country-services {
        font-size: 0.8rem;
        text-align: left;
        grid-column: 2;
        grid-row: 2;
        align-self: start;
    }
    
    .country-breadcrumb {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .back-button {
        width: 100%;
        justify-content: center;
    }
    
    .selected-country-info {
        width: 100%;
        justify-content: center;
    }
    
    .filters-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .search-row .form-group {
        flex-direction: column;
    }
    
    .secondary-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .country-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .country-card {
        padding: 0.875rem;
        grid-template-columns: auto 1fr;
        column-gap: 0.875rem;
    }
    
    .country-flag {
        width: 60px;
        height: 45px;
        grid-column: 1;
        grid-row: 1 / 3;
    }
    
    .country-flag-emoji {
        font-size: 2.5rem;
        grid-column: 1;
        grid-row: 1 / 3;
    }
    
    .country-card .country-name {
        font-size: 0.95rem;
        grid-column: 2;
        grid-row: 1;
    }
    
    .country-card .country-services {
        font-size: 0.75rem;
        grid-column: 2;
        grid-row: 2;
    }
}

/* === Consent Modal Styles === */
.consent-link {
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
}

.consent-link:hover {
    color: #1e8c82;
}

.consent-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

.consent-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.consent-modal-content {
    background-color: #fff;
    border-radius: 8px;
    max-width: 700px;
    max-height: 85vh;
    width: 90%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.consent-modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--alert-hover) 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 8px 8px 0 0;
}

.consent-modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.consent-modal-header h3 {
    margin: 8px 0 0 0;
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.95;
}

.consent-modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
    line-height: 1.8;
    background-color: var(--secondary-color);
}

.consent-modal-body p {
    margin-bottom: 16px;
    color: var(--accent-black);
    text-align: justify;
}

.consent-modal-body p em {
    font-style: italic;
    color: var(--text-light);
}

.consent-modal-body h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 700;
}

.consent-modal-body h4:first-of-type {
    margin-top: 0;
}

.consent-modal-footer {
    padding: 20px 30px;
    border-top: 2px solid var(--border-color);
    display: flex;
    justify-content: flex-start;
    background-color: var(--pure-white);
}

.modal-close-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(185, 29, 92, 0.2);
}

.modal-close-btn:hover {
    background-color: var(--alert-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(185, 29, 92, 0.3);
}

/* RTL Support for Arabic */
[dir="rtl"] .consent-modal-body {
    text-align: right;
}

[dir="rtl"] .consent-modal-footer {
    justify-content: flex-start;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Mobile responsive */
@media (max-width: 768px) {
    .consent-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .consent-modal-header {
        padding: 20px;
    }
    
    .consent-modal-header h2 {
        font-size: 1.4rem;
    }
    
    .consent-modal-header h3 {
        font-size: 1rem;
    }
    
    .consent-modal-body {
        padding: 20px;
    }
    
    .consent-modal-footer {
        padding: 15px 20px;
    }
}

/* ================================================
   ONLINE SAFETY PAGE STYLES
   ================================================ */

/* Safety Content Wrapper */
.safety-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero Section */
.safety-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #9A1849 100%);
    color: var(--pure-white);
    padding: 60px 40px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 4px 12px rgba(185, 29, 92, 0.2);
}

.safety-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.safety-hero .hero-message {
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
}

/* Safety Sections Container */
.safety-sections {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Individual Safety Section */
.safety-section {
    background: var(--pure-white);
    border-radius: 16px;
    padding: 45px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(212, 184, 166, 0.3);
}

.safety-section:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--secondary-color);
}

.section-icon {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--accent-black);
    margin: 0;
}

/* Section Content */
.section-content {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
}

.section-content p {
    margin-bottom: 20px;
}

.section-content ul,
.section-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.section-content li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.section-content strong {
    color: var(--accent-black);
    font-weight: 600;
}

/* Action Point Box */
.action-point {
    background: #FFF9E6;
    border-left: 4px solid #FFC107;
    padding: 20px;
    margin: 25px 0;
    border-radius: 4px;
}

/* Prevention Tips Box */
.prevention-tips,
.response-strategies,
.warning-signs,
.protective-measures,
.whatsapp-settings {
    background: var(--secondary-color);
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
}

.prevention-tips h3,
.response-strategies h3,
.warning-signs h3,
.protective-measures h3,
.whatsapp-settings h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

/* Recommendation Box */
.recommendation {
    background: #E8F5E9;
    border-left: 4px solid #4CAF50;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 4px;
    font-size: 0.95rem;
}

/* Resource Link */
.resource-link {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    padding: 15px 20px;
    background: #E3F2FD;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.resource-link:hover {
    background: #BBDEFB;
}

.resource-link i {
    color: #1976D2;
    font-size: 1.1rem;
}

.resource-link a {
    color: #1976D2;
    text-decoration: none;
    font-weight: 500;
    flex: 1;
    transition: color 0.3s ease;
}

.resource-link a:hover {
    color: #0D47A1;
    text-decoration: underline;
}

/* Resource Cards Section */
.resources-section {
    background: var(--pure-white);
}

.resource-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.resource-card {
    background: var(--pure-white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.resource-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #9A1849 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon i {
    font-size: 1.75rem;
    color: var(--pure-white);
}

.resource-card h3 {
    font-size: 1.25rem;
    color: var(--accent-black);
    margin-bottom: 15px;
    font-weight: 600;
}

.resource-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 20px;
    flex: 1;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap 0.3s ease;
}

.card-link:hover {
    gap: 12px;
}

.card-link i {
    transition: transform 0.3s ease;
}

.card-link:hover i {
    transform: translateX(4px);
}

/* Emergency Support Section */
.emergency-support {
    background: linear-gradient(135deg, #D32F2F 0%, #C62828 100%);
    color: var(--pure-white);
    padding: 50px 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
    margin-top: 40px;
}

.emergency-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: pulse-warning 2s infinite;
}

@keyframes pulse-warning {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.emergency-support h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.emergency-support p {
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.95;
}

.emergency-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.emergency-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--pure-white);
    color: #D32F2F;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.emergency-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    background: #FFEBEE;
}

.emergency-button i {
    font-size: 1.2rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: var(--pure-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(185, 29, 92, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #9A1849;
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(185, 29, 92, 0.4);
}

/* RTL Support for Arabic */
[dir="rtl"] .section-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .resource-link {
    flex-direction: row-reverse;
}

[dir="rtl"] .card-link i {
    transform: rotate(180deg);
}

[dir="rtl"] .card-link:hover i {
    transform: rotate(180deg) translateX(4px);
}

[dir="rtl"] .section-content ul,
[dir="rtl"] .section-content ol {
    padding-right: 30px;
    padding-left: 0;
}

[dir="rtl"] .action-point,
[dir="rtl"] .recommendation {
    border-left: none;
    border-right: 4px solid #FFC107;
}

[dir="rtl"] .recommendation {
    border-right-color: #4CAF50;
}

/* Responsive Design - Tablet */
@media (max-width: 768px) {
    .safety-sections {
        gap: 30px;
    }
    
    .safety-hero {
        padding: 40px 30px;
    }
    
    .safety-hero h1 {
        font-size: 2rem;
    }
    
    .safety-hero .hero-message {
        font-size: 1rem;
    }
    
    .safety-section {
        padding: 35px 25px;
        border-radius: 12px;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .section-icon {
        font-size: 1.75rem;
    }
    
    .resource-cards {
        grid-template-columns: 1fr;
    }
    
    .emergency-support {
        padding: 40px 30px;
    }
    
    .emergency-support h2 {
        font-size: 1.75rem;
    }
    
    .emergency-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .emergency-button {
        justify-content: center;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 480px) {
    .safety-content-wrapper {
        padding: 15px;
    }
    
    .safety-sections {
        gap: 25px;
    }
    
    .safety-hero {
        padding: 30px 20px;
        border-radius: 10px;
    }
    
    .safety-hero h1 {
        font-size: 1.75rem;
    }
    
    .safety-hero .hero-message {
        font-size: 0.95rem;
    }
    
    .safety-section {
        padding: 30px 20px;
        border-radius: 10px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .section-header h2 {
        font-size: 1.35rem;
    }
    
    .section-content {
        font-size: 0.95rem;
    }
    
    .section-content ul,
    .section-content ol {
        padding-left: 25px;
    }
    
    .prevention-tips,
    .response-strategies,
    .warning-signs,
    .protective-measures,
    .whatsapp-settings {
        padding: 20px;
    }
    
    .resource-card {
        padding: 25px 20px;
    }
    
    .emergency-support {
        padding: 30px 20px;
        border-radius: 8px;
    }
    
    .emergency-icon {
        font-size: 2.75rem;
    }
    
    .emergency-support h2 {
        font-size: 1.5rem;
    }
    
    .emergency-support p {
        font-size: 1rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* ========================================
   AUDIO PLAYER COMPONENT STYLES
   ======================================== */

.audio-player-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.audio-player-header {
    margin-bottom: 0.75rem;
}

.audio-player-header .audio-title {
    font-weight: 600;
    color: var(--accent-black);
    font-size: 0.95rem;
}

.audio-player-controls {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.audio-listen-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(185, 29, 92, 0.3);
    align-self: flex-start;
}

.audio-listen-btn:hover {
    background: var(--alert-hover, #9A1849);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(185, 29, 92, 0.4);
}

.audio-listen-btn:active {
    transform: translateY(0);
}

.audio-listen-btn.active {
    background: #2d8659;
    box-shadow: 0 2px 6px rgba(45, 134, 89, 0.3);
}

.audio-listen-btn i {
    font-size: 1.1rem;
}

.audio-player-expanded {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e9ecef;
    animation: slideDown 0.2s ease-out;
}

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

.audio-language-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.audio-language-selector label {
    color: var(--text-light);
    font-size: 1.1rem;
}

.audio-language-selector select {
    flex: 1;
    max-width: 200px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.audio-language-selector select:hover {
    border-color: var(--primary-color);
}

.audio-language-selector select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(185, 29, 92, 0.1);
}

.audio-player-wrapper {
    width: 100%;
}

.audio-player-wrapper audio {
    width: 100%;
    height: 45px;
    border-radius: 6px;
}

.audio-player-wrapper.audio-error::after {
    content: 'Audio unavailable';
    display: block;
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* RTL Support for Audio Player */
[dir="rtl"] .audio-listen-btn {
    flex-direction: row-reverse;
}

[dir="rtl"] .audio-language-selector {
    flex-direction: row-reverse;
}

/* Mobile Responsive Audio Player */
@media (max-width: 768px) {
    .audio-player-container {
        padding: 0.875rem 1rem;
    }
    
    .audio-listen-btn {
        width: 100%;
        justify-content: center;
    }
    
    .audio-language-selector {
        flex-wrap: wrap;
    }
    
    .audio-language-selector select {
        max-width: 100%;
        width: 100%;
    }
}

/* Print Styles */
@media print {
    .safety-hero,
    .emergency-support {
        background: none !important;
        color: var(--accent-black) !important;
        border: 2px solid var(--accent-black);
    }
    
    .back-to-top {
        display: none;
    }
    
    .safety-section {
        page-break-inside: avoid;
    }
    
    .audio-player-container {
        display: none;
    }
}
