@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #4f46e5;
    /* Indigo 600 */
    --primary-light: #818cf8;
    /* Indigo 400 */
    --secondary-color: #ec4899;
    /* Pink 500 */
    --dark-bg: #0f172a;
    /* Slate 900 */
    --light-bg: #f8fafc;
    /* Slate 50 */
    --text-main: #1e293b;
    /* Slate 800 */
    --text-muted: #64748b;
    /* Slate 500 */
    --card-bg: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 12px;
}

/* === Global Resets & Typography === */
body {
    font-family: 'Outfit', sans-serif !important;
    background-color: var(--light-bg);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
    /* Base font size */
}

h1,
h2,
h3,
h4,
h5,
h6,
.title {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

a {
    transition: all 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* === Hero/Header Section === */
.page-header {
    position: relative;
    /* On mobile, reduce height */
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header-image {
    filter: brightness(0.6);
}

.page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(79, 70, 229, 0.4) 100%);
    z-index: 1;
}

.page-header .content-center {
    z-index: 2;
    position: relative;
    width: 100%;
    padding: 0 1rem;
    /* Padding for mobile edges */
}

.page-header .title {
    /* Responsive font size using clamp */
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 1rem;
    background: linear-gradient(to right, #ffffff 0%, #c7d2fe 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-header .description {
    font-size: clamp(1rem, 3vw, 1.4rem);
    max-width: 800px;
    margin: 0 auto;
    color: #e2e8f0 !important;
}

/* === Sections & Spacing === */
.section {
    padding: 60px 0;
}

.section-about-us {
    padding: 0 !important;
    background: transparent;
}

/* === Titles in Content === */
h2.title {
    color: var(--text-main);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    /* Responsive H2 */
}

.text-center h2.title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

p.description {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

/* === Cards / Modules (Grid) === */
/* Reset col behavior for mobile first if needed, but Bootstrap handles col-md-6 */
.row .col-md-6 {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
    /* Space between stacked cards on mobile */
}

/* Ensure margins on mobile when stacked */
@media (max-width: 768px) {
    .row .col-md-6 {
        margin-bottom: 1.5rem;
    }
}

.row .col-md-6:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(79, 70, 229, 0.2);
}

.row .col-md-6 h3 a {
    color: var(--text-main) !important;
    text-decoration: none;
    font-weight: 700;
}

.row .col-md-6:hover h3 a {
    color: var(--primary-color) !important;
}

.row .col-md-6 p a {
    color: var(--primary-color) !important;
    text-decoration: none;
    font-weight: 600;
    position: relative;
}

.row .col-md-6 p a::after {
    content: ' →';
    transition: margin-left 0.2s;
}

.row .col-md-6 p a:hover::after {
    margin-left: 5px;
}

/* === Tables === */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    margin-top: 2rem;
}

.table {
    margin-bottom: 0;
    background: white;
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
}

.table thead th {
    background-color: var(--primary-color);
    color: white;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    padding: 1rem;
    border: none;
    white-space: nowrap;
    /* Keep headers on one line if possible */
}

.table td {
    padding: 1rem;
    color: var(--text-muted);
    border-color: #f1f5f9;
    vertical-align: middle;
}

/* === FAQ Section === */
.faq-section .card-plain {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.faq-section .card-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    /* Align Q icon to top of text */
    font-size: 1.1rem;
    line-height: 1.4;
}

.faq-section .card-title::before {
    content: 'Q';
    flex-shrink: 0;
    /* Prevent icon shrinking */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
    border-radius: 6px;
    margin-right: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 2px;
    /* Visual alignment with text */
}

/* === Footer === */
.footer {
    background-color: var(--dark-bg);
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .copyright {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* === Utility === */
.separator-primary {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    opacity: 0.2;
    margin: 3rem auto;
}

/* === Breadcrumb === */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    /* Allow wrapping on small screens */
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "/";
    padding: 0 0.5rem;
    color: #cbd5e1;
}

/* === Lists (Subcategories / Navigation) === */
.subcategories ul,
.text-left ul {
    padding-left: 0;
}

.subcategories li,
.text-left li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    border-left: 2px solid var(--primary-light);
    line-height: 1.4;
}

.subcategories li a,
.text-left li a {
    color: var(--text-main) !important;
    text-decoration: none;
    font-weight: 500;
}

.subcategories li a:hover,
.text-left li a:hover {
    color: var(--primary-color) !important;
    padding-left: 5px;
    transition: padding-left 0.2s;
}

/* === Navigation/Action Buttons === */
/* Container for the Action area */
.action-buttons-container {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    /* Subtle separator */
}

.action-buttons-container h3 {
    margin-bottom: 2rem;
    text-align: center;
}

/* Primary "Next Step" Button */
.btn-action-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white !important;
    border: none;
    font-weight: 600;
    padding: 16px 24px;
    border-radius: 50px;
    /* Pill shape */
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    margin-bottom: 10px;
}

.btn-action-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
    color: white !important;
}

.btn-action-primary .btn-icon {
    font-size: 1.2em;
    transition: transform 0.2s;
}

.btn-action-primary:hover .btn-icon {
    transform: translateX(4px);
}

/* Secondary "Menu/Home" Buttons */
.btn-action-secondary {
    background: white;
    color: var(--text-muted) !important;
    border: 2px solid #e2e8f0;
    font-weight: 500;
    padding: 16px 24px;
    border-radius: 50px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    margin-bottom: 10px;
}

.btn-action-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color) !important;
    background: #f8fafc;
}

/* === MEDIA QUERIES (Mobile Overrides) === */
@media screen and (max-width: 768px) {

    /* Container padding */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Section vertical spacing */
    .section {
        padding: 40px 0;
    }

    /* Reduce Hero Height */
    .page-header {
        min-height: 45vh;
    }

    .page-header .title {
        font-size: 2.5rem;
    }

    /* Reset H2 size */
    h2.title {
        font-size: 1.8rem;
        text-align: center;
        /* Center titles on mobile usually looks better */
    }

    .text-center h2.title::after {
        margin: 10px auto 0;
    }

    /* Stack flex elements if any explicitly set */
    .row {
        margin-right: 0;
        margin-left: 0;
    }

    .col-md-10,
    .col-md-6,
    .col-md-4 {
        padding-right: 0;
        padding-left: 0;
    }

    /* Adjust cards spacing */
    .row .col-md-6 {
        margin-top: 1rem;
        margin-bottom: 1rem;
        padding: 1.5rem;
    }

    /* Add spacing for col-md-4 navigation buttons on mobile */
    .col-md-4 {
        margin-bottom: 15px;
    }

    /* Table adjustments */
    .table thead th {
        font-size: 0.75rem;
        padding: 0.75rem;
    }

    .table td {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
}