/* ======= CORE VARIABLES ======= */
:root {
    --primary-color: #ED6F26;
    --secondary-color: #f6ca00;
    --text-dark: #000000;
    --text-light: #fff;
    --background-light: #f9f9f9;
    --background-white: #ffffff;
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
    --header-height: 100px;
    --top-header-height: 40px;
}

/* ======= BASIC STYLES ======= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
    width: 100%;
    min-width: 100%;
    overflow-x: hidden;
}

body {
    color: var(--text-dark);
    line-height: 1.6;
    padding-top: calc(var(--header-height) + var(--top-header-height));
    background-color: var(--background-white);
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* Modern browsers will respect width and height attributes and maintain aspect ratio */
img[width][height] {
    aspect-ratio: auto;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s;
}

a:hover {
    color: #d45f1e;
}

/* ======= TOP HEADER ======= */
#top-header {
    background-color: #f37021;
    padding: 8px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    height: var(--top-header-height);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#top-header .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    visibility: visible !important;
    opacity: 1 !important;
}

.top-header-socials a {
    color: var(--text-light);
    margin-left: 15px;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex !important;
    align-items: center !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.top-header-socials a i {
    transition: transform 0.3s ease;
}

.top-header-socials a:hover {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* Simple hover effect for Contact Us link */
.top-header-socials a[aria-label="Contact Us"]:hover {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.top-header-socials .separator {
    margin-left: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.top-header-socials {
    display: flex !important;
    align-items: center !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ======= HEADER ======= */
header {
    background-color: var(--background-white);
    padding: 0;
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: var(--top-header-height);
    left: 0;
    z-index: 999;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo {
    display: block;
    margin-right: 40px;
    position: relative;
    z-index: 5;
    overflow: visible;
}

.logo img {
    max-height: 76px;
    position: relative;
    transform-origin: center;
    transform: scale(1);
    transition: transform 0.4s ease-in-out;
}

/* Remove the border/frame effect */
.logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.logo:hover::before {
    opacity: 0;
    border: none;
    box-shadow: none;
    animation: none;
}

.logo:hover img {
    transform: scale(1.08);
}

.logo::after {
    display: none;
}

/* Login butonunun konumlanması */
.header-content .btn {
    margin-left: auto;
    margin-right: 0;
    padding: 10px 30px;
}

/* ======= NAVIGATION ======= */
.desktop-nav {
    display: block;
    flex: 1;
    text-align: center;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.desktop-nav ul li {
    margin: 0 25px;
    position: relative;
}

.desktop-nav ul li a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
    line-height: 32px;
    display: block;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.desktop-nav ul li.active > a,
.desktop-nav ul li a:hover {
    color: var(--primary-color);
}

.desktop-nav ul li.active > a {
    position: relative;
}

.desktop-nav ul li.active > a:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background-color: var(--primary-color);
}

/* submenu active item styles */
.desktop-nav ul li .submenu li.active > a,
.desktop-nav ul li .submenu li.active {
    color: var(--primary-color);
    font-weight: 600;
    background-color: rgba(237, 111, 38, 0.08);
    position: relative;
}

/* active indicator dot for submenu */
.desktop-nav ul li .submenu li.active > a:before {
    content: none;
    display: none;
}

/* completely override and remove the underline for submenu items */
.desktop-nav ul li .submenu li.active > a:after,
.desktop-nav ul .submenu li a:after,
.desktop-nav ul li.has-submenu .submenu li a:after,
.desktop-nav .submenu li.active > a:after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background-color: transparent !important;
    position: static !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.desktop-nav ul li.has-submenu > a:after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 8px;
    font-size: 0.8em;
    display: inline-block;
    vertical-align: middle;
}

.desktop-nav ul li .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background-color: var(--background-white);
    box-shadow: var(--shadow);
    border-radius: 5px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.desktop-nav ul li:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Son iki menü öğesinin alt menüsünü sağa doğru aç - desktop.nav > ul'nin direkt alt menüsü için */
.desktop-nav > ul > li:nth-last-child(-n+3) > .submenu {
    left: auto;
    right: 0;
}

/* Submenu içindeki submenu'lerin her zaman sağa açılması */
.desktop-nav ul li .submenu li.has-submenu .submenu.third-level {
    left: 100%;
    top: 0;
    right: auto;
}

.desktop-nav ul li .submenu li {
    margin: 0;
    width: 100%;
    padding: 0;
    display: block !important;
    float: none;
}

.desktop-nav ul li .submenu li a {
    padding: 12px 20px;
    color: var(--text-dark);
    font-size: 18px;
    font-weight: normal;
    line-height: 26px;
    text-align: left;
}

.desktop-nav ul li .submenu li a:hover {
    color: #f27935;
    background-color: rgba(0,0,0,0.03);
}

/* Third level submenu */
.desktop-nav ul li .submenu li.has-submenu {
    position: relative;
}

.desktop-nav ul li .submenu li.has-submenu > a:after {
    content: '\f054'; /* Font Awesome chevron right icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.7em;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    color: #f27935;
}

.desktop-nav ul li .submenu li.has-submenu:hover > a:after {
    transform: translateY(-50%) rotate(90deg);
}

.desktop-nav ul li .submenu li .submenu.third-level {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 240px;
    background-color: var(--background-white);
    box-shadow: var(--shadow);
    border-radius: 5px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.desktop-nav ul li .submenu li:hover .submenu.third-level {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Mobile navigation */
.mobile-nav {
    display: none;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 5px;
    align-items: center;
    justify-content: center;
    outline: none;
}

.mobile-menu-toggle:focus {
    outline: none;
}

.mobile-menu-toggle i {
    font-size: 24px;
    color: var(--primary-color);
}

/* Overlay for mobile menu */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 997;
}

/* Login buttons */
.desktop-login, .desktop-user-menu {
    margin-left: 40px;
}

.desktop-user-menu {
    position: relative;
    margin-left: 40px;
}

.desktop-user-submenu {
    position: absolute;
    top: calc(100% + 10px); /* Add more space between button and submenu */
    right: 0;
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    min-width: 240px; /* Slightly wider for better usability */
    z-index: 1000;
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    display: block;
    transform: translateY(-5px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    pointer-events: none; /* Initially don't capture mouse events */
}

/* Add a triangle pointer to the submenu */
.desktop-user-submenu::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background-color: white;
    transform: rotate(45deg);
    box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.04);
}

/* Improved hover and open state */
.desktop-user-menu:hover .desktop-user-submenu,
.desktop-user-menu.menu-open .desktop-user-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto; /* Enable mouse events when visible */
}

/* Make each submenu item stand out more */
.desktop-user-submenu li {
    display: block;
    margin: 5px 8px;
    border-radius: 6px;
    overflow: hidden;
}

.desktop-user-submenu li a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #000000;
    text-decoration: none;
    transition: all 0.2s;
    border-radius: 4px;
    font-weight: 500;
    font-size: 15px;
}

.desktop-user-submenu li a:hover {
    background-color: #f8f0ec; /* Softer color for hover */
    color: #d45f1e;
    transform: translateX(3px); /* Slight shift on hover */
}

.desktop-user-submenu li a i {
    margin-right: 12px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d45f1e;
    font-size: 16px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Add JavaScript-enabled class for enhanced behavior */
.desktop-user-menu.menu-open .desktop-user-submenu {
    display: block;
}

/* ======= BUTTONS ======= */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.btn:hover {
    background-color: #d45f1e; /* Darker shade for better contrast */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.secondary-btn {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.secondary-btn:hover {
    background-color: #e0b700;
    color: var(--text-dark);
}

/* ======= SECTIONS ======= */
section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

section:nth-child(even) {
    background-color: var(--background-light);
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
}

.section-title h1,
.section-title h2 {
    color: #2a5298;
    font-size: 2.5rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h1:after,
.section-title h2:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 4px;
    width: 80px;
    background-color: #f47920;
    border-radius: 2px;
}

/* Add new rule for double-line decoration */
.section-title h1:before,
.section-title h2:before {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background-color: #2a5298;
    border-radius: 2px;
    z-index: 1;
}

.section-title p {
    color: #777;
    font-size: 1.2rem;
    margin-top: 5px;
}

/* ======= HERO SLIDER ======= */
#hero-slider {
    position: relative;
    width: 100%;
    height: 540px; /* Fixed height matching image height */
    max-height: 60vh; /* Prevent being too tall on smaller screens */
    overflow: hidden;
    margin-top: -20px;
    display: none; /* Hide initially, will be shown based on screen size */
    z-index: 1;
}

@media (min-width: 769px) {
    #hero-slider {
        display: block !important; /* Show on desktop */
    }
}

/* Responsive adjustments for slider height */
@media (max-width: 1400px) {
    #hero-slider {
        height: 480px;
        max-height: 50vh;
    }
}

