/* Contact Card Styles */
.contact-card {
    background: linear-gradient(135deg, #f8fafc 80%, #e9f9f2 100%);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(37,211,102,0.09), 0 1.5px 6px rgba(0,0,0,0.07);
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 1.08rem;
}
.contact-card h4 {
    font-weight: 600;
    color: #222;
}
.contact-card a.site-footer-link {
    color: #198754;
    text-decoration: none;
    transition: color 0.18s;
}
.contact-card a.site-footer-link:hover {
    color: #0d6efd;
    text-decoration: underline;
}
.contact-card .bi {
    vertical-align: middle;
}
/* Polaroid Team Card Styles */
.polaroid-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.13), 0 1.5px 6px rgba(37,211,102,0.09);
    padding: 18px 16px 14px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 340px;
    position: relative;
    transition: transform 0.18s, box-shadow 0.18s;
    margin-bottom: 0;
}
.polaroid-card:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 16px 32px rgba(37,211,102,0.18), 0 2px 8px rgba(0,0,0,0.12);
}
.polaroid-img-wrapper {
    background: #f7f7f7;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.09);
    padding: 8px;
    margin-bottom: 12px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}
.polaroid-img {
    width: 160px;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(37,211,102,0.09);
    background: #e9f9f2;
    border: 2px solid #e9f9f2;
}
.polaroid-caption {
    text-align: center;
    margin-top: 6px;
}
.polaroid-caption h6 {
    font-size: 1.08rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
}
.polaroid-caption p {
    font-size: 0.98rem;
    color: #555;
    margin-bottom: 0;
}
   .site-footer-top { padding-bottom: 0.75rem; }

    .footer-divider-wrapper { display: flex; justify-content: center; }

    .footer-divider {
        width: 220px;
        max-width: 80%;
        height: 4px;
        border-radius: 4px;
        margin: 8px 0;

        /* Light theme color — prefers --theme-rgb (r,g,b), falls back to blue */
        background-color: rgba(var(--theme-rgb, 37,117,252), 0.14);

        /* subtle glow */
        box-shadow: 0 2px 8px rgba(var(--theme-rgb, 37,117,252), 0.06);
    }



    
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

body {
    padding-top: 70px; /* Adjust if navbar height changes */
}

.navbar-brand span {
    font-weight: bold;
    color: #2d3a4b;
}


.navbar-nav .nav-link {
    color: #2d3a4b;
    font-weight: 600;
    transition: color 0.2s, background-color 0.2s, text-decoration 0.2s;
}

/* Only underline on hover, no color or background change */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    text-decoration: underline;
    color: inherit;
    background: none;
    border-radius: 0;
}

/* --- Inline styles moved from index.html --- */
/* Prevent horizontal scrolling caused by full-bleed technique */
html, body { overflow-x: hidden; }

/* Slider full-bleed (edge-to-edge), below navbar, rounded bottom corners */
body { padding-top: 0; background: #ffffff; }

/* Override theme featured section so carousel is full-bleed */
.featured-section { background: transparent !important; padding-bottom: 0 !important; border-radius: 0 0 40px 40px !important; }
.featured-section .row { bottom: 0 !important; margin-bottom: 0 !important; }

.carousel-container {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
    margin-top: 0;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    overflow: hidden;
    background: transparent;
    z-index: 0;
}

.carousel-container::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: #7fd6cc;
    z-index: 1;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    pointer-events: none;
}

/* Make sure navbar stays above the slider */
.navbar { z-index: 1035; }

