html {
    direction: rtl;
    unicode-bidi: embed;
}

body {
    font-family: 'Arial', 'Segoe UI', 'Tahoma', sans-serif;
    line-height: 1.6;
    color: #333;
    direction: rtl;
    unicode-bidi: embed;
    background: #f8f9fa;
}

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

.video-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

#youtube-player {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
}

#youtube-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2d7a4f 0%, #1e5a3a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-fallback img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-text {
    width: 100%;
    padding: 0 20px;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1s ease-out;
}

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.cta-button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    padding: 15px 30px;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    animation: fadeInUp 1s ease-out 0.6s both, pulse 2s ease-in-out infinite;
    font-weight: 600;
}

.cta-button:hover {
    background: white;
    color: #333;
    transform: translateY(-2px);
    animation: none;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.video-controls {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 10px;
}

.video-controls button {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s ease;
    backdrop-filter: blur(10px);
}

.video-controls button:hover {
    background: rgba(0, 0, 0, 0.7);
}

.content-section {
    padding: 80px 0;
    background: #f8f9fa;
}

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

.content-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
}

.content-section p {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2d7a4f;
}

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

/* Mobile responsiveness */
@media (max-width: 768px) {
    .overlay-content {
	align-items: flex-end;
	padding-bottom: 80px;
    }
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text p {
        font-size: 1.1rem;
        padding: 0 20px;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .video-controls {
        bottom: 20px;
        right: 20px;
    }
    
    .video-controls button {
        padding: 8px;
        font-size: 1rem;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .content-section {
        padding: 60px 0;
    }
    
    .content-section h2 {
        font-size: 2rem;
        padding: 0 15px;
    }
    
    .content-section p {
        font-size: 1.1rem;
        padding: 0 15px;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .overlay-content {
        padding-bottom: 60px;
    }
    .hero-text h1 {
        font-size: 2rem;
        padding: 0 15px;
    }
    
    .hero-text p {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 0.95rem;
        white-space: normal;
        line-height: 1.4;
    }
    
    .video-controls {
        bottom: 15px;
        right: 15px;
        gap: 8px;
    }
    
    .video-controls button {
        padding: 6px;
        font-size: 0.9rem;
    }
    
    .content-section {
        padding: 40px 0;
    }
    
    .content-section h2 {
        font-size: 1.8rem;
    }
    
    .content-section p {
        font-size: 1rem;
    }
    
    .feature {
        padding: 1.5rem;
    }
    
    .feature h3 {
        font-size: 1.3rem;
    }
}

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

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease-out;
}

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

.close {
    color: #aaa;
    float: left;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

/* RTL UI Element Mirroring */
/* Mirror arrows and directional icons for RTL layout */
.rtl-mirror {
    transform: scaleX(-1);
}

/* Ensure proper alignment for RTL */
.modal-content {
    text-align: right;
}

.modal-content h2 {
    text-align: center;
    color: #2d7a4f;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background-color: white;
    cursor: pointer;
    appearance: auto;
}

.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus,
.form-group select:focus {
    outline: none;
    border-color: #2d7a4f;
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #666;
    font-weight: normal;
}

.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.form-group textarea:focus {
    outline: none;
    border-color: #2d7a4f;
}

.form-group input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.form-group input[type="file"]:hover {
    border-color: #2d7a4f;
}

#imagePreview {
    margin-top: 15px;
    text-align: center;
}

#imagePreview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.submit-btn {
    width: 100%;
    background: #2d7a4f;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #1e5a3a;
    transform: translateY(-2px);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.submit-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    display: none;
}

.submit-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.submit-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .modal-content {
        margin: 2% auto;
        padding: 20px;
        width: 95%;
        max-height: 95vh;
        overflow-y: auto;
    }
    
    .form-group label {
        font-size: 0.95rem;
    }
    
    .form-group input[type="email"],
    .form-group input[type="password"],
    .form-group input[type="text"],
    .form-group input[type="tel"],
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .submit-btn {
        padding: 14px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    
    .modal-content {
        margin: 2% auto;
        padding: 15px;
        width: 98%;
        max-height: 96vh;
        overflow-y: auto;
    }
    
    .modal-content h2 {
        font-size: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .close {
        font-size: 24px;
    }
}

/* Admin Panel Button */
.admin-panel-btn {
    position: fixed;
    bottom: 30px;
    left: 180px;
    background: #1e5a3a;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(30, 90, 58, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.admin-panel-btn:hover {
    background: #154428;
    transform: translateY(-2px) rotate(90deg);
    box-shadow: 0 6px 20px rgba(30, 90, 58, 0.6);
}

@media (max-width: 768px) {
    .admin-panel-btn {
        left: 20px;
        bottom: 90px;
    }
}

@media (max-width: 480px) {
    .admin-panel-btn {
        left: 15px;
        bottom: 80px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

/* Admin Login Button */
.admin-login-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(30, 90, 58, 0.9);
    color: white;
    border: 2px solid white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(30, 90, 58, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.admin-login-btn:hover {
    background: rgba(21, 68, 40, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 90, 58, 0.6);
}

@media (max-width: 768px) {
    .admin-login-btn {
        top: 15px;
        left: 15px;
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .admin-login-btn {
        top: 10px;
        left: 10px;
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    top: 70px;
    left: 20px;
    background: #25D366;
    color: white;
    border: 2px solid white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    direction: rtl;
    backdrop-filter: blur(10px);
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-bot-btn {
    position: fixed;
    top: 130px;
    left: 20px;
    background: #25D366;
    color: white;
    border: 2px solid white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    direction: rtl;
    backdrop-filter: blur(10px);
    text-decoration: none;
    font-weight: 600;
}

.whatsapp-bot-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
    font-size: 1.3rem;
}

.whatsapp-text {
    font-weight: 600;
}

@media (max-width: 768px) {
    .whatsapp-btn {
        top: 60px;
        left: 15px;
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .whatsapp-bot-btn {
        top: 118px;
        left: 15px;
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .whatsapp-icon {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .whatsapp-btn {
        top: 55px;
        left: 10px;
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .whatsapp-bot-btn {
        top: 110px;
        left: 10px;
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .whatsapp-text {
        display: none;
    }
    
    .whatsapp-icon {
        font-size: 1.3rem;
    }
}


/* Announcements Ticker (Left Side Auto-Scrolling) */
.announcements-ticker {
    position: fixed;
    left: 0;
    top: 190px;
    width: 280px;
    height: calc(100vh - 210px);
    background: linear-gradient(135deg, #2d7a4f 0%, #1e5a3a 100%);
    color: white;
    z-index: 900;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    direction: rtl;
    unicode-bidi: embed;
    transition: width 0.3s ease, transform 0.3s ease;
}

.announcements-ticker.expanded {
    width: 400px;
}

.announcements-ticker.closed {
    transform: translateX(-100%);
}

.ticker-header {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticker-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    flex: 1;
}

.ticker-controls {
    display: flex;
    gap: 8px;
}

.ticker-control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.ticker-control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.ticker-control-btn:active {
    transform: scale(0.95);
}

/* Ticker Toggle Button (when closed) */
.ticker-toggle-btn {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #2d7a4f 0%, #1e5a3a 100%);
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    padding: 15px 10px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 900;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    display: none; /* Hidden on desktop by default */
}

.ticker-toggle-btn:hover {
    padding-left: 15px;
    box-shadow: 3px 0 15px rgba(0, 0, 0, 0.4);
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.ticker-scroll {
    animation: scroll-up 30s linear infinite;
    padding: 0 15px;
}

.ticker-scroll:hover {
    animation-play-state: paused;
}

@keyframes scroll-up {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

.ticker-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    border-right: 4px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
}

.ticker-item:active {
    background: rgba(255, 255, 255, 0.35);
}

.ticker-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(-5px);
}

.ticker-item .whatsapp-share-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.ticker-item .whatsapp-share-btn:hover {
    background: #128C7E;
    transform: scale(1.1);
}

.ticker-item-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.ticker-item-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    font-style: italic;
}

.ticker-item-content {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
    max-height: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticker-item-content p {
    margin-bottom: 8px;
}

.ticker-item-image {
    width: 100%;
    max-height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.ticker-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.ticker-error {
    text-align: center;
    padding: 20px;
    color: #ffcccc;
    background: rgba(255, 0, 0, 0.2);
    border-radius: 8px;
    margin: 20px 15px;
}

/* Adjust main content to account for ticker */
body.has-sidebar {
    padding-left: 280px;
    transition: padding-left 0.3s ease;
}

body.has-sidebar.ticker-expanded {
    padding-left: 400px;
}

body.has-sidebar.ticker-closed {
    padding-left: 0;
}

/* Mobile responsiveness for announcements ticker */
@media (max-width: 1024px) {
    .announcements-ticker {
        width: 250px;
    }
    
    .announcements-ticker.expanded {
        width: 350px;
    }
    
    body.has-sidebar {
        padding-left: 250px;
    }
    
    body.has-sidebar.ticker-expanded {
        padding-left: 350px;
    }
}

@media (max-width: 768px) {
    /* Hide ticker off-screen on mobile by default */
    .announcements-ticker,
    .announcements-ticker.closed,
    .announcements-ticker.expanded {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: auto !important;
        max-height: 70vh !important;
        z-index: 1100 !important;
        display: none !important;
        flex-direction: column;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        transform: none !important;
    }
    
    /* When mobile-visible class is added, show the ticker */
    .announcements-ticker.mobile-visible {
        display: flex !important;
    }
    
    .ticker-toggle-btn {
        display: block !important;
        position: fixed;
        bottom: 20px;
        right: 20px;
        background: linear-gradient(135deg, #2d7a4f 0%, #1e5a3a 100%);
        color: white;
        border: none;
        border-radius: 50%;
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 1200;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        transition: all 0.3s ease;
        writing-mode: horizontal-tb;
        text-orientation: mixed;
    }
    
    .ticker-toggle-btn:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    }
    
    body.has-sidebar {
        padding-left: 0;
    }
    
    body.has-sidebar.ticker-expanded,
    body.has-sidebar.ticker-closed {
        padding-left: 0;
    }
    
    .ticker-content {
        max-height: calc(70vh - 80px);
        overflow-y: auto;
    }
    
    .ticker-header {
        flex-shrink: 0;
    }
}

/* Mobile backdrop overlay when ticker is open */
#mobileTickerBackdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1099;
}

#mobileTickerBackdrop.active {
    display: block;
}

@media (max-width: 480px) {
    .announcements-ticker {
        max-height: 60vh !important;
    }
    
    .ticker-content {
        max-height: calc(60vh - 80px);
    }
    
    .ticker-toggle-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        bottom: 15px;
        right: 15px;
    }
}

/* Announcement Modal Popup */
.announcement-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

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

.announcement-modal-content {
    background: white;
    margin: auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    direction: rtl;
}

.announcement-modal-header {
    background: linear-gradient(135deg, #2d7a4f 0%, #1e5a3a 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 15px 15px 0 0;
    position: relative;
}

.announcement-modal-close {
    position: absolute;
    left: 20px;
    top: 20px;
    color: white;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.announcement-modal-close:hover,
.announcement-modal-close:focus {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* WhatsApp share button in modal */
.modal-whatsapp-share-btn {
    position: absolute;
    left: 70px;
    top: 20px;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.modal-whatsapp-share-btn:hover {
    background: #128C7E;
    transform: scale(1.1);
}

.announcement-modal-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 0 10px 0;
    padding-left: 120px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.announcement-modal-date {
    font-size: 1rem;
    opacity: 0.9;
    font-style: italic;
    padding-left: 120px;
}

.announcement-modal-body {
    padding: 30px;
    direction: rtl;
    text-align: right;
}

.announcement-modal-image {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.announcement-modal-content-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    unicode-bidi: embed;
}

.announcement-modal-content-text p {
    margin-bottom: 15px;
}

.announcement-modal-content-text h1,
.announcement-modal-content-text h2,
.announcement-modal-content-text h3 {
    color: #2d7a4f;
    margin-top: 20px;
    margin-bottom: 10px;
}

.announcement-modal-hours {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    border-right: 4px solid #2d7a4f;
}

.announcement-modal-hours h3 {
    color: #2d7a4f;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.announcement-modal-hours ul {
    list-style: none;
    padding: 0;
}

.announcement-modal-hours li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 1.05rem;
}

.announcement-modal-hours li:last-child {
    border-bottom: none;
}

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

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

/* Mobile responsiveness for modal */
@media (max-width: 768px) {
    .announcement-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .announcement-modal-header {
        padding: 20px 25px;
    }
    
    .announcement-modal-title {
        font-size: 1.4rem;
        padding-left: 100px;
    }
    
    .announcement-modal-date {
        font-size: 0.9rem;
        padding-left: 100px;
    }
    
    .announcement-modal-close {
        width: 35px;
        height: 35px;
        font-size: 28px;
        left: 15px;
        top: 15px;
    }
    
    .modal-whatsapp-share-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
        left: 55px;
        top: 15px;
    }
    
    .announcement-modal-body {
        padding: 20px;
    }
    
    .announcement-modal-image {
        max-height: 300px;
    }
    
    .announcement-modal-content-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .announcement-modal-content {
        width: 98%;
    }
    
    .announcement-modal-header {
        padding: 15px 20px;
    }
    
    .announcement-modal-title {
        font-size: 1.2rem;
        padding-left: 45px;
    }
    
    .announcement-modal-body {
        padding: 15px;
    }
    
    .announcement-modal-image {
        max-height: 250px;
    }
}

/* Footer Styles */
.site-footer {
    background: #2d7a4f;
    color: white;
    padding: 60px 0 20px;
    direction: rtl;
    unicode-bidi: embed;
    margin-top: 80px;
    transition: margin-right 0.3s ease-in-out;
}

/* Footer adjusts when sidebar is open (desktop only) */
body:not(.sidebar-closed) .site-footer {
    margin-right: 280px;
}

/* When sidebar is closed on desktop */
body.sidebar-closed .site-footer {
    margin-right: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: white;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease, padding-right 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    padding-right: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-contact .phone-label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact .phone-number {
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
    color: white;
    font-size: 1.2rem;
}

.footer-address {
    font-size: 1.1rem;
    line-height: 1.8;
}

.footer-address p {
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 40px;
}

.footer-bottom p {
    margin: 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-credit {
    margin-top: 10px !important;
    font-size: 0.9rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer-credit a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-credit a:hover {
    color: white;
    text-decoration: underline;
}

/* Footer Map Section */
.footer-map-section {
    min-width: 250px;
}

.footer-map-container {
    border-radius: 10px;
    overflow: hidden;
}

.footer-map-container iframe {
    display: block;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.footer-map-links {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.google-maps-link {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.google-maps-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.waze-link {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

/* Mobile responsiveness for footer */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 20px;
        margin-top: 60px;
    }
    
    /* Footer doesn't move on mobile when sidebar is open */
    body:not(.sidebar-closed) .site-footer {
        margin-right: 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-section h3 {
        font-size: 1.3rem;
    }
    
    .footer-links a,
    .footer-contact li,
    .footer-address {
        font-size: 1rem;
    }
    
    .footer-map-container iframe {
        height: 150px;
    }
    
    .footer-map-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 30px 0 15px;
        margin-top: 40px;
    }
    
    .footer-content {
        gap: 25px;
    }
    
    .footer-section h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .footer-links a,
    .footer-contact li {
        font-size: 0.95rem;
    }
    
    .footer-address {
        font-size: 0.95rem;
    }
    
    .footer-bottom p {
        font-size: 0.9rem;
    }
}
