/* 
* Immigration Services Center - Custom CSS
* Colors:
* Primary: #003875 (navy blue)
* Secondary: #E63946 (red)
* Accent: #457B9D (medium blue)
* Background: #F1FAEE (off-white)
* Text: #1D3557 (dark blue)
*/

/* Base Styles */
:root {
    --primary: #003875;
    --secondary: #E63946;
    --accent: #457B9D;
    --background: #F1FAEE;
    --text: #1D3557;
    --light: #ffffff;
    --dark: #000000;
    --gray: #6c757d;
    --light-gray: #f8f9fa;
    --spacing: 24px;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    background-color: var(--light);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--text);
}

.lead {
    font-weight: 400;
}

/* Bootstrap Overrides */
.bg-primary {
    background-color: var(--primary) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

.bg-accent {
    background-color: var(--accent) !important;
}

.bg-light {
    background-color: var(--background) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.text-accent {
    color: var(--accent) !important;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #002c5c;
    border-color: #002c5c;
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
    background-color: #d52b38;
    border-color: #d52b38;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Navbar */
.navbar {
    padding: var(--spacing) 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    padding: 0.5rem 1rem;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: #ffffff;
}

.navbar-dark .navbar-nav .nav-link.active {
    color: #ffffff;
    border-bottom: 2px solid #ffffff;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 0.25rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--background);
    color: var(--primary);
}

/* Hero Section */
.hero-section {
    padding-top: 100px;
    padding-bottom: 100px;
    position: relative;
}

/* Cards */
.card {
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: var(--spacing);
}

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

.service-card {
    height: 100%;
}

.service-card .icon-box {
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    background-color: var(--text);
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover,
.footer-link:focus {
    color: #ffffff;
    text-decoration: none;
}

.social-icon {
    color: #ffffff;
    font-size: 1.25rem;
    transition: opacity 0.3s ease;
}

.social-icon:hover,
.social-icon:focus {
    opacity: 0.8;
    color: #ffffff;
}

/* Contact Form */
.contact-form label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-form .form-control {
    border: 1px solid #ced4da;
    padding: 0.75rem;
    border-radius: 0.25rem;
}

.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(0, 56, 117, 0.25);
}

/* Timeline */
.timeline-icon {
    position: relative;
}

.timeline-icon:after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--primary);
    top: 40px;
    bottom: -40px;
    left: 50%;
    margin-left: -1px;
}

.timeline .row:last-child .timeline-icon:after {
    display: none;
}

/* Resources and Checklist */
.resource-item {
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    margin-bottom: 30px;
}

.checklist-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.checklist-item:last-child {
    border-bottom: none;
}

/* Testimonials */
.testimonial-card {
    border-radius: 8px;
    overflow: hidden;
}

.testimonial-card .card-body {
    position: relative;
}

.testimonial-card .card-body:before {
    content: '\201C';
    font-family: Georgia, serif;
    font-size: 5rem;
    position: absolute;
    top: -20px;
    left: 10px;
    color: rgba(0, 56, 117, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .timeline-icon:after {
        left: 20px;
    }

    h1, .h1 {
        font-size: 2rem;
    }

    h2, .h2 {
        font-size: 1.75rem;
    }

    .lead {
        font-size: 1rem;
    }
}

/* FAQ Accordion */
.accordion-button:not(.collapsed) {
    background-color: rgba(0, 56, 117, 0.1);
    color: var(--primary);
}

.accordion-button:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(0, 56, 117, 0.25);
}

/* Call to Action Section */
.cta-section {
    background-color: var(--primary);
    color: #ffffff;
    padding: 80px 0;
}

/* Animation */
.fade-in {
    animation: fadeIn ease 1s;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Image Styles */
.img-shadow {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.custom-badge {
    background-color: var(--accent);
    color: white;
    padding: 0.5em 1em;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Alert Styling */
.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}



.marquee {
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right,
            transparent 0%,
            black 10%,
            black 90%,
            transparent 100%);
    mask-image: linear-gradient(to right,
            transparent 0%,
            black 10%,
            black 90%,
            transparent 100%);
}

.marquee__inner {
    display: flex;
    animation: marquee 25s linear infinite;
    gap: 1rem;
    /* prevent shrinking so animation works nicely */
    flex-shrink: 0;
}

.marquee__group {
    display: flex;
    gap: 1rem;
}

/* Make each card a fixed or minimum width to fit horizontally */
.marquee__group>div {
    flex: 0 0 auto;
    /* do not shrink, fixed width */
    width: 300px;
    /* You can adjust this */
}

/* Responsive tweak: smaller cards on smaller screens */
@media (max-width: 768px) {
    .marquee__group>div {
        width: 240px;
    }
}

@media (max-width: 480px) {
    .marquee__group>div {
        width: 300px;
    }
}

/* The marquee animation */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}