/*
Theme Name: CP-Themes
Theme URI: https://www.elangdigital.web.id/
Author: Elang Digital by Maspenx
Description: Tema Company Profile B2B, Service, Produk Katalog
Version: 1.1.0
Requires at least: 5.9
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cp-themes
Tags: business, company-profile, b2b, service, catalog, responsive
*/

/* Import Bootstrap (dihandle via functions.php) */

/* ==========================================================================
   CUSTOM STYLES FROM HTML
   ========================================================================== */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header & Navigation */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #007bff !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero-section .btn-primary {
    background: #fff;
    color: #667eea;
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-section .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.service-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.service-card i {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Products Section */
.products-section {
    padding: 80px 0;
}

/* Products Cards - EQUAL HEIGHT FIX */
.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: 100%; /* Force equal height */
}

.product-card img {
    width: 100%;
    height: 350px; /* Fixed height for consistency */
    object-fit: contain;
    object-position: center;
    background: #f8f9fa;
    flex-shrink: 0; /* Prevent image from shrinking */
}

.product-card .card-body {
    flex: 1; /* Take remaining space */
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.product-card .card-body h4,
.product-card .card-body .product-title {
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.product-card .card-body .price,
.product-card .card-body .product-price {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #007bff;
    font-weight: bold;
}

.product-card .card-body .btn,
.product-card .card-body a.btn {
    margin-top: auto; /* Push button to bottom */
}

/* Ensure parent container uses flexbox for equal height */
.catalog-slider .product-card,
.products-grid .product-card {
    height: 100%;
}

/* Responsive */
@media (max-width: 992px) {
    .product-card img {
        height: 320px;
    }
}

@media (max-width: 768px) {
    .product-card img {
        height: 300px;
    }
}
.about-section .badge {
    font-size: 0.875rem;
    padding: 8px 16px;
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.contact-info {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.contact-info h5 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info i {
    color: #007bff;
    margin-right: 10px;
}

/* Footer */
.site-footer {
    background: #343a40;
    color: white;
    padding: 60px 0 30px;
}

.site-footer h5 {
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.site-footer ul {
    list-style: none;
    padding: 0;
}

.site-footer ul li {
    margin-bottom: 0.75rem;
}

.site-footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 30px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .services-section,
    .products-section,
    .about-section,
    .contact-section {
        padding: 50px 0;
    }
}
/* ==========================================================================
   LOGO SIZE ADJUSTMENT
   ========================================================================== */

.custom-logo {
    max-height: 45px !important;
    width: auto;
    display: block;
}

.navbar-brand {
    padding: 0;
    margin: 0;
}

.navbar-brand .brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #007bff;
}

/* ==========================================================================
   HEADER CTA BUTTON (Tombol Kontak Merah)
   ========================================================================== */

.header-cta-btn {
    background: #dc2626 !important;
    color: white !important;
    border: none !important;
    padding: 8px 20px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-block;
}

.header-cta-btn:hover {
    background: #b91c1c !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.header-cta-btn:active {
    transform: translateY(0);
}

/* Mobile adjustments */
@media (max-width: 991px) {
    .header-cta-btn {
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================================
   HERO SECTION WITH BACKGROUND IMAGE
   ========================================================================== */

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    z-index: 1;
}

/* Hero background image from Theme Options */
.hero-section.has-background::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center right;
    opacity: 0.3;
    z-index: 2;
}

.hero-section .container {
    position: relative;
    z-index: 3;
}

/* Responsive hero background */
@media (max-width: 768px) {
    .hero-section.has-background::after {
        width: 100%;
        opacity: 0.15;
        background-position: center;
    }
    
    .hero-section {
        padding: 80px 0;
    }
}
/* ==========================================================================
   HEADER & LOGO ADJUSTMENTS
   ========================================================================== */

.custom-logo {
    max-height: 45px !important;
    width: auto;
    display: block;
    margin-right: 12px;
}

.navbar-brand-wrapper {
    display: flex;
    align-items: center;
}

.navbar-brand {
    padding: 0;
    margin: 0;
    display: flex !important;
    align-items: center;
    text-decoration: none;
}


/* ==========================================================================
   MENU NAVIGATION (Right Side with Hover Animation)
   ========================================================================== */

.navbar-nav {
    margin-left: auto;
}

.navbar-nav .nav-link {
    color: #343a40 !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #007bff !important;
}

/* Animated underline on hover */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #007bff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 70%;
}

.navbar-nav .nav-item.active .nav-link {
    color: #007bff !important;
}

.navbar-nav .nav-item.active .nav-link::after {
    width: 70%;
}

/* ==========================================================================
   HEADER CTA BUTTON (Tombol Kontak Merah)
   ========================================================================== */

.header-cta-btn {
    background: #dc2626 !important;
    color: white !important;
    border: none !important;
    padding: 8px 20px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-block;
}

.header-cta-btn:hover {
    background: #b91c1c !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.header-cta-btn:active {
    transform: translateY(0);
}

/* ==========================================================================
   HERO SECTION (Full Cover Background)
   ========================================================================== */

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

/* Hero full cover background image */
.hero-section.has-background {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.hero-section.has-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 3;
}

/* ==========================================================================
   TAGLINE SECTION (Below Hero)
   ========================================================================== */

.tagline-section {
    background: #1f2937;
    color: white;
    padding: 30px 0;
    text-align: center;
}

.tagline-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: white;
}

/* ==========================================================================
   ABOUT SECTION (With Image)
   ========================================================================== */

.about-section {
    padding: 80px 0;
    background: #fff;
}

.about-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.about-image-wrapper:hover img {
    transform: scale(1.05);
}

/* ==========================================================================
   SERVICES SECTION (Dynamic)
   ========================================================================== */

.services-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.service-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.service-card .service-icon {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 1rem;
    display: block;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-card p {
    color: #6c757d;
    margin: 0;
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 991px) {
    .navbar-nav {
        margin-left: 0;
        margin-top: 15px;
    }
    
    .header-cta-btn {
        margin-top: 10px;
        margin-left: 0 !important;
        width: 100%;
        text-align: center;
    }
    

}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
        min-height: 500px;
    }
    
    .hero-section h1 {
        font-size: 2rem !important;
    }
    
    .tagline-section h3 {
        font-size: 1.25rem;
    }
    
    .about-section {
        padding: 50px 0;
    }
    
    .services-section {
        padding: 50px 0;
    }
}
/* ==========================================================================
   MENU NAVIGATION - ENHANCED HOVER ANIMATION
   ========================================================================== */

