/* =============================================
   AED Conference — Custom Styles
   ============================================= */

/* ── Base ── */
body {
    font-family: 'Kanit', 'Segoe UI', sans-serif;
    background: #f8fafc;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Kanit', sans-serif; }

/* ── Reusable Utilities ── */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-wave { line-height: 0; display: block; }
.section-label {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.78rem; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; color: #667eea;
    background: rgba(102,126,234,0.1);
    padding: 0.35rem 1rem; border-radius: 50px;
    margin-bottom: 0.75rem;
}
.section-title {
    font-size: 2.2rem; font-weight: 800; color: #1a202c;
    margin-bottom: 0.5rem; line-height: 1.25;
}
.section-subtitle {
    font-size: 1rem; color: #64748b; max-width: 580px;
}

/* Hide legacy template offcanvas toggle (replaced by Bootstrap 5 navbar) */
.gtco-nav-toggle,
#gtco-offcanvas { display: none !important; }

/* ── Navbar ── */
.aed-navbar {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    padding: 0.6rem 1.5rem;
    z-index: 1030;
}
.aed-navbar .navbar-brand img { height: 48px; width: auto; }
.aed-navbar .nav-link {
    color: #374151; font-size: 0.82rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.06em;
    padding: 0.5rem 0.8rem; border-radius: 8px;
    transition: all 0.25s;
}
.aed-navbar .nav-link:hover, .aed-navbar .nav-link.active {
    color: #667eea; background: rgba(102,126,234,0.08);
}
.aed-navbar .dropdown-menu {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border: none; font-size: 0.88rem;
    padding: 0.5rem;
}
.aed-navbar .dropdown-item {
    border-radius: 8px; padding: 0.5rem 1rem;
    transition: background 0.2s;
}
.aed-navbar .dropdown-item:hover {
    background: rgba(102,126,234,0.1); color: #667eea;
}

/* Nested submenu */
.dropdown-submenu { position: relative; }
.dropdown-submenu > .dropdown-menu {
    top: 0; left: 100%; margin-top: -0.125rem; display: none;
}
.dropdown-submenu:hover > .dropdown-menu,
.dropdown-submenu > .dropdown-menu.show { display: block; }

/* Desktop: small right-arrow after submenu label */
@media (min-width: 992px) {
    .dropdown-submenu > a::after {
        content: '';
        display: inline-block;
        width: 0; height: 0;
        border-top: 0.3em solid transparent;
        border-bottom: 0.3em solid transparent;
        border-left: 0.3em solid currentColor;
        margin-left: 0.55em;
        vertical-align: middle;
    }
}

/* Mobile expand button */
.sub-toggle-btn {
    position: absolute;
    right: 0.5rem; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    color: #667eea; cursor: pointer;
    padding: 0.25rem 0.45rem;
    border-radius: 6px;
    transition: background 0.2s, transform 0.2s;
    line-height: 1;
}
.sub-toggle-btn:hover { background: rgba(102,126,234,0.12); }
.sub-toggle-btn[aria-expanded="true"] .bi-chevron-right {
    display: inline-block;
    transform: rotate(90deg);
    transition: transform 0.2s;
}
/* Show button only on mobile; desktop uses hover */
@media (min-width: 992px) { .sub-toggle-btn { display: none; } }

/* Mobile submenu: static + indent */
@media (max-width: 991.98px) {
    .dropdown-submenu > .dropdown-menu {
        position: static; margin-top: 0;
        padding-left: 1rem; box-shadow: none;
        display: none;
    }
    .dropdown-submenu > .dropdown-menu.show { display: block; }
    /* Right padding for the expand button */
    .dropdown-submenu > a.dropdown-item { padding-right: 2.5rem; }
}

/* ── Slider / Carousel ── */
.hero-slider-wrap { position: relative; overflow: hidden; }
.hero-slider-wrap .owl-carousel-fullwidth .item img {
    width: 100%; max-height: 520px; object-fit: cover;
}
.hero-slider-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(0deg, rgba(15,52,96,0.85) 0%, transparent 100%);
    padding: 3rem 2rem 2rem;
    z-index: 2; pointer-events: none;
}
.hero-slider-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.18); backdrop-filter: blur(6px);
    color: #fff; font-size: 0.78rem; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    padding: 0.4rem 1rem; border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.25); margin-bottom: 0.75rem;
}
.hero-slider-title {
    font-size: 2rem; font-weight: 800; color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3); margin-bottom: 0;
}
@media (max-width: 768px) {
    .hero-slider-title { font-size: 1.3rem; }
    .hero-slider-overlay { padding: 2rem 1.25rem 1.25rem; }
}

