/* ===================================
   IPN WEBSITE - BOOTSTRAP CUSTOM STYLES
   Reusable styles for all pages
   =================================== */

/* ===================================
   CSS Variables (Brand Colors)
   =================================== */

:root {
    /* Primary Brand Colors */
    --ipn-primary: #CCA83A;
    --ipn-primary-dark: #66541D;
    --ipn-secondary: #333E1F;
    --ipn-accent: #86A452;
    --ipn-dark-green: #5F743B;
    /* Text Colors */
    --ipn-text-primary: #333333;
    --ipn-text-secondary: #6E6E6E;
    --ipn-text-light: #777777;
    --ipn-text-muted: #7F7F7F;
    /* Background Colors */
    --ipn-bg-light: #F9F9F9;
    /* Spacing (matching Bootstrap) */
    --ipn-spacing-xs: 0.5rem;
    --ipn-spacing-sm: 1rem;
    --ipn-spacing-md: 1.5rem;
    --ipn-spacing-lg: 2rem;
    --ipn-spacing-xl: 3rem;
    /* Border Radius */
    --ipn-radius: 30px;
    --ipn-radius-sm: 25px;
}

/* ===================================
   Global Styles
   =================================== */

html {
    width: 100%;
    max-width: 100vw;
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}

body {
    font-family: 'Carlito', Calibri, Candara, Segoe, "Segoe UI", Arial, sans-serif;
    color: var(--ipn-text-primary);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
}

/* Remove padding from container-fluid globally */
.container-fluid {
    padding: 0 !important;
}

/* Heading Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Carlito', Calibri, Candara, Segoe, "Segoe UI", Arial, sans-serif;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 1.75rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.3;
}

h4 {
    font-size: 1.25rem;
    line-height: 1.4;
}

h5 {
    font-size: 1.125rem;
    line-height: 1.4;
}

h6 {
    font-size: 1rem;
    line-height: 1.5;
}

p {
    line-height: 1.7;
    margin-bottom: 1em;
}

/* Prevent horizontal overflow */
.container-fluid {
    max-width: 100%;
}

/* Ensure rows don't cause overflow */
.container-fluid > .row {
    margin-left: calc(var(--bs-gutter-x) * -.5);
    margin-right: calc(var(--bs-gutter-x) * -.5);
}

/* ===================================
   Bootstrap Color Overrides
   =================================== */

/* All buttons get rounded pill style */
.btn {
    border-radius: 50px !important;
}

