:root {
    --primary-color: #0A2A66; /* Matching your App Theme */
    --accent-color: #F9E163;
    --text-dark: #333;
}

body { font-family: 'Poppins', sans-serif; overflow-x: hidden; }

/* Navbar Fix & Design */
.navbar {
    background: #ffffff !important;
    padding: 12px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    z-index: 2000 !important; /* Ensures it is always on top */
}

.navbar-brand {
    display: flex !important;
    align-items: center;
    white-space: nowrap; /* Prevents text from jumping to second line */
}

.logo-img { 
    height: 85px; /* Slightly smaller for better mobile fit */
    width: auto;
    transition: 0.3s; 
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-name {
    font-size: 1.30rem; /* Adjusted for one-line fit */
    font-weight: 800;
    color: #0A2A66;
    line-height: 1.2;
    margin: 0;
}

.brand-tagline {
    font-size: 0.70rem; /* Small and sharp */
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0;
    text-align: center;
}

.nav-link {
    color: var(--primary) !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0 5px;
    position: relative;
}

/* Modern Hover Underline Effect */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: 0; left: 0;
    background-color: var(--accent);
    transition: 0.3s;
}
.nav-link:hover::after { width: 100%; }

/* --- Modern Contact Button --- */
.btn-modern {
    background: #0A2A66;
    color: white !important;
    border-radius: 50px;
    padding: 10px 25px !important;
    box-shadow: 0 4px 15px rgba(10, 42, 102, 0.2);
    transition: all 0.3s ease;
}

.btn-modern:hover {
    background: #1a4da1;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(10, 42, 102, 0.3);
}

.btn-modern::after {
    display: none !important; /* Removes underline from the button */
}

/* --- Gradient Action Button --- */
.btn-gradient {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    color: white !important;
    font-weight: 700;
    font-size: 0.85rem;
    border: none;
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(10, 42, 102, 0.3);
}

