/* Site-specific responsive fixes. Loaded after the theme's style.css and responsive.css. */

/* Theme demo panel (layout / RTL switcher) is not part of the site */
.color-palate { display: none !important; }

/* ----- Images and embeds never wider than their container ----- */
img, video, embed, object { max-width: 100%; height: auto; }
iframe { max-width: 100%; }

html, body { overflow-x: hidden; }

/* ----- Text pasted into the CMS (some carries fixed widths from other sites) ----- */
.schedule-detail .content-box,
.speaker-details,
.lower-content,
.info-column { overflow-wrap: break-word; word-wrap: break-word; min-width: 0; }

.schedule-detail .content-box *,
.speaker-details *,
.lower-content *,
.info-column * { max-width: 100%; box-sizing: border-box; }

.schedule-detail .content-box [class*="elementor"],
.speaker-details [class*="elementor"],
.lower-content [class*="elementor"] {
    width: auto !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: auto !important;
    transform: none !important;
}

.schedule-detail .content-box table,
.lower-content table,
.speaker-details table { display: block; overflow-x: auto; }

/* ----- Logo: the emblem is a small round mark ----- */
.main-header .logo img { max-height: 72px; width: auto; }
.mobile-header .logo img, .mobile-menu .nav-logo img, .sticky-header .logo img { max-height: 52px; width: auto; }
.main-footer .footer-logo img { max-height: 90px; width: auto; }

/* ----- Schedule ----- */
.schedule-heading {
    font-size: 24px;
    color: #001376;
    text-align: center;
    margin-bottom: 20px;
}
.schedule-block-two h3 { font-size: 18px; line-height: 1.4; }
.schedule-block-two .speaker-info .name { font-size: 15px; }
.schedule-block-two .speaker-info .designation { font-size: 14px; }

/* ----- Galleries: same-shaped tiles, so filtering lines up while photos load ----- */
.portfolio-item .item img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4px;
    background: #eef0f6;
}
.portfolio-menu ul { padding: 0; margin: 0; }
.portfolio-menu ul li { margin: 3px 2px; }
.youtube-video iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }

/* ----- Team and speaker cards keep one shape in the grid ----- */
.speaker-block .image-box .image img { width: 100%; }

/* ----- Tablets and below ----- */
@media only screen and (max-width: 991px) {
    .page-title { padding: 100px 0; }
    .map-outer iframe { height: 400px; }
}

/* ----- Phones ----- */
@media only screen and (max-width: 767px) {
    .page-title { padding: 70px 0; }
    .page-title h1 { font-size: 32px; line-height: 1.2; }
    .page-title .page-breadcrumb li { font-size: 15px; line-height: 1.5; }

    .sec-title h2 { font-size: 28px; line-height: 1.25; }
    .sec-title h6 { font-size: 15px; line-height: 1.6; font-weight: 500; }

    /* 16px stops iPhones zooming the page when a field is tapped */
    input, select, textarea, .form-control { font-size: 16px !important; }

    .theme-btn { white-space: normal; }
    .contact-form label { line-height: 1.5; }

    .download-section a { flex-basis: 100%; }
    .download-instructions br { display: none; }

    .map-outer iframe { height: 300px; }

    .pricing-block-two .price { font-size: 48px; }
    .newsletter-form-two input { width: 100%; }

    .schedule-block-two h3 { font-size: 16px; }

    .profile-name { font-size: 1.9rem !important; }
    .section-content { text-align: left !important; }
}

@media only screen and (max-width: 479px) {
    .page-title h1 { font-size: 28px; }
    .sec-title h2 { font-size: 24px; }
    .pricing-block-two .inner-box { padding-left: 20px; padding-right: 20px; }
}

/* ----- Home banner: keep the title inside the screen on phones ----- */
@media only screen and (max-width: 767px) {
    .main-slider h3 {
        font-size: 30px !important;
        line-height: 1.2 !important;
        white-space: normal !important;
    }
}

/* ----- Mobile menu: long email address must not make the panel scroll sideways ----- */
.mobile-menu .menu-box { overflow-x: hidden; }
.mobile-menu .contact-list-one li { overflow-wrap: anywhere; }