.btn-primary {
    background: linear-gradient(to bottom, var(--ipn-primary), var(--ipn-primary-dark));
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 10px 34px;
    font-weight: 700;
    font-size: 13px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .btn-primary:hover,
    .btn-primary:focus {
        background: var(--ipn-secondary);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    }

.btn-secondary {
    background-color: var(--ipn-dark-green);
    border: none;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

    .btn-secondary:hover,
    .btn-secondary:focus {
        background-color: var(--ipn-secondary);
    }

.btn-gradient {
    background: linear-gradient(to bottom, var(--ipn-primary), var(--ipn-primary-dark));
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 10px 34px;
    font-weight: 700;
    font-size: 13px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .btn-gradient:hover,
    .btn-gradient:focus {
        background: var(--ipn-secondary);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    }

.btn-lg {
    padding: 12px 40px !important;
    font-size: 14px !important;
}

    .btn-gradient i {
        font-size: 16px;
    }

.text-primary {
    color: var(--ipn-primary);
}

.bg-primary {
    background-color: var(--ipn-primary);
}

.bg-secondary {
    background-color: var(--ipn-secondary);
}

.bg-dark {
    background-color: var(--ipn-secondary);
}

/* ===================================
   Reusable Section Styles
   =================================== */

main {
    width: 100%;
}

section {
    width: 100%;
}

/* Ensure all hero sections stay below navbar */
section.hero {
    z-index: 1;
}

section[class*="hero"] {
    z-index: 1;
}

/* Hero text styling – shared by Index, About Us, Associates, UserBenefits, Stakeholders (not FAQ/Contact image-only heroes) */
.hero-content {
    position: relative;
    z-index: 1;
    padding: 0;
    margin: 0;
    max-width: 100%;
}

.hero-subtitle {
    color: var(--ipn-primary);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    will-change: opacity;
}

.hero-title {
    color: var(--ipn-primary);
    font-size: 44px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
    will-change: opacity;
}

.hero-description {
    color: rgba(255, 255, 255, 0.75);
    font-size: 17px;
    margin-bottom: 2rem;
    line-height: 1.8;
    will-change: opacity;
}

.section-subtitle {
    color: var(--ipn-primary);
    font-size: 14px;
    letter-spacing: 0.5px;
    line-height: 1.5;
    font-weight: 700;
}

.section-title {
    color: #293219;
    line-height: 1.3;
    font-weight: 700;
    font-size: 2.2rem;
}

.section-description {
    color: var(--ipn-text-secondary);
    line-height: 1.75;
    font-size: 1rem;
}

/* ===================================
   Header
   =================================== */

header {
    position: relative;
    z-index: 1000;
}

/* ===================================
   Top Bar
   =================================== */

.top-bar {
    background-color: var(--ipn-secondary);
    font-size: 14px;
    width: 100%;
}

.contact-item {
    color: rgba(255, 255, 255, 0.75);
}

    .contact-item i {
        color: white;
        font-size: 18px;
    }

.top-bar__social a {
    color: white;
    font-size: 18px;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

    .top-bar__social a:hover {
        color: var(--ipn-primary);
        transform: translateY(-2px);
    }

/* Mobile - Hide top bar */
/* ===================================
   Navigation Bar
   =================================== */

.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    z-index: 1040;
    width: 100%;
    position: relative;
}

.navbar.sticky-top {
    position: sticky;
    top: 0;
}

.navbar-brand img {
    max-height: 54px;
    width: auto;
}

.navbar-toggler {
    margin-left: auto;
    position: relative;
    z-index: 1050;
    background: linear-gradient(to bottom, var(--ipn-primary), var(--ipn-primary-dark)) !important;
    border: none !important;
    border-radius: 8px;
    padding: 8px 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.navbar-toggler:hover {
    background: var(--ipn-secondary) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    width: 24px;
    height: 24px;
}

.navbar .nav-link {
    color: var(--ipn-text-secondary);
    font-weight: 700;
    font-size: 13px;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 5px;
    background-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

.navbar .nav-link:hover,
.navbar .nav-link.active,
.navbar .nav-link:focus,
.navbar .nav-link:focus-visible {
    color: var(--ipn-primary);
    border-bottom-color: var(--ipn-primary);
    background-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

.auth-link {
    color: var(--ipn-text-secondary);
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.3s ease;
}

    .auth-link:hover {
        color: var(--ipn-primary);
    }

/* Dropdown Menu Styles */
.navbar .dropdown-menu {
    border: none;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.25);
    border-radius: 0;
    padding: 0;
    min-width: 300px;
    z-index: 1050;
    margin-top: 0;
}

/* Border radius styling - moved to media-queries.css (desktop only) */

.dropdown-item {
    color: var(--ipn-text-secondary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 24px;
    letter-spacing: 0.84px;
    padding: 15px 41px;
    transition: all 0.3s ease;
    background-color: white;
    outline: none !important;
    box-shadow: none !important;
}

    .dropdown-item:hover,
    .dropdown-item:focus,
    .dropdown-item:focus-visible {
        background-color: #f5f5f5;
        color: var(--ipn-primary);
        outline: none !important;
        box-shadow: none !important;
    }

/* Nested Dropdown Submenu */
.dropdown-submenu {
    position: relative;
}

/* Dropdown positioning */
.navbar .dropdown {
    position: static;
}


/* Consistent caret styling for all dropdown toggles */
.navbar .dropdown-toggle {
    outline: none !important;
    box-shadow: none !important;
}

.navbar .dropdown-toggle::after {
    content: "\F282";
    font-family: "bootstrap-icons";
    border: none;
    vertical-align: middle;
    margin-left: 0.5rem;
    font-size: 12px;
    display: inline-block;
}

.navbar .dropdown-toggle:focus,
.navbar .dropdown-toggle:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* Nested dropdown toggle - right aligned */
.dropdown-submenu .dropdown-toggle::after {
    margin-left: auto;
    float: right;
}

.navbar .dropdown-submenu-menu {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 0;
    margin-top: 0;
    display: none;
    z-index: 1051;
    border: none;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.25);
    border-radius: 0;
    padding: 0;
    min-width: 300px;
    background-color: white;
}

/* Show nested dropdown on hover/click */
.navbar .dropdown-submenu:hover > .dropdown-submenu-menu,
.navbar .dropdown-submenu-menu.show {
    display: block;
}

/* Ensure submenu items have proper styling */
.navbar .dropdown-submenu-menu .dropdown-item {
    white-space: nowrap;
}

/* NUCLEAR OPTION - Kill ALL squares/outlines/shadows on navbar elements */
.navbar a,
.navbar button,
.navbar .nav-link,
.navbar .dropdown-toggle,
.navbar .dropdown-item,
.navbar .navbar-toggler,
.navbar-toggler:focus,
.nav-item a:focus,
.nav-item button:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Ensure active and focus states only show underline, no squares */
.navbar .nav-link:active,
.navbar .dropdown-toggle:active {
    background-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}


/* ===================================
   Footer
   =================================== */

.footer {
    background-color: var(--ipn-secondary);
    width: 100%;
}

.footer a {
    transition: all 0.3s ease;
}

.footer a {
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer a:hover {
    color: var(--ipn-primary) !important;
    transform: translateY(-3px);
}

.footer a:hover .bi-facebook,
.footer a:hover .bi-twitter,
.footer a:hover .bi-instagram,
.footer a:hover .bi-linkedin {
    color: var(--ipn-primary);
}

/* Quick Links and Site Links specific hover */
.footer ul.list-unstyled a:hover {
    color: var(--ipn-primary) !important;
}

/* Override Bootstrap text-white-50 class on hover (only for links, not paragraphs) */
.footer a.text-white-50:hover {
    color: var(--ipn-primary) !important;
}

/* ===================================
   Utility Classes (Reusable)
   =================================== */

/* Rounded corners */
.rounded-4 {
    border-radius: var(--ipn-radius);
}

/* Shadows */
.shadow-custom {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.shadow-custom-lg {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Gradients */
.gradient-primary {
    background: linear-gradient(to bottom, var(--ipn-primary), var(--ipn-primary-dark));
}

.gradient-green {
    background: linear-gradient(135deg, #2c3e1f 0%, #4a5d3a 50%, #6b7f55 100%);
}

/* Text utilities */
.text-primary-custom {
    color: var(--ipn-primary);
}

.text-muted-custom {
    color: var(--ipn-text-muted);
}

/* Background utilities */
.bg-light-custom {
    background-color: var(--ipn-bg-light);
}

.bg-secondary-custom {
    background-color: var(--ipn-secondary);
}

/* How it works – middle images: full width, no margin/padding, no border radius, responsive */
.hiw-middle-image-section .container-fluid,
.hiw-middle-image-section .row,
.hiw-middle-image-section .col-12 {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.hiw-middle-image {
    border-radius: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.hiw-middle-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* Custom badge color for IPN category */
.bg-ipn-primary {
    background-color: var(--ipn-primary) !important;
    color: #ffffff !important;
}

/* Hover effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .hover-lift:hover {
        transform: translateY(-5px);
    }

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   Accessibility
   =================================== */

/* Focus states */
a:focus,
button:focus,
.btn:focus {
    outline: none;
    box-shadow: none;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--ipn-primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 9999;
}

    .skip-link:focus {
        top: 0;
    }

/* Print Styles - See media-queries.css */


/* ===================================
   Feature Cards
   =================================== */

.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    }

.feature-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .feature-icon i {
        color: var(--ipn-primary);
        font-size: 45px;
    }

/* All Bootstrap icons in cards should be at least 60px */
.card .bi {
    font-size: 45px;
}

/* Small utility icons (calendar, arrows, etc.) */
.icon-small {
    font-size: 24px !important;
}

/* ===================================
   Value Section
   =================================== */

.value-checklist li i {
    margin-top: 3px;
}

.value-image {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}


/* ===================================
   END OF STYLESHEET
   All styles are now Bootstrap-compatible
   and reusable across multiple pages
   =================================== */



/*form style*/

.form-diplay-inline {
    display: inline !important
}

/*font icon size*/
.icon-font-size{
    font-size: 16px !important;
}

/*
admin portal css*/


/*.admin-sidebar {
    height: 100vh;
    background: #0f172a;
    color: white;
    position: fixed;
    width: 250px;
    padding-top: 20px;
}

.admin-sidebar a {
    color: #cbd5e1;
    text-decoration: none;
    display: block;
    padding: 12px 20px;
}

.admin-sidebar a:hover {
    background: #1e293b;
    color: white;
}

.admin-content {
    margin-left: 250px;
    padding: 30px;
}

.admin-topbar {
    background: white;
    border-bottom: 1px solid #eee;
    padding: 15px 25px;
}*/

/*new admin portal css*/


/*.admin-sidebar {
    width: 250px;
    height: 100vh;
    position: fixed;
    background: #1f2d3d;
    padding: 20px;
    transition: all 0.3s;
}

.admin-sidebar a{
    display:block;
    color:white;
    padding:10px;
    text-decoration:none;
}

.admin-content{
    margin-left:250px;
    padding:20px;
}*/

/* Mobile */
/*@media (max-width:768px){

    .admin-sidebar{
        left:-250px;
    }

    .admin-sidebar.active{
        left:0;
    }

    .admin-content{
        margin-left:0;
    }
}*/


.admin-wrapper {
    display: flex;
}


.admin-sidebar a {
    display: block;
    padding: 12px 15px;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 5px;
}

.admin-sidebar a i {
    margin-right: 8px;
}

.admin-sidebar a:hover {
    background: #2d3e50;
}

/* Sidebar */
.admin-sidebar {
    width: 250px;
    height: 100vh;
    background: #1f2d3d;
    position: fixed;
    left: 0;
    top: 0;
    padding: 20px;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column !important;
}

.admin-sidebar.active {
    left: 0; /* sidebar visible */
}
/* Content */
.admin-content {
    margin-left: 250px;
    width: 100%;
    padding: 20px;
}

.sidebar-close {
    position: absolute;
    top: 10px;
    right: 10px;
}

.small-primary-btn {
    padding: .25rem .5rem !important;
    border: 1px !important;
}

.navbar .dropdown-menu {
    border: none;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.25);
    border-radius: 0;
    padding: 0;
    min-width: 300px;
    z-index: 1050;
    margin-top: 0;
}
/* hide sidebar to the left */
.admin-sidebar.closed {
    transform: translateX(-100%); 
}

/* MOBILE */
@media (max-width:768px) {

    .admin-sidebar {
        left: -250px;
        z-index: 1000;
    }

    .admin-sidebar.active {
        left: 0;
    }

    .admin-content {
        margin-left: 0;
        padding-top: 70px;
    }

    .login-btn{
        margin-top:10px;
    }
}