/*
Theme Name: Prime Programs Solutions
Theme URI: http://primesolutionsin.com
Author: Prime Programs
Author URI: http://primesolutionsin.com
Description: Custom landing page theme for Prime Programs Solutions.
Version: 1.0
Text Domain: prime-programs
*/

/* --- GLOBAL VARIABLES & THEME --- */
:root {
    --primary: #0d6efd; 
    --primary-dark: #0a58ca;
    --secondary: #ff9800; 
    --dark: #1a1a1a;
    --light: #f8f9fa;
    --zoho: #0d6efd; 
    --biz: #2e7d32;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    overflow-x: hidden;
    scroll-behavior: smooth;
    line-height: 1.6;
}

img.logo-head { width: 106px; }

.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.btn-primary { background-color: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background-color: var(--primary-dark); border-color: var(--primary-dark); }

.section-padding { padding: 90px 0; }

/* Global Button CTA */
.btn-cta {
    background: var(--secondary); color: white; padding: 12px 35px;
    border-radius: 50px; font-weight: 700; border: none;
    transition: 0.3s; text-decoration: none; display: inline-block;
}
.btn-cta:hover { background: #e68a00; transform: translateY(-3px); color: white; box-shadow: 0 10px 20px rgba(255, 152, 0, 0.3); }

.badge-soft {
    background: rgba(13, 110, 253, 0.1); color: var(--primary); padding: 8px 20px;
    border-radius: 50px; font-weight: 600; margin-bottom: 15px; display: inline-block;
}

/* --- WHATSAPP FLOAT --- */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px; background: #25d366;
    color: white; width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; z-index: 1000; box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: 0.3s; text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); color: white; }

