@import url("https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&family=Outfit:wght@100..900&display=swap");

/* ========================= Css Variables Start ======================== */
:root {
    /* Font Family */
    --heading-font: "Outfit", sans-serif;
    --body-font: "Lexend", sans-serif;
    
    /* Theme Colors */
    --white: #ffffff;
    --body-color: #1a1a1a;
    --body-bg: #f8fafc;
    --heading-color: #1a1a1a;
    --black: #000000;
    --border-color: #e5e7eb;
    --section-bg: #ffffff;
    --btn-color: #ffffff;
}

/* ========================= Css Variables End =========================== */

/* ========================= Base Styles Start =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    color: var(--body-color);
    background-color: var(--body-bg);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--heading-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 3rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

@media screen and (max-width: 991px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2.1875rem; }
    h3 { font-size: 1.4375rem; }
    h4 { font-size: 1.1875rem; }
    h5 { font-size: 1.0625rem; }
    h6 { font-size: 0.875rem; }
}

p {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: #4b5563;
}

a {
    text-decoration: none;
    transition: 0.2s linear;
}

/* ========================= Base Styles End =========================== */

/* ========================= Dynamic Color Utilities Start =========================== */
/* Base Color */
.bg-base { 
    background-color: hsl(var(--base-h), var(--base-s), var(--base-l)) !important; 
}
.text-base { 
    color: hsl(var(--base-h), var(--base-s), var(--base-l)) !important; 
}
.border-base { 
    border-color: hsl(var(--base-h), var(--base-s), var(--base-l)) !important; 
}

/* Base Color - Darker Variations */
.bg-base-d-100 { 
    background-color: hsl(var(--base-h), var(--base-s), calc(var(--base-l) * 0.9)) !important; 
}
.bg-base-d-200 { 
    background-color: hsl(var(--base-h), var(--base-s), calc(var(--base-l) * 0.8)) !important; 
}
.bg-base-d-300 { 
    background-color: hsl(var(--base-h), var(--base-s), calc(var(--base-l) * 0.7)) !important; 
}
.bg-base-d-400 { 
    background-color: hsl(var(--base-h), var(--base-s), calc(var(--base-l) * 0.6)) !important; 
}
.bg-base-d-500 { 
    background-color: hsl(var(--base-h), var(--base-s), calc(var(--base-l) * 0.5)) !important; 
}

.text-base-d-100 { 
    color: hsl(var(--base-h), var(--base-s), calc(var(--base-l) * 0.9)) !important; 
}
.text-base-d-200 { 
    color: hsl(var(--base-h), var(--base-s), calc(var(--base-l) * 0.8)) !important; 
}
.text-base-d-300 { 
    color: hsl(var(--base-h), var(--base-s), calc(var(--base-l) * 0.7)) !important; 
}

/* Base Color - Lighter Variations */
.bg-base-l-100 { 
    background-color: hsl(var(--base-h), var(--base-s), calc(var(--base-l) + (100% - var(--base-l)) * 0.1)) !important; 
}
.bg-base-l-200 { 
    background-color: hsl(var(--base-h), var(--base-s), calc(var(--base-l) + (100% - var(--base-l)) * 0.2)) !important; 
}
.bg-base-l-300 { 
    background-color: hsl(var(--base-h), var(--base-s), calc(var(--base-l) + (100% - var(--base-l)) * 0.3)) !important; 
}

.text-base-l-100 { 
    color: hsl(var(--base-h), var(--base-s), calc(var(--base-l) + (100% - var(--base-l)) * 0.1)) !important; 
}
.text-base-l-200 { 
    color: hsl(var(--base-h), var(--base-s), calc(var(--base-l) + (100% - var(--base-l)) * 0.2)) !important; 
}
.text-base-l-300 { 
    color: hsl(var(--base-h), var(--base-s), calc(var(--base-l) + (100% - var(--base-l)) * 0.3)) !important; 
}

/* Hover States */
.hover\:bg-base:hover { 
    background-color: hsl(var(--base-h), var(--base-s), var(--base-l)) !important; 
}
.hover\:text-base:hover { 
    color: hsl(var(--base-h), var(--base-s), var(--base-l)) !important; 
}
.hover\:border-base:hover { 
    border-color: hsl(var(--base-h), var(--base-s), var(--base-l)) !important; 
}

.hover\:bg-base-d-200:hover { 
    background-color: hsl(var(--base-h), var(--base-s), calc(var(--base-l) * 0.8)) !important; 
}
.hover\:text-base-l-100:hover { 
    color: hsl(var(--base-h), var(--base-s), calc(var(--base-l) + (100% - var(--base-l)) * 0.1)) !important; 
}

/* Focus States */
.focus\:border-base:focus {
    border-color: hsl(var(--base-h), var(--base-s), var(--base-l)) !important;
    outline: none;
    box-shadow: 0 0 0 2px hsl(var(--base-h), var(--base-s), var(--base-l), 0.2);
}
/* ========================= Dynamic Color Utilities End =========================== */

/* ========================= Utility Classes Start =========================== */
/* Display Flex Utilities */
.flex-wrap {
    display: flex;
    flex-wrap: wrap;
}

.flex-align {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.flex-center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.flex-between {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

/* Custom font classes */
.font-secondary {
    font-family: 'SolaimanLipi', 'Inter', sans-serif;
}

/* Alert Styles */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Ticket Status Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
}

.badge--success {
    background-color: #10b981;
    color: white;
}

.badge--primary {
    background-color: #3b82f6;
    color: white;
}

.badge--warning {
    background-color: #f59e0b;
    color: white;
}

.badge--dark {
    background-color: #6b7280;
    color: white;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
}

.modal.show {
    display: block;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 1.75rem auto;
    max-width: 500px;
}

.modal-content {
    position: relative;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.close {
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
}

.close:hover {
    color: #374151;
}

/* Ticket Message Styles */
.whitespace-pre-line {
    white-space: pre-line;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .flex.gap-4 {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ========================= FAQ 2-Column Styles =========================== */
.faq-question {
    transition: all 0.3s ease;
}

.faq-question:hover {
    transform: translateY(-1px);
}

.faq-answer {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Grid layout improvements */
.faq-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .faq-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* FAQ item styling */
.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    break-inside: avoid;
}

.faq-item:hover {
    border-color: hsl(var(--base-h), var(--base-s), var(--base-l));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Ensure proper spacing in 2-column layout */
.faq-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
/* Blog Styles */
.prose {
    color: #374151;
    line-height: 1.75;
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
    color: #111827;
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 1em;
}

.prose p {
    margin-bottom: 1.5em;
}

.prose ul, .prose ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.prose li {
    margin-bottom: 0.5em;
}

.prose blockquote {
    border-left: 4px solid hsl(var(--base-h), var(--base-s), var(--base-l));
    padding-left: 1.5em;
    margin: 2em 0;
    font-style: italic;
    color: #6b7280;
}

/* Sticky sidebar */
.sticky {
    position: sticky;
}

/* Blog image hover effects */
.hover-shadow-lg:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Social share buttons */
.social-share-btn {
    transition: all 0.3s ease;
}

.social-share-btn:hover {
    transform: translateY(-2px);
}