/* ============================================================
   Custom overrides for Gurjeet S. Sekhon site
   Loaded AFTER all template CSS to override defaults.
   ============================================================ */

/* --- Brand theme colors: Rotary Royal Blue + Rotary Gold --- */
:root {
    --theme: #17458F;        /* Rotary Royal Blue — primary */
    --theme2: #F7A81B;       /* Rotary Gold — accent */
    --bg: #17458F;
    --bg2: #0f3270;          /* darker blue for sections */
}

/* --- Section sub-title (style-new): Royal Blue --- */
.section-title.style-new .sub-title {
    color: #17458f;
}

/* --- Home about counter big number: Royal Blue --- */
.about-wrapper-5 .about-counter-items .counter-text h2 {
    color: #17458f;
}

/* --- About page Recognitions: award list text white --- */
.award-list-items.approach-box p,
.award-list-items.approach-box span {
    color: #ffffff !important;
}

/* --- Headings: Rotary Royal Blue --- */
h1, h2, h3, h4, h5, h6,
.hero_title, .section-title h2, .section-title h3,
.about-head h1, .hero-content h1, .hero-content h2 {
    color: #17458F;
}
/* Keep headings on dark backgrounds white */
.text-white, .text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6,
h1.text-white, h2.text-white, h3.text-white, h4.text-white, h5.text-white, h6.text-white,
[class*="bg-dark"] h1, [class*="bg-dark"] h2, [class*="bg-dark"] h3,
.footer-section4 h1, .footer-section4 h2, .footer-section4 h3, .footer-section4 h4 {
    color: #ffffff;
}

/* --- Buttons: solid Royal Blue with white text, gold reveal on hover --- */
.theme-btn {
    background-color: #17458F !important;
    color: #ffffff !important;
}
.theme-btn::before {
    background-color: #F7A81B !important;
}
.theme-btn:hover {
    color: #ffffff !important;
}
.theme-btn.bg-white {
    background-color: #ffffff !important;
    color: #17458F !important;
}
.theme-btn.bg-white::before {
    background-color: #F7A81B !important;
}
.theme-btn.bg-white:hover {
    color: #17458F !important;
}

/* --- Header: white background, sticky --- */
header#header-sticky,
header#header-sticky.header-2,
header#header-sticky.header-2.header-4 {
    background-color: #ffffff !important;
    box-shadow: 0 2px 12px rgba(23, 69, 143, 0.08);
    padding: 10px 0;
}

header#header-sticky .header-main {
    background: transparent !important;
}

/* --- Equal height for about counter boxes --- */
.about-counter-section .row {
    align-items: stretch;
}
.about-counter-section .row > [class*="col-"] {
    display: flex;
}
.about-counter-box {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.about-counter-box p {
    flex: 1;
}

/* --- About counter numbers: brand color instead of gray --- */
.about-counter-box h2 {
    color: #17458F !important;
    font-size: 60px !important;
    font-weight: 800;
    line-height: 1;
    display: inline-flex;
    align-items: flex-start;
    gap: 4px;
}
.about-counter-box h2 .count {
    display: inline-block;
    line-height: 1;
}
.about-counter-box h2 sub {
    color: #F7A81B;
    font-size: 0.55em;
    line-height: 1;
    vertical-align: top;
    bottom: auto;
    top: 0.05em;
    position: relative;
    margin-left: 2px;
}

/* --- About split layout (image left, content right) --- */
.about-split-row {
    margin-top: 50px;
}
.about-split-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, #f3f6fb 0%, #e9eef7 100%);
    padding: 20px;
    box-shadow: 0 20px 60px rgba(23, 69, 143, 0.12);
}
.about-split-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}
.about-split-content p {
    margin-bottom: 1rem;
    line-height: 1.75;
}
@media (max-width: 991.98px) {
    .about-split-image {
        max-width: 420px;
        margin: 0 auto;
    }
}

