:root {
    --medical-blue: #2c7be5;
    --medical-blue-light: #4a8ced;
    --medical-blue-rgb: 44, 123, 229;
    --text-color: #333;
    --background-light: #f5f8fa;
}

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

body {
  position: relative;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-light);
    min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('../images/bg.jpg');
  background-attachment: fixed;
  opacity: 0.1; /* only background is transparent */
  z-index: -1; /* keeps it behind all content */
}

body::after {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(to right,rgba(0,0,0,0),rgba(255,255,255,0.8));
  background-attachment: fixed;
  z-index: 0; /* keeps it behind all content */
}

.wrapper{
	position:relative;
	z-index:2;
}

/* Header */
.header {
    background: white;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02), 
                0 4px 8px rgba(0, 0, 0, 0.02);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--medical-blue), var(--medical-blue-light));
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo1 {
    height: 80px;
}

.logo:hover {
    transform: scale(1.05);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Search Form */
.search-form {
	float:right;
    position: relative;
    max-width: 400px;
    width: 100%;
    margin-left: 2rem;
}

.search-box {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: 3rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 0.95rem;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.search-box:focus {
    outline: none;
    background: white;
    border-color: var(--medical-blue);
    box-shadow: 0 0 0 3px rgba(var(--medical-blue-rgb), 0.1);
}

.search-button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #718096;
    padding: 0.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.search-button:hover {
    color: var(--medical-blue);
}

/* Language Select */
.language-select {
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background-color: white;
    color: #1a202c;
    font-size: 0.95rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%234a5568' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 0.75rem) center;
    transition: all 0.3s ease;
}

.language-select:focus {
    outline: none;
    border-color: var(--medical-blue);
    box-shadow: 0 0 0 3px rgba(var(--medical-blue-rgb), 0.1);
}

.language-select option {
    padding: 0.5rem;
}

/* Mobile Menu Button */
.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    color: #4a5568;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.mobile-menu-button:hover {
    color: var(--medical-blue);
}

/* RTL Styles */
.rtl .search-box {
    padding-right: 1rem;
    padding-left: 3rem;
}

.rtl .search-button {
    right: auto;
    left: 0.5rem;
}

.rtl .language-select {
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    background-position: calc(0% + 0.75rem) center;
}

.rtl .header-right {
    flex-direction: row-reverse;
}

.rtl .search-form {
    margin-right: 2rem;
    margin-left: auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .header {
        padding: 1rem;
    }

    .search-form {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .mobile-menu-button {
        display: block;
		width:40px;
        position: fixed;
        top: 1rem;
        z-index: 1000;
    }

    .rtl .mobile-menu-button {
        left: auto;
        right: 1rem;
    }

    .header-right {
        width: 100%;
        flex-direction: column;
        gap: 1rem;
    }

    .search-form {
        max-width: none;
        margin: 0;
    }

    .language-select {
        width: 100%;
    }

    .logo {
        height: 40px;
    }
}

/* Sidebar */
.sidebar {
	position:relative;
    width: 100%;
    min-width: 280px;
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--medical-blue), var(--medical-blue-light));
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    gap: 0.25rem;
}