/* ----- 10th Forum 2027 (homepage) ----- */
.event-2027 { padding: 70px 0 40px; background: #fff; }
.event-2027-intro { align-items: center; }
.event-2027-flyer { display: block; }
.event-2027-flyer img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 8px 28px rgba(0, 19, 118, .18); }
.event-2027-kicker { display: block; color: #ff00c6; font-weight: 600; font-size: 16px; margin-bottom: 8px; }
.event-2027 h1 { color: #001376; font-size: 40px; line-height: 1.2; font-weight: 700; margin-bottom: 14px; }
.event-2027-theme { color: #001376; font-size: 22px; font-weight: 700; line-height: 1.3; margin-bottom: 24px; }
.event-2027-theme span { display: block; color: #b45f00; font-size: 17px; font-weight: 600; margin-top: 4px; }
.event-2027-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 24px; padding: 0; list-style: none; }
.event-2027-facts li { background: #f5f7fc; border-radius: 6px; padding: 12px 14px 12px 46px; position: relative; font-size: 17px; line-height: 1.35; color: #001376; font-weight: 700; }
.event-2027-facts li .fa { position: absolute; left: 15px; top: 16px; color: #ff8a00; font-size: 18px; }
.event-2027-facts strong { display: block; color: #555; font-size: 13px; font-weight: 600; }
.event-2027-venues { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.event-2027-venue { display: flex; gap: 12px; align-items: flex-start; }
.event-2027-venue > img { width: 62px; height: auto; flex: none; border-radius: 4px; border: 1px solid #e6e8f0; }
.event-2027-pin { flex: none; width: 62px; text-align: center; font-size: 34px; color: #ff8a00; }
.event-2027-venue h2 { color: #001376; font-size: 17px; line-height: 1.3; font-weight: 700; margin: 0 0 4px; }
.event-2027-venue p { font-size: 15px; line-height: 1.5; margin: 0; color: #444; }
.event-2027-phones { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 22px; font-size: 15px; }
.event-2027-phones li { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.event-2027-phones .fa { color: #ff8a00; }
.event-2027-phones .fa-whatsapp { color: #25d366; font-size: 18px; }
.event-2027-phones a { color: #001376; font-weight: 600; }
.event-2027-phones .phone-tag { font-size: 11px; font-weight: 700; line-height: 1; text-transform: uppercase; letter-spacing: .4px; padding: 4px 7px; border-radius: 10px; background: #e8ebf5; color: #001376; }
.event-2027-phones .phone-tag-wa { background: #e5f8ec; color: #128c3e; }
.event-2027-themes { margin-top: 44px; }
.event-2027-themes figure { margin: 0 0 20px; background: #0f6cbd; border-radius: 8px; overflow: hidden; height: calc(100% - 20px); }
.event-2027-themes img { display: block; width: 100%; height: auto; aspect-ratio: 233 / 152; object-fit: cover; }
.event-2027-themes figcaption { color: #fff; font-weight: 700; font-size: 15px; line-height: 1.35; text-align: center; padding: 12px 10px; }
.event-2027-sponsors { text-align: center; margin-top: 10px; }
.event-2027-sponsors img { width: 560px; max-width: 100%; height: auto; }

@media only screen and (max-width: 991px) {
    .event-2027-flyer { max-width: 460px; margin: 0 auto 30px; }
}
@media only screen and (max-width: 767px) {
    .event-2027 { padding: 45px 0 25px; }
    .event-2027 h1 { font-size: 29px; }
    .event-2027-theme { font-size: 19px; }
    .event-2027-venues { grid-template-columns: minmax(0, 1fr); }
    .event-2027-themes figcaption { font-size: 13px; padding: 10px 6px; }
}
@media only screen and (max-width: 420px) {
    .event-2027-facts { grid-template-columns: minmax(0, 1fr); }
}
/* Home banner countdown: days and hours fit on phones */
@media only screen and (max-width: 767px) {
    .time-counter-one .time-countdown .counter-column:nth-child(n+3) { display: none; }
}

/* ----- Event popup ----- */
.event-popup { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 10, 50, .78); opacity: 0; transition: opacity .25s ease; }
.event-popup[hidden] { display: none; }
.event-popup.is-open { opacity: 1; }
.event-popup-box { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 100%; transform: scale(.96); transition: transform .25s ease; }
.event-popup.is-open .event-popup-box { transform: scale(1); }
.event-popup-box img { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(100vh - 110px); border-radius: 8px; box-shadow: 0 12px 40px rgba(0, 0, 0, .45); }
.event-popup-close { position: absolute; top: -12px; right: -12px; z-index: 2; width: 42px; height: 42px; border: 2px solid #fff; border-radius: 50%; background: #d3122a; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.event-popup-cta { flex: none; }
@media only screen and (max-width: 767px) {
    .event-popup-close { top: -8px; right: -4px; }
}

/* ----- Overview ----- */
.overview-content { max-width: 880px; margin: 0 auto; font-size: 17px; line-height: 1.75; color: #444; }
.overview-content h2 { color: #001376; font-size: 28px; line-height: 1.3; font-weight: 700; margin: 42px 0 14px; }
.overview-content h2:first-child { margin-top: 0; }
.overview-content p { font-size: 17px; line-height: 1.75; margin-bottom: 16px; }
.overview-content ul { margin: 0 0 18px; padding-left: 22px; list-style: disc; }
.overview-content li { margin-bottom: 8px; list-style: disc; }
.overview-content blockquote { margin: 0 0 18px; padding: 16px 20px; border-left: 4px solid #ff8a00; background: #f5f7fc; font-weight: 600; color: #001376; }

/* ----- Venue ----- */
.venue-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 26px 0; }
.venue-card { background: #f5f7fc; border-radius: 8px; padding: 26px; }
.venue-card img { display: block; width: 96px; height: auto; margin-bottom: 14px; border-radius: 4px; background: #fff; }
.venue-card h3 { color: #001376; font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.venue-card h4 { color: #b45f00; font-size: 14px; font-weight: 700; text-transform: uppercase; margin-bottom: 6px; }
.venue-card p { font-size: 16px; line-height: 1.6; margin: 0; }
.venue-page .upper-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.venue-page .theme-btn { position: static; }

/* ----- Schedule ----- */
.event-schedule { padding: 70px 0; }
.event-schedule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 880px; margin: 0 auto 24px; padding: 0; list-style: none; }
.event-schedule-grid li { position: relative; background: #fff; border: 1px solid #e6e8f0; border-radius: 8px; padding: 18px 18px 18px 58px; color: #001376; font-size: 18px; line-height: 1.4; font-weight: 700; }
.event-schedule-grid .fa { position: absolute; left: 20px; top: 22px; color: #ff8a00; font-size: 22px; }
.event-schedule-grid strong { display: block; color: #555; font-size: 13px; font-weight: 600; }
.event-schedule-note { max-width: 880px; margin: 0 auto 26px; text-align: center; font-size: 16px; line-height: 1.6; }

@media only screen and (max-width: 767px) {
    .venue-cards, .event-schedule-grid { grid-template-columns: minmax(0, 1fr); }
    .overview-content, .overview-content p { font-size: 16px; }
    .overview-content h2 { font-size: 23px; }
    .event-schedule { padding: 45px 0; }
}

/* ----- About images (2x source, shown at the theme's size) ----- */
.about-section .image-2 img, .about-section .image-3 img { display: block; width: 242px; max-width: 100%; height: auto; }

/* ----- Venue maps ----- */
.venue-map { display: block; width: 100%; height: 240px; margin-top: 16px; border: 0; border-radius: 6px; }

/* ----- Footer bottom: copyright only ----- */
.main-footer .footer-bottom .inner-container { justify-content: center; padding-right: 0; text-align: center; }

/* ----- Homepage theme cards ----- */
.event-2027-themes-title { margin-top: 56px; margin-bottom: 30px; }
.event-2027-themes-title h2 { font-size: 30px; line-height: 1.3; }
.event-2027-themes > div { margin-bottom: 24px; display: flex; }
.event-theme-card { display: flex; flex-direction: column; width: 100%; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 18px rgba(0, 19, 118, .12); transition: transform .2s ease, box-shadow .2s ease; }
.event-theme-card:hover, .event-theme-card:focus { transform: translateY(-3px); box-shadow: 0 8px 26px rgba(0, 19, 118, .2); }
.event-theme-card img { display: block; width: 100%; height: auto; aspect-ratio: 233 / 152; object-fit: cover; }
.event-theme-body { display: flex; flex-direction: column; flex: 1; padding: 14px; }
.event-theme-body strong { color: #001376; font-size: 16px; line-height: 1.35; font-weight: 700; margin-bottom: 8px; }
.event-theme-body span { color: #555; font-size: 14px; line-height: 1.5; margin-bottom: 10px; }
.event-theme-body em { margin-top: auto; color: #d4006f; font-size: 14px; font-style: normal; font-weight: 700; }
@media only screen and (max-width: 767px) {
    .event-2027-themes-title { margin-top: 36px; }
    .event-2027-themes-title h2 { font-size: 22px; }
    .event-2027-themes > div { padding-left: 8px; padding-right: 8px; margin-bottom: 16px; }
    .event-theme-body { padding: 10px; }
    .event-theme-body strong { font-size: 14px; }
    .event-theme-body span { font-size: 13px; }
}

/* ----- Theme pages: show banners at their real size so they stay sharp ----- */
.blog-detail .news-block .image-box .image img { display: block; width: auto; max-width: 100%; height: auto; margin: 0 auto; }
