/* ========================================
   GEM ACADEMY - Home Page Styles
   Modern Corporate Theme
   ======================================== */

/* ========== Banner Section ========== */
.banner-section {
    position: relative;
    width: 100%;
    padding: 0;
    overflow: hidden;
    background: #000;
}

.banner-slider {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: grab;
}

.banner-slider:active {
    cursor: grabbing;
}

.banner-slide {
    min-width: 100%;
    position: relative;
}

.banner-slide img {
    width: 100%;
    /* height: 100%; */
    height: 700px;
    display: block;
}

.banner-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    /* background: linear-gradient(135deg, rgba(109, 40, 217, 0.9) 0%, rgba(124, 58, 237, 0.75) 50%, rgba(6, 182, 212, 0.5) 100%); */
    z-index: 1;
}

/* Banner Navigation */
.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 30px;
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-nav:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.banner-prev {
    left: 20px;
}

.banner-next {
    right: 20px;
}

/* Banner Dots */
.banner-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all var(--transition);
}

.banner-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.banner-dot.active {
    background: var(--white);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* ========== Why GEM Section ========== */
.why-gem-section {
    padding: 80px 0;
    background: var(--gray-50);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.feature-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition);
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-lg);
    transition: transform var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon i {
    font-size: 28px;
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.1rem;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

/* ========== Careers Section (Profession Carousel) ========== */
.careers-section {
    padding: 80px 0;
    background: var(--gray-50);
}

.prof-carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 10px 50px 35px 50px;
}

.prof-carousel {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: grab;
}

.prof-carousel:active {
    cursor: grabbing;
}

.prof-card {
    flex: 0 0 calc(33.333% - 20px);
    margin: 80px 10px 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: visible;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.prof-card:hover {
    box-shadow: 0 8px 30px rgba(44, 60, 148, 0.15);
    border-color: #13328b;
}

.prof-card-active {
    border-color: #13328b !important;
    box-shadow: 0 8px 35px rgba(44, 60, 148, 0.2) !important;
    transform: translateY(-8px) scale(1.05);
}

.prof-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.prof-card-link:hover {
    color: inherit;
}

/* Thumbnail - half outside card */
.prof-thumbnail {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    margin: -80px auto 15px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.prof-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.prof-card:hover .prof-thumbnail img {
    transform: scale(1.05);
}

/* Content area */
.prof-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.prof-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 10px;
}

.prof-date i {
    color: #13328b;
    font-size: 14px;
}

.prof-title {
    font-size: 1rem;
    font-weight: 700;
    color: #13328b;
    margin-bottom: 12px;
    line-height: 1.3;
    text-transform: uppercase;
}

.prof-desc {
    flex: 1;
}

.prof-desc p {
    font-size: 13px;
    color: var(--gray-700);
    margin-bottom: 8px;
    line-height: 1.5;
}

.prof-label {
    font-weight: 700;
    color: #13328b;
    font-size: 12px;
    text-transform: uppercase;
}

.prof-desc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.prof-desc ul li {
    position: relative;
    padding-left: 18px;
    font-size: 13px;
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 6px;
}

.prof-desc ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #13328b;
}

.prof-desc ul li strong {
    color: #fe4900;
    font-weight: 700;
}

/* Footer */
.prof-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom-right-radius: 30px;
    border-bottom-left-radius: 30px;
    padding: 15px 20px;
    border-top: 1px solid var(--gray-100);
    background: var(--gray-50);
}

.prof-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-600);
}

.prof-location i {
    color: #fe4900;
    font-size: 14px;
}

.prof-btn-join {
    display: inline-block;
    padding: 8px 22px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    border-radius: 25px;
    text-decoration: none;
    transition: all var(--transition);
    letter-spacing: 0.5px;
}

.prof-btn-join:hover {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.4);
}

/* Navigation arrows */
.prof-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--gray-600);
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.prof-carousel-nav:hover {
    background: #13328b;
    border-color: #13328b;
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.prof-carousel-prev {
    left: 0;
}

.prof-carousel-next {
    right: 0;
}

/* Dots */
.prof-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.prof-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-300);
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    padding: 0;
}

.prof-dot:hover {
    background: var(--gray-400);
}

.prof-dot.active {
    background: #13328b;
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(44, 60, 148, 0.4);
}