.menu-item {
    padding: 0.9rem 1.2rem;
    color: #2d3748;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    display: block;
    border-radius: 8px;
    position: relative;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.menu-item:hover {
    background-color: rgba(var(--medical-blue-rgb), 0.04);
    color: var(--medical-blue);
    transform: translateX(4px);
}

.menu-item.active {
    background: linear-gradient(135deg, var(--medical-blue), var(--medical-blue-light));
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(var(--medical-blue-rgb), 0.25);
}

.submenu-container {
    position: relative;
    margin: 0.125rem 0;
}

.menu-item.has-submenu {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-item.has-submenu::after {
    content: '▼';
    font-size: 0.7em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.6;
    margin-left: 0.5rem;
}

.menu-item.has-submenu:hover::after {
    transform: rotate(180deg);
    opacity: 1;
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /*background-color: #f8fafc;*/
    border-radius: 8px;
    margin: 0 0.5rem;
}

.submenu-container:hover .submenu,
.menu-item.has-submenu.active + .submenu {
    max-height: 500px;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    /*box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);*/
}

.submenu-item {
    padding: 0.7rem 1.5rem;
    color: #4a5568;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 6px;
    font-weight: 500;
}

.submenu-container:hover .submenu-item,
.menu-item.has-submenu.active + .submenu .submenu-item {
    opacity: 1;
    transform: translateX(0);
}

.submenu-item:hover {
    background-color: rgba(var(--medical-blue-rgb), 0.06);
    color: var(--medical-blue);
    transform: translateX(4px);
}

.submenu-item.active {
    background-color: rgba(var(--medical-blue-rgb), 0.1);
    color: var(--medical-blue);
    font-weight: 500;
}

.menu-item.has-submenu.active {
    background: linear-gradient(135deg, var(--medical-blue), var(--medical-blue-light));
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(var(--medical-blue-rgb), 0.25);
}

.menu-item.has-submenu.active::after {
    opacity: 1;
    transform: rotate(180deg);
}

/* Content */
.content {
	position:relative;
    flex: 1;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 2rem;
}

/* Welcome Section */
.welcome-text {
    margin: 0 auto 3rem;
    position: relative;
    padding: 2rem;
}

.welcome-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--medical-blue), var(--medical-blue-light));
    border-radius: 2px;
}

.welcome-text h1 {
    font-size: 2.5rem;
    color: #1a202c;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    position: relative;
    padding-bottom: 1rem;
}

.welcome-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.welcome-text ul {
    padding:revert;
}

.featured-image {
    width: 100%;
    max-width: 1000px;
    height: auto;
    border-radius: 16px;
    margin: 0 auto 2rem;
    display: block;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

/* Welcome Section Card Style */
.content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

/*.content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(var(--medical-blue-rgb), 0.1) 0%, rgba(var(--medical-blue-rgb), 0) 100%);
    border-radius: 0 0 0 100%;
    opacity: 0.5;
}*/
.content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--medical-blue), var(--medical-blue-light));
}

.content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(var(--medical-blue-rgb), 0.1) 0%, rgba(var(--medical-blue-rgb), 0) 100%);
    border-radius: 0 100% 0 0;
    opacity: 0.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .welcome-text {
        padding: 1.5rem;
    }

    .welcome-text h1 {
        font-size: 2rem;
    }

    .welcome-text p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .content {
        padding: 2rem 1.5rem;
    }
}

