﻿
/*
site.css – Final Clean Hero + Layout Styles
Webpro: Modern, Responsive, Kallyas-Inspired Hero Section
*/

/* === SCROLLED HEADER & INTERIOR PAGE NAV === */
.webpro-header.scrolled .navbar,
body.interior-header .webpro-header .navbar {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* === HERO SECTION === */
body {
    margin: 0;
    background: #fff; /* Test with black to isolate */
}

.hero {
    position: relative;
    width: 100%;
    min-height: 80vh; /* Reduced from 100vh to 80vh */
    height: calc(80vh - 2rem); /* Slightly smaller to account for padding/margins */
    overflow: hidden;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 80vh; /* Match hero height */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh; /* Match hero height */
    overflow: visible; /* Ensure gradient isn’t clipped */
}


.gradient-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;  Above img, below content 
    background: rgba(255, 0, 0, 0.2) !important;  Debug: Temporary red background 
    display: block;  Force rendering 
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Below gradient */
}

    .slide-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1; /* Below gradient */
    }

.slide .hero-content {
    position: relative;
    text-align: center;
    color: #fff;
    padding: 1rem;
    z-index: 3; /* Above gradient and image */
}

.hero-blurb {
    font-size: clamp(2rem, 5vw, 4rem);
    margin: 0;
    font-weight: bold;
}

.hero-snippet {
    font-size: clamp(1rem, 2vw, 1.5rem);
    margin: 0.5rem 0;
}

.slide.active {
    opacity: 1;
}

/* Mini-Hero */

.mini-hero {
    position: relative;
    height: 260px;
    overflow: hidden;
    background-color: #000;
}

.mini-hero-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    top: 0;
    left: 0;
    z-index: 1;
}

.mini-hero-overlay {
    position: absolute;
    inset: 0;
    background: #364c92;
    z-index: 2;
}

.mini-hero-content {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: #fff;
    text-align: center;
    padding: 0 1rem;
    width: 100%;
    max-width: 1240px;
}


.mini-hero-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.mini-hero-sub {
    font-size: 1.1rem;
    font-weight: 400;
    color: #f0f0f0;
    margin: 0;
}


/* CTA RED BANNER HOME */

.webpro-cta-banner {
    position: relative;
    margin-top: -40px; /* overlaps hero */
    padding: 0 1rem; /* margin spacing left/right */
    z-index: 5;
    opacity: 0; /* Start invisible */
    transform: scale(0.85);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    transform-origin: center center;
}

    /* When it enters viewport */
    .webpro-cta-banner.animate-in {
        animation: wpixFadeBounceIn 0.7s ease-out forwards;
        opacity: 1;
        transform: scale(1);
    }


    .webpro-cta-banner .cta-inner {
        background-color: #cd2122;
        color: #fff;
        padding: 2.5rem 2rem;
        border-bottom-left-radius: 6px;
        border-bottom-right-radius: 6px;
        clip-path: polygon(0 12px, 100% 0, 100% 100%, 0% 100%);
        position: relative;
/*        border-radius: 0px;
*/    }


  
    .webpro-cta-banner h2 {
        font-size: 1.75rem;
        font-weight: 500;
        line-height: 1.4;
        margin-bottom: 1rem;
    }

    .webpro-cta-banner p {
        font-size: 1rem;
        margin: 0;
        opacity: 0.9;
    }

    .webpro-cta-banner .btn {
        border-radius: 0px;
        font-size: 0.85rem;
        border: 2px solid #fff;
        letter-spacing: 0.5px;
        white-space: nowrap;
        transition: all 0.3s ease;
    }

    .webpro-cta-banner .btn-outline-light:hover {
        background-color: #fff;
        
        color: #cd2122;
        border-color: #fff;
    }

    .webpro-cta-banner .btn-light:hover {
        opacity: 0.9;
    }
    
.cta-red {
        font-weight:200;
    }
.cta-red-bold {
    font-weight: 700;
}

/* === Content Section 1 (Why Webpro) === */
.ind-content-one-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ind-content-one-sub {
    font-size: 1.05rem;
    color: #666;
    font-family: 'Arimo', sans-serif;
    margin-top: 0.5rem;
}

