/*
Theme Name:   GeneratePress Child
Theme URI:    https://certsiq.com
Description:  Custom modern child theme for CertsIQ.com built on GeneratePress
Author:       CertsIQ Team
Template:     generatepress
Version:      1.0.0
Text Domain:  generatepress-child
*/

/* =========================================================================
   Start front-page.php file css
========================================================================= */


/* =========================================================================
   1. EXTREME FORCE FULL-WIDTH ENGINE OVERRIDES (Bypasses GP Theme Scripting)
========================================================================= */
html, body.home {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Forces container breakout across all potential GeneratePress layout models */
body.home #page,
body.home .site-content,
body.home #primary,
body.home .site-main,
body.home .grid-container,
body.home .inside-article,
body.home article {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Targets parent wrappers across single-container or separate-container layouts */
body.home .separate-containers .inside-article,
body.home .one-container .site-content {
    padding: 0 !important;
}

/* Ensure background grid sections fill up 100% viewport width */
body.home .ciq-hero-modern,
body.home .ciq-stats-bar,
body.home .ciq-section {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
}

/* =========================================================================
   2. GLOBAL COLORS & COHESIVE ROOT ARCHITECTURE
========================================================================= */
:root {
    --ciq-primary: #0a2540;   
    --ciq-accent: #00d4ff;    
    --ciq-text: #425466;
    --ciq-light: #f6f9fc;
}

.certsiq-home-modern { 
    font-family: 'Inter', 'Open Sans', sans-serif; 
    color: var(--ciq-text); 
    line-height: 1.7; 
}

/* Clean 1200px containment framework for inner content components */
.ciq-container { 
    max-width: 1200px; 
    margin: 0 auto !important; 
    padding: 0 20px !important; 
    box-sizing: border-box !important;
}

.ciq-section { 
    padding: 80px 0; 
}

.ciq-bg-light { 
    background-color: var(--ciq-light); 
}

.ciq-bg-dark { 
    background-color: var(--ciq-primary); 
    color: #fff; 
}

/* =========================================================================
   3. INNER ELEMENT COMPONENT STYLES
========================================================================= */
.ciq-section-header { 
    text-align: center; 
    margin-bottom: 50px; 
}

.ciq-section-header h2 { 
    font-size: 32px; 
    color: var(--ciq-primary); 
    font-weight: 800; 
    margin-bottom: 10px; 
}

.ciq-bg-dark .ciq-section-header h2 { 
    color: #fff; 
}

.ciq-section-header p { 
    font-size: 18px; 
    color: var(--ciq-text); 
}

/* Hero Elements */
.ciq-hero-modern { 
    background: linear-gradient(135deg, #0a2540 0%, #173d63 100%); 
    padding: 100px 0; 
    color: #fff; 
    overflow: hidden; 
}

.ciq-hero-grid { 
    display: grid; 
    grid-template-columns: 1.2fr 0.8fr; 
    gap: 40px; 
    align-items: center; 
}

.ciq-badge { 
    display: inline-block; 
    background: rgba(0, 212, 255, 0.15); 
    color: var(--ciq-accent); 
    padding: 5px 15px; 
    border-radius: 50px; 
    font-weight: 600; 
    font-size: 14px; 
    margin-bottom: 20px; 
}

.ciq-h1 { 
    font-size: 46px; 
    font-weight: 900; 
    line-height: 1.2; 
    margin-bottom: 20px; 
    color: #fff; 
}

.ciq-lead { 
    font-size: 18px; 
    color: #c3d4e6; 
    margin-bottom: 35px; 
    max-width: 90%; 
}

.ciq-hero-image img { 
    width: 100%; 
    height: auto; 
    animation: float 6s ease-in-out infinite; 
}

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

/* Search Box Form */
.ciq-search-box { 
    margin-bottom: 25px; 
}

.ciq-search-form { 
    display: flex; 
    max-width: 500px; 
    background: #fff; 
    padding: 5px; 
    border-radius: 8px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); 
}

.ciq-search-field { 
    flex: 1; 
    border: none; 
    padding: 15px; 
    font-size: 16px; 
    border-radius: 5px; 
    outline: none; 
}

.ciq-search-btn { 
    background: var(--ciq-accent); 
    color: var(--ciq-primary); 
    border: none; 
    padding: 0 30px; 
    font-weight: bold; 
    font-size: 16px; 
    border-radius: 5px; 
    cursor: pointer; 
    transition: 0.3s; 
}

.ciq-search-btn:hover { 
    background: #00bce6; 
}

/* Stats Metric Layout */
.ciq-stats-bar { 
    background-color: #00d4ff; 
    padding: 20px 0; 
    color: #0a2540; 
}

.ciq-stats-grid { 
    display: flex; 
    justify-content: space-around; 
    flex-wrap: wrap; 
    text-align: center; 
}

.ciq-stats-grid .stat-item { 
    font-size: 16px; 
    margin: 10px; 
}

.ciq-stats-grid .stat-item strong { 
    font-size: 24px; 
    font-weight: 900; 
    display: block; 
    margin-bottom: 5px; 
}

/* Vendor Grid Architecture */
.ciq-vendor-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 30px; 
}

.ciq-vendor-card { 
    background: #fff; 
    padding: 30px 20px; 
    text-align: center; 
    border-radius: 12px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.02); 
    text-decoration: none; 
    border: 1px solid #eaeaea; 
    transition: transform 0.3s, box-shadow 0.3s; 
}

