:root {
    --primary-color: #0056b3;
    --secondary-color: #17a2b8;
    --accent-color: #ffc107;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    padding-top: 0 !important;
}

main {
    margin-top: 0 !important;
}

/* Hero section offset for navbar */
.hero-section {
    padding-top: 76px;
}

/*body:not(.home-page):not(.login-page) {
    padding-top: 76px !important;
}*/

/* Forms */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

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

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,.2);
}

/* Footer */
.footer {
    position: relative;
    bottom: 0;
    width: 100%;
}

.social-links a {
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color) !important;
}

/* Custom Components */
.section-title {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 150px 0;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.45) 100%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Service Cards */
.service-card {
    border: none;
    transition: transform 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
}

/* Why Choose Us */
.why-choose-us {
    background-color: var(--light-color);
    padding: 80px 0;
}

.feature-item {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonial-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 15px 0;
}

.testimonial-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

/* Blog Section */
.blog-card {
    border: none;
    transition: transform 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    height: 200px;
    object-fit: cover;
}

/* CTA Sections */
.cta-section {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 30px;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Resource Cards */
.resource-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh;
    }
    
    .service-card,
    .blog-card,
    .testimonial-card {
        margin-bottom: 20px;
    }
    
    .gallery-item img {
        height: 200px;
    }
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    color: white;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Utilities */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bg-overlay {
    position: relative;
}

.bg-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    border-radius: inherit;
}

/* Login Page Styles */
.login-card {
    border: none;
    transition: transform 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
}

.login-card .card-body {
    background: linear-gradient(to right bottom, var(--bs-white), var(--bs-light));
}

.login-icon {
    color: var(--bs-primary);
    opacity: 0.8;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.login-icon:hover {
    transform: scale(1.1);
    opacity: 1;
}

.login-input-group .input-group-text {
    border: none;
    background-color: rgba(var(--bs-primary-rgb), 0.1);
}

.login-input-group .form-control {
    border: none;
    border-left: none;
    background-color: var(--bs-light);
    padding-left: 5px;
}

.login-input-group .form-control:focus {
    box-shadow: none;
    background-color: var(--bs-white);
}

.login-btn {
    padding: 0.8rem 2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: linear-gradient(45deg, var(--bs-primary), var(--bs-primary-subtle));
    border: none;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--bs-primary-rgb), 0.3);
}

.login-link {
    color: var(--bs-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-link:hover {
    color: var(--bs-primary-dark);
    text-decoration: underline;
}

/* --- NAVBAR STYLES (merged from navbar.css) --- */
.navbar {
    transition: all 0.3s ease-in-out;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1030;
    background: transparent !important; /* Default transparent background */
}

body.login-page .navbar {
    background: #212529 !important;
}

.navbar-transparent {
    background: transparent !important;
}

.navbar-transparent .nav-link {
    color: #fff !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.navbar-transparent .navbar-brand {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.navbar-scrolled {
    background: #212529 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    transition: all 0.3s ease-in-out;
}

.navbar-scrolled .navbar-brand img {
    height: 35px;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease-in-out;
    color: #fff !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.dropdown-menu {
    background: rgba(33, 37, 41, 0.95);
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    color: #fff;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease-in-out;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(33, 37, 41, 0.95);
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 1rem;
    }
    .navbar-nav {
        padding: 0.5rem 0;
    }
    .nav-item {
        margin: 0.5rem 0;
    }
    .dropdown-menu {
        background: transparent;
        border: none;
        box-shadow: none;
        padding-left: 1rem;
    }
}

/* --- END NAVBAR STYLES --- */

/* Common Article Styles */
article {
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.8;
    color: #333;
}

article h2 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

article p {
    margin-bottom: 1.5rem;
}

article ul, article ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

article li {
    margin-bottom: 0.5rem;
}

/* Enhanced Card Styles */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Common Sticky Sidebar */
.sticky-top {
    position: sticky;
    top: 80px;
    z-index: 1020;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    padding-right: 15px;
}

.sticky-top::-webkit-scrollbar {
    width: 4px;
}

.sticky-top::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.sticky-top::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 2px;
}