@media (max-width: 1200px) {
    #hero-slider {
        height: 420px;
        max-height: 45vh;
    }
}

@media (max-width: 992px) {
    #hero-slider {
        height: 360px;
        max-height: 40vh;
    }
}

#hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: 100% 100%; /* Stretch image to fill container exactly */
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    will-change: opacity; /* Optimize performance */
    z-index: 1;
}

#hero-slider .slide.active {
    opacity: 1;
    z-index: 2;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    z-index: 15;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.prev-arrow {
    left: 20px;
}

.next-arrow {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 15;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.slider-dot.active {
    background-color: var(--primary-color);
}

/* Slide link styles */
.slide-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    text-decoration: none;
    z-index: 1; /* Lower z-index by default */
    pointer-events: none; /* Disable clicks by default */
}

/* Only active slide links should be clickable */
.slide-link:has(.slide.active) {
    z-index: 3;
    pointer-events: auto;
}

/* Fallback for browsers that don't support :has() */
.slide-link.active-link {
    z-index: 3;
    pointer-events: auto;
}

.slide-link:hover {
    text-decoration: none;
}

/* Ensure slides within links are positioned correctly */
.slide-link .slide {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ======= SKILLS GRID ======= */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-card {
    background-color: var(--background-white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    text-align: center;
}

.skill-card:hover {
    transform: translateY(-10px);
}

.skill-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 700;
    color: #000000; /* Darker for better contrast */
}

.skill-icon {
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

/* ======= PROGRAMS GRID ======= */

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

.program-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.program-card {
    position: relative;
    overflow: hidden;
    z-index: 1;
    min-height: 304px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.program-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.program-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.8;
    z-index: -1;
    border-radius: 10px;
    transition: opacity 0.3s;
}

.program-card-1::before { background-image: url('../images/1.jpg'); }
.program-card-2::before { background-image: url('../images/2.jpg'); }
.program-card-3::before { background-image: url('../images/3.jpg'); }
.program-card-4::before { background-image: url('../images/4.jpg'); }
.program-card-5::before { background-image: url('../images/5.jpg'); }
.program-card-6::before { background-image: url('../images/6.jpg'); }

.program-content {
    position: relative;
    z-index: 2;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 10%, rgba(0, 0, 0, 0) 90%);
    padding: 25px;
    width: 100%;
}

.program-content h3 {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 700;
}

.program-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    font-size: 18px;
    font-weight: 500;
}

