* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    direction: rtl;
    overflow-x: hidden;
}

/* Header */
header {
    width: 100%;
    background-color: #003253;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    position: static;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 0.5px;
}

.logo h1 {
    margin: 0;
    font-size: 1.8rem;
    color: #FFFFFF;
}

.logo .tagline {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.logo img {
    filter: brightness(0) invert(1);
}

.logo picture img {
    filter: brightness(0) invert(1);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #FFFFFF;
    font-size: 16px;
    position: relative;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #F5A623;
}

nav ul li a:hover::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #F5A623;
    bottom: -4px;
    left: 0;
}

/* Hero Section */
.hero {
    background: #003253;
    color: #FFFFFF;
    text-align: center;
    padding: 120px 20px;
}

.hero h1 {
    font-size: 40px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

.cta-button {
    background-color: #F5A623;
    color: #FFFFFF;
    padding: 14px 35px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    display: inline-block;
    animation: bounce 1.5s ease-in-out;
}

.cta-button:hover {
    background-color: #C7D0CF;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 50, 83, 0.2);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Section Animations */
.section {
    opacity: 0;
    transition: all 0.6s ease-out;
}

.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition-duration: 0.8s;
}

.slide-left {
    opacity: 0;
    transform: translateX(-100px);
    transition-duration: 0.7s;
    transition-timing-function: ease-in-out;
}

.slide-right {
    opacity: 0;
    transform: translateX(100px);
    transition-duration: 0.7s;
    transition-timing-function: ease-in-out;
}

.zoom-in {
    opacity: 0;
    transform: scale(0.5);
    transition-duration: 0.9s;
    transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.flip {
    opacity: 0;
    transform: rotateY(90deg);
    transition-duration: 1s;
    transition-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);
}

.bounce-in {
    opacity: 0;
    transform: translateY(100px);
    transition-duration: 0.8s;
    transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Visible states */
.section.visible.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.section.visible.slide-left {
    opacity: 1;
    transform: translateX(0);
}

.section.visible.slide-right {
    opacity: 1;
    transform: translateX(0);
}

.section.visible.zoom-in {
    opacity: 1;
    transform: scale(1);
}

.section.visible.flip {
    opacity: 1;
    transform: rotateY(0);
}

.section.visible.bounce-in {
    opacity: 1;
    transform: translateY(0);
}

/* Features Section */
.features {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    text-align: center;
    background-color: #FFFFFF;
    border-radius: 12px;
}

.features h2 {
    font-size: 34px;
    color: #003253;
    margin-bottom: 40px;
    letter-spacing: 0.5px;
}

.features-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 10px;
}

.feature-card {
    background-color: #FFFFFF;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 50, 83, 0.1);
    min-width: 200px;
    flex: 1 1 200px;
    max-width: 250px;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 50, 83, 0.2);
}

.feature-card i {
    font-size: 36px;
    color: #003253;
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.feature-card:hover i {
    transform: scale(1.2);
    color: #F5A623;
}

.feature-card h3 {
    font-size: 18px;
    color: #003253;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: #6c757d;
}

/* Services Section */
.services {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    text-align: center;
    background-color: #FFFFFF;
    border-radius: 12px;
}

.services h2 {
    font-size: 34px;
    color: #003253;
    margin-bottom: 40px;
    letter-spacing: 0.5px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #FFFFFF;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 50, 83, 0.1);
    transition: all 0.3s;
}

.service-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 50, 83, 0.2);
}

.service-card h3 {
    font-size: 20px;
    color: #003253;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 16px;
    color: #6c757d;
}

/* Steps Section */
.steps {
    max-width: 1200px;
    margin: 70px auto;
    padding: 20px;
    text-align: center;
    position: relative;
}

.steps h2 {
    font-size: 34px;
    color: #003253;
    margin-bottom: 50px;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
}

.steps h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #F5A623;
    margin: 15px auto 0;
    border-radius: 2px;
}

.steps-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    justify-content: center;
    position: relative;
}

.step-item {
    background-color: #FFFFFF;
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 50, 83, 0.1);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 50, 83, 0.05);
}

.step-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #003253, #F5A623);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.step-item:hover:before {
    transform: scaleX(1);
}