/* Responsive */
@media (max-width: 1199px) {
    .prof-card {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 767px) {
    .prof-carousel-wrapper {
        padding: 0 40px;
    }

    .prof-card {
        flex: 0 0 calc(100% - 20px);
    }

    .prof-thumbnail {
        height: 180px;
    }

    .prof-carousel-nav {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* ========== Horizontal Timeline Section ========== */
.hz-tl-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
}

.hz-tl-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.hz-tl-header {
    text-align: center;
    margin-bottom: 50px;
}

.hz-tl-header h2 {
    font-size: 2rem;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.hz-tl-header p {
    font-size: 1.05rem;
    color: var(--gray-600);
}

.hz-tl-wrapper-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.hz-tl-nav-btn {
    width: 48px;
    height: 48px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
    color: var(--gray-600);
    font-size: 16px;
    z-index: 10;
}

.hz-tl-nav-btn:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.hz-tl-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.hz-tl-wrapper {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
}

.hz-tl-wrapper::-webkit-scrollbar {
    display: none;
}

.hz-tl-wrapper.hz-tl-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.hz-tl-item {
    min-width: 300px;
    max-width: 300px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
    flex-shrink: 0;
    position: relative;
}

.hz-tl-item:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.hz-tl-step-number {
    position: absolute;
    top: -15px;
    left: 25px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    box-shadow: var(--shadow);
}

.hz-tl-item-image {
    margin-top: 15px;
    margin-bottom: 15px;
    border-radius: var(--radius);
    overflow: hidden;
    height: 160px;
}

.hz-tl-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.hz-tl-item:hover .hz-tl-item-image img {
    transform: scale(1.05);
}

.hz-tl-item > h3 {
    font-size: 1rem;
    color: var(--gray-900);
    margin-bottom: 10px;
    line-height: 1.4;
}

.hz-tl-item-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all var(--transition-slow);
}

.hz-tl-item.expanded .hz-tl-item-content {
    max-height: 1000px;
    opacity: 1;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--gray-200);
}

.hz-tl-item-content h4 {
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 8px;
    margin-top: 15px;
}

.hz-tl-item-content h4:first-child {
    margin-top: 0;
}

.hz-tl-item-content p {
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 10px;
}

.hz-tl-value-box {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 15px;
    margin-top: 15px;
}

.hz-tl-value-box h4 {
    color: var(--success);
    margin-top: 0;
    margin-bottom: 10px;
}

.hz-tl-value-box ul {
    margin: 0;
    padding: 0;
}

.hz-tl-value-box ul li {
    font-size: 0.85rem;
    color: var(--gray-700);
    margin-bottom: 6px;
    line-height: 1.5;
}

.hz-tl-toggle-btn {
    width: 100%;
    margin-top: 15px;
    padding: 10px;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius);
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hz-tl-toggle-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.hz-tl-toggle-btn i {
    transition: transform var(--transition);
}

.hz-tl-item.expanded .hz-tl-toggle-btn i {
    transform: rotate(180deg);
}

.btn-text-collapse {
    display: none;
}

.hz-tl-item.expanded .btn-text-expand {
    display: none;
}

.hz-tl-item.expanded .btn-text-collapse {
    display: inline;
}

/* Timeline Dots */
.hz-tl-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.hz-tl-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-300);
    cursor: pointer;
    transition: all var(--transition);
}

.hz-tl-dot:hover {
    background: var(--gray-400);
}

.hz-tl-dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

/* ========== Stories Section ========== */
.stories-section {
    padding: 80px 0;
    background: var(--white);
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.story-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border: 1px solid var(--gray-100);
    display: flex;
    flex-direction: column;
}

.story-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.story-image {
    height: 200px;
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.story-card:hover .story-image img {
    transform: scale(1.1);
}

.story-content {
    padding: 20px;
    flex: 1;
    /* display: flex; */
    flex-direction: column;
}

.story-content h4 {
    font-size: 1rem;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.story-course {
    font-size: 13px;
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 10px !important;
}

.story-text {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.7;
    font-style: italic;
    margin: 0 !important;
    margin-top: auto !important;
    padding: 12px 14px;
    background: linear-gradient(135deg, #f8f9ff, #f0f4ff);
    border-left: 3px solid var(--primary, #4632da);
    border-radius: 0 8px 8px 0;
    position: relative;
}

/* ========== Partners Section ========== */
.partners-section {
    padding: 60px 0;
    background: var(--gray-50);
    overflow: hidden;
}

/* Marquee Container */
.partners-marquee {
    overflow: hidden;
    position: relative;
    width: 100%;
    mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.partners-track {
    display: flex;
    gap: 30px;
    animation: marquee-scroll 30s linear infinite;
    width: max-content;
}

.partners-marquee:hover .partners-track {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.partner-logo {
    background: var(--white);
    padding: 20px 30px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
    min-height: 80px;
    min-width: 180px;
    flex-shrink: 0;
}

.partner-logo:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.partner-logo h4 {
    font-size: 14px;
    color: var(--gray-700);
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.partner-logo img {
    max-height: 50px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    transition: all var(--transition);
}

.partner-logo:hover img {
    transform: scale(1.05);
}

/* ========== CTA Section ========== */
.cta-section {
    padding: 80px 0;
    background: url(../images/banner-main.png) center center / cover no-repeat;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #000000ad;
    z-index: 0;
}

.cta-section .container {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.cta-section h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.cta-section > .container > p {
    text-align: center;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.cta-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.cta-form .form-group {
    margin-bottom: 20px;
}

.cta-form .form-group label {
    color: var(--gray-700);
    font-weight: 500;
    margin-bottom: 8px;
}

.cta-form .form-group input,
.cta-form .form-group textarea {
    border: 1px solid var(--gray-300);
    transition: all var(--transition-fast);
}

.cta-form .form-group input:focus,
.cta-form .form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-primary);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