.ind-content-one-icon {
    max-width: 50px;
    height: auto;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.ind-content-one-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: #63767f;
    margin-bottom: 0.55rem;
}

.ind-content-one-desc {
    font-size: 0.95rem;
    line-height:1.6rem;
    font-family: 'Arimo', sans-serif;
    color: #63767f;
    margin-bottom: 0;
}

@keyframes fadeUpIn {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpIn 0.8s ease-out forwards;
    animation-play-state: paused;
    will-change: opacity, transform;
}



/* ===========================
   WEBPRO IX – Feature Cards
   =========================== */
:root {
    --wpix-red: #cd2122;
    --wpix-text: #1f1f1f;
    --wpix-muted: #616161;
    --wpix-radius: 10px;
    --wpix-shadow: 0 8px 18px rgba(0,0,0,.08);
    --wpix-overlay-dark: .15; /* base darken over image */
    --wpix-overlay-light: .0; /* starts off invisible */
    --wpix-overlay-light-hover: .35; /* white lighten on hover */
    --wpix-redbar-base: 6px; /* default red bar height */
}

/* Container respects your 1240px max convention */
.wpix-featurecards .wpix-featurecards-container {
    max-width: 1240px;
    margin-bottom:4rem;
}

/* Full-card link block */
.wpix-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: var(--wpix-radius);
    box-shadow: var(--wpix-shadow);
    overflow: hidden;
    height: 100%;
    transition: transform .28s ease, box-shadow .28s ease;
    position: relative;
}

    .wpix-card:focus-visible {
        outline: 3px solid var(--wpix-red);
        outline-offset: 2px;
        border-radius: calc(var(--wpix-radius) + 2px);
    }

    .wpix-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 18px 42px rgba(0,0,0,.18);
    }

/* Media wrap */
.wpix-card-media {
    position: relative;
    aspect-ratio: 12/8; /* keeps a consistent crop; adjust if desired */
    overflow: hidden;
}

.wpix-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform .6s ease;
}

/* Subtle dark overlay (always visible) */
.wpix-card-overlay-dark {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,var(--wpix-overlay-dark));
    pointer-events: none;
}

/* White lighten overlay (only on hover) */
.wpix-card-overlay-light {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,var(--wpix-overlay-light));
    transition: background .35s ease;
    pointer-events: none;
}

/* Bottom red bar that expands upward on hover */
.wpix-card-redbar {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--wpix-redbar-base);
    background: var(--wpix-red);
    transition: height .35s ease, opacity .35s ease;
    opacity: .95;
}

/* Text block */
.wpix-card-body {
    padding: 1.25rem 1.25rem 1.5rem;
}

.wpix-card-title {
    font-size: 1.125rem;
    line-height: 1.3;
    margin: .25rem 0 .5rem;
    color: var(--wpix-text);
    letter-spacing: .2px;
    text-transform: uppercase;
    font-weight: 800; /* matches your Montserrat/Arimo weight preferences */
}

.wpix-card-text {
    margin: 0;
    color: var(--wpix-muted);
    font-size: .98rem;
    line-height: 1.6;
}

/* Hover / Active effects */
.wpix-card:hover .wpix-card-img {
    transform: scale(1.06);
}

.wpix-card:hover .wpix-card-overlay-light {
    background: rgba(255,255,255,var(--wpix-overlay-light-hover));
}
/* Red bar rises to cover 50% of the image height on hover */
.wpix-card:hover .wpix-card-redbar {
    height: 5%;
}



/* BROCHURE SECTION */

/* Section container: full viewport width */
.wpix-brochure-section {
    width: 100%;
    background-color: #fff;
}

/* Flex grid with image and content */
.wpix-brochure-grid {
    display: flex;
    flex-wrap: wrap;
    min-height: 600px;
}

/* Left image container */
.wpix-brochure-image {
    flex: 1 1 50%;
    background-image: url('/images/home-brochure.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    min-height: 400px;
}

/* Right content container */
.wpix-brochure-content {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 4rem 1rem;
}

/* NEW: add control to keep text left-aligned inside the layout */
.wpix-brochure-inner {
    max-width: 600px;
    margin-left: 0;
    margin-right: auto;
    text-align: left;
}





/* Typography */
.wpix-brochure-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2.0rem;
    color: #333;
}

