:root {
    --primary: #254485;
    --primary-dark: #254485;
    --secondary: #A72D25;
    --accent: #A72D25;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

/* Basic Elements Styling - Will come from database */
.db-content {
    margin-bottom: 30px;
}

.db-content * {
    margin-bottom: 30px;
    line-height: 2.2;
}

/* Headings h1 to h6 */
.db-content h1 {
    color: var(--primary);
    font-size: 2.2rem;
    font-weight: 700;
    margin: 30px 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--light-gray);
    position: relative;
    text-align: left;
}

.db-content h1:first-child {
    margin-top: 0;
}

.db-content h1::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0; /* Changed from right: 0 */
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--accent)); /* Changed direction */
    border-radius: 2px;
}

.db-content h2 {
    color: var(--primary-dark);
    font-size: 1.8rem;
    font-weight: 600;
    margin: 25px 0 15px 0;
    padding-left: 15px; /* Changed from padding-right */
    border-left: 4px solid var(--primary); /* Changed from border-right */
    text-align: left;
}

.db-content h3 {
    color: var(--secondary);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 20px 0 12px 0;
    text-align: left;
}

.db-content h4 {
    color: var(--dark);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 50px 0 10px 0;
    padding: 8px 15px;
    background-color: rgba(67, 97, 238, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--accent); /* Changed from border-right */
    text-align: left;
}

.db-content h5 {
    color: var(--dark);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 15px 10px;
    text-align: left;
}

.db-content h6 {
    color: var(--gray);
    font-size: 1rem;
    font-weight: 600;
    margin: 12px 0 8px 0;
    text-align: left;
}

/* Paragraphs */
.db-content p {
    margin-bottom: 16px;
    font-size: 1.05rem;
    line-height: 2.5;
    color: var(--dark);
    text-align: left;
}

.db-content p:last-child {
    margin-bottom: 0;
}

/* Links */
.db-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px dotted var(--primary);
    padding-bottom: 2px;
    transition: var(--transition);
}

.db-content a:hover {
    color: var(--secondary);
    border-bottom: 2px solid var(--secondary);
}

/* Lists */
.db-content ul, .db-content ol {
    margin: 20px 0;
    padding-left: 25px; /* Changed from padding-right */
    text-align: left;
}

.db-content ul {
    list-style-type: none;
}

.db-content ul li {
    padding: 12px 12px 12px 40px; /* Changed padding order */
    margin-bottom: 12px;
    background-color: var(--light);
    border-radius: 8px;
    border-left: 4px solid var(--primary); /* Changed from border-right */
    color: var(--dark);
    position: relative;
    transition: var(--transition);
    text-align: left;
}

.db-content ul li:hover {
    background-color: #f0f4ff;
    transform: translateX(5px); /* Changed direction */
}

.db-content ul li::before {
    content: "●";
    position: absolute;
    left: 20px; /* Changed from right: 20px */
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1.5rem;
}

.db-content ol {
    list-style-type: decimal;
    list-style-position: inside;
}

.db-content ol li {
    padding: 12px 15px;
    margin-bottom: 8px;
    background-color: rgba(67, 97, 238, 0.05);
    border-radius: 6px;
    counter-increment: item;
    text-align: left;
}

.db-content ol li::before {
    content: counter(item) ". ";
    color: var(--primary);
    font-weight: bold;
    margin-right: 8px; /* Changed from margin-left */
}

/* Bold and Italic Text */
.db-content strong, .db-content b {
    color: var(--primary-dark);
    font-weight: 900;
}

.db-content em, .db-content i {
    color: var(--secondary);
    font-style: italic;
}

/* Quotes */
.db-content blockquote {
    margin: 25px 0;
    padding: 20px 30px;
    background: linear-gradient(to left, rgba(67, 97, 238, 0.1), rgba(114, 9, 183, 0.1)); /* Changed direction */
    border-left: 5px solid var(--primary); /* Changed from border-right */
    border-radius: 8px;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: left;
}

.db-content blockquote::before {
    content: "\201C";
    font-size: 3rem;
    color: var(--primary);
    position: absolute;
    left: 20px; /* Changed from right: 20px */
    top: -10px;
}

/* Special Sections */
.highlight-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #eef2ff 100%);
    padding: 25px;
    border-radius: var(--border-radius);
    margin: 30px 0;
    border: 2px solid var(--light-gray);
    position: relative;
    overflow: hidden;
}

.highlight-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0; /* Changed from right: 0 */
    width: 8px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.cta-button {
    display: inline-block;
    background: linear-gradient(to right, var(--primary), var(--secondary)); /* Changed direction */
    color: white;
    padding: 16px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 20px 0;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.4);
    color: white;
}

.sample-link {
    display: inline-flex;
    align-items: center;
    background-color: var(--light);
    color: var(--primary);
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin: 15px 0;
    border: 2px solid var(--light-gray);
    transition: var(--transition);
}

.sample-link:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.sample-link i {
    margin-right: 8px; /* Changed from margin-left */
    font-size: 1.2rem;
}

.badge {
    display: inline-block;
    background: linear-gradient(to left, var(--accent), #ff4d8d); /* Changed direction */
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 10px; /* Changed from margin-right */
    vertical-align: middle;
}

/* Content in Rows and Columns */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-card {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--primary);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.feature-card h4 {
    margin-top: 0;
}

/* Images */
.db-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Tables */
.db-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.db-content th {
    background-color: var(--primary);
    color: white;
    padding: 15px;
    text-align: left; /* Changed from text-align: right */
    font-weight: 600;
}

.db-content td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--light-gray);
    text-align: left;
}