/* ======= FEATURES ======= */
.lms-container, .community-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.lms-content, .community-content {
    flex: 1;
    margin-top: 10px;
}

.lms-image, .community-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.lms-image img, .community-image img {
    width: 75%;
    height: auto;
    display: block;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.feature-icon {
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 24px;
}

/* Add style for feature item text */
.feature-item p {
    font-weight: 400;
    margin-bottom: 0;
    font-size: 18px;
}

/* ======= ADVANTAGES ======= */
.advantages-grid {
    /* display: flex; */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* flex-wrap: wrap; */
    /* justify-content: center; */
    gap: 30px;
}

.advantage-card {
    background-color: var(--background-white);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    /* flex: 1 1 300px; */ /* Bu satırı kaldır */
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Card Gradient Backgrounds */
.advantages-grid .advantage-card:nth-child(1) { background: linear-gradient(135deg, #e1bee7, #ffffff); }
.advantages-grid .advantage-card:nth-child(2) { background: linear-gradient(135deg, #fff9c4, #ffffff); }
.advantages-grid .advantage-card:nth-child(3) { background: linear-gradient(135deg, #ce93d8, #f3e5f5); }
.advantages-grid .advantage-card:nth-child(4) { background: linear-gradient(135deg, #b3e5fc, #ffffff); }
.advantages-grid .advantage-card:nth-child(5) { background: linear-gradient(135deg, #ffecb3, #fff3e0); }
.advantages-grid .advantage-card:nth-child(6) { background: linear-gradient(135deg, #ffecb3, #fff3e0); }

.advantage-icon {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* ======= JOURNEY TIMELINE ======= */
.journey-timeline-container {
    position: relative;
}

.journey-timeline {
    position: relative;
    display: flex;
    justify-content: space-around;
    margin: 0 auto;
    max-width: 900px;
}

.timeline-link {
    text-decoration: none;
    color: inherit;
    width: 23%;
    display: block;
}

/* Timeline Connector Line - Horizontal line connecting the stages */
.journey-timeline::before {
    content: "";
    position: absolute;
    top: 25px;
    left: 10%;
    right: 10%;
    height: 4px;
    background-color: #e0e0e0;
    z-index: 1;
}

.timeline-stage {
    position: relative;
    z-index: 2;
    width: 23%;
    text-align: center;
    padding-top: 70px;
}

.timeline-icon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 3px solid white;
    box-shadow: 0 0 0 4px var(--primary-color);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.timeline-icon-link {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    z-index: 3;
    display: block;
    text-decoration: none;
    color: inherit;
}

.timeline-stage:hover .timeline-icon {
    transform: translateX(-50%) scale(1.1);
    background-color: var(--secondary-color);
    color: var(--text-dark);
    box-shadow: 0 0 0 4px var(--secondary-color);
}

.timeline-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #000000; /* Darker for better contrast */
}

.timeline-content p {
    font-size: 16px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 0;
    font-weight: 400;
}

/* Add hover effect for timeline content paragraphs */
.timeline-content a:hover p {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* Timeline content links */
.timeline-content a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .journey-timeline {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 50px;
    }
    
    .timeline-link {
        width: 100%;
    }
    
    .journey-timeline::before {
        display: none;
    }
    
    .timeline-stage {
        width: 100%;
        padding-top: 0;
        padding-left: 40px;
        margin-bottom: 30px;
        text-align: left;
    }
    
    .timeline-icon {
        left: 0;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .timeline-icon-link {
        left: 0;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .timeline-stage:hover .timeline-icon {
        transform: translateY(-50%) scale(1.1);
    }
}

/* ======= TESTIMONIALS ======= */
.testimonials-slider-container {
    position: relative;
    overflow: hidden;
    margin-top: 40px;
}

.testimonials-slider-track {
    display: flex;
    gap: 20px;
    animation: continuous-scroll 30s linear infinite;
    width: max-content;
}

.testimonials-slider-container:hover .testimonials-slider-track {
    animation-play-state: paused;
}

@keyframes continuous-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% / 2));
    }
}

.testimonial-card {
    background-color: var(--background-white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 25px;
    margin: 10px;
    min-width: 300px;
    max-width: 350px;
    flex: 0 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.testimonial-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-author-info {
    flex-grow: 1;
}

.testimonial-author-info h3 {
    font-size: 18px;
    margin-bottom: 3px;
    color: var(--primary-color);
}

.testimonial-role {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.testimonial-rating {
    color: var(--secondary-color);
    font-size: 16px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 0;
    flex-grow: 1;
    font-weight: 400;
}

.testimonial-read-more {
    color: #d45f1e; /* Darker orange for better contrast */
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
    position: relative;
    transition: color 0.3s;
    text-decoration: underline;
}

.testimonial-read-more:hover {
    color: #b24c14; /* Even darker on hover for better contrast */
    text-decoration: none;
}

/* Read More butonunu ortala */
.testimonials-read-more-btn {
    text-align: center;
    margin-top: 40px; /* Yukarıdaki slider ile arasında boşluk bırakmak için */
}

/* ======= SOCIAL LINKS ======= */
.social-container {
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: transform 0.3s;
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-5px);
    color: var(--text-light);
}

/* ======= FOOTER ======= */
footer {
    color: #ffffff;
    padding: 0;
}

.footer-upper {
    background-color: #00aeef; 
    padding: 40px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-upper-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: center;
}

.footer-left {
    grid-column: 1 / 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-left img {
    height: 60px;
    width: auto;
    margin-bottom: 20px;
}

.footer-left p, .footer-right p {
    margin-bottom: 5px;
    line-height: 1.6;
    color: #ffffff;
    font-weight: 500;
}

.footer-middle {
    grid-column: 2 / 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-middle img {
    height: auto;
    max-width: 160px;
    margin-bottom: 10px;
}

.footer-right {
    grid-column: 3 / 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-right img {
    height: 75px;
    width: auto;
    border: 2px solid white;
    padding: 5px;
    margin-bottom: 15px;
    background-color: rgba(255,255,255,0.1);
}

.footer-right p {
    color: white;
    font-size: 14px;
    max-width: 300px;
    line-height: 1.4;
}

.footer-lower {
    padding: 20px 0;
    background-color: #0077aa;
    text-align: center;
}

.footer-lower-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-copyright-text {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
}

.footer-policy-links {
    margin-bottom: 15px;
}

.footer-policy-links a {
    color: #ffffff;
    margin: 0 5px;
    font-size: 14px;
    text-decoration: underline;
    font-weight: 500;
}

.footer-policy-links span {
    margin: 0 5px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.footer-socials a {
    color: #ffffff;
    font-size: 18px;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
}

.footer-socials a:hover {
    opacity: 0.8;
}

/* ======= GO TOP BUTTON ======= */
#go-top-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #000000;
    color: white;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    border-radius: 4px;
    z-index: 999;
    text-decoration: none;
    transition: background-color 0.3s, opacity 0.3s;
}

#go-top-btn:hover {
    background-color: #555;
}

/* ======= MOBILE MENU ======= */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0;
    transition: color 0.3s;
}

.mobile-menu-toggle:hover {
    color: #d45f1e;
}

@media (max-width: 768px) {
    #hero-slider {
        display: none !important; /* Mobil cihazlarda desktop slider'ı gizle */
    }
    
    #hero-slider-mobile {
        display: block !important; /* Mobil cihazlarda mobile slider'ı göster */
    }
    
    .mobile-menu-toggle {
        display: block;
        margin-left: 15px;
    }
    
    nav ul {
        flex-direction: column;
        padding: 0;
    }
    
    nav ul li {
        margin: 0;
        padding: 0;
    }
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 997;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Ensure body doesn't scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Mobile Menu Navigation */
@media (max-width: 992px) {
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    body {
        overflow-x: hidden;
    }

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

    .skill-card, .advantage-card {
        padding: 20px;
    }

    .lms-container, .community-container {
        flex-direction: column;
    }

    .lms-image, .community-image {
        margin-top: 30px;
        max-width: 100%;
    }

    .journey-timeline-container img {
        max-width: 100%;
    }

    .testimonial-card {
        width: 330px;
    }

    .footer-upper-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .community-contact-wrapper {
        flex-direction: column;
    }
    
    .community-contact-wrapper > section {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .desktop-login, 
    .desktop-user-menu {
        display: none !important;
    }

    nav {
        position: fixed;
        top: calc(var(--header-height) + var(--top-header-height));
        left: -100%;
        width: 80%;
        height: calc(100vh - var(--header-height) - var(--top-header-height));
        background-color: white;
        box-shadow: var(--shadow);
        transition: left 0.3s ease;
        padding: 20px;
        z-index: 998;
        overflow-y: auto;
    }

    nav.open {
        left: 0;
    }

    body.menu-open {
        overflow: hidden;
    }

    .mobile-only {
        display: block !important;
    }

    .lms-container, .community-container {
        flex-direction: column;
    }
    
    .lms-image, .community-image {
        margin-top: 30px;
        max-width: 100%;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    nav ul li a {
        padding: 15px 0;
    }
    
    nav ul li .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
        width: 100%;
    }
    
    nav ul li:hover .submenu {
        max-height: none;
    }
    
    nav ul li .submenu.show {
        max-height: 800px;
        padding: 10px 0;
    }
}

/* ======= RESPONSIVE STYLES ======= */
@media (max-width: 1400px) {
    .container {
        max-width: 1140px;
    }
}

@media (max-width: 576px) {
    :root {
        --header-height: 60px;
        --top-header-height: 30px;
    }
    
    /* Additional small mobile styles */
    .logo img {
        height: 40px;
    }
    
    .mobile-menu-toggle {
        width: 25px;
        height: 18px;
    }
    
    section {
        padding: 40px 0;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
}

/* ======= PRINT STYLES ======= */
@media print {
    body {
        padding-top: 0;
        color: #000;
        background: #fff;
    }
    
    #top-header, header, .mobile-menu-toggle, 
    #hero-slider, .slider-arrow, .slider-dots, 
    .social-links, #go-top-btn, .overlay {
        display: none !important;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
}

/* ======= MOBILE SLIDER ======= */
#hero-slider-mobile {
    display: none; /* Desktop'ta varsayılan olarak gizle */
    position: relative;
    overflow: hidden;
    width: 100vw;
    max-width: 100%;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    height: 95vw; /* Mobile image aspect ratio: 945/1035 = 0.913, so height = width * 0.913 ≈ 95vw */
    max-height: 95vh;
    min-height: 400px;
    z-index: 1;
}

#hero-slider-mobile .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

#hero-slider-mobile .slide.active {
    opacity: 1;
    z-index: 2;
}

#hero-slider-mobile .slide img,
#hero-slider-mobile .slide picture,
#hero-slider-mobile .slide picture img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

#hero-slider-mobile .slide picture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#hero-slider-mobile .slide picture img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    #hero-slider {
        display: none !important; /* Mobil cihazlarda desktop slider'ı gizle */
    }
    
    #hero-slider-mobile {
        display: block !important; /* Mobil cihazlarda mobile slider'ı göster */
    }
}

/* ======= ADVANTAGES GRID ======= */

/* Mobile only öğeler için stil */
.mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block !important;
    }
}

/* Login butonu stilleri */
.btn.desktop-login {
    padding: 8px 15px;
    background-color: #d45f1e;
    color: white;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 4px;
    font-size: 14px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 40px;
    transition: background-color 0.3s;
}

.btn.desktop-login:hover {
    background-color: #b24c14;
    color: white;
}

/* Fix for desktop user menu visibility */
@media (min-width: 769px) {
    .desktop-user-menu {
        display: block !important;
    }
    
    .desktop-user-submenu {
        min-width: 240px;
    }
}

/* Mobil görünümde gizlenecek, sonra hamburger menüde görünecek */
@media (max-width: 768px) {
    .desktop-user-menu {
        display: none !important; /* Hide desktop menu on mobile */
    }
    

}

/* <style> */
.cta-container {
    background-color: var(--background-white);
    border-radius: 15px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    max-width: 900px;
    margin: 0 auto;
}

.cta-subtitle {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.cta-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    min-width: 200px;
    padding: 12px 25px;
    font-size: 18px;
}

@media (max-width: 768px) {
    .cta-container {
        padding: 40px 20px;
    }
    
    .cta-subtitle {
        font-size: 20px;
    }
    
    .cta-description {
        font-size: 16px;
    }
    
    .cta-buttons .btn {
        min-width: auto;
        width: 100%;
        margin-bottom: 15px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
}
/* </style> */

/* Community ve Contact Bölümlerini Yan Yana Getirme */
.community-contact-wrapper {
    display: flex;
    gap: 30px;
    background-color: var(--background-white);
    padding: 80px 0;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Tüm gri alanları temizlemek için before ve after */
.community-contact-wrapper::before,
.community-contact-wrapper::after {
    content: "";
    display: block;
    position: absolute;
    left: -100%;
    right: -100%;
    background-color: var(--background-white);
    z-index: -1;
}

.community-contact-wrapper::before {
    top: -30px;
    height: 30px;
}

.community-contact-wrapper::after {
    bottom: -30px;
    height: 30px;
}

.community-contact-wrapper > section {
    flex: 1;
    padding: 0;
}

/* Kart Stilleri */
.community-contact-wrapper #community > .container,
.community-contact-wrapper #contact > .container {
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    height: 100%;
}

.community-contact-wrapper #community > .container {
    background-color: #bbdefb;
}

.community-contact-wrapper #contact > .container {
    background-color: #ffecb3;
}

/* Küçük ekranlarda alt alta */
@media (max-width: 992px) {
    .community-contact-wrapper {
        flex-direction: column;
        background-color: transparent;
        padding: 0;
    }

    .community-contact-wrapper > section {
        padding: 30px 0;
    }

    .community-contact-wrapper #community > .container,
    .community-contact-wrapper #contact > .container {
        padding: 40px;
        border-radius: 10px;
        box-shadow: var(--shadow);
        height: auto;
    }
}

/* Improved contrast for LMS button */
.lms-content .btn {
    margin-top: 20px;
    background-color: #d45f1e;
    color: #ffffff;
    font-weight: 700;
}

.lms-content .btn:hover {
    background-color: #b24c14;
    color: #ffffff;
}

@media (max-width: 768px) {
    #hero-slider {
        display: none !important; /* Mobil cihazlarda desktop slider'ı gizle */
    }
    
    #hero-slider-mobile {
        display: block !important; /* Mobil cihazlarda mobile slider'ı göster */
    }
}

/* Timeline Mobile styling */
@media (max-width: 768px) {
    .journey-timeline {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 50px;
    }
    
    .timeline-link {
        width: 100%;
    }
    
    .journey-timeline::before {
        display: none;
    }
    
    .timeline-stage {
        width: 100%;
        padding-top: 0;
        padding-left: 40px;
        margin-bottom: 30px;
        text-align: left;
    }
    
    .timeline-icon {
        left: 0;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .timeline-icon-link {
        left: 0;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .timeline-stage:hover .timeline-icon {
        transform: translateY(-50%) scale(1.1);
    }
}

/* Kullanıcı Dropdown Menüsü */
.desktop-user-menu {
    position: relative;
}

.desktop-user-submenu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 1000;
    border-radius: 4px;
    padding: 8px 0;
    margin-top: 5px;
    display: none;
}

.desktop-user-menu:hover .desktop-user-submenu {
    display: block;
}

.desktop-user-submenu li {
    display: block;
}

.desktop-user-submenu li a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #000000;
    text-decoration: none;
    transition: all 0.2s;
    border-radius: 4px;
    font-weight: 500;
    font-size: 15px;
}

.desktop-user-submenu li a:hover {
    background-color: #f5f5f5;
    color: #d45f1e;
}

.desktop-user-submenu li a i {
    margin-right: 12px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d45f1e;
    font-size: 16px;
}

/* Mobil kullanıcı menüsü */
.user-submenu {
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 5px;
    border-radius: 4px;
}

.user-submenu li a {
    padding: 10px 15px;
    color: #000000;
}

.user-submenu li a:hover {
    background-color: #f5f5f5;
    color: #d45f1e;
}

@media (max-width: 768px) {
    .user-submenu {
        position: relative;
        box-shadow: none;
        margin-top: 0;
        background-color: #f9f9f9;
    }
}

/* For responsive images in picture elements */
picture {
    display: block;
    width: 100%;
}

picture img {
    display: block;
    width: 100%;
    height: auto;
}

/* Special styles for testimonial images to maintain circular shape */
.testimonial-image img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
}

/* Lightbox image styles */
#lightbox-image {
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    height: auto;
}

.mobile-slide-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1 !important;
    display: block !important;
}

@media (max-width: 768px) {
    #hero-slider {
        display: none !important; /* Mobil cihazlarda desktop slider'ı gizle */
    }
    
    #hero-slider-mobile {
        display: block !important; /* Mobil cihazlarda mobile slider'ı göster */
    }
}