/* Floating Button */
.floating-buttons {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.floating-button {
    position: relative;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: var(--medical-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.floating-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    background-color: var(--medical-blue-light);
}

.floating-button.active {
    background-color: var(--medical-blue-light);
    transform: scale(1.1);
}

.floating-button i {
    font-size: 1.8rem;
}

.back-link{
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--medical-blue);
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

/* Mobile Menu Button */
.mobile-menu-button {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1100;
    background: var(--medical-blue);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Overlay */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .mobile-menu-button {
        display: block;
    }

    .header {
        padding: 0.5rem;
    }

    .header-right {
        width: 100%;
        padding: 0.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .search-form {
        width: 100%;
    }

    .search-box,
    .search-box:focus {
        width: 100%;
    }

    .language-select {
        width: 100%;
    }

    .main-container {
        flex-direction: column;
        padding: 1rem !important;
        gap: 1rem;
        grid-template-columns: 1fr !important;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
        border-radius: 0;
    }

    .sidebar.active {
        left: 0;
    }

    .content {
        margin-left: 0;
        width: 100%;
        padding: 1rem !important;
        overflow: auto;
    }

    .floating-button {
        width: 3.5rem;
        height: 3.5rem;
        bottom: 1rem;
        right: 1rem;
    }

    .floating-button i {
        font-size: 1.5rem;
    }

    .overlay.active {
        display: block;
    }
}

/* Small Mobile Devices */
@media screen and (max-width: 480px) {
    .header {
        padding: 0.5rem;
    }

    .logo-container img {
        height: 40px;
    }

    .content {
        padding: 0.5rem;
    }

    .floating-button {
        width: 3rem;
        height: 3rem;
    }

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

/* Custom Icon */

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Main Content Styles */
.main-container {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 2rem;
    padding: 2rem;
    min-height: calc(100vh - 140px);
    max-width: 1400px;
    margin: 0 auto;
}

/* Sidebar Menu Styles */
.sidebar {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.menu-item {
    padding: 0.9rem 1.2rem;
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    border-radius: 8px;
    font-size: 1rem;
    position: relative;
    background-color: transparent;
    transition: all 0.2s ease;
}

.menu-item:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background-color: var(--medical-blue);
    border-radius: 0 3px 3px 0;
    transition: height 0.2s ease;
}

.menu-item:hover {
    background-color: #f8f9fa;
    color: var(--medical-blue);
}

.menu-item:hover:before {
    height: 70%;
}

.menu-item.active {
    background: linear-gradient(135deg, var(--medical-blue), var(--medical-blue-light));
    color: white;
    font-weight: 600;
    position: relative;
}

.menu-item.active:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background-color: var(--medical-blue);
    border-radius: 0 3px 3px 0;
}

.submenu {
    margin: 0 0 0.5rem 0.8rem;
}

.submenu .menu-item {
    padding: 0.7rem 1rem;
    font-size: 1rem;
    color: #666;
}

.submenu .menu-item:hover {
    background-color: #f8f9fa;
    color: var(--medical-blue);
}

.submenu .menu-item.active {
    background-color: #f8f9fa;
}

.submenu .menu-item.active:before {
    background-color: var(--medical-blue-light);
}

/* Content Styles */
.content {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.welcome-text {
    margin-bottom: 2rem;
    color: var(--text-color);
    line-height: 1.6;
}

.featured-image {
    width: 100%;
    border-radius: 10px;
    margin-top: 2rem;
}

/* Articles Styles */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eef2f7;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 0 auto;
}

.article-card {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    border: 1px solid #eef2f7;
    padding: 1.5rem;
}

.article-card:hover {
    box-shadow: 0 3px 8px rgba(44,123,229,0.7);
}

.article-card h2 {
    color: var(--medical-blue);
    font-size: 1.3rem;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.article-title {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-title:hover {
    color: var(--medical-blue-light);
}

.article-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #eef2f7;
}

.article-preview {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.read-more {
    display: inline-block;
    color: var(--medical-blue);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.read-more:after {
    content: '';
    bottom: 0;
    left: 0;
    width: 0;
    background-color: var(--medical-blue);
    transition: width 0.2s ease;
}

.no-articles {
    text-align: center;
    padding: 3rem;
    color: #666;
    background: white;
    border-radius: 8px;
    border: 1px solid #eef2f7;
}

/* Full Article Styles */
.article-breadcrumb {
    margin-bottom: 2rem;
    color: #666;
}

.article-breadcrumb a {
    color: var(--medical-blue);
    text-decoration: none;
}

.article-breadcrumb a:hover {
    text-decoration: underline;
}

.article-breadcrumb .separator {
    margin: 0 0.5rem;
    color: #ccc;
}

.full-article {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid #eef2f7;
}

.full-article h1 {
    color: var(--medical-blue);
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.full-article .article-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eef2f7;
}

.full-article .article-content {
    line-height: 1.8;
    color: var(--text-color);
}

.full-article .article-content p {
    margin-bottom: 1.5rem;
}

.full-article .article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.article-navigation {
    margin-top: 2rem;
}

.back-to-list {
    display: inline-flex;
    align-items: center;
    color: var(--medical-blue);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
}

.back-to-list:hover {
    text-decoration: underline;
}

/* Emergency Contacts Styles */
.emergency-contacts {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid #eef2f7;
}

.contact-content {
    line-height: 1.8;
    color: var(--text-color);
}

.contact-content h2 {
    color: var(--medical-blue);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.contact-content h2:first-child {
    margin-top: 0;
}

.contact-content p {
    margin-bottom: 1rem;
}

.contact-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.contact-content li {
    margin-bottom: 0.5rem;
}

.contact-content .emergency-number {
    font-size: 1.2rem;
    font-weight: 500;
    color: #dc3545;
    padding: 1rem;
    background: #fff5f5;
    border-radius: 6px;
    margin: 1rem 0;
    display: inline-block;
}

.contact-content .contact-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eef2f7;
}

.contact-content .contact-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Feedback Form Styles */
.feedback-container {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid #eef2f7;
}

.feedback-container .subtitle {
    color: #666;
    margin-top: 0.5rem;
}

.feedback-form {
    margin-top: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #eef2f7;
    border-radius: 6px;
    font-size: 1rem;
    color: var(--text-color);
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--medical-blue-light);
    box-shadow: 0 0 0 3px rgba(var(--medical-blue-rgb), 0.1);
}

.subject-select {
    margin-bottom: 0.5rem;
}

.subject-subtext {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    line-height: 1.4;
}

.submit-button {
    background-color: var(--medical-blue);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease;
}

.submit-button:hover {
    background-color: var(--medical-blue-light);
}

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

.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.alert.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.alert i {
    font-size: 1.1rem;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    gap: 0.5rem;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.8rem;
    border: 1px solid #eef2f7;
    border-radius: 6px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background-color: #f8f9fa;
    color: var(--medical-blue);
    border-color: var(--medical-blue-light);
}

.pagination .active {
    background-color: var(--medical-blue);
    color: white;
    border-color: var(--medical-blue);
}

.pagination .disabled {
    color: #ccc;
    pointer-events: none;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: #e2e8f0;
    padding: 4rem 0 2rem;
    margin-top: auto;
    position: relative;
	z-index:2;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--medical-blue), var(--medical-blue-light));
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer h3 {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--medical-blue-light);
}

.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #cbd5e0;
    font-size: 0.95rem;
}

.contact-info p i {
    color: var(--medical-blue-light);
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.social-links .social-icons {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--medical-blue);
    color: white;
    transform: translateY(-3px);
}

.copyright {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0aec0;
    font-size: 0.9rem;
}

.copyright p {
    margin: 0;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1.5rem;
        text-align: center;
    }

    .footer h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-info p {
        justify-content: center;
    }

    .social-links {
        align-items: center;
    }

    .rtl .footer h3::after {
        right: 50%;
        transform: translateX(50%);
    }
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 100;
}

.floating-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.floating-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    background: var(--medical-blue);
    color: white;
}

