@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Kufi+Arabic:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #1e3a8a; /* Deep Navy Blue */
    --primary-rgb: 30, 58, 138;
    --secondary: #f97316; /* Vibrant Orange */
    --secondary-hover: #ea580c;
    --dark: #0f172a; /* Slate Dark */
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #334155;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --glow-blue: rgba(59, 130, 246, 0.15);
    --glow-orange: rgba(249, 115, 22, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --font-en: 'Outfit', 'Inter', sans-serif;
    --font-rtl: 'Noto Kufi Arabic', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

body[dir="rtl"] {
    font-family: var(--font-rtl);
}

body[dir="ltr"] {
    font-family: var(--font-en);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button, input, textarea, select {
    font-family: inherit;
}

/* Typography & Layout Utilities */
h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
    font-weight: 700;
}

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

/* Header & Glassmorphic Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition);
}

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

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 1.3rem;
    box-shadow: 0 4px 10px var(--glow-blue);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--primary) 30%, var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

body[dir="rtl"] .nav-links a::after {
    left: auto;
    right: 0;
}

.nav-links a:hover {
    color: var(--secondary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Action Area (Lang & Admin Link) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.lang-selector {
    background: rgba(30, 58, 138, 0.05);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 0.4rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
    outline: none;
}

.lang-selector:hover {
    background: rgba(30, 58, 138, 0.1);
    border-color: var(--primary);
}

.btn-admin {
    background: linear-gradient(135deg, var(--primary), #2563eb);
    color: #fff !important;
    padding: 0.6rem 1.4rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px var(--glow-blue);
}

.btn-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--glow-blue);
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 180px;
    padding-bottom: 100px;
    background: radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.06), transparent 40%),
                radial-gradient(circle at 10% 80%, rgba(30, 58, 138, 0.06), transparent 40%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

body[dir="rtl"] .hero-content h1 {
    font-size: 3rem;
    line-height: 1.4;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary), #ea580c);
    color: #fff;
    padding: 1rem 2.2rem;
    border-radius: 30px;
    font-weight: 700;
    box-shadow: 0 4px 15px var(--glow-orange);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px var(--glow-orange);
}

.btn-secondary {
    background: #fff;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 1rem 2.2rem;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(30, 58, 138, 0.05);
    transform: translateY(-3px);
}

/* Hero Medical Graphics */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-backdrop {
    position: absolute;
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1), rgba(249, 115, 22, 0.1));
    border-radius: 50%;
    filter: blur(40px);
    z-index: 1;
}

.visual-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    width: 85%;
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
}

.visual-card:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-5px);
}

.visual-cross {
    width: 60px;
    height: 60px;
    background: var(--secondary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

/* Sections Base Styling */
.section {
    padding: 80px 0;
}

.section-alt {
    background-color: #f1f5f9;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.8rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Services / Features */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

body[dir="rtl"] .service-card::before {
    transform-origin: right;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
    border-color: rgba(30, 58, 138, 0.2);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 55px;
    height: 55px;
    background: rgba(30, 58, 138, 0.06);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--secondary);
    color: #fff;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Products Section & Filter controls */
.products-control-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    background: var(--card-bg);
    padding: 1.2rem 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.01);
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 280px;
}

.search-input {
    width: 100%;
    background: var(--light-bg);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

body[dir="rtl"] .search-input {
    padding-left: 3rem;
}

body[dir="ltr"] .search-input {
    padding-right: 3rem;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--glow-blue);
    background: #fff;
}

.search-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
}

body[dir="rtl"] .search-btn {
    left: 1.2rem;
}

body[dir="ltr"] .search-btn {
    right: 1.2rem;
}

.filter-tabs {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.filter-tab {
    background: var(--light-bg);
    border: 1px solid var(--border);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-main);
    transition: var(--transition);
}

.filter-tab:hover, .filter-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08);
    border-color: rgba(249, 115, 22, 0.2);
}

.product-image-container {
    height: 220px;
    background: #f1f5f9;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image {
    transform: scale(1.06);
}

.product-badge {
    position: absolute;
    top: 1rem;
    background: rgba(30, 58, 138, 0.9);
    backdrop-filter: blur(5px);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
}

body[dir="rtl"] .product-badge {
    right: 1rem;
}

body[dir="ltr"] .product-badge {
    left: 1rem;
}

.product-details {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-details h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.product-details p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.product-actions {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--secondary);
}

.btn-inquire {
    background: rgba(30, 58, 138, 0.05);
    color: var(--primary);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-inquire:hover {
    background: var(--primary);
    color: #fff;
}

/* About Details / Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: center;
}

.about-graphics {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.05);
}

.about-graphics img {
    width: 100%;
    display: block;
}

/* Contact Info & Form */
.contact-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
}

.contact-info-panel {
    background: linear-gradient(135deg, var(--primary), #1e293b);
    color: #fff;
    padding: 3.5rem;
    border-radius: 24px;
    box-shadow: 0 15px 30px var(--glow-blue);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.contact-info-panel::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.15);
    filter: blur(20px);
}

