:root {
    --primary: #1e3a8a;
    --secondary: #b45309;
    --primary-rgb: 30,58,138;
    --bg-body: #ffffff;
    --text-body: #1e293b;
    --card-bg: #ffffff;
    --card-border: rgba(0,0,0,0.08);
    --nav-bg: rgba(255,255,255,0.97);
    --font-body: 'roboto', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-body); background-color: var(--bg-body); color: var(--text-body); line-height: 1.9; }
main { padding-top: 95px; }
h1,h2,h3,h4,h5,h6 { color: var(--text-body); }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--secondary); }
.navbar-custom { background: var(--nav-bg); backdrop-filter: blur(12px); box-shadow: 0 2px 10px rgba(0,0,0,0.08); transition: all 0.3s ease; padding: 6px 0; height: 75px; min-height: 75px; }
.navbar-custom .navbar-brand { padding-top: 0 !important; padding-bottom: 0 !important; margin-top: 0 !important; margin-bottom: 0 !important; display: flex; align-items: center; }
.navbar-custom .nav-link { font-weight: 500; opacity: 0.75; transition: all 0.2s; padding: 6px 12px !important; font-size: 0.95rem; white-space: nowrap; }
.navbar-custom .nav-link:hover, .navbar-custom .nav-link.active { opacity: 1; color: var(--primary) !important; }