.text-highlight {
    color: #cd2122;
    font-weight: 600;
}

.wpix-brochure-paragraph {
    font-size: 1rem;
    line-height: 1.85;
    color: #555;
    margin-bottom: 1rem;
}

/* CTA Button - styled version of your existing .btn */
.wpix-brochure-cta {
    margin-top: 1.5rem;
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #cd2122;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0px;
    transition: background 0.3s ease;
}

    .wpix-brochure-cta:hover {
        background-color: #a1181a;
    }

/* Responsive fallback */
@media (max-width: 991px) {
    .wpix-brochure-grid {
        flex-direction: column;
    }

    .wpix-brochure-image,
    .wpix-brochure-content {
        flex: 1 1 100%;
    }

    .wpix-brochure-content {
        padding: 2.5rem 1rem;
    }
}


/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .wpix-card,
    .wpix-card-img,
    .wpix-card-overlay-light,
    .wpix-card-redbar {
        transition: none !important;
    }
}


/* ================================
   News Home Carousel – 3 Card Format
   ================================ */

.news-home-wrapper {
    padding: 4rem 1rem;
    background-color: #f9f9f9; /* or whatever color you're using */
}

.container-news-home {
    max-width: 1540px;
    margin: 0 auto;
    width: 100%;
}

.news-home-slider .slick-slide {
    padding: 20px 20px;
    /*padding: 0 20px;*/ /* Horizontal space between slides */
    box-sizing: border-box;
    display: flex !important;
    height: auto !important;
}

.news-home-slider .slick-list {
    margin: 0 -20px;
    padding: 10px 0; /* Add vertical padding to prevent clipping */
    /*    overflow: visible;
*/
}

.news-home-slider .slick-track {
    display: flex !important;
    align-items: stretch; /* ✅ THIS is the key */
}


.news-home {
    padding: 4rem 0 6rem 0;
    background-color: #fff; /* optional section background */
}

    .news-home .news-home-slider {
        max-width: 1540px;
        margin: 0 auto;
    }

 
/* === NEWS HOME CARD === */
.news-home-card {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto; /* Allows flexible height in a flex container */
    width: 100%;
    max-width: none;
    border: none;
    border-radius: 0;
    background-color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1; /* Optional: helpful if hover effects overlap */
}


    .news-home-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
        z-index: 10; /* Bring hovered card to front */
    }

    /* Image Wrapper */
    .news-home-card .news-card-image {
        position: relative;
        overflow: hidden;
        height: 220px;
    }

        /* Image inside wrapper */
        .news-home-card .news-card-image img {
            width: 100%;
            height: 100%; /* ⬅️ THIS is the key change */
            object-fit: cover;
            display: block;
        }


    /* Article Type Tag (top-right corner of image) */
    .news-home-card .news-type-tag {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #cd2122;
        color: #fff;
        padding: 3px 12px;
        font-size: 0.75rem;
        font-weight: 600;
        border-radius: 20px;
        z-index: 10;
        text-transform: uppercase;
    }

    /* Card Body Content */
    .news-home-card .news-card-content {
        display: flex;
        flex-direction: column;
        justify-content: space-between; /* 🔑 helps lock bottom arrow */
        flex-grow: 1;
        padding: 1.2rem 1.2rem 0.4rem 1.2rem;
        position: relative;
        min-height: 230px; /* ✅ still allows consistent card height */
    }


    .news-home-card .news-title {
        font-size: 1.1rem;
        font-weight: 700;
        color: #222;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 0.5rem;
    }

    .news-home-card .news-date {
        font-size: 0.85rem !important;
        color: #888;
        margin-bottom: 0.75rem;
    }

    /* NEW Description snippet */
    .news-home-card .news-description {
        font-size: 0.95rem !important;
        color: #444;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 2.2rem; /* space for arrow */
        flex: 0 0 auto;
    }

    /* Read More Arrow */

.news-arrow-wrap {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
}

    .news-home-card .news-arrow {
        font-size: 1.5rem;
        color: #cd2122;
        transition: transform 0.2s ease;
    }

    .news-home-card:hover .news-arrow {
        transform: translateX(4px);
        color:red;
    }

    