/* --- About hero icon (replaces emoji) --- */
.about-head h1 .about-head-icon {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin: 0 12px;
    vertical-align: middle;
}

/* --- Blog details: sidebar Recent Post thumbnails (constrain size) --- */
.recent-post-area .recent-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.recent-post-area .recent-item .thumb {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 10px;
}
.recent-post-area .recent-item .thumb img {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover;
    object-position: center;
    display: block;
}
.recent-post-area .recent-item .content {
    flex: 1;
    min-width: 0;
}

/* --- Hero video button --- */
.hero-video-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #17458F;
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color .25s ease;
}
.hero-video-btn:hover {
    color: #F7A81B;
}
.hero-video-btn i {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #F7A81B;
    color: #fff;
    border-radius: 50%;
    font-size: 16px;
    box-shadow: 0 0 0 6px rgba(247, 168, 27, 0.25), 0 6px 24px rgba(23, 69, 143, 0.18);
    animation: pulseHeroVideo 2.4s infinite;
    transition: transform .25s ease, background .25s ease;
}
.hero-video-btn:hover i {
    transform: scale(1.06);
    background: #17458F;
}
@keyframes pulseHeroVideo {
    0%, 100% { box-shadow: 0 0 0 6px rgba(247, 168, 27, 0.25), 0 6px 24px rgba(23, 69, 143, 0.18); }
    50% { box-shadow: 0 0 0 12px rgba(247, 168, 27, 0.10), 0 6px 24px rgba(23, 69, 143, 0.18); }
}

/* --- Footer logo image (dark text on transparent — needs white background) --- */
.footer-logo .footer-logo-img {
    width: 280px;
    height: auto;
    background: #ffffff;
    padding: 10px 16px;
    border-radius: 8px;
    display: inline-block;
}

@media (max-width: 768px) {
    .footer-logo .footer-logo-img {
        width: 220px;
    }
}

/* --- Logo image sizing --- */
.header-2 .header-logo img,
.header-logo .site-logo-img {
    width: 300px;
    height: auto;
    max-height: none;
    display: block;
}

@media (max-width: 768px) {
    .header-2 .header-logo img,
    .header-logo .site-logo-img {
        width: 200px;
    }
}

/* --- Menu right-aligned --- */
@media (min-width: 992px) {
    .header-main {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .mean__menu-wrapper {
        margin-left: auto;
        flex: 0 0 auto;
        display: flex;
        justify-content: flex-end;
    }
    .header-main .main-menu ul {
        justify-content: flex-end;
    }
    .header-right {
        display: none !important;
    }
}

/* --- Desktop nav: hide hamburger; template's own CSS handles inline menu --- */
@media (min-width: 992px) {
    .header__hamburger,
    .sidebar__toggle {
        display: none !important;
    }
    .header-main .main-menu ul li a {
        color: #17458F;
    }
    .header-main .main-menu ul li.active a,
    .header-main .main-menu ul li a:hover {
        color: #F7A81B !important;
    }
}

/* --- Marquee "what i do?" wheel icons --- */
.marquee-text4 img {
    width: 100px !important;
    height: 100px !important;
    object-fit: contain;
}

/* --- Fix experience section marquee (was hidden after removing feature-bottom) --- */
.feature-section-4 .marquee-section2.style-2 {
    margin-bottom: 0 !important;
    padding-bottom: 30px;
}

/* --- Service card wheel icons --- */
.service-content-box .icon img {
    width: 60px !important;
    height: 60px !important;
    object-fit: contain;
}

/* --- Honors & Recognitions: small wheel icon in bottom-content --- */
.news-box-items-4 .bottom-content > img {
    width: 40px !important;
    height: 40px !important;
    object-fit: contain;
}

/* --- Honors news image: keep fixed size, ensure photos fill cleanly --- */
.news-wrapper-4 .news-right-items .news-box-items-4 .news-image img {
    width: 330px !important;
    height: 100% !important;
    border-radius: 20px;
    object-fit: cover;
    object-position: center;
}

/* Large left thumb */
.news-wrapper-4 .news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 20px;
}

