/* Body Background */
body {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb, #e8f0fe);
    background-size: 300% 300%;
    animation: bgFlow 12s ease infinite;
    font-family: "Segoe UI", Tahoma, sans-serif;
    color: #1a237e;
    line-height: 1.6;
    direction: rtl;
}
@keyframes bgFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Navbar */
.navbar {
    background: linear-gradient(90deg, #1565c0, #0d47a1);
    padding: 12px 18px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    border-bottom: 3px solid #42a5f5;
}
.navbar-brand, .nav-link {
    color: #fff !important;
    transition: 0.3s;
}
.nav-link.active, .nav-link:hover {
    font-weight: bold;
    text-decoration: underline;
}

/* Section Card */
.section-card {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 35px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    border: 1px solid rgba(21,101,192,0.08);
}
.section-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(13,71,161,0.2);
}

/* Alerts */
.alert {
    border-radius: 12px;
    font-size: 1rem;
    background: linear-gradient(90deg, #e3f2fd, #bbdefb);
    font-weight: 500;
    border-left: 6px solid #1565c0;
    color: #0d47a1;
    padding: 15px;
}

/* Custom Buttons */
.btn-custom {
    display: inline-block;
    margin: 8px 5px;
    padding: 12px 22px;
    border-radius: 12px;
    background: linear-gradient(90deg, #1565c0, #0d47a1);
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(21,101,192,0.3);
    transition: all 0.3s ease-in-out;
}
.btn-custom:hover {
    background: linear-gradient(90deg, #0d47a1, #08306b);
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(13,71,161,0.4);
}

/* Video */
.ratio video, video {
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 2px solid #1565c0;
}
video:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(21,101,192,0.3);
}

/* Headings */
h2 {
    border-bottom: 3px solid #1565c0;
    padding-bottom: 8px;
    margin-bottom: 25px;
    font-weight: bold;
    font-size: 1.8rem;
    color: #0d47a1;
    letter-spacing: 0.5px;
}


/* Code Blocks */
pre {
    background: #f5faff;
    padding: 12px;
    border-radius: 12px;
    overflow-x: auto;
    font-size: 0.95rem;
    border: 1px solid #90caf9;
    color: #0d47a1;
}
