/**
 * CSS ที่ทำความสะอาดแล้ว - ลบส่วนที่ซ้ำกันออก
 */

/* ========== NAVBAR ========== */
.navbar-toggler {
    z-index: 9999;
}

.bg-custom2{
    background: linear-gradient(163deg, #8d61dd, #7faced);
}

/* ========== GENERAL COMPONENTS ========== */
.desc {
    backdrop-filter: blur(5px);
    border-radius: 10px;
}

.btn-custom {
    box-shadow: 1px 2px 5px 1px #61616185;
}

.btn {
    font-weight: bold;
}

.btn:hover {
    background: #31851a;
    color: #fff;
}

.badge {
    box-shadow: 0px 1px 5px #0000006e;
}

/* ========== TITLE & HERO SECTION ========== */
.title {
    font-size: 60px;
    color: #fff;
    text-shadow: 4px 1px 8px #0000005c;
}

.txt-cus {
    color: #f4ea92;
    text-shadow: 6px 4px 8px #0000008c;
}

.tag-date {
    font-size: 26px;
}

.logohome {
    width: 70%;
}

/* ========== SLIDER SECTION ========== */
.n2-section-smartslider {
    padding: 80px 0;
    min-height: 800px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fitvidsignore {
    position: relative;
}

.n2_clear::after {
    content: "";
    display: table;
    clear: both;
}

.slider-container {
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 20px;
    height: 600px;
    max-width: 70%;
    width: 90%;
    border-radius: 20px;
    overflow: hidden;
}

.photo-section {
    width: 50%;
    height: 100%;
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-stack {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1000px;
}

.photo-card {
    position: absolute;
    width: 65%;
    height: 85%;
    top: 5%;
    left: 20%;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d;
}

.photo-card img {
    width: 100%;
    height: 105%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-card:hover img {
    transform: scale(1.05);
}

.photo-card.center {
    z-index: 3;
    transform: translateX(0) scale(1);
    opacity: 1;
}

.photo-card.prev {
    z-index: 2;
    transform: translateX(-30%) scale(0.85) rotateY(15deg);
    opacity: 0.7;
}

.photo-card.next {
    z-index: 2;
    transform: translateX(30%) scale(0.85) rotateY(-15deg);
    opacity: 0.7;
}

.photo-card.hidden {
    z-index: 1;
    transform: translateX(0) scale(0.7);
    opacity: 0;
    pointer-events: none;
}

.content-section {
    position: relative;
    width: 50%;
    height: 100%;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
    line-height: 1.2;
}

.slide-description {
    font-size: 20px;
    color: #000000;
    line-height: 1.3;
    margin-bottom: 30px;
    background: #e6e6e67a;
    padding: 20px;
    border-radius: 10px;
}

.slider-nav {
    position: absolute;
    bottom: 40px;
    left: 40px;
    display: flex;
    gap: 15px;
}

.photo-indicator {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: #fff;
    color: white;
    padding: 2px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 5;
}

/* ========== PRICING SECTION ========== */
.join-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 20px;
}

.main-title {
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
}

.subtitle {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 40px;
    line-height: 1.5;
}

.pricing-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.recommended {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
    position: relative;
}

.pricing-card.recommended:hover {
    transform: scale(1.05) translateY(-5px);
}

.recommended-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: inline-block;
}

.plan-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.plan-price {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 25px;
    line-height: 1.4;
    color: #fff;
}

.plan-price.green {
    color: var(--primary-color);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.feature-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.feature-list li i {
    margin-right: 10px;
    width: 18px;
    font-size: 14px;
}

.feature-available {
    color: var(--primary-color);
}

.feature-available.white {
    color: white;
}

.feature-unavailable {
    color: #dee2e6;
}

.register-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    text-align: center;
    transition: all 0.3s ease;
}

.register-btn:hover {
    background: #00796b;
    color: white;
    transform: translateY(-2px);
}

.register-btn.white {
    background: white;
    color: var(--primary-color);
}

.register-btn.white:hover {
    background: #f8f9fa;
    color: var(--primary-color);
}

.student-note {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 15px;
    font-style: italic;
}

.container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* ========== SPEAKERS SECTION ========== */
.section-title {
    font-weight: 700;
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.speakers-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.speaker-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 4px 3px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.speaker-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.speaker-image {
    height: 280px;
    background: linear-gradient(180deg, #ffffff, #e7e7e7);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.speaker-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.speaker-avatar {
    width: 168px;
    height: 168px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.speaker-avatar i {
    font-size: 3rem;
    color: white;
}

.speaker-content {
    padding: 25px;
}

.speaker-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
    line-height: 1.3;
}

.speaker-title {
    color: #000;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.speaker-organization {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.speaker-organization i {
    margin-right: 8px;
    color: var(--accent-color);
}

.speaker-specialization {
    display: none;
    background: #868686;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.speaker-contact {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.contact-btn {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 0px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

/* ========== IMPORTANT DATES SECTION ========== */
.titleimp {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.section-titleimp {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-titleimp i {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
}

.date-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.date-item:last-child {
    border-bottom: none;
}

.date-item:hover {
    transform: translateX(8px);
    background: rgba(255, 255, 255, 0.05);
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: 12px;
}

.date-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 1rem;
}

.date-label i {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.date-value {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ========== RESEARCH AREAS SECTION ========== */
.research-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.research-card {
    background: rgb(246 246 246);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    padding: 30px 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.research-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.12);
}

.research-number {
    color: #009688;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
    background: #eee;
    width: 50px;
    border-radius: 60px;
}

.research-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 10px;
    line-height: 1.4;
    text-shadow: 7px 5px 4px #00000099;
}

.research-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ========== OBJECTIVES SECTION ========== */
.objectives-section {
    
    padding: 15px;
    
}

.objectives-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>');
    opacity: 0.3;
    will-change: transform;
    transform: translateZ(0);
}

.content-wrapper {
    position: relative;
    z-index: 2;
}

.logo-container {
    position: relative;
    padding: 0px;
    will-change: transform;
    transform: translateZ(0);
}

.logo-container::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    
}

.logo-container img {
    position: relative;
    z-index: 3;
    width: 100%;    
    filter: brightness(1.2);
}

.objectives-title {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
}

.objectives-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(338deg, #4CAF50, #009688, #009688);
    border-radius: 2px;
}

.objectives-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.objective-item {
    background: rgba(255, 255, 255, 0.95);
    margin-bottom: 25px;
    padding: 15px 60px 10px 20px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform, box-shadow;
    transform: translateZ(0);
}

.objective-item:hover {
    transform: translateY(-5px) translateZ(0);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.objective-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(338deg, #4CAF50, #009688, #009688);
}

.objective-number {
    position: absolute;
    top: 10px;
    right: 20px;
    background: linear-gradient(338deg, #4CAF50, #009688, #009688);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.objective-icon {
    color: #bcbcbc;
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

.objective-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #2c3e50;
    margin: 0;
    font-weight: 400;
}

.stats-container {
    margin-top: 50px;
    text-align: center;
}

.stat-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 30px 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
    will-change: transform;
    transform: translateZ(0);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    display: block;
}

.stat-label {
    color: #e8f4fd;
    font-size: 1rem;
    margin-top: 5px;
}

/* ========== ANIMATIONS ========== */
.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    will-change: transform;
    transform: translateZ(0);
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.52);
    border-radius: 50%;
    animation: float 6s infinite linear;
    will-change: transform, opacity;
    transform: translateZ(0);
}

.particle:nth-child(1) { width: 6px; height: 6px; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { width: 8px; height: 8px; left: 20%; animation-delay: 2s; }
.particle:nth-child(3) { width: 5px; height: 5px; left: 30%; animation-delay: 4s; }
.particle:nth-child(4) { width: 7px; height: 7px; left: 40%; animation-delay: 1s; }
.particle:nth-child(5) { width: 6px; height: 6px; left: 50%; animation-delay: 3s; }
.particle:nth-child(6) { width: 8px; height: 8px; left: 60%; animation-delay: 5s; }
.particle:nth-child(7) { width: 5px; height: 5px; left: 70%; animation-delay: 2.5s; }
.particle:nth-child(8) { width: 7px; height: 7px; left: 80%; animation-delay: 4.5s; }
.particle:nth-child(9) { width: 6px; height: 6px; left: 90%; animation-delay: 1.5s; }

@keyframes float {
    0% { 
        transform: translateY(100vh) rotate(0deg) translateZ(0); 
        opacity: 0; 
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { 
        transform: translateY(-100px) rotate(360deg) translateZ(0); 
        opacity: 0; 
    }
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1366px) {


}

@media (max-width: 1350px) {
    .slider-container {
        max-width: 90%;
    }

    .title {
        font-size: 45px;
    }

 
}

@media (max-width: 768px) {
    .title {
        font-size: 25px!important;
    }

    .slider_item-detail h1
    {
        font-size: 25px!important;
    }

}

@media (max-width: 991px) {

    .tag-date {
    font-size: 16px!important;
}

    .n2-section-smartslider {
        padding: 40px 0;
        min-height: auto;
    }

    .logohome {
        width: 95%;
    }

    .slider-container {
        flex-direction: column;
        height: auto;
        width: 95%;
        gap: 0;
    }

    .photo-section {
        width: 100%;
        height: 400px;
        overflow: hidden;
    }

    .photo-card {
        width: 80%;
        height: 80%;
        top: 10%;
        left: 10%;
    }
    
    .photo-card.prev {
        transform: translateX(-40%) scale(0.8) rotateY(10deg);
    }
    
    .photo-card.next {
        transform: translateX(40%) scale(0.8) rotateY(-10deg);
    }

    .content-section {
        width: 100%;
        height: auto;
        padding: 40px 25px;
        text-align: center;
    }

    .slide-title {
        font-size: 2rem;
    }

    .slide-description {
        font-size: 16px;
    }
    
    .slider-nav {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        justify-content: center;
        margin-top: 20px;
        padding-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 1.6rem;
    }
    
    .pricing-card.recommended {
        transform: none;
    }
    
    .pricing-card.recommended:hover {
        transform: translateY(-5px);
    }

    .titleimp {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .section-titleimp {
        font-size: 1.25rem;
    }

    .date-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .date-value {
        align-self: auto;
    }

    .objectives-title {
        font-size: 2rem;
    }
    
    .objective-item {
        padding:10px 65px 10px 15px;
    }
    
    .objectives-section {
        padding: 10px;
    }
}

/* ========== PERFORMANCE OPTIMIZATIONS ========== */
* {
    box-sizing: border-box;
}

img {
    image-rendering: auto;
    image-rendering: crisp-edges;
    image-rendering: -webkit-optimize-contrast;
}

@media (min-width: 992px) and (max-width: 1198px) {
  .nav-item {
    font-size: 13px!important;
  }
}

@media (min-width: 990px) and (max-width: 1690px) {

       .slide-description{
        font-size: 16px!important;
    }
}