/* Slider nav */
.news-home-slider-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: .5rem;
}

    .news-home-slider-nav .slick-arrow {
        position: static !important;
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: darkgray;
        cursor: pointer;
        padding: 0.4rem;
        transition: color 0.3s ease;
    }

        .news-home-slider-nav .slick-arrow:hover {
            color: #2e507f;
        }

/* Mobile responsive */
@media (max-width: 768px) {
    .news-home {
        padding: 2rem 0 4rem 0;
    }

        .news-home .news-home-card {
            margin: 0 0.5rem;
            padding: 1.5rem 1rem;
            min-height: 360px;
        }

        .news-home .news-home-text {
            font-size: 0.9rem;
            min-height: 120px;
        }
}


/* Section Background */
.publishing-section {
    background: url('/images/bg-book.jpg') no-repeat center center/cover;
    padding: 10rem 0 8rem 0;
    overflow: hidden; /* 👈 this is the fix */
}


/* Inner Content */
.publishing-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.publishing-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 2.0rem;
    color: #333;    
}
.publishing-paragraph {
    font-size: 1rem;
    line-height: 1.6;
    color: #000;
    margin-bottom: 1rem;
}
/* Book Covers */
.book-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.book-cover {
    width: 300px;
    max-width: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(120px);
    position: absolute;
    transition: all 0.6s ease;
}

.book-1, .book-2 {
    z-index: 1;
}

/* Active state after scroll trigger */
/* Final state after animation trigger */
.book-wrapper.animate .book-1 {
    opacity: 1;
    transform: translateY(-0) translateX(-200px) rotate(-5deg); /* 👈 move LEFT & rotate */
    transition-delay: 0.2s;
}

.book-wrapper.animate .book-2 {
    opacity: 1;
    transform: translateY(-30px) translateX(70px) rotate(6deg); /* 👈 move UP + RIGHT */
    transition-delay: 0.6s;
}

@media (max-width: 767.98px) {
    .book-wrapper {
        margin-top: 2rem;
        justify-content: center;
        position: relative;
        height: 320px; /* or whatever height your books need */
    }

    .book-cover {
        width: 160px;
    }

    .book-1 {
        transform: translateX(-20px) rotate(-3deg);
    }

    .book-2 {
        transform: translateX(20px) rotate(5deg);
    }
}



/* NEWS PAGE */

/* General Section Styling */
.webpro-news-section {
    background-color: #f2f5f7;
    padding: 4rem 1rem;
}

.container-wide-news {
    max-width: 1240px;
    margin: 0 auto;
}

/* Featured News (Top Card) */
.news-featured {
    margin-bottom: 3rem;
    border-radius: 12px;
    padding:10px;
    background-color:#fff;
    overflow: hidden;
    position: relative;
    transition: filter 0.3s ease;
}

    .news-featured:hover {
        filter: brightness(1.15);
    }

.news-featured-image {
    position: relative;
}

    .news-featured-image img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 12px;
    }

.news-featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 12px;
    z-index: 1;
}

.news-featured-content {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    color: #fff;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    font-family: 'Arimo', sans-serif;
}