.ciq-vendor-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.08); 
    border-color: transparent; 
}

.ciq-vendor-card img { 
    height: 60px; 
    margin-bottom: 15px; 
}

.ciq-vendor-card h3 { 
    color: var(--ciq-primary); 
    font-size: 18px; 
    margin: 0; 
    font-weight: 700; 
}

/* Showcase Loops */
.ciq-vendor-showcase .showcase-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 2px solid #e2e8f0; 
    padding-bottom: 15px; 
    margin-bottom: 30px; 
}

.ciq-vendor-showcase h2 { 
    color: #0a2540; 
    font-size: 26px; 
    font-weight: 800; 
    margin: 0; 
}

.view-all-btn { 
    color: #1e5ba9; 
    font-weight: 600; 
    text-decoration: none; 
    transition: color 0.3s; 
}

.view-all-btn:hover { 
    color: #00d4ff; 
}

/* Features Component Matrix */
.ciq-features-modern { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 40px; 
}

.ciq-feature-card { 
    text-align: center; 
}

.ciq-feature-card .icon { 
    font-size: 45px; 
    margin-bottom: 20px; 
}

.ciq-feature-card h4 { 
    font-size: 20px; 
    margin-bottom: 10px; 
    color: #fff; 
}

.ciq-feature-card p { 
    color: #aab8c5; 
    font-size: 15px; 
}

/* =========================================
   4. RESPONSIVE LAYOUT CONSTRAINTS
========================================= */
@media (max-width: 991px) {
    .ciq-hero-grid { grid-template-columns: 1fr; text-align: center; }
    .ciq-lead { margin: 0 auto 30px; }
    .ciq-search-form { margin: 0 auto; }
    .ciq-h1 { font-size: 36px; }
}

@media (max-width: 768px) {
    .ciq-vendor-showcase .showcase-header { flex-direction: column; text-align: center; gap: 15px; }
    .ciq-section { padding: 50px 0; }
}

@media (max-width: 576px) {
    .ciq-search-form { flex-direction: column; }
    .ciq-search-btn { padding: 15px; margin-top: 5px; }
}

/* =========================================================================
   End of front-page.php file css
========================================================================= */



/* =========================================================================
   Start of Header Section
========================================================================= */

/* =========================================================================
   DYNAMIC HEADER COLOR PROFILE & INTERACTION LAYOUTS
========================================================================= */
.ciq-site-header {
    background-color: #0a2540; /* Dark Navy base */
    border-bottom: 3px solid #00d4ff; /* Tech Cyan accents */
    padding: 15px 0;
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    position: relative;
    z-index: 9999;
}

.ciq-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

/* 1. Text Logo Styling */
.ciq-logo a {
    font-size: 26px;
    font-weight: 900;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 1px;
}
.ciq-logo a span {
    color: #00d4ff; /* Cyan Accent Logo Prefix */
}