.step-number {
    background-color: #003253;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 50, 83, 0.2);
}

.step-item:hover .step-number {
    background-color: #F5A623;
    transform: scale(1.1) rotate(10deg);
}

.step-content-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.step-item h3 {
    font-size: 18px;
    color: #003253;
    margin-bottom: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.step-item:hover h3 {
    color: #F5A623;
}

.step-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Step animations */
.step-item:nth-child(1) { transform: translateY(50px); transition-delay: 0.1s; }
.step-item:nth-child(2) { transform: translateY(50px); transition-delay: 0.2s; }
.step-item:nth-child(3) { transform: translateY(50px); transition-delay: 0.3s; }
.step-item:nth-child(4) { transform: translateY(50px); transition-delay: 0.4s; }
.step-item:nth-child(5) { transform: translateY(50px); transition-delay: 0.5s; }
.step-item:nth-child(6) { transform: translateY(50px); transition-delay: 0.6s; }

.step-item.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .steps-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 15px;
    }
    
    .step-item {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .step-number {
        margin: 0 auto 15px auto;
    }
    
    .nav-container .logo {
        display: none;
    }
    
    .menu-toggle {
        display: block;
        color: #FFFFFF;
        font-size: 24px;
        padding: 10px;
    }
    
    .nav-container {
        padding: 10px 15px;
        justify-content: flex-end;
    }
    
    .hero {
        margin-top: 60px;
        padding-top: 40px;
    }
    
    .section {
        width: 100%;
        overflow-x: hidden;
    }
}

/* Document Section */
.document {
    background: #003253;
    background-size: cover;
    background-position: center;
    color: #FFFFFF;
    text-align: center;
    padding: 100px 20px;
}

.document h2 {
    font-size: 36px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.document p {
    font-size: 18px;
    margin-bottom: 30px;
}

.document .cta-button {
    padding: 15px 40px;
    font-size: 18px;
    animation: pulse 2s infinite;
}

.document i {
    font-size: 48px;
    margin-bottom: 20px;
}

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

/* Licenses Section */
.licenses {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    text-align: center;
    background-color: #FFFFFF;
    border-radius: 12px;
}

.licenses h2 {
    font-size: 34px;
    color: #003253;
    margin-bottom: 40px;
    letter-spacing: 0.5px;
}

.licenses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.license-card {
    background-color: #FFFFFF;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 50, 83, 0.1);
    transition: all 0.3s;
}

.license-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 50, 83, 0.2);
}

.license-card i {
    font-size: 36px;
    color: #003253;
    margin-bottom: 15px;
}

.license-card:hover i {
    color: #F5A623;
}

.license-card h3 {
    font-size: 20px;
    color: #003253;
    margin-bottom: 15px;
}

.license-card p {
    font-size: 16px;
    color: #6c757d;
}

/* WhatsApp Section */
.whatsapp {
    max-width: 1200px;
    margin: 50px auto;
    padding: 40px 20px;
    text-align: center;
    background-color: #003253;
    color: #FFFFFF;
    border-radius: 12px;
}

.whatsapp h2 {
    font-size: 34px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.whatsapp p {
    font-size: 18px;
    margin-bottom: 30px;
}

.whatsapp i {
    font-size: 48px;
    margin-bottom: 20px;
}

.whatsapp .cta-button {
    background-color: #F5A623;
    color: #FFFFFF;
    padding: 15px 40px;
    font-size: 18px;
}

.whatsapp .cta-button:hover {
    background-color: #BAC3D5;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 50, 83, 0.2);
}

/* Articles Page Styles */
.articles-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 30px;
    margin-bottom: 30px;
}