.news-featured .news-category {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.news-featured .news-title {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.news-featured .news-date {
    font-weight: 300;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.news-featured .news-excerpt {
    font-weight: 300;
    font-size: 0.95rem;
    max-width: 600px;
}

.news-featured .news-arrow {
    margin-top: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    display: inline-block;
    transition: transform 0.3s ease;
}

.news-featured:hover .news-arrow {
    transform: translateX(5px);
}

/* Grid Layout */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Force 2 equal-width columns */
    gap: 2rem;
}

/* Small News Cards */
.news-card {
    background: #fff;
    border-radius: 12px;
    padding:10px;
    overflow: hidden;
    transition: transform 0.3s ease, filter 0.3s ease;
    font-family: 'Arimo', sans-serif;
}

    .news-card:hover {
        transform: translateY(-5px);
        filter: brightness(1.10);
    }

.news-card-image {
    position: relative;
}

    .news-card-image img {
        width: 100%;
        display: block;
        border-radius: 12px;
    }

.news-card .news-category {
    position: absolute;
    top: 0.75rem;
    left: 1rem;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    background: rgba(0,0,0,0.5);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    color: #fff;
}

.news-card-content {
    padding: 1rem;
    position: relative;
}

.news-card .news-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.news-card .news-date {
    font-weight: 300;
    font-size: 0.9rem;
    margin: 0;
}

.news-card .news-arrow {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    font-size: 1.25rem;
    font-weight: bold;
    color: #000;
    transition: transform 0.3s ease;
}

.news-card:hover .news-arrow {
    transform: translateX(4px);
}

.news-card-link,
.news-featured a {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    height: 100%;
    width: 100%;
}


.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem 1rem;
}

    .article-content img {
        width: 100%;
        height: auto;
        border-radius: 12px;
        margin-bottom:1.2rem;
        display: block;
    }


/* Default is still sans (Montserrat, Arimo, etc) */

.has-article .article-content p,
.has-article .article-content blockquote,
.has-article .article-content h1,
.has-article .article-content h2,
.has-article .article-content h3 {
    font-family: 'Literata', Georgia, serif;
    line-height: 1.7;
    font-size: 1.05rem;
}


/* Serif body text for articles only */
.has-article .article-content {
    font-family: 'Literata', Georgia, serif;
    font-weight: 400;
    line-height: 1.7;
}

    /* Bold headline */
    .has-article .article-content h1 {
        font-weight: 500;
        font-size:3.5rem;
        line-height:3.8rem;
        margin-bottom:2.6rem;
    }

    /* Bold headline */
    .has-article .article-content h2 {
        font-weight: 600;
        font-size:1.4rem;
    }

    /* Bold headline */
    .has-article .article-content h3 {
        font-weight: 600;
        font-size: 1.1rem;
    }

    /* Italic quotes */
    .has-article .article-content blockquote {
        color: #50595f;
        padding: 1.5rem;
        background-color: #e8eef2;
        font-style: italic;
        font-weight: 400;
    }

    .has-article .article-content .news-date {
        font-size: 0.95rem !important;
    }

/* OUR WORK / PORTFOLIO */

.webpro-portfolio-section {
    background-color: #f2f5f7;
    padding: 4rem 1rem;
}

.container-wide-portfolio {
    max-width: 1240px;
    margin: 0 auto;
}

/* Grid replaces "row" */
.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

/* Shared card styles */
.portfolio-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: filter 0.3s ease;
    display: flex;
    flex-direction: column;
}

    .portfolio-card img {
        width: 100%;
        height: 100%; /* 👈 STRETCH image vertically */
        object-fit: cover; /* 👈 Ensure it fills the container and crops as needed */
        display: block;
        border-radius: 12px;
    }


/* Width Variants */
.portfolio-100 {
    flex: 0 0 100%;
    min-height: 350px;
}

.portfolio-50 {
    flex: 0 0 calc(50% - 1rem); /* Account for 2rem gap */
    min-height:350px;
}

/* Responsive: full width on small screens */
@media (max-width: 768px) {
    .portfolio-50,
    .portfolio-100 {
        flex: 0 0 100%;
    }
}

/* Overlay (News-style) */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    padding: 2rem;
    z-index: 2;
    color: #005377;
    font-family: 'Arimo', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 12px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.portfolio-overlay h2 {
    font-size: 2.0rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #fff;
}

.portfolio-blurb {
    font-size: 0.9rem;
    color: #fff;
    max-width: 66%;
    width: 100%;
    line-height: 1.5;
    margin-bottom: 1rem;

    display: -webkit-box;
    -webkit-line-clamp: 3; /* ← LIMIT TO 3 LINES */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive full width under 768px */
@media (max-width: 768px) {
    .portfolio-blurb {
        max-width: 100%;
    }
}


.portfolio-view {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
}

/* Image Zoom Wrapper */
.portfolio-image-wrapper {
    overflow: hidden;
    border-radius: 12px;
    height: 100%;
    width: 100%;
    position: relative;
    z-index: 1;
}

    /* Zoomable Image */
    .portfolio-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
        display: block;
    }

/* Zoom on Hover */
.portfolio-card:hover .portfolio-image-wrapper img {
    transform: scale(1.07);
}

/* OFFCANVAS MENU */