/* Fix mobile header positioning */
@media (max-width: 768px) {
    .header-content {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 15px;
    }

    .logo {
        max-width: 60%;
    }

    .desktop-user-menu {
        position: absolute;
        right: 60px; /* Position to the left of hamburger menu */
        top: 50%;
        transform: translateY(-50%);
        margin-left: 0 !important;
        display: flex !important;
        align-items: center;
        height: 40px;
    }

    .desktop-login {
        height: 40px;
        display: flex !important;
        align-items: center;
    }

    .header-right-elements {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        margin-left: auto;
        position: relative;
        z-index: 1200;
    }

    .mobile-menu-toggle {
        margin-left: 15px;
        width: 40px;
        height: 40px;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    /* Ensure the LOGIN button is properly sized in mobile */
    .btn.desktop-login {
        padding: 8px 15px;
        font-size: 14px;
        white-space: nowrap;
    }
    
    /* Hide desktop button submenu on mobile - use the mobile menu login option instead */
    .desktop-user-menu:hover .desktop-user-submenu {
        display: none;
    }
}

@media (max-width: 380px) {
    /* On very small screens, make the button even smaller */
    .btn.desktop-login {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .logo {
        max-width: 55%;
    }
    
    .desktop-user-menu {
        right: 50px;
    }
}

/* Fix for mobile hover behavior */
@media (max-width: 768px) {
    /* Prevent hover actions on mobile */
    .desktop-user-menu:hover .desktop-user-submenu {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-5px);
    }
    
    /* Only show submenu on explicit class toggle via JS */
    .desktop-user-menu.menu-open .desktop-user-submenu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }
    

}