.sticky-top::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Common Icon Styles */
.bi {
    font-size: 1.1em;
}

article h2 i {
    color: #0d6efd;
}

.text-center .bi {
    font-size: 1.5rem;
}

/* Common List Styles */
.list-unstyled li {
    margin-bottom: 0.75rem;
}

/* Common Table Styles */
.table th {
    background-color: #f8f9fa;
}

/* Common Badge Styles */
.badge {
    font-size: 0.9rem;
    padding: 0.5em 0.75em;
}

@keyframes gradientWave {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.service-card { background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); border-radius: 15px; padding: 1.5rem; height: 100%; transition: transform 0.3s ease; text-align: center; min-height: 200px; display: flex; flex-direction: column; justify-content: center; }
.service-card:hover { transform: translateY(-5px); background: rgba(255,255,255,0.15); }
.service-icon { width: 80px; height: 80px; border-radius: 50%; background: white; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.service-icon i { font-size: 2rem; color: #0d6efd; }
.contact-form { background: none !important; border: none !important; box-shadow: none !important; }
.why-card-hover { transition: transform 0.25s cubic-bezier(.4,2,.6,1), box-shadow 0.25s; }
.why-card-hover:hover { transform: translateY(-6px) scale(1.04); box-shadow: 0 8px 24px rgba(13,110,253,0.12); }
.why-card-anim { background-size: 200% 200%!important; animation: gradientWave 3s ease-in-out infinite; }
.why-card-anim-1 { animation-delay: 0s; }
.why-card-anim-2 { animation-delay: 0.5s; }
.why-card-anim-3 { animation-delay: 1s; }
.why-card-anim-4 { animation-delay: 1.5s; }

.hero-section-dark { position: relative; min-height: 90vh; background-repeat: no-repeat; background-size: cover; background-position: center; overflow: hidden; }
.hero-overlay-dark { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(30,34,45,0.82) 70%, rgba(30,34,45,0.7) 100%); z-index: 1; }
.hero-section-dark .container { position: relative; z-index: 2; }
.hero-content h1, .hero-content p { color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,0.25); }
.service-tile { display: flex; flex-direction: column; align-items: center; background: rgba(255,255,255,0.08); border-radius: 1.2rem; padding: 1.2rem 0.5rem; color: #fff; text-decoration: none; box-shadow: 0 2px 12px rgba(0,0,0,0.10); transition: background 0.2s, transform 0.2s, box-shadow 0.2s; min-width: 120px; min-height: 140px; margin-bottom: 0.5rem; }
.service-tile:hover { background: rgba(33,150,243,0.18); transform: translateY(-8px) scale(1.04); box-shadow: 0 8px 24px rgba(33,150,243,0.15); color: #fff; }
.service-icon { font-size: 2.5rem; margin-bottom: 0.5rem; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 0.5rem auto; }
.service-icon-blue { background: #2196F3; }
.service-icon-green { background: #43A047; }
.service-icon-yellow { background: #FFC107; color: #212121; }
.service-icon-pink { background: #E040FB; }
.service-title { font-weight: 600; font-size: 1.1rem; margin-top: 0.2rem; text-align: center; }
.contact-glass-card-dark { background: rgba(30,34,45,0.85); border-radius: 2rem; box-shadow: 0 8px 32px rgba(33,150,243,0.10), 0 1.5px 8px rgba(0,0,0,0.10); backdrop-filter: blur(8px); border: 1.5px solid rgba(33,150,243,0.08); }
.animate-fadein-up { opacity: 0; transform: translateY(40px); animation: fadeinUp 1s forwards; }
.animate-fadein-up[style*="animation-delay"] { animation-delay: inherit; }
@keyframes fadeinUp { to { opacity: 1; transform: none; } }
@media (max-width: 991.98px) { .hero-section-dark { min-height: 600px; padding-top: 2rem; padding-bottom: 2rem; } .contact-glass-card-dark { margin-top: 2rem; } }
.hero-section-dark .contact-form { background: none !important; border: none !important; box-shadow: none !important; padding: 0.5rem 0.5rem !important; }
.service-card-animated { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(.4,2,.6,1), transform 0.8s cubic-bezier(.4,2,.6,1); }
.service-card-animated.visible { opacity: 1; transform: none; }
.why-card-animated { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(.4,2,.6,1), transform 0.8s cubic-bezier(.4,2,.6,1); }
.why-card-animated.visible { opacity: 1; transform: none; }
.why-card-icon-spaced { margin-top: 1.5rem !important; }
@media (max-width: 991.98px) { .service-card, .why-card-hover { margin-bottom: 1.5rem; } .why-card-icon-spaced { margin-top: 1rem !important; } }
.service-card .service-features {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}
.service-card .service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}
.service-card .service-features i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}
.why-choose-us-parallax {
    position: relative;
    background-image: url('/images/why-choose-us-bg.jpg'); /* Update with your image path */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    z-index: 1;
}
.why-choose-us-parallax::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.85); /* White overlay for readability, adjust as needed */
    z-index: 2;
}
.why-choose-us-parallax > .container {
    position: relative;
    z-index: 3;
}
@media (max-width: 991.98px) {
    .why-choose-us-parallax {
        background-attachment: scroll;
    }
}

/* Hero Section for Contact and Privacy */
.contact-hero {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}
.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}
.contact-hero .container {
    position: relative;
    z-index: 1;
}

/* Success Stories Parallax Section */
.success-stories-section.parallax-section {
    position: relative;
    background-image: url('/images/success-stories-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    z-index: 1;
}
.success-stories-section .parallax-overlay {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(30,34,45,0.55); /* Dark overlay for readability */
    z-index: 2;
    pointer-events: none;
}
.success-stories-section > .container {
    position: relative;
    z-index: 3;
}
@media (max-width: 991.98px) {
    .success-stories-section.parallax-section {
        background-attachment: scroll;
    }
}
.success-stories-section .story-card {
    background: rgba(255,255,255,0.90);
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(52, 58, 64, 0.10);
    transition: box-shadow 0.3s, transform 0.3s;
    padding: 2rem;
}
.success-stories-section .story-card:hover {
    box-shadow: 0 8px 32px rgba(52, 58, 64, 0.15);
    transform: translateY(-4px) scale(1.02);
}
.success-stories-section .story-image-placeholder {
    background: linear-gradient(120deg, #6a82fb 0%, #fc5c7d 100%);
    color: #fff;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
    border-radius: 1.5rem;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(52, 58, 64, 0.10);
}
/* Animations for Success Stories */
.success-stories-section .animate-fadein-up {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeinUp 1s forwards;
}
.success-stories-section .animate-slidein-left {
    opacity: 0;
    transform: translateX(-60px);
    animation: slideinLeft 1s forwards;
}
.success-stories-section .animate-slidein-right {
    opacity: 0;
    transform: translateX(60px);
    animation: slideinRight 1s forwards;
}
@keyframes slideinLeft {
    to {
        opacity: 1;
        transform: none;
    }
}
@keyframes slideinRight {
    to {
        opacity: 1;
        transform: none;
    }
}

/* Expat Guide & Insights Hero Section Styles */
.expat-guide-hero {
    background: linear-gradient(120deg, #60a5fa 0%, #7dd3fc 50%, #c4b5fd 100%);
    padding: 100px 0 80px;
    margin-bottom: 2rem;
}
.expat-guide-hero .rounded-circle {
    box-shadow: 0 8px 32px rgba(49,130,206,0.12), 0 1.5px 8px rgba(30,41,59,0.08);
}
.expat-guide-hero .badge {
    font-size: 1rem;
    padding: 0.5em 1.2em;
    border-radius: 2em;
}
@media (max-width: 991.98px) {
    .expat-guide-hero {
        padding: 60px 0;
    }
}
@media (max-width: 767.98px) {
    .expat-guide-hero .rounded-circle {
        width: 220px !important;
        height: 220px !important;
    }
}

.newsletter-gradient {
    background: linear-gradient(120deg, #60a5fa 0%, #7dd3fc 50%, #c4b5fd 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px rgba(52, 58, 64, 0.10);
}