.custom-sidebar {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translate(-100%, -50%);
    width: 220px;
    background: #fff;
    box-shadow: 2px 0 10px rgba(0,0,0,0.15);
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 1rem;
    z-index: 9999;
    transition: transform 0.3s ease;
}

    .custom-sidebar.open {
        transform: translate(0, -50%);
    }




/* Clean vertical menu */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .category-list li {
        margin-bottom: 1.0rem;
        text-align: left;
    }

    .category-list a {
        display: inline-block;
        text-decoration: none;
        color: #fff;
        font-weight: 500;
        font-size: 0.95rem;
        text-transform: uppercase;
        letter-spacing:1px;
        transition: color 0.2s ease;
    }

        .category-list a:hover {
            color: #f9b2b2;
        }


/* CATEGORY BUTTON STYLE UPGRADE */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .category-list li {
        margin-bottom: 0.5rem; /* Slightly reduced spacing since padding will handle bulk */
        text-align: left;
    }

    .category-list a {
        display: block; /* Makes the entire horizontal area clickable */
        text-decoration: none;
        color: #fff;
        font-weight: 500;
        font-size: 0.95rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        transition: background 0.2s ease, color 0.2s ease;
        padding: 0.65rem 1.8rem;
/*        border-radius: 6px;
*/    }

        .category-list a:hover {
            background-color: rgba(255, 255, 255, 0.3);
            color: #fff;
        }


/* Header title styling */
.category-menu h5 {
    font-weight: 500;
    font-size: 1.2rem;
    color: #fff;
    margin: .8rem 0 1.5rem 1.8rem;
    text-align: left;
    letter-spacing: 1.8px;
}

/* Close button styling */


.x-close {
    position: absolute;
    top: 0.1rem;
    right: 0.75rem;
    font-size: 1.5rem;
    color: white;
    opacity: 0.4;
    cursor: pointer;
    transition: opacity 0.2s ease;
    z-index: 1001;
    user-select: none;
}

    .x-close:hover {
        opacity: 1;
    }



/* Offcanvas positioning */
.category-menu {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translate(-100%, -50%);
    height: auto;
    max-height: 90vh;
    width: 240px;
    background-color: #cd2122;
    padding: 1.5rem 0 1rem 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.15);
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 1rem;
    z-index: 1055;
    transition: transform 0.4s ease;
}

    .category-menu.show {
        transform: translate(0, -50%);
    }

/* Responsive override */
@media (max-width: 768px) {
    .category-menu {
        width: 100%;
        border-radius: 0;
        top: 0;
        transform: translateX(-100%);
    }

        .category-menu.show {
            transform: translateX(0%);
        }
}



/* CONTACT SECTION */
.wpix-contact-section {
    background-color: #bbccd4;
    padding: 4rem 0;
    background-image: url('/images/bg-contact.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.wpix-contact-section h2 {
    font-weight:800;
}

.wpix-contact-form-wrapper {
    max-width: 900px;
    margin-left: 0;
    margin-right: auto;
    padding: 0 1rem;
}


/*.wpix-contact-inner {
    max-width: 1240px;
    min-height: 800px;*/ /* or whatever needed */
    /*margin: 0 auto;
    padding: 2rem 1rem;
    background-image: url('/images/bg-contact.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}*/

/*.bg-image {
    background-image: url('/images/bg-contact.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}*/


/* FORM */
.wpix-contact-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-family: 'Arimo', sans-serif;
}

    .wpix-contact-form .half {
        width: 100%;
    }

@media (min-width: 768px) {
    .wpix-contact-form .half {
        width: calc(50% - 0.5rem);
    }
}

.wpix-contact-form .full {
    width: 100%;
}

.wpix-contact-form label {
    position: relative;
    display: block;
    background-color: rgba(103, 133, 148, 0.65); /* uses alpha instead of opacity */
    padding: .25rem 1rem 0.3rem;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
/*    text-transform: uppercase;
*/}

.wpix-contact-form input,
.wpix-contact-form textarea,
.wpix-contact-form select {
    display: block;
    width: 100%;
    background-color: transparent;
    color: #fff;
    font-size: 0.85rem;
    font-family: 'Arimo', sans-serif;
    padding: 0.55rem 0 0.2rem;
    padding-left:.85rem;
    border: none;
    outline: none;
    border-radius: 0;
}

    /* Optional: Improve input focus experience */
    .wpix-contact-form input:focus,
    .wpix-contact-form textarea:focus,
    .wpix-contact-form select:focus {
        outline: none;
        box-shadow: none;
        background-color: rgba(103, 133, 148, 0.95);
    }