/* ── Themes Section ── */
.themes-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 45%, #0f3460 100%);
    padding: 5rem 0 0; position: relative; overflow: hidden;
}
.themes-section::before {
    content: ''; position: absolute;
    top: -80px; right: -100px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(102,126,234,0.2) 0%, transparent 65%);
    pointer-events: none;
}
.themes-section::after {
    content: ''; position: absolute;
    bottom: -60px; left: -80px;
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(237,100,129,0.15) 0%, transparent 65%);
    pointer-events: none;
}
.themes-label {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.78rem; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; color: #a8d8ea;
    background: rgba(168,216,234,0.12);
    padding: 0.35rem 1rem; border-radius: 50px; margin-bottom: 1rem;
}
.themes-section h2 {
    font-size: 1.6rem; font-weight: 400; color: rgba(255,255,255,0.55);
    margin-bottom: 1.5rem; letter-spacing: 1px;
}
.theme-quote-card {
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 24px; padding: 2.5rem 3rem;
    position: relative; z-index: 1;
    max-width: 820px; margin: 0 auto;
}
.theme-quote-card::before {
    content: '\201C';
    font-size: 8rem; line-height: 1;
    color: rgba(102,126,234,0.25);
    position: absolute; top: -10px; left: 20px;
    font-family: Georgia, serif; pointer-events: none;
}
.theme-quote-text {
    font-size: 1.5rem; font-weight: 600; line-height: 1.5;
    background: linear-gradient(135deg, #fff 0%, #a8d8ea 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; text-align: center;
}
.theme-img-wrap {
    margin-top: 2.5rem; text-align: center;
}
.theme-img-wrap img {
    border-radius: 20px; max-width: 420px; width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    border: 3px solid rgba(255,255,255,0.12);
}

/* ── Topics Section ── */
.topics-section { padding: 5rem 0; background: #f8fafc; }
.topic-card {
    background: #fff; border-radius: 18px;
    border: none; overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.07);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}
.topic-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 14px 36px rgba(0,0,0,0.13);
}
.topic-card-bar { height: 4px; width: 100%; }
.topic-card-body { padding: 1.5rem; display: flex; align-items: flex-start; gap: 1rem; }
.topic-icon-wrap {
    width: 50px; height: 50px; border-radius: 14px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
}
.topic-card-title { font-size: 0.95rem; font-weight: 700; color: #1a202c; margin: 0; line-height: 1.4; }
.topic-card-num { font-size: 0.75rem; font-weight: 600; color: #94a3b8; margin-bottom: 4px; }

/* Topic colour palette */
.tc-0 .topic-card-bar { background: linear-gradient(90deg,#667eea,#764ba2); }
.tc-0 .topic-icon-wrap { background:rgba(102,126,234,0.12); color:#667eea; }
.tc-1 .topic-card-bar { background: linear-gradient(90deg,#f5576c,#f093fb); }
.tc-1 .topic-icon-wrap { background:rgba(245,87,108,0.12); color:#f5576c; }
.tc-2 .topic-card-bar { background: linear-gradient(90deg,#4facfe,#00f2fe); }
.tc-2 .topic-icon-wrap { background:rgba(79,172,254,0.12); color:#4facfe; }
.tc-3 .topic-card-bar { background: linear-gradient(90deg,#43e97b,#38f9d7); }
.tc-3 .topic-icon-wrap { background:rgba(67,233,123,0.12); color:#2dbb6a; }
.tc-4 .topic-card-bar { background: linear-gradient(90deg,#fa8231,#f9ca24); }
.tc-4 .topic-icon-wrap { background:rgba(250,130,49,0.12); color:#fa8231; }
.tc-5 .topic-card-bar { background: linear-gradient(90deg,#a18cd1,#fbc2eb); }
.tc-5 .topic-icon-wrap { background:rgba(161,140,209,0.12); color:#a18cd1; }
.tc-6 .topic-card-bar { background: linear-gradient(90deg,#11998e,#38ef7d); }
.tc-6 .topic-icon-wrap { background:rgba(17,153,142,0.12); color:#11998e; }
.tc-7 .topic-card-bar { background: linear-gradient(90deg,#fc5c7d,#6a3093); }
.tc-7 .topic-icon-wrap { background:rgba(106,48,147,0.12); color:#6a3093; }

/* ── News Section ── */
.news-section { padding: 5rem 0; background: #fff; }
.news-timeline-item {
    display: flex; gap: 1.25rem; padding-bottom: 1.75rem;
    border-bottom: 1px solid #f1f5f9; margin-bottom: 1.75rem;
}
.news-timeline-item:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.news-timeline-dot {
    flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: #fff;
    background: linear-gradient(135deg,#667eea,#764ba2);
}
.news-timeline-date {
    font-size: 0.75rem; font-weight: 700; color: #94a3b8;
    text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 4px;
}
.news-timeline-title {
    font-size: 0.98rem; font-weight: 700; color: #1a202c;
    margin-bottom: 0.4rem; line-height: 1.4;
}
.news-timeline-body { font-size: 0.87rem; color: #64748b; line-height: 1.65; margin: 0; }
.news-more-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg,#667eea,#764ba2);
    color: #fff; font-size: 0.85rem; font-weight: 700;
    padding: 0.65rem 1.5rem; border-radius: 50px;
    text-decoration: none; transition: opacity 0.25s, transform 0.25s;
    margin-top: 1.25rem; letter-spacing: 0.4px;
}
.news-more-btn:hover { opacity: 0.88; color: #fff; transform: translateY(-2px); }

/* ── Proceedings Column ── */
.proceedings-section-col { border-left: 1px solid #f1f5f9; padding-left: 2.5rem; }
@media (max-width: 767px) { .proceedings-section-col { border-left: none; padding-left: 0; margin-top: 2.5rem; } }
.proceedings-qr img { border-radius: 16px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.proceedings-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg,#11998e,#38ef7d);
    color: #0a5c53; font-size: 0.85rem; font-weight: 700;
    padding: 0.65rem 1.5rem; border-radius: 50px;
    text-decoration: none; transition: all 0.25s; margin-top: 0.75rem;
}
.proceedings-btn:hover { color: #0a5c53; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(56,249,215,0.35); }
.proc-pdf-card {
    display: flex; align-items: flex-start; gap: 0.9rem;
    background: #f8fafc; border-radius: 14px; padding: 1rem 1.1rem;
    margin-bottom: 0.75rem; border: 1px solid #e2e8f0;
    transition: all 0.25s;
}
.proc-pdf-card:hover { background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,0.08); transform: translateX(4px); }
.proc-pdf-icon {
    flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px;
    background: rgba(239,68,68,0.1); color: #ef4444;
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.proc-pdf-name { font-size: 0.82rem; font-weight: 700; color: #1a202c; margin-bottom: 2px; }
.proc-pdf-desc { font-size: 0.78rem; color: #64748b; margin: 0; line-height: 1.4; }
.proc-pdf-link {
    font-size: 0.75rem; font-weight: 600; color: #667eea;
    text-decoration: none; display: inline-flex; align-items: center; gap: 4px;
    margin-top: 5px; transition: gap 0.2s;
}
.proc-pdf-link:hover { gap: 8px; color: #764ba2; }

/* ── Submission Section ── */
.submission-section { padding: 5rem 0; background: #f8fafc; }
.sub-card {
    border-radius: 24px; overflow: hidden; height: 100%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08); border: none;
    transition: transform 0.3s, box-shadow 0.3s;
}
.sub-card:hover { transform: translateY(-6px); box-shadow: 0 18px 48px rgba(0,0,0,0.13); }
.sub-card-header {
    padding: 1.75rem 2rem; color: #fff; position: relative; overflow: hidden;
}
.sub-card-header::before {
    content: ''; position: absolute;
    top: -40px; right: -40px; width: 180px; height: 180px;
    background: rgba(255,255,255,0.08); border-radius: 50%;
}
.sub-card-header-1 { background: linear-gradient(135deg,#667eea,#764ba2); }
.sub-card-header-2 { background: linear-gradient(135deg,#11998e,#38ef7d); color: #0a4a44 !important; }
.sub-card-header h5 { font-size: 1.1rem; font-weight: 800; margin: 0; }
.sub-card-badge {
    display: inline-block; font-size: 0.7rem; font-weight: 700;
    padding: 0.25rem 0.75rem; border-radius: 50px;
    background: rgba(255,255,255,0.25); margin-top: 0.5rem; letter-spacing: 0.5px;
}
.sub-card-body { padding: 1.75rem 2rem; background: #fff; }
.sub-fee-table { width: 100%; font-size: 0.88rem; }
.sub-fee-table th { font-weight: 700; color: #475569; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px; }
.sub-fee-table td { padding: 0.4rem 0; color: #1a202c; border-bottom: 1px solid #f1f5f9; }
.sub-fee-highlight { font-weight: 700; color: #667eea; }
.sub-fee-free { font-weight: 700; color: #11998e; }
.sub-free-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(17,153,142,0.1); color: #11998e;
    font-weight: 700; font-size: 0.88rem; padding: 0.4rem 1rem; border-radius: 50px;
}

/* ── CFP / Important Dates ── */
.cfp-section-wrap {
    padding: 5rem 0;
    background: linear-gradient(135deg,#1a1a2e 0%,#16213e 45%,#0f3460 100%);
    position: relative; overflow: hidden;
}
.cfp-section-wrap::before {
    content:''; position:absolute; top:-80px; right:-100px;
    width:400px; height:400px;
    background:radial-gradient(circle,rgba(102,126,234,0.2) 0%,transparent 65%);
    pointer-events:none;
}
.cfp-section-wrap::after {
    content:''; position:absolute; bottom:-60px; left:-60px;
    width:300px; height:300px;
    background:radial-gradient(circle,rgba(56,249,215,0.1) 0%,transparent 65%);
    pointer-events:none;
}
.cfp-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(102,126,234,0.2); color: #a8d8ea;
    font-size: 0.78rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
    padding: 0.35rem 1rem; border-radius: 50px; margin-bottom: 1rem;
}
.cfp-section-wrap .section-title {
    color: #fff; font-size: 2.4rem;
}
.cfp-section-wrap .section-subtitle { color: rgba(255,255,255,0.55); }

/* Timeline */
.cfp-timeline { position: relative; padding-left: 0; margin-top: 2.5rem; }
.cfp-step {
    display: flex; gap: 1.25rem; align-items: flex-start;
    margin-bottom: 1.5rem; position: relative;
}
.cfp-step:last-child { margin-bottom: 0; }
.cfp-step-dot {
    flex-shrink: 0; width: 52px; height: 52px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: #fff;
}
.cfp-dot-1 { background: linear-gradient(135deg,#667eea,#764ba2); }
.cfp-dot-2 { background: linear-gradient(135deg,#f5576c,#f093fb); }
.cfp-dot-3 { background: linear-gradient(135deg,#43e97b,#38f9d7); }
.cfp-dot-4 { background: linear-gradient(135deg,#fa8231,#f9ca24); }
.cfp-step-body {
    background: rgba(255,255,255,0.07); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px; padding: 1.1rem 1.4rem; flex: 1;
    transition: background 0.25s;
}
.cfp-step-body:hover { background: rgba(255,255,255,0.12); }
.cfp-step-title { font-size: 0.95rem; font-weight: 700; color: #fff; margin-bottom: 0.25rem; }
.cfp-step-sub { font-size: 0.82rem; color: rgba(255,255,255,0.55); margin-bottom: 0.5rem; }
.cfp-date-pill {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.82rem; font-weight: 700;
    padding: 0.25rem 0.85rem; border-radius: 50px; color: #fff;
}
.cfp-pill-1 { background: rgba(102,126,234,0.4); }
.cfp-pill-2 { background: rgba(245,87,108,0.4); }
.cfp-pill-3 { background: rgba(67,233,123,0.4); color: #c8ffd4; }
.cfp-pill-4 { background: rgba(250,130,49,0.4); }
.cfp-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.82rem; font-weight: 700; color: #a8d8ea;
    text-decoration: none; transition: gap 0.2s;
}
.cfp-link:hover { gap: 10px; color: #fff; }

/* Countdown */
.cfp-countdown-wrap {
    background: rgba(255,255,255,0.07); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 24px; padding: 2rem 1.5rem; text-align: center;
}
.cfp-countdown-title { color: rgba(255,255,255,0.65); font-size: 0.88rem; font-weight: 600; letter-spacing: 0.5px; margin-bottom: 1.5rem; }
.cfp-countdown-grid { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.cfp-countdown-box {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px; padding: 1rem 0.75rem; min-width: 72px;
}
.cfp-countdown-num { font-size: 2.2rem; font-weight: 800; color: #fff; line-height: 1; }
.cfp-countdown-lbl { font-size: 0.7rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1.5px; margin-top: 4px; }
.cfp-expired-msg { color: rgba(255,255,255,0.6); font-style: italic; font-size: 0.9rem; }

/* ── Map Section ── */
.map-section-wrap { background: #fff; padding: 4rem 0; }
.map-frame-wrap {
    border-radius: 24px; overflow: hidden;
    box-shadow: 0 12px 48px rgba(0,0,0,0.12);
    border: 4px solid #fff;
    outline: 1px solid #e2e8f0;
}
.map-frame-wrap iframe { display: block; border: 0; width: 100%; }

/* ── Footer ── */
#gtco-footer { background: #1a1a2e; padding: 0 !important; }
.footer-inner {
    background: linear-gradient(135deg,#1a1a2e,#0f3460);
    padding: 2.5rem 0; border-top: 1px solid rgba(255,255,255,0.07);
}
.footer-inner p { color: rgba(255,255,255,0.6); margin: 0; font-size: 0.88rem; }
.footer-inner a.econ-text { color: #a8d8ea !important; text-decoration: none; font-weight: 600; }
.footer-inner a.econ-text:hover { color: #fff !important; }
.facebook-icon { color: rgba(255,255,255,0.4); transition: color 0.3s; font-size: 1.25rem; }
.social-link:hover .facebook-icon, .facebook-icon:hover { color: #3b5998; }

/* ── Back-to-Top ── */
.gototop { position: fixed; bottom: 24px; right: 24px; z-index: 999; opacity: 0; visibility: hidden; transition: 0.3s; }
.gototop.active { opacity: 1; visibility: visible; }
.gototop a {
    width: 44px; height: 44px; border-radius: 12px;
    background: linear-gradient(135deg,#667eea,#764ba2);
    color: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(102,126,234,0.4); text-decoration: none;
    transition: transform 0.2s;
}
.gototop a:hover { transform: translateY(-3px); }

/* ── Responsive ── */
@media (max-width: 768px) {
    .section-title { font-size: 1.7rem; }
    .theme-quote-card { padding: 1.75rem 1.5rem; }
    .theme-quote-text { font-size: 1.15rem; }
    .cfp-section-wrap .section-title { font-size: 1.9rem; }
    .sub-card-body { padding: 1.25rem; }
    .proceedings-section-col { padding-left: 0; margin-top: 2.5rem; border-left: none; }
    .cfp-countdown-num { font-size: 1.7rem; }
    .cfp-countdown-box { min-width: 60px; }
}
