/* =========================
   Home Page Custom Styles
   ========================= */

/* General reset for new blocks (UPDATED: padding, width) */
.pc-header-text,
.pc-identity,
.pc-lines,
.pc-logos-row {
    text-align: center;
    margin: 0 auto;
    padding: 10px 0;       /* was 20px */
    max-width: 95%;        /* was 1100px */
}
.pc-header-text,
.pc-identity,
.pc-lines,
.pc-logos-row {
    margin-bottom: 40px;   /* new spacing between sections */
}

/* Main Title (Black, Big) (UPDATED sizes) */
.pc-header-text h1 {
    font-size: 48px;
    font-weight: 700;     /* was bold */
    color: #000;
    margin-bottom: 10px;
    letter-spacing: 1px;  /* new */
}


/* Subtitle (Blue) (UPDATED size) */
.pc-header-text h2 {
    font-size: 28px;       /* slightly smaller */
    font-weight: 500;     /* lighter */
    color: #0047ab;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}


/* Subtext Paragraph (Black) (UPDATED sizes/width) */
.pc-header-text p {
    font-size: 20px;       /* was 18px */
    line-height: 1.6;
    color: #000;
    max-width: 900px;      /* was 800px */
    margin: 0 auto 20px;
}

/* Tighter top spacing for header block (NEW) */
.pc-header-text {
    padding: 40px 0 10px;  /* was inherited 10px 0 */
}

/* Large Identity Logo (UPDATED size + refinement) */
.logo-main {
    width: 290px;          /* slightly bigger for balance */
    height: auto;
    display: block;
    margin: 10px auto 20px;  /* adjusted spacing */
}


/* Identity caption text (UPDATED size/width) */
.identity-text {
    font-size: 20px;       /* was 18px */
    color: #000;
    line-height: 1.6;
    max-width: 900px;      /* was 700px */
    margin: 0 auto 24px;
}


/* Row of Partner Logos (UPDATED gap & img size) */
.pc-logos-row {
    display:flex;
    justify-content:space-between; /* evenly distribute across the container */
    align-items:center;
    gap: 30px; /* fallback spacing */
    flex-wrap:nowrap; /* keep them in one row on desktop */
    width: 95%;
    max-width:1100px;
    margin: 20px auto;
}
.pc-logos-row img {
    height: 60px;    /* uniform height, auto width */
    width: auto;
    object-fit:contain;
    opacity:0.95;
    transition:transform .2s, filter .2s;
    filter: grayscale(15%);
}
.pc-logos-row img:hover { transform:scale(1.06); filter:grayscale(0); opacity:1; }
@media (max-width: 800px) {
    .pc-logos-row { flex-wrap:wrap; justify-content:center; gap:20px; }
    .pc-logos-row img { height:48px; }
}


/* Optional: responsive tweaks */
@media (max-width: 768px) {
    .pc-header-text h1 { font-size: 36px; }
    .pc-header-text h2 { font-size: 22px; }
    .pc-header-text p,
    .identity-text { font-size: 18px; max-width: 95%; }
    .logo-main { width: 180px; }
    .pc-lines { width: 85%; }
    .pc-logos-row img { width: 100px; }
}
@media (max-width: 768px) {
    .pc-header-text { padding: 30px 0 10px; }   /* add more top spacing */
    .pc-identity { margin-top: 15px; }          /* separate logo/text better */
}
/* =========================
   Footer Redesign
   ========================= */
/* Footer — full width background, inner container centered */
#footer {
    width: 100%;
    background: #111;
    color: #fff;
    padding: 30px 0;
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
}
#footer .container { max-width:1100px; margin:0 auto; padding: 0 16px; box-sizing: border-box; }
#footer a { color: #ffd700; text-decoration:none; font-weight:500; }
#footer a:hover { text-decoration: underline; }


/* =========================
   Navbar Modern Redesign
   ========================= */
   