/* Force white placeholder with opacity */
.wpix-contact-form ::placeholder {
    color: #fff;
    opacity: 0.65;
}

/* SELECT FIELD STYLING */
.wpix-contact-form select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('/images/select-arrow.svg');
    background-repeat: no-repeat;
    background-size: 8px 10px;
    background-position: right 1rem center;
    padding-right: 2rem;
    cursor: pointer;
}

/* TEXTAREA */
.wpix-contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* BUTTON */
.wpix-contact-form .btn-red {
    background-color: #cd2122;
    color: #fff;
    font-weight: 700;
    padding: 0.75rem 2rem;
    text-transform: uppercase;
    border: none;
    border-radius: 0;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
    display: inline-block;
}

    .wpix-contact-form .btn-red:hover {
        background-color: #a1181a;
        color: #fff;
    }




/* Section wrapper */
.wpix-cta-red {
    background-color: #cd2122; /* brand red */
    color: #fff;
    padding: 2.5rem 0;
}

/* Flex container: text left, button right */
.wpix-cta-wrap {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; /* stacks on mobile */
    gap: 1.5rem;
}

/* Text content */
.wpix-cta-text {
    text-align: left;
    flex: 1; /* text takes left space */
}

.wpix-cta-red-heading {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.25rem; /* tighter spacing */
}

.wpix-cta-red-bold {
    font-weight: 800;
}

.wpix-cta-red-sub {
    margin: 0;
    font-size: 1rem;
    color: #f5f5f5;
}