.navbar-logo-img { height: 56px; max-height: 56px; width: auto; max-width: 260px; object-fit: contain; display: block; transition: all 0.2s ease; }
.btn-primary-custom { background: var(--primary); color: #fff; border: none; padding: 12px 28px; border-radius: 50px; font-weight: 600; transition: all 0.3s; }
.btn-primary-custom:hover { background: var(--secondary); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.3); }
.btn-outline-custom { border: 2px solid var(--primary); color: var(--primary); padding: 10px 26px; border-radius: 50px; font-weight: 600; background: transparent; transition: all 0.3s; }
.btn-outline-custom:hover { background: var(--primary); color: #fff; }
.section-padding { padding: 80px 0; }
.section-padding-sm { padding: 60px 0; }
.card-custom { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 16px; transition: all 0.3s; overflow: hidden; }
.card-custom:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.text-primary-custom { color: var(--primary) !important; }
.bg-primary-subtle-custom { background: rgba(var(--primary-rgb), 0.08); }
.icon-box { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.breadcrumb-custom { background: transparent; padding: 0; margin-bottom: 0; }
.breadcrumb-custom .breadcrumb-item a { color: var(--primary); }
.breadcrumb-custom .breadcrumb-item.active { color: var(--text-body); opacity: 0.7; }
.page-header { padding: 25px 0 35px; background: linear-gradient(135deg, rgba(var(--primary-rgb),0.05) 0%, transparent 50%); }

/* Footer Enhanced Styling */
.footer-section { 
    background: linear-gradient(135deg, #0b132b 0%, #1c2541 100%); 
    color: #e2e8f0 !important; 
    padding: 70px 0 30px; 
    border-top: 4px solid var(--primary);
}
.footer-section h5 { 
    color: #ffffff !important; 
    font-weight: 700;
}
.footer-section p, .footer-section span, .text-light-silver { 
    color: #cbd5e1 !important; 
}
.footer-section .footer-link { 
    color: #cbd5e1 !important; 
    text-decoration: none; 
    transition: all 0.2s ease; 
    display: inline-block;
}
.footer-section .footer-link:hover { 
    color: #60a5fa !important; 
    transform: translateX(4px);
}
.footer-section .social-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-decoration: none !important;
}
.footer-section .social-icon-btn:hover {
    background: var(--primary);
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(30, 58, 138, 0.5);
}
.footer-section .footer-bottom { 
    border-top: 1px solid rgba(255, 255, 255, 0.15); 
    padding-top: 25px; 
    margin-top: 45px; 
    color: #94a3b8 !important; 
}
.scroll-reveal { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
.scroll-reveal.revealed { opacity: 1; transform: translateY(0); }
.blog-card .card-img-top { height: 220px; object-fit: cover; }
.blog-card .badge { font-size: 0.75rem; }
.team-card { text-align: center; }
.timeline-item { position: relative; padding-left: 40px; padding-bottom: 30px; border-left: 2px solid rgba(var(--primary-rgb), 0.2); }
.timeline-item::before { content: ''; position: absolute; left: -8px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--primary); }
.value-card .icon-box { margin-bottom: 1rem; }
.process-step { text-align: center; }
.process-step .step-number { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem; margin-bottom: 1rem; }
.hero-section { position: relative; padding: 20px 0 50px; overflow: hidden; }
.hero-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(circle at 50% 10%, rgba(var(--primary-rgb),0.12), transparent 50%); pointer-events: none; }

/* Hero styles override */
.hero-dark-banner h1, .hero-dark-banner h2, .hero-dark-banner h3 { color: #ffffff !important; }
.hero-dark-banner p { color: rgba(255, 255, 255, 0.9) !important; }
.hero-carousel-section { position: relative; overflow: hidden; }
.hero-carousel-section .carousel-item { height: 90vh; min-height: 500px; background-size: cover; background-position: center; }
.hero-carousel-section .carousel-caption { top: 0; bottom: 0; left: 0; right: 0; padding: 0; display: flex; align-items: center; background: linear-gradient(90deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.4) 100%); }
.hero-carousel-section .carousel-indicators [data-bs-target] { width: 12px; height: 12px; border-radius: 50%; margin: 0 5px; background-color: #fff; opacity: 0.5; }
.hero-carousel-section .carousel-indicators .active { opacity: 1; background-color: var(--primary); transform: scale(1.2); }
.newsletter-form .form-control { border-top-left-radius: 50px; border-bottom-left-radius: 50px; padding-left: 20px; background-color: rgba(255, 255, 255, 0.05) !important; border-color: rgba(255, 255, 255, 0.15) !important; color: #ffffff !important; }
.newsletter-form .form-control::placeholder { color: rgba(255, 255, 255, 0.4) !important; }
.newsletter-form .form-control:focus { background-color: rgba(255, 255, 255, 0.1) !important; border-color: var(--primary) !important; box-shadow: none !important; color: #ffffff !important; }
.newsletter-form .btn { border-top-right-radius: 50px; border-bottom-right-radius: 50px; padding-right: 20px; }
.social-links-footer a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.7) !important; transition: all 0.3s; }
.social-links-footer a:hover { background: var(--primary); color: #fff !important; transform: translateY(-3px); }
.social-links-footer a i { color: rgba(255, 255, 255, 0.7) !important; line-height: 1; }
.social-links-footer a:hover i { color: #fff !important; }
.footer-section .text-muted { color: rgba(255, 255, 255, 0.5) !important; }

/* Blog Details Layout & Interactive Elements */
.blog-sidebar { position: sticky; top: 100px; z-index: 10; }
.blog-sidebar .card-custom { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.blog-sidebar .card-custom:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.05); }
.share-btn { transition: all 0.2s ease; }
.share-btn:hover { transform: translateY(-3px); }
.card-hover-lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card-hover-lift:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.toc-link { display: block; color: var(--text-muted, #64748b); text-decoration: none; padding: 4px 12px; border-left: 2px solid transparent; transition: all 0.2s ease; }
.toc-link:hover { color: var(--primary); padding-left: 16px; }
.toc-link.active { color: var(--primary); font-weight: 600; border-left-color: var(--primary); }
.toc-indent-3 { padding-left: 24px; }
.toc-indent-3:hover { padding-left: 28px; }
.sidebar-cat-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; color: inherit; text-decoration: none; border-bottom: 1px dashed rgba(0,0,0,0.1); transition: all 0.2s ease; }
.sidebar-cat-item:last-child { border-bottom: none; }
.sidebar-cat-item:hover { color: var(--primary); padding-left: 6px; }
.sidebar-post-item { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; transition: all 0.2s ease; }
.sidebar-post-item:hover { color: var(--primary); }
.sidebar-post-img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.sidebar-tag-link { display: inline-block; padding: 4px 12px; background: rgba(var(--primary-rgb), 0.05); color: var(--primary); border-radius: 20px; font-size: 0.8rem; text-decoration: none; transition: all 0.2s ease; }
.sidebar-tag-link:hover { background: var(--primary); color: #fff; transform: scale(1.05); }
.post-body h2, .post-body h3 { scroll-margin-top: 120px; }
.fs-7 { font-size: 0.875rem !important; }
.fs-8 { font-size: 0.8rem !important; }
.fs-9 { font-size: 0.7rem !important; }
.uppercase { text-transform: uppercase !important; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Custom Spacing & Utility Helpers */
.shadow-2xs { box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important; }
.w-max { width: max-content !important; max-width: 100% !important; }

/* ==========================================================================
   Responsive Media Queries for Tablets and Mobile Devices
   ========================================================================== */

@media (max-width: 1199.98px) {
    main { padding-top: 80px !important; }
    
    /* Navbar Mobile Menu behavior */
    .navbar-custom {
        height: auto !important;
        min-height: 64px !important;
        padding-top: 4px !important;
        padding-bottom: 4px !important;
    }
    .navbar-custom .navbar-nav {
        gap: 0 !important;
        margin-bottom: 2px !important;
    }
    .navbar-custom .navbar-collapse {
        background: #ffffff;
        padding: 8px 10px 12px 10px !important;
        border-radius: 12px;
        margin-top: 4px;
        box-shadow: 0 15px 35px rgba(0,0,0,0.12);
        max-height: 80vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .navbar-custom .nav-link {
        padding: 5px 10px !important;
        line-height: 1.15 !important;
        font-size: 0.92rem !important;
        border-radius: 6px;
        border-bottom: 1px solid rgba(0,0,0,0.03);
        display: flex;
        align-items: center;
        min-height: 38px;
        margin-bottom: 0 !important;
        transition: all 0.2s ease;
    }
    .navbar-custom .nav-link:hover, .navbar-custom .nav-link.active {
        background: rgba(var(--primary-rgb), 0.08);
        color: var(--primary) !important;
        font-weight: 600;
    }
    .navbar-custom .nav-link:last-child {
        border-bottom: none;
    }
    .navbar-logo-img {
        max-height: 38px !important;
    }
    
    /* Display Headings scaling */
    .display-4 { font-size: 2.2rem !important; }
    .display-5 { font-size: 1.8rem !important; }
    .display-6 { font-size: 1.5rem !important; }
    
    /* Sticky sidebars un-stick on mobile */
    .blog-sidebar, .sticky-lg-top {
        position: static !important;
    }
    
    .section-padding { padding: 50px 0; }
    .section-padding-sm { padding: 40px 0; }
    .page-header { padding: 30px 0; }
}

@media (max-width: 575.98px) {
    main { padding-top: 75px !important; }
    .display-4 { font-size: 1.75rem !important; }
    .display-5 { font-size: 1.5rem !important; }
    .display-6 { font-size: 1.3rem !important; }
    
    .hero-section { padding: 10px 0 30px !important; }
    
    /* Form input group responsive stacking */
    .newsletter-form .input-group {
        flex-direction: column;
    }
    .newsletter-form .form-control {
        border-radius: 50px !important;
        margin-bottom: 8px;
    }
    .newsletter-form .btn {
        border-radius: 50px !important;
        width: 100%;
    }
    
    /* Table overflow handling */
    .table-responsive {
        margin-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
    }

    /* Mobile UX & Native App-like Touch Targets */
    .btn, .form-control, .form-select {
        min-height: 44px;
    }
    .modal-dialog {
        margin: 0.5rem;
    }
    .modal-content {
        border-radius: 16px !important;
    }
    .modal-body {
        max-height: 70vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .my-3{
    margin-top:1rem !important;
    margin-bottom:1rem !important;
}
}