/* 2. Live Search UI Configuration */
.ciq-header-search {
    position: relative;
    width: 320px;
}
.ciq-header-search-form {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 4px 10px;
    transition: all 0.3s ease;
}
.ciq-header-search-form:focus-within {
    border-color: #00d4ff;
    background: #ffffff;
}
.ciq-header-search-form:focus-within .ciq-search-input {
    color: #0a2540;
}
.ciq-header-search-form:focus-within .dashicons {
    color: #0a2540;
}
.ciq-search-input {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 14px;
    width: 100%;
    padding: 6px 0;
}
.ciq-search-submit {
    background: transparent;
    border: none;
    cursor: pointer;
}
.ciq-search-submit .dashicons {
    color: #00d4ff;
    font-size: 18px;
}

/* Live Search Dropdown Alignment (Exam Code + Category Layout) */
.ciq-search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-radius: 0 0 6px 6px;
    margin-top: 5px;
    display: none;
    overflow: hidden;
}

.search-result-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f4f8;
    text-decoration: none;
    transition: all 0.2s ease;
}

.search-result-item:hover {
    background: #f6f9fc;
    padding-left: 24px;
}

/* Exam Code (e.g., CLF-C02) */
.search-result-item .result-code {
    color: #0a2540;
    font-weight: 700;
    font-size: 14px;
}

/* Category Label (e.g., Oracle) */
.search-result-item .result-cat {
    background-color: #f0f4f8;
    color: #425466;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.search-result-item:hover .result-cat {
    background-color: #00d4ff;
    color: #0a2540;
}

.search-result-item:last-child {
    border-bottom: none;
}

/* Navigation System Menu Links */
.ciq-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 25px;
}
.ciq-menu-list li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s ease;
}
.ciq-menu-list li a:hover {
    color: #00d4ff;
}

/* Actions Base Layout */
.ciq-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.ciq-action-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}
.ciq-action-link:hover {
    color: #00d4ff;
}

/* 3. Dropdown Component Core Structure */
.ciq-cart-wrapper {
    position: relative;
}
.ciq-cart-count {
    background: #00d4ff;
    color: #0a2540;
    font-weight: 800;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 20px;
}
.ciq-mini-cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 20px;
    margin-top: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}
.ciq-cart-wrapper:hover .ciq-mini-cart-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.ciq-mini-cart-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 240px;
    overflow-y: auto;
}
.ciq-mini-cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f4f8;
}
.ciq-mini-item-info {
    display: flex;
    flex-direction: column;
}
.ciq-mini-item-code {
    color: #0a2540;
    font-weight: 700;
    font-size: 14px;
}
.ciq-mini-item-price {
    color: #425466;
    font-size: 13px;
}
.ciq-mini-item-remove {
    color: #ff4d4f;
    text-decoration: none;
    font-size: 20px;
    cursor: pointer;
}
.ciq-mini-cart-footer {
    margin-top: 15px;
}
.ciq-mini-subtotal {
    display: flex;
    justify-content: space-between;
    color: #0a2540;
    font-size: 14px;
    margin-bottom: 15px;
}
.ciq-checkout-btn {
    display: block;
    text-align: center;
    background: #00d4ff;
    color: #0a2540;
    text-decoration: none;
    font-weight: 700;
    padding: 12px 0;
    border-radius: 6px;
    transition: background 0.2s ease;
}
.ciq-checkout-btn:hover {
    background: #00bce6;
}
.ciq-empty-cart-msg {
    color: #7b8e9d;
    text-align: center;
    margin: 10px 0;
}

/* 4. Logged-In User Profile Interface */
.user-display-name {
    color: #00d4ff;
    font-weight: 700;
}


/* Realignment for structural header components */
.ciq-header-actions {
    display: flex;
    align-items: center;
    gap: 30px; /* Enhanced spacing layout between search, login, and cart */
    flex: 1;
    justify-content: flex-end;
}

.ciq-header-search {
    width: 280px; /* Slight width optimization for centered aesthetic */
    margin-left: 20px; /* Creates explicit separation right after 'Contact Us' */
}