.navbar-nav .nav-link {
    color: #2c3e50 !important;
    font-weight: 600 !important;
    font-size: 0.95rem;
    padding: 10px 18px !important;
    position: relative;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.navbar-nav .nav-link:hover {
    color: #007bff !important;
    background: rgba(0, 123, 255, 0.08);
    border-radius: 6px;
}

/* Animated underline on hover */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: translateX(-50%);
    border-radius: 2px;
}

.navbar-nav .nav-link:hover::after {
    width: 75%;
}

.navbar-nav .nav-item.active .nav-link {
    color: #007bff !important;
    font-weight: 700 !important;
}

.navbar-nav .nav-item.active .nav-link::after {
    width: 75%;
}

/* ==========================================================================
   HERO SECTION - FIXED BACKGROUND (No Repeat + Full Cover)
   ========================================================================== */

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

/* Hero full cover background - FIXED */
.hero-section.has-background {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed;
}

.hero-section.has-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.75) 0%, rgba(118, 75, 162, 0.75) 100%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 3;
}

/* ==========================================================================
   TAGLINE SECTION - DARK BACKGROUND WITH WHITE BOLD TEXT (CENTERED)
   ========================================================================== */

.tagline-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tagline-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 123, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.tagline-section .container {
    position: relative;
    z-index: 2;
}

.tagline-section h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.tagline-section h3::before,
.tagline-section h3::after {
    content: '—';
    margin: 0 15px;
    color: #007bff;
}

/* ==========================================================================
   PARTNERS SECTION (MITRA) - UPDATED WITH COMPANY NAME
   ========================================================================== */

.partners-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.partners-section .section-title {
    text-align: center;
    margin-bottom: 20px;
}

.partners-section .section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.partners-section .section-description {
    text-align: center;
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto 50px;
}

/* Partners Grid Container */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
    justify-items: center;
}

/* Partner Logo Item (Card Wrapper) */
.partner-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 250px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.partner-logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Partner Logo Image Wrapper */
.partner-logo-image {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f9fa;
}

.partner-logo-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(70%);
    transition: all 0.3s ease;
}

.partner-logo-item:hover .partner-logo-image img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Partner Company Name */
.partner-company-name {
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    line-height: 1.4;
}