.articles-header {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.articles-header h1 {
    color: var(--primary-color, #003253);
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.articles-grid.featured {
    margin-bottom: 40px;
}

.article-card.large {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.article-card.large .article-img {
    height: 300px;
    background-color: #f0f0f0;
    background-image: linear-gradient(45deg, #e6e6e6 25%, transparent 25%, transparent 75%, #e6e6e6 75%, #e6e6e6), 
                      linear-gradient(45deg, #e6e6e6 25%, transparent 25%, transparent 75%, #e6e6e6 75%, #e6e6e6);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

.article-card.large .article-content {
    padding: 20px;
}

.article-card.large h2 {
    font-size: 1.8rem;
    color: var(--primary-color, #003253);
    margin-bottom: 10px;
}

.article-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: block;
}

.article-excerpt {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    color: var(--primary-color, #003253);
    font-weight: bold;
    text-decoration: none;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.read-more:hover {
    border-bottom-color: var(--primary-color, #003253);
}

.articles-list {
    margin-top: 40px;
}

.articles-list h2 {
    font-size: 2rem;
    color: var(--primary-color, #003253);
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Footer */
footer {
    background-color: #003253;
    color: #FFFFFF;
    padding: 20px;
    text-align: center;
}

footer p {
    margin: 10px 0;
}

footer a {
    color: #F5A623;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Popup Styles */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 50, 83, 0.5);
    z-index: 2000;
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background-color: #FFFFFF;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 50, 83, 0.2);
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    text-align: center;
    z-index: 2100;
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.popup.visible {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #BAC3D5;
    border-radius: 4px;
    margin-bottom: 20px;
}

.progress {
    height: 100%;
    background-color: #F5A623;
    border-radius: 4px;
    width: 0;
    transition: width 0.3s ease;
}

/* Step and Level Styles */
.step, .level {
    transition: all 0.3s ease;
}

.step h2 {
    font-size: 24px;
    color: #003253;
    margin-bottom: 20px;
}

.step-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 10px;
}

.step-content button {
    background-color: #F5A623;
    color: #FFFFFF;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.step-content button:hover {
    background-color: #C7D0CF;
    transform: scale(1.05);
}

.step-buttons, .level-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.step-buttons button, .level-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.next-button, .submit-button {
    background-color: #F5A623;
    color: #FFFFFF;
}

.next-button:hover, .submit-button:hover {
    background-color: #C7D0CF;
}

.prev-button, .close-button {
    background-color: #6c757d;
    color: #FFFFFF;
}

.prev-button:hover, .close-button:hover {
    background-color: #BAC3D5;
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: right;
}

fieldset {
    border: 1px solid #BAC3D5;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

legend {
    font-size: 16px;
    color: #003253;
    font-weight: 700;
    padding: 0 10px;
}

form label {
    font-size: 14px;
    color: #003253;
    font-weight: 700;
    margin-bottom: 5px;
    display: block;
}

form input {
    padding: 10px;
    border: 1px solid #BAC3D5;
    border-radius: 8px;
    font-size: 14px;
    width: 100%;
    transition: border-color 0.3s;
}

form input:focus {
    border-color: #F5A623;
    outline: none;
}

form input.error {
    border-color: #dc3545;
}

form p {
    font-size: 16px;
    color: #003253;
    font-weight: 700;
    margin: 10px 0;
    text-align: center;
}

/* Footer Styles */
.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 40px 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin: 15px;
    text-align: right;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p {
    margin: 10px 0;
}

.footer-section a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    color: #666;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    background-color: #f1f1f1;
    border-top: 1px solid #eee;
}

.footer-bottom p {
    margin: 0;
    color: #666;
}

/* Privacy Page Styles */
.privacy-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 30px;
    margin-bottom: 30px;
}

.privacy-header {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.privacy-header h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.privacy-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.privacy-section h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.privacy-section h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #555;
}

.privacy-list {
    padding-right: 20px;
}

.privacy-list li {
    margin-bottom: 10px;
}

.privacy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.privacy-table th, .privacy-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: right;
}

.privacy-table th {
    background-color: var(--primary-color);
    color: white;
}

.privacy-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Terms Page Styles */
.terms-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 30px;
    margin-bottom: 30px;
}

.terms-header {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.terms-header h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.terms-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.terms-section h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.terms-section h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #555;
}

.terms-list {
    padding-right: 20px;
}

.terms-list li {
    margin-bottom: 10px;
}

.terms-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.terms-table th, .terms-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: right;
}

.terms-table th {
    background-color: var(--primary-color);
    color: white;
}

.terms-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Responsive Styles for Privacy and Terms Pages */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    .hero {
        padding: 80px 15px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }

    .feature-card {
        min-width: 180px;
        max-width: 200px;
    }

    .steps-list {
        flex-direction: column;
        align-items: center;
    }

    .step-item {
        width: 100%;
        max-width: 300px;
    }

    .whatsapp {
        padding: 30px 15px;
    }

    .whatsapp h2 {
        font-size: 28px;
    }

    .whatsapp p {
        font-size: 16px;
    }

    .whatsapp .cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }

    .popup {
        width: 95%;
        padding: 15px;
        max-height: 85vh;
    }

    .step h2 {
        font-size: 20px;
    }

    .step-content button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .step-buttons button, .level-buttons button {
        padding: 8px 15px;
        font-size: 12px;
    }

    fieldset {
        padding: 10px;
    }

    legend {
        font-size: 14px;
    }

    form label {
        font-size: 12px;
    }

    form input {
        font-size: 12px;
    }

    form p {
        font-size: 14px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-section {
        text-align: center;
        margin: 20px 0;
    }
    
    .social-links {
        justify-content: center;
    }

    .privacy-container, .terms-container {
        padding: 15px;
    }
    
    .privacy-section, .terms-section {
        padding: 15px;
    }
    
    .privacy-table th, .privacy-table td, .terms-table th, .terms-table td {
        padding: 8px;
    }

    .article-card.large {
        flex-direction: column;
    }
    
    .article-card.large .article-img {
        width: 100%;
        height: 200px;
    }
    
    .article-card.large h2 {
        font-size: 1.4rem;
    }
    
    .article-excerpt {
        font-size: 1rem;
    }
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.article-card {
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.article-img {
    width: 100%;
    height: 150px;
    background-color: #f0f0f0;
    background-image: linear-gradient(45deg, #e6e6e6 25%, transparent 25%, transparent 75%, #e6e6e6 75%, #e6e6e6), 
                      linear-gradient(45deg, #e6e6e6 25%, transparent 25%, transparent 75%, #e6e6e6 75%, #e6e6e6);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    border-radius: 8px 8px 0 0;
}

.article-card h3 {
    color: var(--primary-color, #003253);
    font-size: 18px;
    margin: 15px;
    margin-bottom: 10px;
}

.article-card p {
    font-size: 14px;
    color: #666;
    margin: 0 15px 15px;
    line-height: 1.4;
}

/* Articles Section (For Homepage) */
.articles {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    text-align: center;
}

.articles h2 {
    font-size: 34px;
    color: #003253;
    margin-bottom: 40px;
    letter-spacing: 0.5px;
}

/* Single Article Page Styles */
.single-article-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 30px;
    margin-bottom: 30px;
}

.article-breadcrumb {
    margin-bottom: 20px;
    color: #666;
    font-size: 0.9rem;
}

.article-breadcrumb a {
    color: var(--primary-color, #003253);
    text-decoration: none;
}

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

.article-breadcrumb .current {
    color: #666;
}

.article-content {
    margin-bottom: 40px;
}

.article-content h1 {
    font-size: 2.2rem;
    color: var(--primary-color, #003253);
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-meta {
    margin-bottom: 20px;
    color: #666;
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.article-featured-image {
    width: 100%;
    height: 400px;
    background-color: #f0f0f0;
    background-image: linear-gradient(45deg, #e6e6e6 25%, transparent 25%, transparent 75%, #e6e6e6 75%, #e6e6e6), 
                      linear-gradient(45deg, #e6e6e6 25%, transparent 25%, transparent 75%, #e6e6e6 75%, #e6e6e6);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body h2 {
    font-size: 1.8rem;
    color: var(--primary-color, #003253);
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.article-body h3 {
    font-size: 1.4rem;
    color: var(--primary-color, #003253);
    margin: 25px 0 15px;
}

.article-body ul, .article-body ol {
    margin-bottom: 20px;
    padding-right: 20px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-body a {
    color: var(--primary-color, #003253);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.article-body a:hover {
    border-bottom-color: var(--primary-color, #003253);
}

.article-share {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.article-share p {
    font-weight: bold;
    margin-bottom: 10px;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.share-button:hover {
    background-color: var(--primary-color, #003253);
    color: white;
}

.related-articles {
    margin-top: 60px;
}

.related-articles h2 {
    font-size: 1.8rem;
    color: var(--primary-color, #003253);
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Responsive for Single Article Page */
@media (max-width: 768px) {
    .article-content h1 {
        font-size: 1.8rem;
    }
    
    .article-featured-image {
        height: 250px;
    }
    
    .article-body {
        font-size: 1rem;
    }
    
    .article-body h2 {
        font-size: 1.5rem;
    }
    
    .article-body h3 {
        font-size: 1.2rem;
    }
}

.view-all-articles {
    text-align: center;
    margin-top: 30px;
}

.view-all-button {
    display: inline-block;
    background-color: #fff;
    color: var(--primary-color, #003253);
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    border: 2px solid var(--primary-color, #003253);
    transition: all 0.3s;
}

.view-all-button:hover {
    background-color: var(--primary-color, #003253);
    color: #fff;
}

/* Pricing Section */
.pricing {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    text-align: center;
}

.pricing-header {
    margin-bottom: 40px;
}

.pricing-header h2 {
    font-size: 34px;
    color: var(--primary-color, #003253);
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.pricing-header p {
    font-size: 18px;
    color: #666;
}

.pricing-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 0 auto;
    max-width: 900px;
}

.pricing-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 50, 83, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 50, 83, 0.15);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color, #003253);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-card-header {
    background-color: var(--primary-color, #003253);
    color: white;
    padding: 25px 20px;
    text-align: center;
}

.pricing-card-header h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.amount {
    font-size: 40px;
    font-weight: bold;
}

.currency {
    display: inline-flex;
    align-items: center;
}

.riyal-symbol {
    height: 30px;
    width: auto;
    margin-top: 5px;
    filter: brightness(0) invert(1);
}

.pricing-card-body {
    padding: 30px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    flex-grow: 1;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: #555;
    font-size: 16px;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features i {
    color: #4CAF50;
    margin-left: 10px;
}

.pricing-button {
    display: inline-block;
    background-color: var(--primary-color, #003253);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: auto;
}

.pricing-button:hover {
    background-color: #F5A623;
    transform: scale(1.05);
}

/* Responsive for Pricing Section */
@media (max-width: 768px) {
    .pricing-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .pricing-card {
        width: 100%;
        max-width: 100%;
    }
    
    .pricing-card.featured {
        transform: scale(1);
        order: -1;
        margin-bottom: 20px;
    }
    
    .pricing-card.featured:hover {
        transform: scale(1) translateY(-10px);
    }
}

/* Requirements Section */
.requirements {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    text-align: center;
}

.requirements-header {
    margin-bottom: 40px;
}

.requirements-header h2 {
    font-size: 34px;
    color: var(--primary-color, #003253);
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.requirements-header p {
    font-size: 18px;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

.requirements-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.requirement-item {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 50, 83, 0.1);
    padding: 25px;
    display: flex;
    align-items: flex-start;
    text-align: right;
    transition: all 0.3s ease;
}

.requirement-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 50, 83, 0.15);
}

.requirement-icon {
    background-color: rgba(0, 50, 83, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 20px;
    flex-shrink: 0;
}

.requirement-icon i {
    font-size: 24px;
    color: var(--primary-color, #003253);
}

.requirement-content {
    flex-grow: 1;
}

.requirement-content h3 {
    font-size: 18px;
    color: var(--primary-color, #003253);
    margin-bottom: 10px;
}

.requirement-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Responsive for Requirements Section */
@media (max-width: 768px) {
    .requirements-list {
        grid-template-columns: 1fr;
    }
    
    .requirement-item {
        padding: 15px;
    }
    
    .requirement-icon {
        width: 50px;
        height: 50px;
        margin-left: 15px;
    }
    
    .requirement-icon i {
        font-size: 20px;
    }
    
    .requirement-content h3 {
        font-size: 16px;
    }
    
    .requirement-content p {
        font-size: 13px;
    }
}

.required-docs {
    padding: 5px 0 15px;
}

.docs-intro {
    color: #555;
    font-size: 15px;
    margin-bottom: 15px;
    text-align: center;
    line-height: 1.5;
}

.required-docs-list {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
}

.required-docs-list li {
    background-color: #f8f9fa;
    border-right: 4px solid var(--primary-color, #003253);
    padding: 12px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    text-align: right;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.required-docs-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #f0f4f8;
}

.required-docs-list li i {
    font-size: 22px;
    color: var(--primary-color, #003253);
    margin-left: 12px;
    background: rgba(0, 50, 83, 0.08);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.help-prompt {
    background-color: #f0f4f8;
    border-radius: 10px;
    padding: 15px 20px;
    margin-top: 10px;
    border: 1px solid #e0e7ef;
}

.help-prompt p {
    font-size: 16px;
    font-weight: 600;
    color: #003253;
    margin-bottom: 15px;
}

.help-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.help-button {
    background-color: #e0e7ef;
    color: #003253;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
    min-width: 160px;
}

.help-button:hover {
    background-color: #d0dbe6;
    transform: translateY(-2px);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
}

.help-buttons .next-button {
    background-color: #F5A623;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
    min-width: 160px;
}

.help-buttons .next-button:hover {
    background-color: #e09620;
    transform: translateY(-2px);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments for required docs */
@media (max-width: 768px) {
    .required-docs-list {
        grid-template-columns: 1fr;
    }
    
    .help-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .help-button, .help-buttons .next-button {
        width: 100%;
    }
}

/* Mobile Sidebar Navigation */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background-color: #003253;
    z-index: 9999;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    padding: 20px;
}

.mobile-sidebar.active {
    right: 0;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.mobile-sidebar-logo {
    display: flex;
    align-items: center;
}

.mobile-sidebar-logo h1 {
    font-size: 1.5rem;
    color: #FFFFFF;
    margin: 0;
    margin-right: 10px;
}

.close-sidebar {
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 24px;
    cursor: pointer;
}

.mobile-sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-sidebar-nav ul li {
    margin-bottom: 15px;
}

.mobile-sidebar-nav ul li a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 18px;
    display: block;
    padding: 10px 0;
    transition: color 0.3s;
}

.mobile-sidebar-nav ul li a:hover {
    color: #F5A623;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 24px;
    cursor: pointer;
}

body.sidebar-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
}

/* Responsive design improvements */
@media (max-width: 992px) {
    .desktop-nav {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .nav-container {
        flex-direction: row-reverse;
    }
    
    .hero {
        padding: 80px 20px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .features-grid, 
    .services-grid, 
    .licenses-grid, 
    .articles-grid {
        gap: 15px;
    }
    
    .steps-list {
        gap: 20px;
    }
    
    .pricing-cards {
        gap: 20px;
    }
    
    .requirements-list {
        gap: 20px;
    }
    
    .popup {
        width: 95%;
        max-width: 95%;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    header {
        position: static;
        width: 100%;
        z-index: 1000;
        background-color: #003253;
    }

    .nav-container {
        padding: 10px 15px;
        justify-content: space-between;
        align-items: center;
        display: flex;
        flex-direction: row;
    }
    
    .logo {
        display: flex !important;
        align-items: center;
    }
    
    .logo a {
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
    
    .logo img {
        height: 60px;
        margin-left: 10px;
    }
    
    .logo h1 {
        font-size: 1.2rem;
        margin: 0;
        display: block;
    }
    
    .logo a div {
        display: none;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: #FFFFFF;
        font-size: 24px;
        padding: 10px;
        cursor: pointer;
    }

    .hero {
        margin-top: 0;
        padding-top: 20px;
    }

    .container, .section, .hero {
        max-width: 100vw;
        overflow-x: hidden;
    }

    .steps-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 15px;
    }

    .step-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        max-width: 300px;
    }

    .step-number {
        margin: 0 auto 15px auto;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 22px;
    }
    
    .feature-card, 
    .service-card, 
    .license-card, 
    .article-card {
        min-width: 100%;
    }
    
    .pricing-card {
        margin-bottom: 20px;
    }
    
    .step-item {
        padding: 15px 10px;
    }
    
    .required-docs-list li {
        flex-direction: row;
        text-align: right;
    }
    
    .help-buttons {
        flex-direction: column;
    }
    
    .help-button, 
    .next-button {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Prevent body scrolling when sidebar is open */
body.sidebar-open {
    overflow: hidden;
}

/* Prevent horizontal scroll on all screen sizes */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}