/* Import Tajawal font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;700&display=swap');

body {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.8;
    background-color: #f8f9fa; /* Light background for the whole page */
    color: #343a40; /* Darker text color */
    direction: rtl; /* Right-to-left for Arabic */
    text-align: right; /* Align text to the right */
}

/* Header styles */
header {
    background-color: #2c3e50 !important; /* Dark blue from previous design */
    color: #fff;
    padding: 2.5rem 0; /* More padding */
}

header h1 {
    font-weight: 700; /* Bold Tajawal */
    font-size: 2.8rem;
}

header p.lead {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Card animations for phases and specializations */
.phase-card, .specialization-card, .tool-card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    height: 100%;
    border-radius: 0.75rem; /* Slightly rounded corners */
    overflow: hidden; /* Ensures shadow doesn't get cut */
    border: none; /* Remove default bootstrap border */
}

.phase-card:hover, .specialization-card:hover, .tool-card:hover {
    transform: translateY(-8px); /* Lift effect */
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.15) !important; /* Stronger shadow */
}

.phase-card .card-body {
    padding: 1.5rem;
}

.phase-card .card-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* Specific colors for phase cards */
.phase-card .text-success { color: #28a745 !important; }
.phase-card .btn-outline-success { border-color: #28a745; color: #28a745; }
.phase-card .btn-outline-success:hover { background-color: #28a745; color: #fff; }

.phase-card .text-warning { color: #ffc107 !important; }
.phase-card .btn-outline-warning { border-color: #ffc107; color: #ffc107; }
.phase-card .btn-outline-warning:hover { background-color: #ffc107; color: #fff; }

.phase-card .text-danger { color: #dc3545 !important; }
.phase-card .btn-outline-danger { border-color: #dc3545; color: #dc3545; }
.phase-card .btn-outline-danger:hover { background-color: #dc3545; color: #fff; }

/* Specialization card styles */
.specialization-card .card-body {
    padding: 1.5rem;
}
.specialization-card .card-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* General section headings */
h2, h3, h4, h5, h6 {
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
}

h2 {
    color: #2c3e50; /* Dark blue for main headings */
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #e74c3c; /* Red accent */
    display: inline-block; /* Make border span only text */
    margin-bottom: 2rem;
}

/* Navbar styles from pentesting.html snippet */
.navbar {
    background-color: #34495e !important; /* Darker blue */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}
.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.75);
    padding: 0.5rem 1rem;
    border-radius: 0.3rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #fff;
    background-color: #e74c3c; /* Red hover/active */
}

/* Specific styles for pentesting.html */
.tool-card {
    border-left: 4px solid #3498db; /* Blue accent bar */
}

.phase-badge {
    font-size: 0.85rem;
    padding: 0.4em 0.8em;
    border-radius: 0.3em;
}

/* Footer styles */
footer {
    background-color: #2c3e50 !important;
    color: #fff;
}

footer a {
    color: #a9d4ff; /* Lighter blue for footer links */
    text-decoration: none;
}

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

/* General improvements */
.container {
    max-width: 1100px; /* Slightly wider container */
}

/* Alerts for notes and tips */
.alert {
    border-radius: 0.5rem;
    font-size: 0.95rem;
}

/* Tables */
.table {
    border-radius: 0.5rem;
    overflow: hidden; /* To ensure rounded corners on table */
}
.table thead {
    background-color: #e9ecef;
}
.table th, .table td {
    padding: 0.8rem;
}

/* Accordion for resources */
.accordion-item {
    border: 1px solid rgba(0,0,0,.125);
    margin-bottom: 1rem;
    border-radius: 0.5rem;
}
.accordion-button {
    font-weight: 700;
    color: #495057;
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0,0,0,.125);
    border-radius: 0.5rem 0.5rem 0 0 !important;
}
.accordion-button:not(.collapsed) {
    color: #0d6efd;
    background-color: #e7f1ff;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}
.accordion-body ul {
    list-style: none;
    padding: 0;
}
.accordion-body ul li {
    margin-bottom: 0.5rem;
}

/* RTL specific adjustments */
.list-group-numbered {
    padding-right: 0; /* Remove default padding for ordered lists */
}
.list-group-numbered li::before {
    margin-left: 1rem; /* Space between number and text */
    margin-right: 0;
}
/* styles.css */
body {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.6;
    background-color: #f0f2f5; /* Light grey background */
    color: #333;
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
    padding-top: 56px; /* Adjust based on navbar height */
}

.navbar {
    border-bottom: 3px solid #007bff; /* Primary color border */
    font-size: 1.05rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #ffffff !important;
}

.nav-link {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8) !important;
    padding-left: 1rem;
    padding-right: 1rem;
}

.nav-link.active,
.nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.25rem;
}

.dropdown-menu-dark {
    background-color: #343a40; /* Dark background for dropdown */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.8);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #007bff; /* Primary color on hover */
    color: #ffffff;
}

header {
    background: linear-gradient(135deg, #007bff, #0056b3); /* Gradient background */
    color: #ffffff;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

h1, h2, h3, h4 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.text-success {
    color: #28a745 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-primary {
    color: #007bff !important;
}

.text-secondary {
    color: #6c757d !important;
}

.card {
    border: 1px solid #e0e0e0;
    border-radius: 0.75rem;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
}

.phase-card .card-title, .specialization-card .card-title {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

.phase-card .card-text, .specialization-card .card-text {
    font-size: 0.95rem;
    color: #555;
}

.btn-outline-success, .btn-outline-warning, .btn-outline-danger, .btn-primary {
    border-width: 2px;
    font-weight: 700;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.alert-warning {
    background-color: #fff3cd;
    border-left: 5px solid #ffc107;
    color: #856404;
    padding: 1rem;
}

.alert-warning .bi {
    color: #ffc107;
}

#notes ul li {
    margin-bottom: 1rem;
    padding-right: 0; /* Remove default padding for lists */
}

#notes ul li .bi {
    font-size: 1.2rem;
    vertical-align: middle;
    margin-left: 0.5rem; /* Space between icon and text */
}

.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #007bff;
    color: white;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
}

/* Animations from Animate.css */
@import url('https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css');

.animate__animated {
    visibility: visible !important; /* Ensure animations are visible */
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .navbar-collapse {
        text-align: center;
    }
    .navbar-nav {
        margin-top: 1rem;
    }
    .nav-item {
        margin-bottom: 0.5rem;
    }
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}