.db-content tr:nth-child(even) {
    background-color: rgba(67, 97, 238, 0.05);
}

.db-content tr:hover {
    background-color: rgba(67, 97, 238, 0.1);
}

/* Responsive Design for Small Screens */
@media (max-width: 768px) {
    .db-content {
        padding: 25px;
    }

    .db-content h1 {
        font-size: 1.8rem;
    }

    .db-content h2 {
        font-size: 1.5rem;
    }

    .db-content h3 {
        font-size: 1.3rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .db-content ul li {
        padding: 10px 35px 10px 50px; /* Adjusted padding */
    }
}

/* Modern Contact Section */
.contact-modern-section {
    padding: 80px 0;
}

.modern-contact-card {
    background: white;
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
}

.modern-contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.modern-contact-card .card-body {
    padding: 40px 30px;
}

/* Icons */
.modern-icon {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.modern-contact-card:hover .modern-icon {
    transform: scale(1.1);
}

.whatsapp-bg {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
}

.facebook-bg {
    background: linear-gradient(135deg, #1877F2, #0d5eb6);
    color: white;
}

.instagram-bg {
    background: linear-gradient(45deg, #E1306C, #C13584, #F77737);
    color: white;
}

/* Buttons */
.modern-btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 16px;
    min-width: 180px;
}

.modern-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-color: #128C7E;
    color: white;
}

.whatsapp-btn:hover {
    background: white;
    color: #25D366;
    border-color: #25D366;
}

.facebook-btn {
    background: linear-gradient(135deg, #1877F2, #0d5eb6);
    border-color: #0d5eb6;
    color: white;
}

.facebook-btn:hover {
    background: white;
    color: #1877F2;
    border-color: #1877F2;
}

.instagram-btn {
    background: linear-gradient(45deg, #E1306C, #C13584);
    border-color: #C13584;
    color: white;
}

.instagram-btn:hover {
    background: white;
    color: #E1306C;
    border-color: #E1306C;
}

/* Typography */
.contact-modern-section .section__title {
    color: #254485;
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.contact-modern-section .section__title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #254485, #A72D25);
    border-radius: 2px;
}

.contact-modern-section .lead {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.cat__title {
    color: #254485;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
    text-transform: capitalize;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-modern-section {
        padding: 50px 0;
    }

    .contact-modern-section .section__title {
        font-size: 2rem;
    }

    .modern-contact-card {
        margin-bottom: 30px;
    }

    .modern-contact-card .card-body {
        padding: 30px 20px;
    }

    .modern-icon {
        width: 80px;
        height: 80px;
    }

    .modern-btn {
        min-width: 160px;
        padding: 10px 25px;
    }
}

/* Animation for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-contact-card {
    animation: fadeInUp 0.6s ease forwards;
}

.modern-contact-card:nth-child(1) {
    animation-delay: 0.1s;
}

.modern-contact-card:nth-child(2) {
    animation-delay: 0.2s;
}

.modern-contact-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* Elegant Provider Cards */
.elegant-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #f0f0f0;
}

.elegant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 68, 133, 0.15);
    border-color: #254485;
}

/* Image Wrapper */
.image-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.elegant-card:hover .card-img {
    transform: scale(1.05);
}

/* Overlay */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(37, 68, 133, 0.9), transparent);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    transition: opacity 0.3s ease;
}

.elegant-card:hover .card-overlay {
    opacity: 1;
}

.overlay-btn {
    display: inline-flex;
    align-items: center;
    background: white;
    color: #254485;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.elegant-card:hover .overlay-btn {
    transform: translateY(0);
}

.overlay-btn i {
    margin-left: 8px; /* Changed from margin-right */
    font-size: 18px;
}

/* Card Body */
.card-body {
    padding: 20px;
    text-align: left;
}

.card-title {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.card-title a {
    color: #254485;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: #A72D25;
}

/* Rating */
.card-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    color: #ffc107;
}

.rating-text {
    color: #666;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .image-wrapper {
        height: 180px;
    }

    .card-body {
        padding: 15px;
    }

    .card-title {
        font-size: 1.2rem;
    }
}

/* Add these LTR-specific styles */
body {
    direction: ltr;
    text-align: left;
}

/* Fix float and alignment issues */
.float-left {
    float: left !important;
}

.float-right {
    float: right !important;
}

.text-start {
    text-align: left !important;
}

.text-end {
    text-align: right !important;
}

/* Adjust margins and paddings for LTR */
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }
.ms-1 { margin-left: 0.25rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.ms-3 { margin-left: 1rem !important; }

.pe-1 { padding-right: 0.25rem !important; }
.pe-2 { padding-right: 0.5rem !important; }
.pe-3 { padding-right: 1rem !important; }
.ps-1 { padding-left: 0.25rem !important; }
.ps-2 { padding-left: 0.5rem !important; }
.ps-3 { padding-left: 1rem !important; }

/* Adjust border directions */
.border-left { border-left: 1px solid #dee2e6 !important; border-right: none !important; }
.border-right { border-right: 1px solid #dee2e6 !important; border-left: none !important; }
.border-start { border-left: 1px solid #dee2e6 !important; border-right: none !important; }
.border-end { border-right: 1px solid #dee2e6 !important; border-left: none !important; }