/* --- Hero image: prevent head from being cropped --- */
.hero-4 .hero-content .hero-image,
.hero-4 .hero-content .hero-image img {
    max-width: none !important;
    height: auto !important;
}
.hero-4 .hero-content .hero-image {
    position: relative;
    overflow: visible;
}
.hero-4 .hero-content .hero-image img {
    width: 100%;
    object-fit: contain;
    object-position: top center;
    display: block;
}
/* Soft underline accent for visual closure — mobile only */
.hero-4 .hero-content .hero-image::after {
    content: none;
}
@media (max-width: 991.98px) {
    .hero-4 .hero-content .hero-image::after {
        content: "";
        display: block;
        width: 70%;
        height: 8px;
        margin: 0 auto 0;
        background: #17458F;
        border-radius: 999px;
        box-shadow: 0 8px 24px rgba(247, 168, 27, 0.45);
    }
}

/* --- Preloader: smaller text + spinning rotary wheel --- */
.preloader-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: center;
    z-index: 2;
}
.preloader-wheel {
    width: 90px;
    height: 90px;
    object-fit: contain;
    animation: preloaderSpin 2.4s linear infinite;
}
@keyframes preloaderSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
/* Override base styles so text is smaller and not absolutely positioned */
.preloader-content h5.preloader-text {
    position: static !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    font-size: 36px !important;
    font-weight: 700;
    color: #17458F !important;
    margin: 0;
    letter-spacing: 0.5px;
    line-height: 1.2;
}
/* Hide the template's leftover ::after duplicate */
.preloader-content h5.preloader-text::after {
    content: none !important;
    display: none !important;
}
/* Clip-path reveal animation on the single text element */
.preloader-content h5.preloader-text {
    animation: preloaderReveal 2s ease-in-out infinite alternate;
}
@keyframes preloaderReveal {
    0%   { clip-path: inset(0 100% 0 0); }
    100% { clip-path: inset(0 0 0 0); }
}
@media (max-width: 768px) {
    .preloader-wheel {
        width: 70px;
        height: 70px;
    }
    .preloader-content h5.preloader-text {
        font-size: 26px !important;
    }
}

/* --- Contact page --- */
.contact-page-hero {
    padding: 180px 0 30px;
    background: #ffffff;
}
.contact-page-hero h1 {
    color: #111111;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.2;
}
.contact-page-hero .breadcrumb-trail {
    color: #6b7280;
    font-size: 16px;
    margin: 0;
}

.contact-info-cards {
    padding: 40px 0 20px;
    background: #ffffff;
}
.contact-info-card {
    background: #ffffff;
    border: 1px solid #e9eef7;
    border-radius: 16px;
    padding: 36px 24px;
    text-align: center;
    height: 100%;
    box-shadow: 0 8px 30px rgba(23, 69, 143, 0.06);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.contact-info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(23, 69, 143, 0.12);
    border-color: #F7A81B;
}
.contact-info-card .icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, #17458F 0%, #2a5fb0 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 8px 20px rgba(23, 69, 143, 0.25);
}
.contact-info-card h4 {
    color: #17458F;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 20px;
}
.contact-info-card p,
.contact-info-card a {
    color: #4b5563;
    font-size: 15px;
    margin: 0;
    text-decoration: none;
    word-break: break-word;
}
.contact-info-card a:hover {
    color: #F7A81B;
}