/* keep page background white */
main { background: #ffffff; }

.carousel-container .carousel-item img { width: 100%; height: calc(60vh + 150px); min-height: 420px; object-fit: cover; display: block; }
.carousel-container .carousel-item .carousel-slide { height: calc(60vh + 150px); min-height: 420px; }

.carousel-caption { position: absolute !important; top: 50% !important; left: 50% !important; transform: translate(-50%, -50%) !important; margin: 0 auto; max-width: 1100px; padding: 0 6vw; text-align: center; z-index: 9999; box-sizing: border-box; width: auto; }

@media (max-width: 768px) {
    .carousel-container .carousel-item img { height: 45vh; }
    .carousel-caption h1 { font-size: 1.8rem; }
    body { padding-top: 16px; }
    .carousel-container { margin-top: 0; }
}

@media (min-width: 1024px) and (max-width: 1440px) {
    .carousel-container .carousel-item img { height: calc(72vh + 150px); }
    .carousel-container .carousel-item .carousel-slide { height: calc(72vh + 150px); }
    .carousel-caption h1 { font-size: 3.2rem; }
    .carousel-caption p.lead { font-size: 1.15rem; }
}

/* IPR cards helpers */
.ipr-row .custom-block { display: flex; flex-direction: column; height: 100%; }
.ipr-row .custom-block > a { display: flex; flex-direction: column; flex: 1 1 auto; }
.ipr-row .custom-block .custom-block-image { margin-top: 0 !important; }

/* Ensure background-image card media displays on all screen sizes (prevent collapse) */
.ipr-row .card-media {
    width: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 220px; /* visible preview on small screens */
    display: block;
}

@media (min-width: 992px) {
    /* Strict equal-height cards: fixed total height and fixed image height for pixel-perfect alignment */
    .ipr-row .custom-block { box-sizing: border-box; padding: 20px !important; }
    /* Allow cards to size naturally based on text content */
    /* (removed fixed total height so text area becomes auto-height) */

    /* Ensure the anchor fills the card for consistent click area */
    /* Use CSS Grid on large screens: text area fills remaining space, image sits at bottom */
    /* Make the second grid row fixed (image height), and let the text row size to content */
    .ipr-row .custom-block > a { display: grid; grid-template-rows: auto 480px; gap: 0.5rem; height: 100%; }

    /* Text area gets a fixed height computed from total minus image area and padding */
    /* We set the image height explicitly, then clamp the text area to remaining space */
    .ipr-row .card-media { width: 100%; height: 100%; background-size: cover; background-position: center center; background-repeat: no-repeat; display: block; }

    /* Card text area grows naturally based on content */
    .ipr-row .card-text { overflow: visible; }
    .ipr-row .card-text h5 { margin-bottom: 0.5rem; }
    .ipr-row .card-text p {
        margin-top: 0.25rem;
        margin-bottom: 0;
        display: block;
        overflow: visible;
    }

    /* Small safeguard to maintain visual balance */
    .ipr-row .custom-block { display: flex; flex-direction: column; }
}

/* Ensure no extra margins create gaps */
.ipr-row .custom-block > a .card-text p { margin-bottom: 0 !important; }
.ipr-row .custom-block > a .card-media { margin-top: 0 !important; }

/* Card-specific background-image utility classes (centralized) */
.card-media--patent { background-image: url('../images/1.jpg') !important; }
.card-media--copyright { background-image: url('../images/2.jpg') !important; }
.card-media--design { background-image: url('../images/design.jpg') !important; }
.card-media--trademark { background-image: url('../images/trademark.jpg') !important; }

/* Support for card-media elements that contain an <img> instead of using background-image */
.card-media img.custom-block-image { width: 100%; height: 100%; object-fit: cover; border-bottom-left-radius: 6px; border-bottom-right-radius: 6px; }

/* Reduce vertical padding inside ipr cards on small screens */
@media (max-width: 991px) {
    .ipr-row { padding-left: 0.25rem; padding-right: 0.25rem; }
    .ipr-row .custom-block { padding: 8px !important; }
}

/* End moved inline styles */

/* No forced bottom-alignment: allow `.card-text` to size naturally */

/* ABOUT SECTION TYPOGRAPHY */
.about-content {
    color: #444; /* slightly darker than previous #777 for better contrast */
    max-width: 68ch; /* slightly narrower so left column matches aside content visually */
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.75; /* relaxed leading for readability */
    text-align: left; /* prefer left-aligned for professional sites */
}
.about-content p {
    margin-bottom: 1rem;
    color: inherit;
}
.about-content h5 {
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: #222;
    font-weight: 600;
}
.about-content ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}
.about-content li { margin-bottom: 0.5rem; }

@media (max-width: 991px) {
    .about-content { padding: 0 1rem; max-width: 100%; line-height: 1.6; }
}

/* About panel (aside) styling to sit alongside about-content on large screens */
.about-panel {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafb 100%);
    border: 1px solid rgba(34,41,47,0.06);
    padding: 1.5rem; /* ensure comfortable white space inside the panel */
    display: flex;
    flex-direction: column;
    justify-content: center; /* vertically center content relative to the left column */
}
.about-panel h5 { margin-top: 0; margin-bottom: 0.5rem; }
.about-panel p { color: #444; }

@media (max-width: 991px) {
    .about-panel { display: none; }
}

@media (min-width: 992px) {
    /* Slightly increase the left column top padding so paragraphs align better with the panel center */
    .about-content { padding-top: 0.5rem; }
    .about-panel ul { padding-left: 1rem; margin-bottom: 0; }
}

/* Banner section for Intellectual Property Consultation */
.banner-section {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdfe 100%);
    border-radius: 20px;
    padding: 2rem 0;
    margin: 1.75rem 0 2.5rem;
}
.banner-section h2 { font-weight: 700; font-size: 2rem; color: #1f2d3d; }
.banner-section .lead { font-size: 1.05rem; color: #444; }
.banner-section .banner-image { max-height: 340px; width: 100%; object-fit: cover; border-radius: 12px; }

@media (max-width: 991px) {
    .banner-section .row { flex-direction: column-reverse; text-align: center; }
    .banner-section .banner-image { height: 220px; max-width: 100%; margin-bottom: 1rem; }
}

/* WhatsApp sticky floating button */
.whatsapp-sticky {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 56px;
    height: 56px;
    background: #25D366; /* WhatsApp green */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(37,211,102,0.25);
    z-index: 2000;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.whatsapp-sticky:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(37,211,102,0.28); }
.whatsapp-sticky .whatsapp-icon { width: 28px; height: 28px; object-fit: contain; }
.whatsapp-sticky img.whatsapp-icon { display: block; }

@media (max-width: 480px) {
    .whatsapp-sticky { right: 12px; bottom: 12px; width: 48px; height: 48px; }
    .whatsapp-sticky .whatsapp-icon { width: 22px; height: 22px; }
}