/* CTA button */
.wpix-cta-btn {
    border: 2px solid #fff;
    background-color: transparent;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 0.75rem 1.5rem;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

    .wpix-cta-btn:hover {
        background-color: #fff;
        color: #cd2122;
    }


/* Card base */
.packages-color-bg {
    background: linear-gradient(to bottom, #364c92 0%, #364c92 30%, #f9f9f9 30%, #f9f9f9 100%);
    padding: .5rem 0 3rem 0; /* Add top and bottom space */
}

.col-md-6.col-xl-3 {
    display: flex;
}

.font-w-subhdr {
    color:white;
    font-size:1.1rem;
}

.package-card {
    background: #fff;
    border-radius: 14px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 0 12px rgba(0,0,0,0.07);
    position: relative;
    transition: transform 0.3s ease;
    /* NEW for equal height cards */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
    .package-card .btn-buy,
    .package-card .btn-outline-features,
    .package-card .btn-sales {
        margin-top: auto;
    }

    .package-card:hover {
        transform: translateY(-5px);
    }

    /* Featured style */
    .package-card.featured {
        background: linear-gradient(to bottom, #f5f5ff, #fdfdff);
        border: 2px solid #ab93f7;
    }

        .package-card.featured .badge {
            background: #cd2122;
            color: #fff;
            font-size: 0.75rem;
            font-weight: 700;
            padding: 0.3rem 0.75rem;
            border-radius: 99px;
            position: absolute;
            top: -12px;
            left: 50%;
            transform: translateX(-50%);
        }

    /* Dark/Enterprise style */
    .package-card.dark {
        background: linear-gradient(to bottom, #1e1e2f, #2a2a3d);
        color: #fff;
    }

        .package-card.dark .btn,
        .package-card.dark .btn-outline-features {
            border-color: #fff;
            color: #fff;
        }

.plan-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.plan-desc {
    font-size: 0.95rem;
    color: #666;
}

.plan-price {
    font-size: 2rem;
    font-weight: 800;
    margin: 1rem 0 0.5rem;
}

    .plan-price span {
        font-size: 1rem;
        font-weight: 400;
        color: #999;
    }

.billing-note {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
}

/* Features list */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0 3rem 1rem;
    text-align: left;
    font-size: 0.95rem;
}

    .feature-list li {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        margin-bottom: 0.75rem;
    }

/* BUTTON STYLES */
.btn-buy {
    background-color: #cd2122;
    color: #fff;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 0.75rem;
}

    .btn-buy:hover {
        color: #fff;
        background-color: #3c1bb3;
    }

.btn-sales {
    background-color: #000;
    color: #fff;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.btn-outline-features {
    border: 2px solid #4e2ad4;
    color: #4e2ad4;
    font-weight: 600;
    border-radius: 6px;
    padding: 0.6rem 1.2rem;
    background: transparent;
    display: inline-block;
}

    .btn-outline-features:hover {
        background-color: #4e2ad4;
        color: #fff;
    }

/* Contact sales number */
.sales-contact {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.modal-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.slider-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    height: auto;
    margin: 0 auto;
    display: none;
}

    .modal-image.active {
        display: block !important;
    }

.button-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    padding: 10px 0;
}

.slider-btn {
    position: absolute;
    display: block;
    margin: auto;
    bottom: -10%;
    color: white;
    border: none;
    padding: 8px 16px;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 20px;
    transition: background-color 0.3s;
}

.slider-btn:hover {
    color: #d1cbcb;
}

.slider-btn.prev {
    margin-right: 5rem;
}

.slider-btn.play {
    margin-left: 1.2rem;
}

.slider-btn.next {
    margin-left: 7rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wpix-cta-wrap {
        flex-direction: column;
        align-items: flex-start; /* stack left-aligned */
        text-align: left;
    }

    .wpix-cta-btn {
        align-self: flex-start; /* button stays left on mobile */
    }

    .news-grid {
        display: grid;
        gap: 2rem;
        grid-template-columns: 1fr; /* Default: 1 column */
    }
    .news-featured {
        margin-bottom: 1rem;
    }
        .news-featured .news-title {
            font-weight: 700;
            font-size: 1.2rem;
            margin-bottom: 0.25rem;
        }

        .news-featured .news-category {
            display:none;
        }

        .news-featured .news-arrow {
            display: none;
        }

    .news-excerpt {
        display:none;
    }
}



/* Responsive height scaling */
@media (max-width: 1200px) {
    .hero, .slider, .slide {
        min-height: calc(70vh - 2rem); /* Slightly smaller as width decreases */
    }
}


/* Dynamic gradient per slide */
@media (min-width: 992px) {
    .webpro-header.scrolled .logo-infocard {
        display: none !important;
    }

    .slide:nth-child(1) .gradient-layer {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 30%) !important;
    }

    .slide:nth-child(2) .gradient-layer {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 30%) !important;
    }

    .slide:nth-child(3) .gradient-layer {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 30%) !important;
    }

    .slide:nth-child(4) .gradient-layer {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 30%) !important;
    }
}

.dots {
    position: absolute;
    bottom: 3.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 4;
}

.dot {
    width: 10px;
    height: 10px;
    background: #bbb;
    border-radius: 50%;
    cursor: pointer;
}

    .dot.active {
        background: #fff;
    }



@media (max-width: 992px) {
    .hero, .slider, .slide {
        min-height: calc(60vh - 1.5rem); /* Further reduction for medium screens */
    }
    .wpix-contact-form-wrapper {
        margin-left: auto;
        margin-right: auto;
    }


}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero, .slider, .slide {
        min-height: calc(50vh - 1rem); /* Smaller height for tablets */
    }

        .slide .hero-content {
            padding: 0.5rem;
        }

    .hero-blurb {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }

    .hero-snippet {
        font-size: clamp(0.9rem, 2vw, 1.2rem);
    }

    .dots {
        bottom: 1rem;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .webpro-cta-banner {
        margin-top: 0;
    }

        .webpro-cta-banner .cta-inner {
            clip-path: none;
            border-radius: 0;
            padding: 2rem 1.25rem;
        }

        .webpro-cta-banner h2 {
            font-size: 1.4rem;
        }

        .webpro-cta-banner .cta-buttons {
            flex-direction: column;
            align-items: flex-start;
        }
}

@media (max-width: 480px) {
    .slide .hero-content {
        padding: 0.25rem;
    }

    .hero-blurb {
        font-size: clamp(1.2rem, 5vw, 2rem);
    }

    .hero-snippet {
        font-size: clamp(0.8rem, 2vw, 1rem);
    }

    .dots {
        bottom: 0.5rem;
    }
}

.portfolio-view {
    cursor: pointer;
}