.contact-form-section {
    padding: 50px 0 90px;
    background: #ffffff;
}
.contact-form-card {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e9eef7;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(23, 69, 143, 0.08);
}
.contact-form-card h2 {
    color: #17458F;
    font-weight: 800;
    margin-bottom: 10px;
}
.contact-form-card > .text-center > p {
    color: #6b7280;
    max-width: 640px;
    margin: 0 auto;
}
.contact-form .form-clt input,
.contact-form .form-clt textarea {
    width: 100%;
    background: #f7f9fc;
    border: 1px solid #e5e9f2;
    border-radius: 10px;
    padding: 14px 18px;
    color: #1f2937;
    font-size: 15px;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.contact-form .form-clt textarea {
    min-height: 160px;
    resize: vertical;
}
.contact-form .form-clt input:focus,
.contact-form .form-clt textarea:focus {
    outline: none;
    background: #ffffff;
    border-color: #17458F;
    box-shadow: 0 0 0 4px rgba(23, 69, 143, 0.08);
}
.contact-form .form-clt input::placeholder,
.contact-form .form-clt textarea::placeholder {
    color: #9ca3af;
}
.form-success-msg {
    background: #e8f5ee;
    color: #1b6b3a;
    border: 1px solid #b7e0c7;
    border-radius: 10px;
    padding: 14px 20px;
    margin-bottom: 18px;
    font-weight: 600;
    text-align: center;
}
.form-error-msg {
    background: #fdecec;
    color: #9b1c1c;
    border: 1px solid #f5b5b5;
    border-radius: 10px;
    padding: 14px 20px;
    margin-bottom: 18px;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 768px) {
    .contact-form-card {
        padding: 35px 22px;
    }
    .contact-page-hero {
        padding: 130px 0 20px;
    }
}

/* --- Mobile: show hamburger only --- */
@media (max-width: 991.98px) {
    .header__hamburger {
        display: flex !important;
    }
}

/* ============================================================
   Responsive fixes — tablet (≤991px), mobile (≤768px), small phone (≤480px)
   ============================================================ */

/* Hide leftover empty section-title-area client-info (after removing "Get to Know Me") */
.section-title-area .client-info:empty {
    display: none;
}

/* --- Tablet (≤991px) --- */
@media (max-width: 991.98px) {
    .hero-4 .hero-content .hero-image {
        max-width: 360px;
        margin: 20px auto 0;
    }
    .marquee-text4 img {
        width: 80px !important;
        height: 80px !important;
    }
}

/* --- Mobile (≤768px) --- */
@media (max-width: 768px) {
    /* Hero */
    .hero-4 .hero-content {
        gap: 8px !important;
        text-align: center;
    }
    .hero-4 .hero-content .left-content {
        text-align: center;
        width: 100%;
    }
    .hero-4 .hero-content .left-content p,
    .hero-4 .hero-content .left-content h1 {
        text-align: center;
    }
    .hero-4 .hero-content .hero-image {
        max-width: 420px;
        margin: 0 auto;
    }
    .hero-4 .hero-content .left-content h1 {
        font-size: 44px;
        line-height: 1.1;
    }
    .hero-4 .hero-content .right-content {
        padding-bottom: 50px;
        text-align: center;
    }
    .hero-4 .hero-content .right-content .hero-cta-row {
        justify-content: center;
    }
    .hero-cta-row {
        gap: 14px !important;
        flex-wrap: wrap;
    }
    .hero-video-btn i {
        width: 48px;
        height: 48px;
    }

    /* About counter boxes */
    .about-counter-box h2 {
        font-size: 48px !important;
    }
    .about-counter-box h2 sub {
        font-size: 0.45em;
    }

    /* About split layout */
    .about-split-image {
        max-width: 100%;
        margin: 0 auto 20px;
    }
    .about-split-row {
        margin-top: 25px !important;
        --bs-gutter-y: 25px;
    }
    .about-section-inner {
        padding-bottom: 30px;
    }
    .about-counter-section.section-padding {
        padding-top: 0 !important;
        padding-bottom: 50px;
    }

    /* Service cards */
    .service-wrapper-4 .service-box-items-4 {
        padding: 25px;
        margin-bottom: 20px;
    }
    .service-wrapper-4 .service-box-items-4 .service-content-box .content p {
        font-size: 14px;
        margin-top: 12px;
    }

    /* Marquee icons */
    .marquee-text4 img {
        width: 60px !important;
        height: 60px !important;
    }

    /* Blog cards */
    .news-standard-box-items .content h2,
    .news-standard-box-items .content h3 {
        font-size: 24px;
        line-height: 1.3;
    }
    .news-standard-box-items .content .client-info-area {
        gap: 14px;
        flex-wrap: wrap;
    }

    /* Footer */
    .footer-wrapper-5 .let-work-wrapper-4 {
        flex-direction: column;
        gap: 30px;
    }
    .footer-wrapper-5 .let-work-wrapper-4 .content h2 {
        font-size: 48px !important;
        letter-spacing: 0 !important;
    }

    /* Honors & Recognitions: stack image + content on mobile */
    .news-wrapper-4 .news-right-items .news-box-items-4 {
        flex-direction: column;
        align-items: stretch;
    }
    .news-wrapper-4 .news-right-items .news-box-items-4 .news-image,
    .news-wrapper-4 .news-right-items .news-box-items-4 .news-image img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }
    .news-wrapper-4 .news-right-items .news-box-items-4 .news-image img {
        aspect-ratio: 16 / 10;
        object-fit: cover;
    }
    .news-wrapper-4 .news-thumb img {
        height: auto !important;
        aspect-ratio: 4 / 5;
    }
}