.info-header h3 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.info-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.info-list {
    list-style: none;
    margin: 2rem 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.info-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--secondary);
}

.info-text strong {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-text span {
    font-size: 1rem;
}

.contact-form-panel {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 3.5rem;
    border-radius: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.01);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    background: var(--light-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--glow-blue);
    background: #fff;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.btn-form {
    width: 100%;
    background: var(--secondary);
    color: #fff;
    border: none;
    padding: 0.9rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-form:hover {
    background: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px var(--glow-orange);
}

/* Footer Section */
footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
}

.footer-nav {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-nav a:hover {
    color: var(--secondary);
}

/* Admin Dashboard Specific Styles */
.admin-login-body {
    background: linear-gradient(135deg, #0f172a 20%, #1e3a8a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    font-size: 1.8rem;
    color: var(--dark);
}

.login-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Admin Layout & CRUD Grid */
.admin-header-bar {
    background: var(--dark);
    color: #fff;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

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

.admin-header-container h1 {
    color: #fff;
    font-size: 1.5rem;
}

.admin-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-logout {
    background: #ef4444;
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-logout:hover {
    background: #dc2626;
}

.btn-back-site {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.btn-back-site:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Admin grid: side panel (Form) & main panel (Table) */
.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 50px;
}

.admin-form-panel {
    background: #fff;
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.01);
}

.admin-form-panel h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-bg);
}

.admin-table-panel {
    background: #fff;
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.01);
}

.admin-table-panel h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

/* File Upload custom style */
.file-upload-wrapper {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    background: var(--light-bg);
    cursor: pointer;
    transition: var(--transition);
}

.file-upload-wrapper:hover {
    border-color: var(--primary);
    background: rgba(30, 58, 138, 0.02);
}

.file-upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.file-upload-text strong {
    color: var(--primary);
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

/* Table Style */
.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

body[dir="rtl"] .admin-table {
    text-align: right;
}

.admin-table th, .admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.admin-table th {
    background: var(--light-bg);
    font-weight: 700;
    color: var(--dark);
}

.admin-table img {
    border-radius: 8px;
    object-fit: cover;
}

.actions-cell {
    display: flex;
    gap: 0.8rem;
}

.btn-edit-inline {
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
    background: none;
    border: none;
}

.btn-delete-inline {
    color: #ef4444;
    font-weight: 700;
    cursor: pointer;
    background: none;
    border: none;
}

.btn-edit-inline:hover, .btn-delete-inline:hover {
    text-decoration: underline;
}

/* Modal Popup (for Inquire) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: #fff;
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    max-width: 550px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    transform: translateY(20px);
    transition: var(--transition);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 800;
}

.btn-close-modal {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
}

.btn-close-modal:hover {
    color: #ef4444;
}

/* Responsive Overrides */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    .hero-content p {
        margin: 0 auto 2.5rem;
    }
    .hero-ctas {
        justify-content: center;
    }
    .about-grid, .contact-layout, .admin-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .contact-info-panel {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple responsive nav hide - keeping clean */
    }
    .nav-container {
        justify-content: space-between;
    }
    .section-header h2 {
        font-size: 2rem;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    body[dir="rtl"] .hero-content h1 {
        font-size: 2.3rem;
    }
    .contact-form-panel {
        padding: 2rem;
    }
    
    /* Mobile-First Admin Layout Adjustments */
    .admin-header-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .admin-nav {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        gap: 0.8rem;
    }
    
    .admin-nav form {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .admin-nav select {
        width: 60%;
    }
    
    .admin-nav a {
        flex-grow: 1;
        text-align: center;
        font-size: 0.8rem;
    }
    
    .admin-form-panel, .admin-table-panel {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    /* Avoid auto-zooms on inputs on iOS Safari */
    .form-control, .search-input, select.form-control {
        font-size: 16px !important;
        padding: 0.75rem 1rem;
    }
    
    .modal-content {
        padding: 2rem;
        margin: 10px;
        border-radius: 20px;
    }
    
    .table-responsive {
        margin: 0 -0.5rem;
        border-radius: 8px;
        -webkit-overflow-scrolling: touch;
    }
    
    .admin-table th, .admin-table td {
        padding: 0.8rem;
        font-size: 0.85rem;
    }
    
    .admin-table td strong {
        font-size: 0.85rem;
    }
    
    .admin-table td span {
        font-size: 0.7rem;
    }
    
    .actions-cell {
        flex-direction: column;
        gap: 0.4rem;
        align-items: stretch;
    }
    
    .btn-edit-inline, .btn-delete-inline {
        padding: 0.4rem 0.6rem;
        border: 1px solid var(--border);
        border-radius: 6px;
        background: var(--light-bg);
        text-align: center;
        font-size: 0.75rem;
    }
    
    .btn-edit-inline:hover, .btn-delete-inline:hover {
        text-decoration: none;
        background: #fff;
    }
}

