/*
Air 2026 Homepage Custom Styles
Extends the Webful Education template with homepage-specific styling
*/

/* ========================================
   Hero Banner Section
   ======================================== */
.hero-banner-home {
    position: relative;
    height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    overflow: hidden;
}

/* Overlay gradient for better text readability */
.hero-banner-home .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(23, 72, 115, 0.85) 0%, rgba(30, 90, 143, 0.75) 100%);
    z-index: 1;
}

/* Animated particles overlay */
.hero-banner-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                      radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
                      radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    z-index: 1;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-20px, -20px); }
    66% { transform: translate(20px, -10px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 40px 20px;
    max-width: 1000px;
    width: 100%;
}

.hero-content .hero-title,
.hero-content h1 {
    font-size: 72px;
    font-weight: 700;
    color: white !important;
    margin-bottom: 25px;
    line-height: 1.1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: -1px;
}

.hero-content .hero-date,
.hero-content h2 {
    /* font-size: 36px; */
    font-weight: 700;
    color: white !important;
    margin-bottom: 30px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-content .hero-subtitle,
.hero-content h3 {
    font-size: 28px;
    color: white !important;
    margin-bottom: 25px;
    font-weight: 500;
    line-height: 1.4;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-content .hero-location,
.hero-content p {
    font-size: 17px;
    color: white !important;
    margin-bottom: 0;
    font-weight: 600;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-location i {
    margin-right: 8px;
}

/* ========================================
   Latest News Section
   ======================================== */
.content-section {
    background: #f8f9fa;
    padding: 60px 0;
}

.content-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2f2f2f;
    margin-bottom: 30px;
    line-height: 1.5;
}

.content-section p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* News Cards Styling */
.news-card {
    background: white;
    border-radius: 10px;
    padding: 30px 20px;
    margin-bottom: 30px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-align: center;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(23, 72, 115, 0.15);
}

.news-card-icon {
    margin-bottom: 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: #174873;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e8f2f7;
}

.news-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-content ul {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

.news-content ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    text-align: left;
}

.news-content ul li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #174873;
}

.news-card .button.alert {
    background: #ce0000 !important;
    color: white;
    padding: 10px 20px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.news-card .button.alert:hover {
    background: #a00000 !important;
    transform: scale(1.05);
}

.news-content a {
    transition: all 0.3s ease;
}

.news-content a:hover {
    opacity: 0.8;
    text-decoration: underline !important;
}

.news-content img {
    transition: all 0.3s ease;
}

.news-content a:hover img {
    transform: scale(1.05);
}

/* ========================================
   Previous Keynote Speakers Section
   ======================================== */
.speakers-section {
    background: white;
    padding: 60px 0;
}

.speakers-carousel-wrapper {
    position: relative;
    padding: 0 50px;
    margin: 0 auto;
    max-width: 1200px;
}

/* Speakers carousel container */
.speakers-carousel {
    position: relative;
}

/* Speaker card styling */
.speaker-card {
    background: white;
    border-radius: 10px;
    padding: 30px 20px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
    min-height: 380px;
    margin: 0 10px;
}

/* When NOT a carousel (fallback) */
.speakers-carousel:not(.owl-loaded) {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.speakers-carousel:not(.owl-loaded) .speaker-card {
    width: calc(25% - 20px);
    flex: 0 0 auto;
}

@media (max-width: 1200px) {
    .speakers-carousel:not(.owl-loaded) .speaker-card {
        width: calc(33.333% - 20px);
    }
}

@media (max-width: 900px) {
    .speakers-carousel:not(.owl-loaded) .speaker-card {
        width: calc(50% - 20px);
    }
}

@media (max-width: 600px) {
    .speakers-carousel:not(.owl-loaded) .speaker-card {
        width: 100%;
    }
}

.speaker-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(23, 72, 115, 0.15);
}

.speaker-image {
    margin-bottom: 20px;
}

.speaker-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e8f2f7;
    transition: all 0.3s ease;
}

.speaker-card:hover .speaker-image img {
    border-color: #174873;
}

.speaker-info h5 {
    font-size: 16px;
    font-weight: 700;
    color: #174873;
    margin-bottom: 10px;
    min-height: 40px;
}

.speaker-info .speaker-title {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    min-height: 60px;
}

.speaker-info .button.small {
    padding: 8px 15px;
    font-size: 12px;
    background: #174873;
    color: white;
    border-radius: 5px;
    margin-top: 10px;
}

.speaker-info .button.small:hover {
    background: #1e5a8f;
}

/* Owl Carousel Custom Styles for Speakers */
.owl-carousel .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% + 90px);
    left: -45px;
    pointer-events: none;
}