.floating-button.active {
    background: var(--medical-blue);
    color: white;
}

/* RTL Floating Buttons */
.rtl .floating-buttons {
    right: auto;
    left: 2rem;
}

/* Quick Links Styles */
.quick-links nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links nav ul li {
    margin-bottom: 0.8rem;
}

.quick-links nav ul li a {
    color: #cbd5e0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.quick-links nav ul li a::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--medical-blue-light);
    border-radius: 50%;
    margin-right: 0.8rem;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.quick-links nav ul li a:hover {
    color: white;
    transform: translateX(8px);
}

.quick-links nav ul li a:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* RTL Quick Links */
.rtl .quick-links nav ul li a {
    flex-direction: row-reverse;
}

.rtl .quick-links nav ul li a::before {
    margin-right: 0;
    margin-left: 0.8rem;
}

.rtl .quick-links nav ul li a:hover {
    transform: translateX(-8px);
}

@media (max-width: 768px) {
    .quick-links nav ul {
        text-align: center;
    }

    .quick-links nav ul li a {
        justify-content: center;
    }

    .quick-links nav ul li a::before {
        display: none;
    }

    .quick-links nav ul li a:hover {
        transform: translateX(0);
    }
}

/* Map Table Styles */
.table-responsive {
    overflow-x: auto;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    background: white;
}

.map-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.map-table th,
.map-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.map-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #1a202c;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.map-table td {
    color: #4a5568;
    transition: background-color 0.2s ease;
}

.map-table tbody tr:hover {
    background-color: rgba(var(--medical-blue-rgb), 0.02);
}

.map-table tbody tr:last-child td {
    border-bottom: none;
}

/* Custom scrollbar for table */
.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: rgba(var(--medical-blue-rgb), 0.2);
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--medical-blue-rgb), 0.3);
}

/* Badge Styles */
.category-badge,
.milieu-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

/* Category badge colors */
.category-badge[data-category="Hospital"] {
    background: rgba(var(--medical-blue-rgb), 0.1);
    color: var(--medical-blue);
}

.category-badge[data-category="Clinic"] {
    background: rgba(16, 185, 129, 0.1);
    color: rgb(16, 185, 129);
}