/* JIBA: Navbar final polish (replace existing #header .navbar block) */
#header .navbar {
    padding: 14px 36px;
    min-height: 72px;
    border: none;
    background: #00a850; /* subtle white so links stay readable */
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    z-index: 1000;
}

/* navbar links (centralized, replaces inline styles) */
#header .navbar-nav > li > a {
    color: #0047ab !important;
    font-weight: 600;
    padding: 12px 14px;
    font-size: 16px;
    transition: color 0.25s ease;
}
#header .navbar-nav > li > a:hover,
#header .navbar-nav > li.active > a { color: #000 !important; }
#header .navbar-toggle { border: none; background: transparent !important; }
#header .icon-bar { background-color: #0047ab; }


/* JIBA: Flag background wrapper — responsive and exact width */
.flag-background {
    background-image: url("../images/slider/flags.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
    width: 100%;
    display: block;
    padding-bottom: 160px; /* desktop baseline — tweak later per viewport if needed */
    box-sizing: border-box;
}

/* tablet and mobile adjustments so flag ends exactly at the separators */
@media (max-width: 991px) {
    .flag-background { padding-bottom: 120px; }
}
@media (max-width: 767px) {
    .flag-background { padding-bottom: 88px; }
}

/* navbar should be transparent so flags show through */
.flag-background .navbar { background: #00a850; margin-bottom: 0; border: none; }

/* Ensure header text and identity sections sit inside the flag background */
.flag-background .pc-header-text,
.flag-background .pc-identity {
    text-align: center;
    color: #000; /* you can adjust if needed for contrast */
}

/* JIBA: Separator lines — full width, no gaps */
body {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important; /* Prevent horizontal scrollbar */
}

.pc-lines {
    width: 100% !important; /* Use parent width */
    max-width: 100% !important; /* Prevent overextension */
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    position: relative !important;
    overflow: visible !important;
}

.pc-lines .line {
    display: block !important;
    width: 100% !important; /* Match parent width */
    max-width: 100% !important; /* Prevent overextension */
    height: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
}

.pc-lines .line.red {
    background: linear-gradient(to right, #ff0000, #cc0000) !important;
}

.pc-lines .line.green {
    background: linear-gradient(to right, #00a000, #00a850) !important;
}

/* Mobile: Ensure full width without overflow */
@media (max-width: 768px) {
    .pc-lines {
        width: 100% !important;
        max-width: 100% !important; /* Reinforce for mobile */
        margin: 0 !important;
        position: relative !important;
    }

    .pc-lines .line {
        width: 100% !important;
        max-width: 100% !important; /* Reinforce for mobile */
    }
}

/* GLOBAL: nav color variables (site-wide) */
:root{
  --nav-link-color: #000000; /* change here to switch site nav color (red) */
  --nav-link-hover: #000000;
}

/* GLOBAL: Navbar link styling (applies to all pages) */
#header .navbar-nav > li > a {
  color: var(--nav-link-color) !important;
  font-weight: 600;
  padding: 12px 14px;
  transition: color .25s ease;
}
#header .navbar-nav > li > a:hover,
#header .navbar-nav > li.active > a { color: var(--nav-link-hover) !important; }
/* GLOBAL: Headings scale */
h1 { font-size: 42px; font-weight:700; color:#000; margin:0 0 .35em; }
h2 { font-size: 32px; font-weight:600; color:#0047ab; margin:0 0 .35em; }
h3 { font-size: 24px; font-weight:600; color:#333; margin:0 0 .35em; }

/* GLOBAL: Body & paragraphs */
body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #222;
}
p { margin: 0 0 16px; }

/* Force conference navbar to match homepage style exactly */
.navbar {
    padding: 14px 36px;
    min-height: 72px;
    border: none;
    background: #00a850;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar-brand img {
    max-width: 100px;
    max-height: 50px;
    vertical-align: middle;
}
.navbar-brand::after {
    content: "IPOC 2025";
    color: #333333;
    font-weight: 700;
    display: none; /* Hidden by default */
}
.navbar-brand img[src=""] + ::after,
.navbar-brand img:not([src]) + ::after {
    display: inline; /* Shows text if image src is empty or missing */
}
.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
.navbar-nav > li {
    margin-left: 20px;
}
.navbar-nav > li > a {
    color: #333333 !important;
    font-weight: 600;
    padding: 12px 14px;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.25s ease, background-color 0.25s ease;
}
.navbar-nav > li > a:hover,
.navbar-nav > li > a.active {
    background-color: #e0f0e0 !important;
    color: #333333 !important;
}
.navbar-nav > li > a:focus {
    outline: 2px solid #0047ab;
    outline-offset: 2px;
}
.navbar-toggle {
    cursor: pointer;
    padding: 10px;
    background: transparent !important;
    border: none;
}
.navbar-toggle .icon-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #0047ab;
    margin: 5px 0;
    transition: all 0.3s ease;
}
@media (max-width: 768px) {
    .navbar {
        padding: 10px 16px;
    }
    .navbar-brand img {
        max-width: 80px;
        max-height: 40px;
    }
    .navbar-collapse {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #e0f0e0;
        position: absolute;
        top: 72px;
        left: 0;
        padding: 10px 0;
    }
    .navbar-collapse.in {
        display: flex;
    }
    .navbar-nav > li {
        margin-left: 0;
        width: 100%;
        border-bottom: 1px solid #ccc;
    }
    .navbar-nav > li:last-child {
        border-bottom: none;
    }
    .navbar-nav > li > a {
        padding: 12px 16px;
        text-align: center;
        display: block;
    }
    .navbar-toggle {
        display: block;
    }
    .wrapper.row3 {
        padding: 10px;
    }
    .one_third.first {
        width: 100%;
    }
}

/* Form background with ipoc_logo */
.form-background {
    position: relative;
    background: url('/images/slider/ipoc_logo.png') no-repeat center; /* Absolute path */
    background-size: contain; /* Scales logo to fit */
    opacity: 0.8; /* Retained as per request */
}
@media (max-width: 768px) {
    .form-background {
        background-size: cover; /* Adjusts for smaller screens */
        background-position: center;
    }
}

/* Style for the conference image above text */
.conference-image {
    width: 100%;
    margin: 0 -20px; /* Offset wrapper padding to stretch full width */
}

.conference-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 400px; /* Limit height to control image size */
    object-fit: cover; /* Ensures image covers without distortion */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .conference-image img {
        max-height: 250px; /* Adjust for mobile screens */
    }
}

/* Darken the submit button */
.btn-success {
    background-color: #228B22; /* Forest green */
    border-color: #228B22;
    color: #ffffff;
}

.btn-success:hover {
    background-color: #1a6f1a; /* Darker on hover */
    border-color: #1a6f1a;
}

.contact-title {
    color: white !important;
}

.contact-info {
    color: white;
}

.footer-text {
    font-size: 12px;
    color: #ffffff;
}

.footer-link {
    color: #0000ff;
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}
.custom-download-btn {
    background-color: #28a745; /* Rich green, adjustable to your brand */
    border-color: #28a745;
    color: #ffffff;
    padding: 12px 30px; /* Increased padding for a larger hit area */
    transition: all 0.3s ease; /* Smooth transition for hover effects */
}

.custom-download-btn:hover {
    background-color: #218838; /* Darker green on hover */
    border-color: #1e7e34;
    transform: translateY(-2px); /* Slight lift effect */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow */
}

.custom-download-btn:active {
    background-color: #1e7e34; /* Even darker when pressed */
    transform: translateY(0); /* Reset lift */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Reduced shadow */
}

.custom-download-btn:focus {
    outline: none; /* Remove default focus outline */
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.5); /* Accessible focus ring */
}
.recent-work-wrap {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden; /* Ensures image cropping stays within bounds */
    text-align: center;
}

.catalog-image {
    height: 200px; /* Fixed height for uniformity */
    object-fit: cover; /* Crops images to fit while maintaining aspect ratio */
    width: 100%; /* Ensures full width of container */
}

/* Ensure rows clear properly */
.row {
    margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .catalog-image {
        height: 150px; /* Slightly smaller on smaller screens */
    }
}
/* Existing styles from last recommendation (keep these) */
.recent-work-wrap {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    text-align: center;
}

.catalog-image {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.recent-work-wrap {
    padding: 10px;
    border: 2px solid #28a745; /* Green border */
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover transition */
}

.recent-work-wrap:hover {
    transform: scale(1.05); /* Slight zoom on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}

.catalog-image {
    height: 200px; /* Fixed height for uniformity */
    object-fit: cover; /* Crops images to fit */
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .catalog-image {
        height: 150px; /* Smaller on mobile */
    }
}

/* CSS-only Navbar Mobile Collapse/Expand (Last Block) */
.navbar {
    padding: 14px 36px;
    min-height: 72px;
    border: none;
    background: #00a850;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    z-index: 1000;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand img {
    max-width: 100px;
    max-height: 50px;
    vertical-align: middle;
}

/* Style the existing toggle button */
.navbar-toggle {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 10px;
    display: none; /* Hidden by default on desktop */
}
.navbar-toggle .icon-bar {
    background-color: #0047ab;
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Default navbar-collapse styling */
.navbar-collapse {
    display: flex;
    max-height: none;
    overflow: visible;
    transition: all 0.3s ease;
}
.nav.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav.navbar-nav .nav-item {
    margin-left: 20px;
}
.nav.navbar-nav .nav-item .nav-link {
    color: #333333 !important;
    font-weight: 600;
    padding: 12px 14px;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.25s ease, background-color 0.25s ease;
}
.nav.navbar-nav .nav-item .nav-link:hover,
.nav.navbar-nav .nav-item .nav-link.active {
    background-color: #e0f0e0 !important;
    color: #333333 !important;
}
.nav.navbar-nav .nav-item .nav-link:focus {
    outline: 2px solid #0047ab;
    outline-offset: 2px;
}

/* Mobile responsiveness (≤768px) */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 16px;
    }
    .navbar-brand img {
        max-width: 80px;
        max-height: 40px;
    }
    .navbar-toggle {
        display: block;
        position: absolute;
        right: 16px;
        top: 10px;
    }
    .navbar-collapse {
        display: none; /* Hidden by default on mobile */
        flex-direction: column;
        width: 100%;
        background-color: #e0f0e0;
        position: absolute;
        top: 72px;
        left: 0;
        padding: 10px 0;
        box-sizing: border-box;
    }
    /* Use :focus-within to toggle visibility */
    .navbar-toggle:focus-within ~ .navbar-collapse {
        display: flex; /* Show when toggle is focused */
    }
    .nav.navbar-nav {
        flex-direction: column;
    }
    .nav.navbar-nav .nav-item {
        margin-left: 0;
        width: 100%;
        border-bottom: 1px solid #ccc;
    }
    .nav.navbar-nav .nav-item:last-child {
        border-bottom: none;
    }
    .nav.navbar-nav .nav-item .nav-link {
        padding: 12px 16px;
        text-align: center;
        display: block;
    }
}

/* Desktop behavior (≥769px) */
@media (min-width: 769px) {
    .navbar-toggle {
        display: none;
    }
    .navbar-collapse {
        display: flex !important;
        position: static;
        background-color: transparent;
    }
    .nav.navbar-nav .nav-item {
        border-bottom: none;
    }
}
/* Mobile Touch Optimization */
@media (max-width: 768px) {
    .nav-link,
    .btn,
    .navbar-toggle {
        touch-action: manipulation;
    }
}