.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
    position: absolute;
    background: #174873 !important;
    color: white !important;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px !important;
    pointer-events: all;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.owl-carousel .owl-nav button.owl-prev:hover,
.owl-carousel .owl-nav button.owl-next:hover {
    background: #1e5a8f !important;
    transform: scale(1.1);
}

.owl-carousel .owl-nav button.owl-prev {
    left: 0;
}

.owl-carousel .owl-nav button.owl-next {
    right: 0;
}

.owl-carousel .owl-nav button span {
    display: none;
}

.owl-carousel .owl-nav button i {
    line-height: 40px;
}

.owl-carousel .owl-dots {
    text-align: center;
    margin-top: 30px;
    padding-top: 10px;
}

.owl-carousel .owl-dots .owl-dot {
    display: inline-block;
    margin: 0 5px;
}

.owl-carousel .owl-dots .owl-dot span {
    display: block;
    width: 10px;
    height: 10px;
    background: #ddd;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.owl-carousel .owl-dots .owl-dot.active span,
.owl-carousel .owl-dots .owl-dot:hover span {
    background: #174873;
    width: 30px;
    border-radius: 5px;
}

/* Ensure proper owl item styling */
.owl-carousel .owl-stage-outer {
    overflow: hidden;
    position: relative;
}

.owl-carousel .owl-stage {
    position: relative;
}

.owl-carousel .owl-item {
    float: left;
    position: relative;
}

@media only screen and (max-width: 64em) {
    .speakers-carousel-wrapper {
        padding: 0 20px;
    }

    .speakers-carousel .owl-nav .owl-prev {
        left: -15px;
    }

    .speakers-carousel .owl-nav .owl-next {
        right: -15px;
    }
}

/* ========================================
   Module Sections
   ======================================== */
.module {
    padding: 20px 0;
}

.module.grey-bg {
    background: #f5f5f5;
}

/* ========================================
   Section Titles
   ======================================== */
.section-title-wrapper {
    width: 100%;
    margin-bottom: 40px;
}

.section-title {
    text-align: center;
}

.section-title h2 {
    font-size: 24px;
    font-weight: 700;
    color: #174873;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    padding-bottom: 0;
}

/* ========================================
   Organization Sections (Convened By, Organised By)
   ======================================== */
.partner-logo-box {
    background: white;
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.partner-logo-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(23, 72, 115, 0.15);
}

.partner-logo-box.small {
    min-height: 150px;
    padding: 30px 15px;
}

.partner-logo-box .partner-label {
    font-size: 22px;
    font-weight: 700;
    color: #174873;
    margin-bottom: 0;
}

.partner-logo-box .partner-label-sm {
    font-size: 16px;
    font-weight: 700;
    color: #174873;
    margin-bottom: 0;
}

.partner-logo-box img {
    max-width: 100%;
    max-height: 120px;
    width: auto;
    height: auto;
}

/* ========================================
   Partnership Grid
   ======================================== */
.partnership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* ========================================
   Sponsors Section
   ======================================== */
.sponsor-level-title {
    font-size: 20px;
    font-weight: 700;
    color: #174873;
    margin-bottom: 30px;
    margin-top: 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sponsor-logo-box {
    background: white;
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    width: 100%;
}

.sponsor-logo-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(23, 72, 115, 0.15);
}

.sponsor-logo-box .sponsor-label {
    font-size: 18px;
    font-weight: 700;
    color: #174873;
    margin-bottom: 0;
}

.sponsor-logo-box img {
    max-width: 100%;
    max-height: 100px;
    width: auto;
    height: auto;
}

.sponsor-cta {
    text-align: center;
    margin-top: 0;
    margin-bottom: 40px;
}

.sponsor-cta .button {
    background-color: #174873;
    color: white;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    margin-bottom: 0;
}

.sponsor-cta .button:hover {
    background-color: #1e5a8f;
}

.sponsor-cta .button i {
    margin-right: 8px;
}

/* ========================================
   Partner Journals Section
   ======================================== */
.journal-placeholder {
    background: white;
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.journal-placeholder:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.journal-placeholder p {
    font-size: 18px;
    font-weight: 700;
    color: #666;
    margin-bottom: 0;
}

.journal-placeholder img {
    max-width: 100%;
    max-height: 180px;
    width: auto;
    height: auto;
}

/* ========================================
   Navigation Menu Fixes
   ======================================== */
.header .top-bar {
    background: transparent;
    margin: 0;
    padding: 0;
}

.header .top-bar ul {
    background: transparent;
    margin: 0;
    display: flex;
    align-items: center;
}

.header .top-bar ul li a {
    padding: 12px 8px;
    white-space: nowrap;
    font-size: 12px;
    color: #174873;
    font-weight: 500;
}

.header .top-bar ul li a:hover {
    color: #1e5a8f;
}

.header .top-bar ul li a.button {
    background: #174873;
    color: white;
    padding: 8px 15px;
    margin-left: 10px;
}

.header .top-bar ul li a.button:hover {
    background: #1e5a8f;
}

@media only screen and (min-width: 64em) and (max-width: 75em) {
    .header .top-bar ul li a {
        font-size: 11px;
        padding: 12px 6px;
    }
}

@media only screen and (min-width: 75em) {
    .header .top-bar ul li a {
        font-size: 13px;
        padding: 12px 10px;
    }
}

/* ========================================
   Teachers Carousel Styles (Speakers)
   ======================================== */
/* Copy exact styles from original template */
.teacher {
    position: relative;
    padding-left: 10px;
    padding-right: 10px;
}

.teacher .teacher-thumb {
    position: relative;
    background-color: #174873;
    border-radius: 100%;
    border: 2px solid #e79800;
    width: 100%;
    padding-top: 100%; /* Creates a 1:1 aspect ratio (square) */
    overflow: hidden;
}

.teacher .teacher-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 100%;
    z-index: 2;
}

/* Removed hover effects to disable yellow button overlay */
.teacher:hover > .teacher-thumb img {
    opacity: 1; /* Keep images at full opacity */
}

.teacher:hover > .teacher-thumb .teacher-links {
    opacity: 0; /* Keep overlay hidden */
    display: none;
}

.teacher-links .menu li a {
    font-size: 1rem;
    display: block;
    width: 35px;
    height: 35px;
    background-color: #e79800;
    color: #FFF;
    line-height: 35px;
    padding: 0px;
    margin: 0px 5px;
    border-radius: 100%;
    text-align: center;
}

.teacher-links .menu > li > a i {
    line-height: 35px;
    margin-left: 0px;
    margin-right: 0px;
}

.teacher-links {
    text-align: center;
    position: absolute;
    bottom: 20px;
    z-index: 5;
    width: 100%;
    opacity: 0;
    display: none; /* Hide the yellow buttons overlay */
}

.small-button {
    display: table;
    margin: auto;
    margin-top: 10px;
    padding: 5px 15px;
    border: 1px solid #e79800;
    color: #FFF;
    background-color: #e79800;
    border-radius: 20px;
    text-transform: uppercase;
}

.small-button:hover,
.teacher-links .menu li a:hover {
    color: #e79800;
    background-color: #FFF;
    border-color: transparent;
}

.teacher-meta {
    text-align: center;
}

.teacher-meta h3 a {
    font-weight: normal;
}

.teacher-meta h3 {
    margin-top: 15px;
    font-weight: normal;
}

/* Owl Carousel Navigation - Hide all navigation buttons */
.teachers-wrapper .owl-nav {
    display: none !important;
}

/* Responsive adjustments */
@media only screen and (max-width: 40em) {
    .teacher {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* ========================================
   Proceedings Carousel Styles
   ======================================== */
.proceedings-section {
    padding: 60px 0;
}

.proceedings-wrapper {
    position: relative;
    display: block !important;
}

.proceedings-wrapper.owl-carousel {
    display: block !important;
}

.proceedings-wrapper .owl-stage-outer {
    display: block;
}

.proceedings-wrapper .owl-stage {
    display: flex;
}

.proceedings-wrapper .owl-item {
    display: block;
}

.proceeding-item {
    padding: 0 15px;
    display: block;
}

.proceeding-content {
    text-align: center;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.proceeding-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(23, 72, 115, 0.2);
}

.proceeding-content a {
    display: block;
    margin-bottom: 20px;
}

.proceeding-content img {
    max-width: 200px;
    height: auto;
    margin: 0 auto;
    display: block;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.proceeding-content a:hover img {
    transform: scale(1.05);
    box-shadow: 0 3px 15px rgba(0,0,0,0.2);
}

.proceeding-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: #174873;
    margin-bottom: 8px;
}

.proceeding-info p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Proceedings Navigation - hide it */
.proceedings-wrapper .owl-nav {
    display: none !important;
}

/* Proceedings Dots */
.proceedings-wrapper .owl-dots {
    text-align: center;
    margin-top: 30px;
}

.proceedings-wrapper .owl-dots .owl-dot {
    display: inline-block;
    margin: 0 5px;
}

.proceedings-wrapper .owl-dots .owl-dot span {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    transition: all 0.3s ease;
}

.proceedings-wrapper .owl-dots .owl-dot.active span,
.proceedings-wrapper .owl-dots .owl-dot:hover span {
    background: #174873;
}

/* Responsive */
@media only screen and (max-width: 40em) {
    .proceeding-content img {
        max-width: 150px;
    }

    .proceeding-info h4 {
        font-size: 16px;
    }

    .proceeding-info p {
        font-size: 14px;
    }
}

/* ========================================
   Responsive Styles
   ======================================== */
@media only screen and (max-width: 64em) {
    .hero-banner-home {
        height: 500px;
        margin: 0;
    }

    .hero-content .hero-title,
    .hero-content h1 {
        font-size: 48px;
    }

    .hero-content .hero-date,
    .hero-content h2 {
        font-size: 28px;
    }

    .hero-content .hero-subtitle,
    .hero-content h3 {
        font-size: 22px;
    }

    .hero-content .hero-location,
    .hero-content p {
        font-size: 24px;
    }

    .partnership-grid {
        gap: 15px;
    }
}

@media only screen and (max-width: 40em) {
    .hero-banner-home {
        height: 450px;
        margin: 0;
        min-height: 450px;
    }

    .hero-content {
        padding: 20px 15px;
    }

    .hero-content .hero-title,
    .hero-content h1 {
        font-size: 36px;
        margin-bottom: 15px;
    }

    .hero-content .hero-date,
    .hero-content h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .hero-content .hero-subtitle,
    .hero-content h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .hero-content .hero-location,
    .hero-content p {
        font-size: 20px;
    }

    .content-section h2 {
        font-size: 22px;
    }

    .section-title h2 {
        font-size: 20px;
    }

    .news-card {
        margin-bottom: 20px;
    }

    .news-card h4 {
        font-size: 16px;
    }

    .news-content {
        font-size: 13px;
    }

    .partner-logo-box,
    .sponsor-logo-box,
    .journal-placeholder {
        margin-bottom: 15px;
    }

    .module {
        padding: 20px 0;
    }

    .content-section {
        padding: 40px 0;
    }
}