/* --- TOP BANNER STYLES --- */
.top-bar { background-color: #050505; border-bottom: 1px solid rgba(255,255,255,0.05); }
.tracking-wide { letter-spacing: 1px; text-transform: uppercase; }

/* --- HEADER NAVBAR STYLES --- */
.tracking-tight { letter-spacing: -1px; }
.navbar {
    background: rgba(255, 255, 255, 0.98) !important; border-bottom: 3px solid var(--secondary);
    padding: 15px 0; transition: all 0.3s ease;
}
.nav-link { font-weight: 600; color: #444 !important; margin: 0 15px; font-size: 0.95rem; transition: color 0.3s ease; }
.nav-link:hover, .active-link { color: var(--primary) !important; }
.btn-cta-header { padding: 10px 25px; border-radius: 50px; font-weight: 700; }

/* --- HERO SLIDER STYLES --- */
.hero-slide {
    height: 85vh; min-height: 600px; background-size: cover;
    background-position: center right; background-repeat: no-repeat; position: relative;
}

.cinematic-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, #050505 0%, rgba(5,5,5,0.85) 45%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

@media (max-width: 991px) {
    .cinematic-overlay { background: linear-gradient(180deg, rgba(5,5,5,0.7) 0%, rgba(5,5,5,0.9) 100%); }
    .hero-content-box { text-align: center; margin-top: 50px; }
    .hero-content-box p { margin-left: auto; margin-right: auto; }
    .d-flex.animate-4 { justify-content: center; }
}

.animate-1, .animate-2, .animate-3, .animate-4 { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.carousel-item.active .animate-1 { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.carousel-item.active .animate-2 { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
.carousel-item.active .animate-3 { opacity: 1; transform: translateY(0); transition-delay: 0.6s; }
.carousel-item.active .animate-4 { opacity: 1; transform: translateY(0); transition-delay: 0.8s; }

.nav-arrow {
    width: 50px; height: 50px; background: rgba(255,255,255,0.1); backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.2rem; transition: 0.3s;
}
.nav-arrow:hover { background: var(--primary); border-color: var(--primary); transform: scale(1.1); }
.carousel-control-prev, .carousel-control-next { width: 8%; z-index: 4; }

.premium-indicators { z-index: 4; }
.premium-indicators button {
    width: 35px !important; height: 4px !important; background-color: rgba(255,255,255,0.4) !important;
    border: none !important; margin: 0 4px !important; border-radius: 2px; transition: all 0.4s ease;
}
.premium-indicators button.active { width: 55px !important; background-color: var(--primary) !important; }

/* --- ABOUT US --- */
.about-img-stack { position: relative; }
.experience-badge {
    position: absolute; bottom: -20px; right: -20px;
    background: var(--secondary); color: white; padding: 25px;
    border-radius: 20px; box-shadow: 0 15px 30px rgba(255, 152, 0, 0.4); text-align: center;
}

/* --- CORE FEATURES --- */
.feature-box {
    padding: 40px; border-radius: 20px; background: #fff;
    border: 1px solid #f0f0f0; transition: all 0.3s ease; height: 100%; position: relative;
}
.feature-box:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.05); border-color: var(--primary); }
.f-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; margin-bottom: 20px; transition: all 0.3s ease; }
.feature-box h4 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.feature-box p { font-size: 0.95rem; color: #6c757d; margin-bottom: 0; }
.accent-blue { background: #e3f2fd; color: var(--primary); }
.accent-orange { background: #fff3e0; color: #ef6c00; }
.accent-green { background: #e8f5e9; color: #2e7d32; }
.accent-purple { background: #f3e5f5; color: #7b1fa2; }
.accent-red { background: #ffebee; color: #c62828; }
.accent-cyan { background: #e0f7fa; color: #00838f; }
.feature-box:hover .f-icon { transform: scale(1.1); box-shadow: 0 0 15px rgba(13, 110, 253, 0.2); }

/* --- SPECIALIZED SERVICES --- */
.service-card { transition: all 0.3s ease-in-out; border-color: #eee !important; background: white; }
.service-card:hover { border-color: var(--secondary) !important; transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.08) !important; }
.service-icon { color: var(--primary); background: #f0f7ff; width: 60px; height: 60px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; }
.highlight-card { border-top: 4px solid var(--secondary) !important; }

/* --- TALLYPRIME SECTION --- */
.tally-brand-card { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); position: relative; overflow: hidden; }
.tally-brand-card::after { content: ""; position: absolute; bottom: -50px; right: -50px; width: 200px; height: 200px; background: rgba(255, 255, 255, 0.1); border-radius: 50%; }
.tally-item { transition: all 0.3s ease; border-color: #eee; }
.tally-item:hover { transform: translateX(10px); background-color: #fff; box-shadow: 0 10px 25px rgba(0,0,0,0.05) !important; }

/* --- ZOHO BOOKS SECTION --- */
.zoho-card { background: #ffffff; border: 1px solid #f1f3f5; border-radius: 20px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.zoho-card:hover { transform: scale(1.03); box-shadow: 0 20px 40px rgba(13, 110, 253, 0.1) !important; border-color: var(--primary); }
.active-zoho { border: 1px solid var(--secondary); background: linear-gradient(to bottom, #ffffff, #fffbf2); }
.zoho-icon-box { width: 55px; height: 55px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.4rem; }
.bg-blue-gradient { background: linear-gradient(135deg, var(--primary), #00c6ff); }
.bg-orange-gradient { background: linear-gradient(135deg, var(--secondary), #ffc107); }
.bg-purple-gradient { background: linear-gradient(135deg, #7b1fa2, #ba68c8); }

/* --- BIZ ANALYST SECTION --- */
.bg-success-soft { background-color: #e8f5e9; color: var(--biz); }
.stat-icon { width: 50px; height: 50px; min-width: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.biz-card { background: #ffffff; border: 1px solid #e0e0e0; border-radius: 20px; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
.biz-card:hover { background: var(--biz); color: #ffffff; transform: scale(1.05); }
.biz-card:hover i { color: #ffffff !important; }

/* --- CONTACT & FOOTER --- */
.contact-icon { width: 50px; height: 50px; background: rgba(13, 110, 253, 0.1); color: var(--primary); display: flex; align-items: center; justify-content: center; border-radius: 12px; font-size: 1.2rem; }

footer { background-color: var(--dark); color: #ccc; padding: 80px 0 20px; }
.footer-title { color: white; font-weight: 700; margin-bottom: 25px; position: relative; }
.footer-title::after { content: ""; position: absolute; left: 0; bottom: -8px; width: 35px; height: 3px; background: var(--secondary); }
.footer-links a { color: #ccc; text-decoration: none; display: block; margin-bottom: 12px; transition: 0.3s; }
.footer-links a:hover { color: var(--secondary); transform: translateX(5px); }

/* --- DROPDOWN HOVER & ANIMATION (Desktop Only) --- */
@media (min-width: 992px) {
    /* Set initial state for the animation */
    .navbar .dropdown .dropdown-menu {
        display: block;
        visibility: hidden;
        opacity: 0;
        transform: translateY(15px); /* Start slightly lower */
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        margin-top: 0; 
        pointer-events: none; /* Prevent accidental clicks when hidden */
    }

    /* Trigger the animation on hover */
    .navbar .dropdown:hover .dropdown-menu {
        visibility: visible;
        opacity: 1;
        transform: translateY(0); /* Slide up to original position */
        pointer-events: auto;
    }

    /* Create an invisible "bridge" so the mouse doesn't lose hover 
       when moving from the link down to the menu */
    .navbar .dropdown-menu::before {
        content: '';
        position: absolute;
        top: -15px;
        left: 0;
        width: 100%;
        height: 15px;
    }
}

/* --- BLOG INDEX SPECIFIC STYLES --- */
.transition-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.transition-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.hover-primary {
    transition: color 0.3s ease;
}
.hover-primary:hover {
    color: var(--primary) !important;
}

/* WordPress Core Pagination Styling */
.pagination-custom .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.pagination-custom .page-numbers {
    padding: 8px 16px;
    background: var(--light);
    color: var(--dark);
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}
.pagination-custom .page-numbers.current,
.pagination-custom .page-numbers:hover {
    background: var(--primary);
    color: white;
}
/* Ensure the WordPress admin bar doesn't overlap the fixed navbar */
body.admin-bar .navbar.sticky-top {
    top: 32px;
}
@media (max-width: 782px) {
    body.admin-bar .navbar.sticky-top {
        top: 46px;
    }
}
/* --- MOBILE MENU & DROPDOWN ANIMATION (Mobile & Tablet Only) --- */
@media (max-width: 991px) {
    
    /* 1. Float the main mobile menu wrapper */
    .navbar-collapse {
        background: #ffffff;
        border-radius: 15px;
        padding: 15px 20px;
        box-shadow: 0 15px 35px rgba(0,0,0,0.1);
        margin-top: 15px;
        border: 1px solid rgba(0,0,0,0.05);
    }

    /* 2. Override default snap-open and set up smooth slide */
    .navbar-nav .dropdown-menu {
        display: block !important; /* Forces block so we can animate height */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        padding: 0;
        margin: 0;
        border: none;
        background: rgba(13, 110, 253, 0.04); /* Very soft primary blue background */
        border-radius: 10px;
        /* The cubic-bezier makes the slide start fast and end softly */
        transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), 
                    opacity 0.4s ease, 
                    padding 0.4s ease;
    }

    /* 3. The state when a user taps the dropdown toggle */
    .navbar-nav .dropdown-menu.show {
        max-height: 400px; /* Must be larger than the content inside */
        opacity: 1;
        padding: 10px 0;
        margin-top: 8px;
        margin-bottom: 8px;
    }

    /* 4. Indent the sub-links so they look like a nested hierarchy */
    .navbar-nav .dropdown-item {
        padding-left: 25px;
        font-size: 0.95rem;
        color: #555;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    /* 5. Remove the ugly black box when tapping the hamburger icon */
    .navbar-toggler {
        border: none;
        padding: 5px;
    }
    .navbar-toggler:focus {
        box-shadow: none;
        outline: none;
    }
    
    /* Center the CTA button on mobile */
    .btn-cta-header {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
}