/* Dark Mode Support */
@media (prefers-color-scheme: light) {
    .partner-logo-item {
        background: #2c3e50;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    
    .partner-logo-image {
        background: #34495e;
    }
    
    .partner-company-name {
        color: #ecf0f1;
    }
}

/* Responsive - Tablet */
@media (max-width: 992px) {
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 25px;
    }
    
    .partner-logo-image {
        height: 130px;
    }
    
    .partner-company-name {
        font-size: 15px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .partner-logo-item {
        max-width: 100%;
        padding: 15px;
    }
    
    .partner-logo-image {
        height: 120px;
    }
    
    .partner-company-name {
        font-size: 14px;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .partner-logo-image {
        height: 150px;
    }
}

/* ============================================================ 
   SINGLE PRODUCT PAGE - WORKING VERSION
   ============================================================ */

/* Target ONLY single product page using WordPress body class */
body.single .single-product-image-wrapper,
body.single-produk .single-product-image-wrapper,
.single .single-product-image-wrapper {
    position: relative;
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

/* Image Link */
body.single .single-product-image-link,
body.single-produk .single-product-image-link,
.single .single-product-image-link {
    display: block;
    position: relative;
    cursor: zoom-in;
    width: 100%;
    text-align: center;
}

/* FORCE CONTAIN for single product image ONLY */
body.single .col-lg-6 img.img-fluid,
body.single-produk .col-lg-6 img.img-fluid,
body.single .single-product-image-wrapper img,
body.single-produk .single-product-image-wrapper img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: none !important;
    min-height: 400px !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Hover zoom effect */
body.single .single-product-image-link:hover img,
body.single-produk .single-product-image-link:hover img {
    transform: scale(1.02);
}

/* Zoom Icon Overlay */
body.single .image-zoom-overlay,
body.single-produk .image-zoom-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    pointer-events: none;
    z-index: 10;
}

body.single .single-product-image-link:hover .image-zoom-overlay,
body.single-produk .single-product-image-link:hover .image-zoom-overlay {
    display: flex;
}

/* Lightbox */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox-overlay.active {
    display: flex !important;
}

.lightbox-content {
    position: relative;
    max-width: 95%;
    max-height: 95%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: -10px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #fff;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Responsive - Tablet */
@media (max-width: 992px) {
    body.single .single-product-image-wrapper,
    body.single-produk .single-product-image-wrapper {
        padding: 30px;
        min-height: 400px;
    }
    
    body.single .col-lg-6 img.img-fluid,
    body.single-produk .col-lg-6 img.img-fluid {
        min-height: 350px !important;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    body.single .single-product-image-wrapper,
    body.single-produk .single-product-image-wrapper {
        padding: 25px;
        min-height: 350px;
    }
    
    body.single .col-lg-6 img.img-fluid,
    body.single-produk .col-lg-6 img.img-fluid {
        min-height: 300px !important;
    }
    
    body.single .image-zoom-overlay,
    body.single-produk .image-zoom-overlay {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    body.single .single-product-image-wrapper,
    body.single-produk .single-product-image-wrapper {
        padding: 20px;
        min-height: 300px;
    }
    
    body.single .col-lg-6 img.img-fluid,
    body.single-produk .col-lg-6 img.img-fluid {
        min-height: 250px !important;
    }
}


/* ==========================================================================
   GALLERY SECTION
   ========================================================================== */

.gallery-section {
    padding: 80px 0;
    background: #fff;
}

.gallery-section .section-title {
    text-align: center;
    margin-bottom: 50px;
}

.gallery-section .section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.6) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ==========================================================================
   RESPONSIVE FIXES - MOBILE HEADER & CTA BUTTON
   ========================================================================== */

/* Tablet and below */
@media (max-width: 991px) {
    /* Keep company name visible on tablet/mobile */

    
    .navbar-brand {
        flex: 1;
        margin-right: 0;
    }
    
    .navbar-toggler {
        order: 3;
        margin-left: 10px;
    }
    
    /* CTA Button: Move OUTSIDE collapsed menu (next to hamburger) */
    .header-cta-btn {
        order: 4;
        margin-left: 10px !important;
        margin-top: 0 !important;
        width: auto !important;
        padding: 8px 16px !important;
        font-size: 0.875rem !important;
    }
    
    /* Collapsed menu content */
    .navbar-collapse {
        margin-top: 15px;
        order: 5;
        width: 100%;
    }
    
    .navbar-nav {
        margin-left: 0;
        margin-bottom: 0;
    }
    
    .navbar-nav .nav-link {
        padding: 12px 0 !important;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .navbar-nav .nav-link::after {
        display: none;
    }
}

/* Mobile specific */
@media (max-width: 768px) {
    /* Header container: Flexbox layout */
    .navbar > .container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }
    
    /* Logo + Company Name (flex: 1) */
    .navbar-brand {
        display: flex !important;
        align-items: center;
        flex: 1;
        order: 1;
    }
    
    .custom-logo {
        max-height: 40px !important;
        margin-right: 10px;
    }
    

    /* Hamburger icon (order: 2) */
    .navbar-toggler {
        padding: 8px 10px;
        order: 2;
        margin-left: 10px;
    }
    
    /* CTA Button (order: 3) - Di samping hamburger */
    .header-cta-btn {
        order: 3;
        margin-left: 8px !important;
        margin-top: 0 !important;
        width: auto !important;
        padding: 8px 14px !important;
        font-size: 0.8rem !important;
        white-space: nowrap;
    }
    
    /* Collapsed menu (order: 4) - Full width di bawah */
    .navbar-collapse {
        order: 4;
        width: 100%;
        margin-top: 10px;
    }
    
    /* Hero buttons spacing fix */
    .hero-section {
        padding: 80px 0;
        min-height: 500px;
    }
    
    .hero-section h1 {
        font-size: 1.75rem !important;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin: 0 !important;
    }
    
    .hero-buttons .btn-success {
        margin-top: 0 !important;
    }
    
    /* Tagline */
    .tagline-section h3 {
        font-size: 1.1rem;
        padding: 0 15px;
    }
    
    .tagline-section h3::before,
    .tagline-section h3::after {
        display: none;
    }
    
    /* Partners & Gallery */
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Small mobile (extra small screens) */
@media (max-width: 576px) {

    
    .custom-logo {
        max-height: 35px !important;
    }
    
    .navbar-toggler {
        padding: 6px 8px;
        font-size: 1.1rem;
    }
    
    .header-cta-btn {
        padding: 6px 12px !important;
        font-size: 0.75rem !important;
    }
    
    .hero-section h1 {
        font-size: 1.5rem !important;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
}

/* Extra small mobile (< 400px) */
@media (max-width: 400px) {

    
    .custom-logo {
        max-height: 32px !important;
        margin-right: 5px;
    }
    
    .header-cta-btn {
        padding: 5px 10px !important;
        font-size: 0.7rem !important;
    }
}

/* ==========================================================================
   COMPANY NAME - FONT 2X LEBIH BESAR (SIMPLE VERSION)
   ========================================================================== */

.company-name-text {
    font-size: 2.5rem !important; /* 40px - BESAR! */
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: #30378f !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block !important;
}

/* Desktop Besar */
@media (min-width: 1200px) {
    .company-name-text {
        font-size: 2.0rem !important; /* 48px - EXTRA BESAR! */
    }
}

/* Desktop */
@media (min-width: 992px) and (max-width: 1199px) {
    .company-name-text {
        font-size: 1.9rem !important; /* 40px */
    }
}

/* Tablet */
@media (max-width: 991px) and (min-width: 768px) {
    .company-name-text {
        font-size: 1.7rem !important; /* 32px */
    }
}

/* Mobile */
@media (max-width: 767px) and (min-width: 577px) {
    .company-name-text {
        font-size: 1.5rem !important; /* 28px */
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .company-name-text {
        font-size: 1.0rem !important; /* 24px */
        white-space: normal !important;
        max-width: 250px;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .company-name-text {
        font-size: 0.8rem !important; /* 20px */
        max-width: 200px;
    }
}



/* ==========================================================================
   GOOGLE MAPS SECTION - FULL WIDTH
   ========================================================================== */

.gmap-section {
    padding: 0;
    background: #fff;
}

/* Title & Badge Container */
.gmap-section .gmap-header {
    padding: 80px 0 40px;
    text-align: center;
    background: #fff;
}

/* Map Wrapper - FULL WIDTH */
.gmap-wrapper {
    position: relative;
    width: 100%;
    height: 600px; /* Fixed height instead of padding-bottom */
    overflow: hidden;
}

.gmap-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Address Info Container */
.gmap-info-container {
    padding: 40px 0 80px;
    background: #fff;
}

.gmap-address {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    font-size: 1rem;
    color: #6c757d;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.gmap-address i {
    font-size: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .gmap-section .gmap-header {
        padding: 50px 15px 30px;
    }
    
    .gmap-wrapper {
        height: 400px;
    }
    
    .gmap-info-container {
        padding: 30px 15px 50px;
    }
}

@media (max-width: 576px) {
    .gmap-wrapper {
        height: 350px;
    }
}

/* ==========================================================================
   FLOATING CTA BUTTON (Mobile Only) - Fixed Position
   ========================================================================== */

.floating-cta-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #dc3545;
    color: white;
    padding: 14px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    z-index: 999;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.floating-cta-btn:hover {
    background: #c82333;
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.6);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.floating-cta-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(220, 53, 69, 0.5);
}

.floating-cta-btn i {
    font-size: 1rem;
}

/* Hide on desktop (>= 992px) */
@media (min-width: 992px) {
    .floating-cta-btn {
        display: none !important;
    }
}

/* Tablet adjustments */
@media (max-width: 991px) {
    .floating-cta-btn {
        bottom: 15px;
        right: 15px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .floating-cta-btn {
        bottom: 15px;
        right: 15px;
        padding: 10px 18px;
        font-size: 0.85rem;
    }
}

/* Extra small mobile - show icon only (circular button) */
@media (max-width: 400px) {
    .floating-cta-btn {
        padding: 12px;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        justify-content: center;
    }
    
    .floating-cta-btn span {
        display: none;
    }
    
    .floating-cta-btn i {
        margin: 0 !important;
        font-size: 1.2rem;
    }
}

/* Pulse animation untuk floating button */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
    }
    50% {
        box-shadow: 0 6px 16px rgba(220, 53, 69, 0.6);
    }
    100% {
        box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
    }
}

.floating-cta-btn {
    animation: pulse 2s infinite ease-in-out;
}

.floating-cta-btn:hover {
    animation: none;
}

/* ==========================================================================
   SECTION TITLE BADGES - UNIFORM STYLE (ALL SECTIONS) - FIXED
   ========================================================================== */

/* Target semua section title di homepage */
.about-section .section-title,
.services-section .text-center,
.partners-section .section-title,
.gallery-section .section-title,
.products-section .text-center,
.contact-section .text-center,
.gmap-section .text-center {
    margin-bottom: 50px;
}

/* Uniform Badge Style - Override Bootstrap colors */
.about-section .badge,
.services-section .badge,
.partners-section .badge,
.gallery-section .badge,
.products-section .badge,
.contact-section .badge,
.gmap-section .badge {
    /* UNIFORM COLOR - Gunakan warna primary yang sama */
    background-color: #007bff !important;
    color: white !important;
    
    /* UNIFORM SIZE */
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    
    /* UNIFORM SPACING */
    padding: 8px 16px !important;
    margin-bottom: 20px !important;
    
    /* UNIFORM SHAPE */
    border-radius: 20px !important;
    
    /* UPPERCASE TEXT */
    text-transform: uppercase !important;
    
    /* Remove any conflicting styles */
    display: inline-block !important;
}

/* Uniform H2 Title Style - FIXED WITH SPECIFIC SELECTORS */
.about-section h2,
.services-section h2.display-5,
.partners-section .section-title h2,
.gallery-section .section-title h2,
.products-section h2.display-5,
.contact-section h2.display-5,
.gmap-section h2.display-5 {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: #2c3e50 !important;
    margin-bottom: 20px !important;
    line-height: 1.2 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Uniform Lead/Description Text */
.services-section .lead,
.products-section .lead {
    font-size: 1.125rem !important;
    color: #6c757d !important;
    max-width: 700px !important;
    margin: 0 auto !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .about-section h2,
    .services-section h2,
    .partners-section h2,
    .gallery-section h2,
    .products-section h2,
    .contact-section h2,
    .gmap-section h2 {
        color: #ecf0f1 !important;
    }
    
    .services-section .lead,
    .products-section .lead {
        color: #bdc3c7 !important;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .about-section h2,
    .services-section h2,
    .partners-section h2,
    .gallery-section h2,
    .products-section h2,
    .contact-section h2,
    .gmap-section h2 {
        font-size: 2rem !important;
    }
    
    .about-section .badge,
    .services-section .badge,
    .partners-section .badge,
    .gallery-section .badge,
    .products-section .badge,
    .contact-section .badge,
    .gmap-section .badge {
        font-size: 0.7rem !important;
        padding: 6px 14px !important;
    }
}

@media (max-width: 576px) {
    .about-section h2,
    .services-section h2,
    .partners-section h2,
    .gallery-section h2,
    .products-section h2,
    .contact-section h2,
    .gmap-section h2 {
        font-size: 1.75rem !important;
    }
}
/* ==========================================================================
   ABOUT SECTION H2 FIX - HIGHEST PRIORITY (MUST BE LAST!)
   ========================================================================== */

/* Force About Section Title to be visible with HIGHEST specificity */
html body .about-section .about-content .section-title,
html body .about-section h2.section-title,
html body .about-section h2,
body .about-section h2 {
    color: #2c3e50 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Also fix other sections if needed */
html body .services-section h2,
html body .partners-section h2,
html body .gallery-section h2,
html body .products-section h2,
html body .contact-section h2,
html body .gmap-section h2 {
    color: #2c3e50 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Nuclear option - override ANY h2 in sections with white/light backgrounds */
body section.about-section h2,
body section.services-section h2,
body section.partners-section h2,
body section.gallery-section h2,
body section.products-section h2,
body section.contact-section h2,
body section.gmap-section h2 {
    color: #2c3e50 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* ==========================================================================
   LIGHTBOX POPUP FOR GALLERY
   ========================================================================== */

.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

/* Close Button */
.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 10000;
    line-height: 1;
    transition: all 0.3s ease;
    padding: 10px 15px;
}

.lightbox-close:hover {
    color: #ff4444;
    transform: rotate(90deg);
}

/* Navigation Buttons */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 2rem;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%) scale(1.1);
}

/* Counter */
.lightbox-counter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 20px;
}

/* Gallery Item Cursor */
.gallery-item {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 85%;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 2.5rem;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        padding: 10px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-counter {
        bottom: 20px;
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* ============================================================ 
   PRODUCT GALLERY - MULTIPLE IMAGES SUPPORT
   ============================================================ */

/* Main Gallery Slider Container */
.product-gallery-main {
    position: relative;
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
    overflow: hidden;
}

/* Gallery Slide Item */
.product-gallery-main .gallery-slide {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    outline: none;
}

/* Product Image Link in Gallery */
.product-gallery-main .product-image-link {
    display: block;
    position: relative;
    cursor: zoom-in;
    width: 100%;
    text-align: center;
}

/* Gallery Images - FORCE CONTAIN */
.product-gallery-main img,
.product-gallery-main .img-fluid {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 600px !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Zoom Overlay Icon */
.product-gallery-main .image-zoom-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    pointer-events: none;
    z-index: 10;
}

.product-gallery-main .product-image-link:hover .image-zoom-overlay {
    display: flex;
}

/* Slick Slider Navigation Arrows */
.product-gallery-main .slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.product-gallery-main .slick-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.product-gallery-main .slick-prev {
    left: 20px;
}

.product-gallery-main .slick-next {
    right: 20px;
}

.product-gallery-main .slick-arrow i {
    font-size: 18px;
}

/* Thumbnail Navigation Container */
.product-gallery-thumbs {
    margin-top: 20px;
}

.product-gallery-thumbs .thumb-slide {
    padding: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    outline: none;
}

.product-gallery-thumbs .thumb-slide:hover,
.product-gallery-thumbs .thumb-slide.slick-current {
    border-color: #007bff;
}

.product-gallery-thumbs .thumb-slide img {
    width: 100%;
    height: 100px;
    object-fit: contain;
    border-radius: 5px;
    background-color: #f8f9fa;
    padding: 10px;
}

/* Lightbox Styles */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox-overlay.active {
    display: flex !important;
}

.lightbox-content {
    position: relative;
    max-width: 95%;
    max-height: 95%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: -10px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #fff;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Responsive - Tablet */
@media (max-width: 992px) {
    .product-gallery-main {
        padding: 30px;
    }
    
    .product-gallery-main .gallery-slide {
        min-height: 400px;
    }
    
    .product-gallery-main img {
        max-height: 500px !important;
    }
    
    .product-gallery-thumbs .thumb-slide img {
        height: 90px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .product-gallery-main {
        padding: 25px;
    }
    
    .product-gallery-main .gallery-slide {
        min-height: 350px;
    }
    
    .product-gallery-main img {
        max-height: 400px !important;
    }
    
    .product-gallery-main .slick-arrow {
        width: 35px;
        height: 35px;
    }
    
    .product-gallery-main .slick-prev {
        left: 10px;
    }
    
    .product-gallery-main .slick-next {
        right: 10px;
    }
    
    .product-gallery-main .slick-arrow i {
        font-size: 14px;
    }
    
    .product-gallery-thumbs .thumb-slide img {
        height: 80px;
    }
    
    .product-gallery-main .image-zoom-overlay {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}

/* Responsive - Mobile Small */
@media (max-width: 576px) {
    .product-gallery-main {
        padding: 20px;
    }
    
    .product-gallery-main .gallery-slide {
        min-height: 300px;
    }
    
    .product-gallery-main img {
        max-height: 350px !important;
    }
    
    .product-gallery-thumbs .thumb-slide img {
        height: 70px;
    }
}

/* ============================================================ 
   END PRODUCT GALLERY
   ============================================================ */
   
   
/* ============================================================ 
   BLOG/ARTICLES SECTION - SIMPLIFIED VERSION
   ============================================================ */

.blog-section {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.blog-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.blog-section .section-header .badge {
    font-size: 13px;
    font-weight: 600;
    padding: 8px 20px;
    letter-spacing: 1px;
}

.blog-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.blog-section .section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto;
}

/* Blog Card - Simple & Clean */
.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #e9ecef;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #007bff;
}

/* Blog Card Body */
.blog-card-body {
    padding: 30px 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Date Inline (No Badge) */
.blog-card-date-inline {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-card-date-inline i {
    color: #007bff;
    font-size: 14px;
}

/* Blog Title */
.blog-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.5;
}

.blog-card-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: #007bff;
}

/* Excerpt */
.blog-card-excerpt {
    color: #6c757d;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

/* Read More Button */
.blog-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* Empty State */
.blog-section .alert {
    border-radius: 10px;
    padding: 30px;
    font-size: 16px;
}

/* View All Button */
.blog-section .text-center {
    margin-top: 50px;
}

/* Responsive - Tablet */
@media (max-width: 992px) {
    .blog-section {
        padding: 60px 0;
    }
    
    .blog-section .section-title {
        font-size: 2rem;
    }
    
    .blog-card-body {
        padding: 25px 20px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .blog-section {
        padding: 50px 0;
    }
    
    .blog-section .section-title {
        font-size: 1.75rem;
    }
    
    .blog-section .section-subtitle {
        font-size: 1rem;
    }
    
    .blog-card-body {
        padding: 25px 20px;
    }
    
    .blog-card-title {
        font-size: 18px;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 576px) {
    .blog-section .section-header {
        margin-bottom: 40px;
    }
    
    .blog-card-date-inline {
        font-size: 12px;
    }
    
    .blog-card-excerpt {
        font-size: 14px;
    }
}

/* ============================================================ 
   END BLOG SECTION
   ============================================================ */
   
   /* ============================================================ 
   SINGLE POST/BLOG DETAIL
   ============================================================ */

.single-post {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

/* Entry Header */
.entry-header .entry-meta {
    color: #6c757d;
    font-size: 14px;
}

.entry-header .entry-meta span {
    display: inline-block;
}

.entry-header .entry-meta i {
    color: #007bff;
}

.entry-header .entry-meta a {
    color: #6c757d;
    text-decoration: none;
}

.entry-header .entry-meta a:hover {
    color: #007bff;
}

.entry-header .entry-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
}

/* Post Thumbnail */
.post-thumbnail {
    margin-bottom: 30px;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Entry Content */
.entry-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 30px;
}

.entry-content blockquote {
    border-left: 4px solid #007bff;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #6c757d;
}

/* Entry Tags */
.entry-tags {
    padding: 15px 0;
}

.entry-tags a {
    display: inline-block;
    background: #f8f9fa;
    padding: 5px 15px;
    border-radius: 20px;
    margin-right: 8px;
    margin-bottom: 8px;
    color: #6c757d;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.entry-tags a:hover {
    background: #007bff;
    color: #fff;
}

/* Share Buttons */
.entry-share {
    padding: 20px 0;
}

.share-buttons .btn {
    border-radius: 5px;
}

/* Post Navigation */
.post-navigation {
    padding: 30px 0;
}

.post-navigation h6 a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
}

.post-navigation h6 a:hover {
    color: #007bff;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .single-post {
        padding: 25px 20px;
    }
    
    .entry-header .entry-title {
        font-size: 1.75rem;
    }
    
    .entry-content {
        font-size: 15px;
    }
    
    .entry-header .entry-meta span {
        display: block;
        margin-bottom: 8px;
    }
    
    .entry-header .entry-meta span.ms-3 {
        margin-left: 0 !important;
    }
}

/* ============================================================ 
   END SINGLE POST
   ============================================================ */

/* ============================================================ 
   SIDEBAR WIDGETS
   ============================================================ */

.widget-area {
    padding-left: 30px;
}

.widget {
    background: #fff;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
    color: #1a1a1a;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget ul li a:hover {
    color: #007bff;
}

/* Search Widget */
.widget_search .search-form {
    position: relative;
}

.widget_search .search-field {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.widget_search .search-submit {
    position: absolute;
    right: 5px;
    top: 5px;
    background: #007bff;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}

/* Responsive - Mobile */
@media (max-width: 992px) {
    .widget-area {
        padding-left: 0;
        margin-top: 50px;
    }
}

/* ============================================================ 
   COMMENTS SECTION
   ============================================================ */

.comments-area {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-top: 50px;
}

.comments-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1a1a1a;
}

/* Comment List */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.comment-list li {
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.comment-list li:last-child {
    border-bottom: none;
}

.comment-body {
    position: relative;
    padding-left: 70px;
}

.comment-author {
    font-weight: 700;
    margin-bottom: 5px;
}

.comment-author .avatar {
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 50%;
}

.comment-metadata {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 10px;
}

.comment-metadata a {
    color: #6c757d;
    text-decoration: none;
}

.comment-content {
    margin-bottom: 15px;
}

.reply a {
    font-size: 13px;
    color: #007bff;
    text-decoration: none;
}

.reply a:hover {
    text-decoration: underline;
}

/* Comment Form */
.comment-respond {
    margin-top: 40px;
}

.comment-reply-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.comment-form {
    display: grid;
    gap: 15px;
}

.comment-form-comment textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.comment-form-comment textarea {
    min-height: 150px;
    resize: vertical;
}

.form-submit {
    margin-top: 10px;
}

.form-submit .submit {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.form-submit .submit:hover {
    background: #0056b3;
}

/* No Comments */
.no-comments {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 5px;
    text-align: center;
    color: #6c757d;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .comments-area {
        padding: 25px 20px;
    }
    
    .comment-body {
        padding-left: 60px;
    }
    
    .comment-author .avatar {
        width: 40px;
        height: 40px;
    }
}

/* ============================================================ 
   END SIDEBAR & COMMENTS
   ============================================================ */

/* ============================================================ 
   ENHANCED SIDEBAR WIDGETS
   ============================================================ */

.widget-area {
    padding-left: 30px;
}

.widget {
    background: #fff;
    padding: 30px 25px;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border-top: 3px solid #007bff;
    transition: all 0.3s ease;
}

.widget:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.widget-title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
    color: #1a1a1a;
    position: relative;
}

.widget-title:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #007bff;
}

/* Default Widget Lists */
.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    transition: padding-left 0.3s ease;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li:hover {
    padding-left: 10px;
}

.widget ul li a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.widget ul li a:before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 10px;
    color: #007bff;
}

.widget ul li a:hover {
    color: #007bff;
}

/* Recent Posts Widget with Thumbnail */
.recent-posts-widget {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-post-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s ease;
}

.recent-post-item:last-child {
    border-bottom: none;
}

.recent-post-item:hover {
    background: #f8f9fa;
    padding-left: 10px;
    padding-right: 10px;
    margin-left: -10px;
    margin-right: -10px;
    border-radius: 8px;
}

.recent-post-thumb {
    flex-shrink: 0;
}

.recent-post-thumb img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.recent-post-info h5 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.recent-post-info h5 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-post-info h5 a:before {
    display: none;
}

.recent-post-info h5 a:hover {
    color: #007bff;
}

.recent-post-date {
    font-size: 12px;
    color: #6c757d;
}

/* Search Widget */
.widget_search .search-form {
    position: relative;
    display: flex;
}

.widget_search .search-field {
    width: 100%;
    padding: 12px 50px 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.widget_search .search-field:focus {
    border-color: #007bff;
    outline: none;
}

.widget_search .search-submit {
    position: absolute;
    right: 5px;
    top: 5px;
    background: #007bff;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.widget_search .search-submit:hover {
    background: #0056b3;
}

/* Categories Widget */
.widget_categories ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget_categories ul li a {
    flex: 1;
}

.widget_categories ul li:after {
    content: attr(data-count);
    background: #f0f0f0;
    color: #666;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

/* Tags Cloud */
.tagcloud a,
.widget_tag_cloud a {
    display: inline-block;
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 20px;
    margin: 0 5px 8px 0;
    color: #6c757d;
    text-decoration: none;
    font-size: 13px !important;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.tagcloud a:hover,
.widget_tag_cloud a:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* ============================================================ 
   RELATED POSTS SECTION
   ============================================================ */

.related-posts {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
    margin-top: 50px;
}

.related-posts-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1a1a1a;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
    position: relative;
}

.related-posts-title:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: #007bff;
}

.related-post-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.related-post-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-post-card:hover .related-post-image img {
    transform: scale(1.1);
}

.related-post-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.related-post-date {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 10px;
}

.related-post-date i {
    color: #007bff;
}

.related-post-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.related-post-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-post-title a:hover {
    color: #007bff;
}

.related-post-excerpt {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.related-post-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.related-post-link:hover {
    color: #0056b3;
    gap: 8px;
}

.related-post-link i {
    transition: transform 0.3s ease;
}

.related-post-link:hover i {
    transform: translateX(5px);
}

/* Responsive - Mobile */
@media (max-width: 992px) {
    .widget-area {
        padding-left: 0;
        margin-top: 50px;
    }
    
    .related-posts {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .related-post-image {
        height: 180px;
    }
    
    .related-posts-title {
        font-size: 20px;
    }
}

/* ============================================================ 
   END SIDEBAR & RELATED POSTS
   ============================================================ */

.page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 3px;
    color: #007bff;
    border: 1px solid #dee2e6;
    background: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s;
}
.page-numbers.current, .page-numbers:hover {
    background: #007bff;
    color: #fff !important;
    border-color: #007bff;
    text-decoration: none;
}
ul.page-numbers {
    list-style: none;
    display: flex;
    justify-content: center;
    padding-left: 0;
    margin: 32px 0 0 0;
}
ul.page-numbers li {
    display: inline;
}

