html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    margin-bottom: 60px;
    font-family: Cairo;
}

.brown-hover:hover {
    color: #753a18 !important;
    font-weight: bold;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #753a18 0%, #8B4513 100%);
    color: white;
    padding: 120px 0;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-btn {
    background-color: white;
    color: #753a18;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-btn:hover {
    background-color: #f8f9fa;
    color: #753a18;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* About Section */
.about-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.section-title {
    color: #753a18;
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 2.5rem;
}

.section-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 15px;
}

/* Image Container */
.image-container {
    position: relative;
    padding: 20px;
}

.about-illustration {
    width: 100%;
    height: auto;
    max-width: 500px;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.15));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background-color: white;
}

.feature-card {
    background: #f8f9fa;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    background: white;
    border-color: #753a18;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.feature-icon {
    color: #753a18;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: #753a18;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Partner Section */
.partner-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.partner-text {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.partner-link {
    text-decoration: none;
    transition: transform 0.3s ease;
    display: inline-block;
}

.partner-link:hover {
    transform: scale(1.05);
}

.partner-name {
    color: #753a18;
    font-weight: 700;
    font-size: 2rem;
    margin: 20px 0;
}

.btn-outline-primary {
    border-color: #753a18;
    color: #753a18;
}

.btn-outline-primary:hover {
    background-color: #753a18;
    border-color: #753a18;
    color: white;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #753a18 0%, #8B4513 100%);
    color: white;
    padding: 80px 0;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-section .btn-light {
    background-color: white;
    color: #753a18;
    border: none;
    padding: 15px 40px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.cta-section .btn-light:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn-brown {
    color: white;
    background-color: #753a18;
}

.btn-brown:hover {
    background-color: #5a2e0f;
    color: white;
}

.brown {
    color: #753a18;
}

.bg-light-brown {
    background-color: #f5f0ec;
}

.active-brown {
    background-color: #8B4513;
    color: white;
}

.active-brown:hover {
    background-color: #753a18;
    color: white;
}
/* RTL Support */
[dir="rtl"] .hero-title,
[dir="rtl"] .section-title {
    font-family: Cairo;
}

/* Laws Page Styles */
.law-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.law-card:hover {
    box-shadow: 0 15px 40px rgba(117, 58, 24, 0.15);
    border-color: #753a18;
}

.law-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.law-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.law-card:hover .law-card-img {
    transform: scale(1.1);
}

.law-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(117, 58, 24, 0.3) 100%);
    transition: background 0.3s ease;
}

.law-card:hover .law-overlay {
    background: linear-gradient(to bottom, transparent 0%, rgba(117, 58, 24, 0.5) 100%);
}

.law-card-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.law-number {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #753a18 0%, #8B4513 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    width: fit-content;
    box-shadow: 0 2px 10px rgba(117, 58, 24, 0.2);
}

.law-number i {
    font-size: 1rem;
}

.law-card-title {
    color: #753a18;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
    min-height: 60px;
}

.law-card-description {
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 0.95rem;
    flex-grow: 1;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #753a18 0%, #8B4513 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(117, 58, 24, 0.2);
}

.btn-read-more:hover {
    background: linear-gradient(135deg, #5a2e0f 0%, #753a18 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(117, 58, 24, 0.3);
}



/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 80px 0;
    }
    
    .about-illustration {
        max-width: 100%;
        margin-top: 30px;
    }

    .law-image-wrapper {
        height: 200px;
    }

    .law-card-body {
        padding: 20px;
    }

    .law-card-title {
        font-size: 1.1rem;
        min-height: auto;
    }
}

@media (max-width: 576px) {
    .law-card {
        margin-bottom: 20px;
    }

    .law-number {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}