/* --- Gradient Text Helper --- */
.text-primary-gradient {
    background: linear-gradient(135deg, #0A2A66, #1a4da1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom Contact Button */
.btn-contact {
    background: var(--primary-color) !important;
    color: white !important;
    padding: 8px 25px !important;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(10, 42, 102, 0.3);
}

.btn-contact:hover {
    background: var(--accent-color) !important;
    color: var(--primary-color) !important;
    transform: scale(1.05);
}

/* --- Hero Slider --- */
.hero-slider .carousel-item { 
    height: 75vh; 
    min-height: 450px; 
    background-size: cover; 
    background-position: center; 
}

.carousel-item::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    z-index: 1;
}

.carousel-caption { 
    z-index: 2; 
    bottom: 20%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-left: 5px solid var(--accent-color);
    padding: 40px;
    text-align: left;
}

/* --- Impact Flavours --- */

/* 1. Stats Bar */
.stats-bar {
    background: #f8faff;
    border-bottom: 1px solid #eef2f6;
}
.stats-bar h3 { color: var(--primary-color); }

/* 2. Book 3D Tilt Effect */
.book-tilt {
    transition: transform 0.5s ease;
    transform: perspective(1000px) rotateY(-15deg);
}
.book-container:hover .book-tilt {
    transform: perspective(1000px) rotateY(0deg) scale(1.05);
}

/* 3. App Section Styling */
.app-section { padding-top: 80px; }
.app-card {
    background: linear-gradient(135deg, #1a4da1 0%, #051635 100%);
    border-radius: 30px;
    position: relative;
    overflow: visible;
}

/* 4. Floating Phone Animation */
.floating-phone {
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* 5. Hero Button Animation */
.hero-slider .btn {
    transition: 0.3s;
}
.hero-slider .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2) !important;
}

/* 6. Test Card Badge Styling */
.badge.bg-success { background-color: #28a745 !important; }
.badge.bg-primary { background-color: #0A2A66 !important; }

/* --- Sections & Cards --- */
.amazon-section { 
    background: linear-gradient(135deg, #0A2A66 0%, #1a4da1 100%); 
    color: white; 
    padding: 80px 0; 
}

.test-card { 
    border: none; 
    border-radius: 20px; 
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.test-card:hover { 
    transform: translateY(-15px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.15); 
}

/* Ensure the app mockup doesn't cause overflow */
.app-card {
    overflow: hidden; /* Keeps the phone image within the rounded corners if it's large */
}


/* --- About Page Styles --- */

/* Page Title Header */
.page-title-section {
    background: linear-gradient(rgba(10, 42, 102, 0.9), rgba(10, 42, 102, 0.9)), 
                url('cpp/assets/img/carousel/book-amazon.jpg');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    margin-bottom: 50px;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: white;
}

/* Experience Badge */
.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    text-align: center;
    min-width: 140px;
    border: 5px solid white;
}

/* Icon Boxes */
.icon-box {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.bg-primary-soft { background: rgba(10, 42, 102, 0.1); }
.bg-warning-soft { background: rgba(249, 225, 99, 0.2); }

/* Rounded Corners for Images */
.rounded-4 { border-radius: 1.5rem !important; }

/* Custom Input Styling */
.custom-input {
    border: 2px solid #f0f0f0;
    padding: 12px 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.custom-input:focus {
    border-color: var(--primary-color);
    box-shadow: none;
    background-color: #f8f9ff;
}

/* Icon Circles in Contact Info */
.icon-circle {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Page Title background */
.page-title-section {
    background: var(--primary-color);
    padding: 60px 0;
}

/* --- Blog Page Flavors --- */

.blog-card {
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

.blog-img-container {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-img-container img {
    transform: scale(1.1);
}

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(10, 42, 102, 0.85); /* Your primary blue with transparency */
    backdrop-filter: blur(5px);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.read-more-link {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.read-more-link:hover {
    color: #1a4da1;
    letter-spacing: 0.5px;
}

.blog-content {
    font-size: 1.15rem;
    line-height: 1.8;
}

.blog-content p {
    margin-bottom: 25px;
}

.blog-content h2, .blog-content h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 20px;
}

/* --- Newsletter Box Styling --- */
.newsletter-section {
    position: relative;
    margin-bottom: -60px; /* Pulls the box down into the footer */
    z-index: 5;
}

.newsletter-card {
    background: linear-gradient(135deg, #0A2A66 0%, #1a4da1 100%);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.subscription-form .form-control {
    height: 55px;
    border-radius: 12px 0 0 12px;
    border: none;
    padding-left: 20px;
    font-size: 0.95rem;
}

.subscription-form .btn-accent {
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 0 12px 12px 0;
    transition: all 0.3s ease;
}

.subscription-form .btn-accent:hover {
    background-color: #fff;
    color: var(--primary-color);
    transform: scale(1.02);
}

/* --- Footer --- */
/* --- Modern Footer Styling --- */
.footer-section {
    background: linear-gradient(180deg, #051635 0%, #030d1f 100%);
    color: #cbd5e0;
    padding: 80px 0 0;
    margin-top: 100px;
    position: relative;
    border-top: 4px solid var(--accent-color); /* Yellow top border for pop */
}

.footer-logo {
    font-weight: 700;
    color: #fff;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.footer-logo span {
    color: var(--accent-color);
}

.footer-text {
    line-height: 1.8;
    font-size: 0.95rem;
    color: #a0aec0;
}

.footer-heading {
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 25px;
    position: relative;
}

/* Link Hover Animations */
.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(8px);
}

/* Social Icons */
.social-links a {
    display: inline-flex; /* Better for centering icons */
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1); /* Subtle light circle */
    color: #F9E163 !important; /* Forces the Yellow accent color */
    border-radius: 50%;
    margin-right: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: #F9E163;
    color: #0A2A66 !important;
    transform: translateY(-5px);
}

/* Contact List */
.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--accent-color);
    margin-right: 12px;
}

/* Bottom Copyright Bar */
.footer-bottom {
    margin-top: 60px;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    color: #718096;
}

/* --- Global Mobile Fixes --- */
img {
    max-width: 100%;
    height: auto;
}

/* Fix: Mobile Menu spacing */
@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        padding: 20px;
        border-radius: 15px;
        margin-top: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
}

/* Fix Hero Section for Mobile */
@media (max-width: 768px) {
    .logo-img {
        height: 45px; /* Smaller logo on tiny screens */
    }
    
    .brand-name {
        font-size: 0.9rem; /* Shrink text to prevent navbar overflow */
    }
    
    .brand-tagline {
        font-size: 0.45rem;
    }
    
    /* Adjust Hero Height */
    .hero-slider .carousel-item {
        height: 60vh !important; /* Shorter on mobile */
        min-height: 450px;
    }

    /* Fix the Caption Box */
    .carousel-caption {
        bottom: 5% !important; /* Move it down slightly */
        left: 5% !important;
        right: 5% !important;
        padding: 20px !important;
        text-align: center !important; /* Center text for mobile balance */
        border-left: none !important; /* Remove the side border on mobile */
        border-top: 4px solid var(--accent-color); /* Add a top border instead */
        background: rgba(0, 0, 0, 0.6) !important; /* Darker overlay for better contrast */
    }

    /* Shrink Typography */
    .carousel-caption h1 {
        font-size: 1.6rem !important; /* Smaller Title */
        margin-bottom: 10px;
    }

    .carousel-caption p {
        font-size: 0.9rem !important;
        margin-bottom: 15px;
    }

    /* Stack Buttons Vertically */
    .carousel-caption .btn {
        width: 100%; /* Make buttons full width */
        margin: 5px 0 !important;
        font-size: 0.9rem !important;
    }

    /* Amazon Section Mobile Fix */
    .amazon-section {
        padding: 40px 0;
        text-align: center;
    }

    .book-tilt {
        transform: none !important; /* Remove 3D tilt on mobile for better alignment */
        margin-bottom: 20px;
    }

    /* Padding Adjustments */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .app-card {
        padding: 40px 20px !important;
        text-align: center;
    }
    
    .floating-phone {
        max-height: 280px !important; /* Smaller phone image for mobile screens */
        margin-top: 30px;
        filter: drop-shadow(0 15px 20px rgba(0,0,0,0.4));
    }
    
    .app-section {
        padding-bottom: 100px; /* Space for the floating box effect */
    }
    
    .page-title-section {
        padding: 50px 0;
    }
    .experience-badge {
        display: none; /* Hide floating badge on small mobile screens */
    }
    .display-4 {
        font-size: 2.2rem;
    }
    .custom-input {
        font-size: 16px !important; /* Prevents iOS auto-zoom on focus */
        padding: 15px !important;
    }
    
    .page-title-section h1 {
        font-size: 2rem;
    }
    
    .blog-img-container {
        height: 200px;
    }
    .display-4 {
        font-size: 2.2rem;
    }
    
    .blog-content {
        font-size: 1rem;
    }
    .newsletter-section {
        margin-bottom: -80px;
    }
    .subscription-form .form-control, 
    .subscription-form .btn-accent {
        border-radius: 12px;
        width: 100%;
        margin-bottom: 10px;
    }
    .subscription-form .input-group {
        display: block;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    color: #FFF;
    transform: scale(1.1) rotate(10deg);
}

/* Responsive Map and Cards */
.rounded-4 { border-radius: 20px !important; }

.icon-circle {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* Ensure Row Gutters don't cause horizontal scroll */
.row {
    margin-left: 0;
    margin-right: 0;
}