/* Mobile submenu specific styles */
@media (max-width: 768px) {
    /* Base styles for the dropdown */
    .desktop-user-submenu {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        width: 220px;
        background-color: white;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        border-radius: 8px;
        padding: 10px 0;
        z-index: 1500 !important;
    }
    
    /* Override hover behavior on mobile */
    .desktop-user-menu:hover .desktop-user-submenu {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        display: none;
    }
    
    /* Only show when explicitly toggled by JS */
    .desktop-user-menu.menu-open .desktop-user-submenu {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        display: block !important;
        transform: translateY(0) !important;
    }
    
    /* Direct JS toggle support */
    .desktop-user-submenu[style*="display: block"] {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }
    
    /* Make submenu items more tappable */
    .desktop-user-submenu li {
        margin: 5px 8px;
    }
    
    .desktop-user-submenu li a {
        padding: 15px !important; /* Bigger tap targets */
        display: flex;
        align-items: center;
    }
}

/* Timeline content links */
.timeline-content a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Mobile user toggle button styling */
.mobile-user-toggle {
    display: inline-block !important;
    text-decoration: none !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    z-index: 2000 !important;
    position: relative;
    transition: all 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    border: none !important;
    outline: none !important;
    background-color: #d45f1e !important;
    color: white !important;
    font-weight: bold !important;
    padding: 8px 15px !important;
    border-radius: 4px !important;
    font-size: 14px !important;
}

.mobile-user-toggle:hover,
.mobile-user-toggle:focus,
.mobile-user-toggle:active {
    background-color: #b84a1a !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    opacity: 1 !important;
}