/* --- Small phones (≤480px) --- */
@media (max-width: 480px) {
    /* Header */
    .header-2 .header-logo img,
    .header-logo .site-logo-img {
        width: 150px !important;
    }

    /* Hero */
    .hero-4 .hero-content .left-content h1 {
        font-size: 34px;
    }
    .hero-4 .hero-content .right-content p {
        font-size: 14px;
    }
    .hero-4 .hero-content .hero-image {
        max-width: 340px;
    }

    /* About counter boxes */
    .about-counter-box {
        padding: 22px 18px;
    }
    .about-counter-box h2 {
        font-size: 38px !important;
    }
    .about-counter-box p {
        font-size: 13px;
    }

    /* About split */
    .about-split-image {
        padding: 14px;
        border-radius: 18px;
    }
    .about-split-content p {
        font-size: 14px;
        line-height: 1.7;
    }

    /* Service cards */
    .service-wrapper-4 .service-box-items-4 {
        padding: 18px;
    }
    .service-content-box .icon img {
        width: 50px !important;
        height: 50px !important;
    }

    /* Marquee */
    .marquee-text4 img {
        width: 50px !important;
        height: 50px !important;
    }

    /* Blog */
    .news-standard-box-items .content h2,
    .news-standard-box-items .content h3 {
        font-size: 20px;
    }
    .news-standard-box-items .content p {
        font-size: 14px;
    }

    /* Contact form */
    .contact-form-card {
        padding: 28px 18px;
    }
    .contact-form-card h2 {
        font-size: 28px;
    }
    .contact-form .form-clt input,
    .contact-form .form-clt textarea {
        padding: 12px 14px;
        font-size: 14px;
    }
    .contact-info-card {
        padding: 28px 18px;
    }
    .contact-info-card h4 {
        font-size: 18px;
    }
    .contact-info-card .icon {
        width: 60px;
        height: 60px;
        font-size: 22px;
    }

    /* Footer */
    .footer-wrapper-5 .let-work-wrapper-4 .content h2 {
        font-size: 36px !important;
    }
    .footer-logo .footer-logo-img {
        width: 180px !important;
    }

    /* Preloader */
    .preloader-wheel {
        width: 60px;
        height: 60px;
    }
    .preloader-content h5.preloader-text {
        font-size: 22px !important;
    }

    /* Contact page hero */
    .contact-page-hero h1 {
        font-size: 36px;
    }
}