/* Mini-Cart Variation Badge Design */
.ciq-mini-item-variant {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #00d4ff; /* Tech Cyan accent font color */
    background: rgba(0, 212, 255, 0.08); /* Soft matching background overlay */
    padding: 2px 8px;
    border-radius: 4px;
    margin: 4px 0;
    width: max-content;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* =========================================================================
   PREMIUM MODERNIZE MINI-CART DROPDOWN SYSTEM
========================================================================= */
.ciq-cart-wrapper {
    position: relative;
}

/* Dropdown Container Card */
.ciq-mini-cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 330px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(10, 37, 64, 0.15); /* Clean contrast depth drop-shadow */
    border: 1px solid #eef2f7;
    padding: 24px;
    margin-top: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Triangle Anchor Pointer Top-Right */
.ciq-mini-cart-dropdown::before {
    content: '';
    position: absolute;
    bottom: 100%;
    right: 15px;
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent #ffffff transparent;
}

.ciq-cart-wrapper:hover .ciq-mini-cart-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Item List Window Wrapper */
.ciq-mini-cart-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Customized clean scrollbar track */
.ciq-mini-cart-list::-webkit-scrollbar {
    width: 4px;
}
.ciq-mini-cart-list::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

/* List Item Rows Layout */
.ciq-mini-cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s ease;
}
.ciq-mini-cart-item:first-child {
    padding-top: 0;
}
.ciq-mini-cart-item:last-child {
    border-bottom: none;
    padding-bottom: 15px;
}

.ciq-mini-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* 1. Dynamic Format Badge (Placed above code) */
.ciq-mini-item-variant {
    align-self: flex-start;
    font-size: 10px;
    font-weight: 800;
    color: #00d4ff; /* Tech Cyan Accent */
    background: rgba(0, 212, 255, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 2. Exam Code Typography */
.ciq-mini-item-code {
    color: #0a2540; /* Dark Navy Deep */
    font-weight: 700;
    font-size: 15px;
    line-height: 1.3;
}

/* 3. Pricing Text */
.ciq-mini-item-price {
    color: #64748b;
    font-weight: 600;
    font-size: 13px;
    margin-top: 1px;
}

/* Interactive Delete/Trash Icon */
.ciq-mini-item-remove {
    color: #94a3b8;
    text-decoration: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.ciq-mini-item-remove .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}
.ciq-mini-item-remove:hover {
    color: #ef4444; /* Clean Red alert on hover */
    background: #fef2f2;
}

/* Footer Section Panel */
.ciq-mini-cart-footer {
    margin-top: 15px;
    border-top: 2px dashed #f1f5f9;
    padding-top: 18px;
}

/* Dynamic Subtotal Pricing Display Row */
.ciq-mini-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}
.ciq-mini-subtotal strong {
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
}
.ciq-mini-subtotal span {
    color: #0a2540;
    font-size: 18px;
    font-weight: 800;
}

/* Call To Action Checkout Button */
.ciq-checkout-btn {
    display: block;
    text-align: center;
    background: #00d4ff; /* Tech Cyan */
    color: #0a2540 !important; /* Dark Navy Contrast */
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
    transition: all 0.2s ease;
}
.ciq-checkout-btn:hover {
    background: #00bce6;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 212, 255, 0.3);
}

/* Empty Alert Window */
.ciq-empty-cart-msg {
    color: #94a3b8;
    text-align: center;
    font-size: 14px;
    margin: 10px 0;
    font-weight: 500;
}


/* =========================================================================
   FIX FOR INVISIBLE MINI-CART VARIATION LABEL (image_ca34df.png)
========================================================================= */
body .ciq-mini-cart-dropdown .ciq-mini-cart-item .ciq-mini-item-info .ciq-mini-item-variant {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    
    /* Force high-contrast text color */
    color: #0a2540 !important; 
    
    /* Tech Cyan background block badge to make it stick out beautifully */
    background-color: #00d4ff !important; 
    
    /* Padding and layout adjustments */
    padding: 3px 8px !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 6px !important;
    width: max-content !important;
}

/* Add balanced spacing between the CertsIQ Logo and the Home menu item */
.ciq-logo {
    margin-right: 45px; /* Increase this number (e.g., 60px, 80px) to push the menu further right */
}

/* Ensure the logo text matches your CertsIQ branding perfectly */
.ciq-logo a {
    font-size: 26px;
    font-weight: 900;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 1px;
}

/* Ensure the Home button and entire menu container stay perfectly vertically aligned */
.ciq-header-container {
    display: flex;
    align-items: center;
}


/* =========================================================================
   End of Header Section
========================================================================= */