.category-badge[data-category="Health Center"] {
    background: rgba(245, 158, 11, 0.1);
    color: rgb(245, 158, 11);
}

.category-badge[data-category="Pharmacy"] {
    background: rgba(139, 92, 246, 0.1);
    color: rgb(139, 92, 246);
}

/* Milieu badge colors */
.milieu-badge[data-milieu="Urban"] {
    background: rgba(3, 105, 161, 0.1);
    color: rgb(3, 105, 161);
}

.milieu-badge[data-milieu="Rural"] {
    background: rgba(4, 120, 87, 0.1);
    color: rgb(4, 120, 87);
}

/* Map search container */
.search-container {
    margin-bottom: 2rem;
}

.search-box-container {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.search-box-container input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 1rem;
}

.search-box-container input:focus {
    outline: none;
    border-color: var(--medical-blue);
    box-shadow: 0 0 0 3px rgba(var(--medical-blue-rgb), 0.1);
}

.submit-button {
    padding: 0.8rem 1.5rem;
    background: var(--medical-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.submit-button:hover {
    background: var(--medical-blue-light);
}

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

/* RTL Table Styles */
.rtl .map-table th,
.rtl .map-table td {
    text-align: right;
}

@media (max-width: 768px) {
    .table-responsive {
        margin: 0 -1rem;
        padding: 0 1rem;
        border-radius: 0;
    }

    .map-table th,
    .map-table td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .category-badge,
    .milieu-badge {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
}

.per-page-select{
    margin-bottom: 1rem;
}

/* Article Styles */
.article-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.article-full {
    padding: 2.5rem;
}

.article-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.article-header h1 {
    font-size: 2.5rem;
    color: #1a202c;
    line-height: 1.3;
    margin: 1.5rem 0;
    font-weight: 700;
}

.categories {
    margin-bottom: 1.5rem;
}

.category,
.subcategory {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--medical-blue);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.category:hover,
.subcategory:hover {
    background: var(--medical-blue-light);
    transform: translateY(-1px);
}

.separator {
    margin: 0 0.5rem;
    color: #718096;
}

.article-meta {
    color: #718096;
    font-size: 0.95rem;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2d3748;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.article-content h2 {
    font-size: 1.8rem;
    color: #1a202c;
    margin: 2.5rem 0 1.5rem;
}

.article-content h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin: 2rem 0 1rem;
}

.article-navigation {
    padding: 2rem 0;
    border-top: 1px solid #e2e8f0;
    margin-top: 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--medical-blue);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--medical-blue-light);
}

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

/* RTL Article Styles */
.rtl .article-content {
    text-align: right;
}

.rtl .back-link i {
    transform: scaleX(-1);
}

/* Responsive Article Styles */
@media (max-width: 768px) {
    .article-container {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }

    .article-full {
        padding: 0.5rem;
    }

    .article-header h1 {
        font-size: 2rem;
    }

    .article-content {
        font-size: 1rem;
    }
	
	.search-box-container{
		display:block;
		text-align:center;
	}

	.search-box-container input{
		width:100%;
	}

	.search-box-container button{
		margin:15px auto;
	}
}

.subsubmenu {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /*background-color: #f8fafc;*/
    border-radius: 8px;
    margin: 0 0.5rem;
}

.subsubmenu-item{
	display:block;
	margin:3px 0px;
	padding:0.7rem 1.5rem;
	text-decoration:none;
	color:var(--medical-blue);
	font-weight:500;
	border-radius:6px;
}
.subsubmenu-item.active{
	background:#F8F8F8;
}

.submenu-item.has-subsubmenu::after {
    content: '▼';
    font-size: 0.7em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.6;
    margin-left: 0.5rem;
}

.submenu-item.has-subsubmenu:hover::after {
    transform: rotate(180deg);
    opacity: 1;
}

.submenu-item-container:hover .subsubmenu,
.submenu-item.has-subsubmenu.active + .subsubmenu {
    max-height: 500px;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    /*box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);*/
}

.submenu-item.has-subsubmenu {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.submenu-item.has-subsubmenu::after {
    content: '▼';
    font-size: 0.7em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.6;
    margin-left: 0.5rem;
}

.submenu-item.has-subsubmenu:hover::after {
    transform: rotate(180deg);
    opacity: 1;
}
