/* ======================================
   HND CONSULTANCY ACADEMICS — MODERN
   ====================================== */

* { box-sizing: border-box; }

:root {
    --accent: #e3121a;
    --accent-dark: #c50e15;
    --navy: #242841;
    --navy-light: #2e3354;
    --text: #3a3d4e;
    --text-muted: #8b90a0;
    --bg: #ffffff;
    --bg-alt: #f7f8fa;
    --bg-dark: #1a1d30;
    --border: #e8eaf0;
    --radius: 12px;
    --shadow-sm: 0 2px 8px rgba(36,40,65,0.06);
    --shadow-md: 0 8px 30px rgba(36,40,65,0.08);
    --shadow-lg: 0 20px 60px rgba(36,40,65,0.12);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; overflow-x: hidden; width: 100%; }
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--navy);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    width: 100%;
    max-width: 100vw;
    min-width: 0;
}
a { text-decoration:none; color:inherit; transition: var(--transition); }

/* Screen-reader only — SEO H1 gizli başlık */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
ul { list-style:none; }
img { max-width:100%; height:auto; display:block; }
.container { max-width:1200px; margin:0 auto; padding:0 40px; }

/* ======== BUTTONS ======== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--accent);
    color: #fff;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 2px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
}
.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(227,18,26,0.25);
}
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    color: var(--navy);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 2px;
    border: 2px solid var(--navy);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
}
.btn-outline:hover {
    background: var(--navy);
    color: #fff;
    transform: translateY(-2px);
}
.btn-full { width: 100%; justify-content: center; }

/* ======== HEADER ======== */
.header {
    position: fixed; top:0; left:0; right:0;
    z-index: 1000; padding: 0 40px;
    transition: var(--transition);
    background: transparent;
    box-shadow: none;
}
.header.scrolled {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(36,40,65,0.06);
}
.header-inner {
    max-width: 1200px; margin:0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 75px; /* Slightly shorter */
}

/* Logo */
.logo { display:flex; align-items:center; gap:10px; }
.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: filter 0.3s ease;
}
/* Header logo starts white, then switches to navy on scroll */
.header .logo-img {
    filter: none;
}
.header.scrolled .logo-img,
.footer .logo-img {
    filter: invert(1); 
}
.logo-sub {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1;
}
.logo-consultancy {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--accent);
    text-transform: uppercase;
}
.logo-academics {
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 4px;
    color: #fff;
    text-transform: uppercase;
    margin-top: 3px;
    transition: var(--transition);
}
.header.scrolled .logo-academics {
    color: var(--navy);
}

/* Desktop Nav */
.desktop-nav {
    display: flex;
    gap: 32px;
}
.desktop-nav a {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    position: relative;
    padding: 4px 0;
}
.desktop-nav a::after {
    content:'';
    position: absolute;
    bottom: -2px; left:0;
    width: 0; height: 2px;
    background: var(--accent);
    transition: var(--transition);
}
.desktop-nav a:hover { color: var(--navy); }
.desktop-nav a:hover::after { width: 100%; }

.nav-right { display:flex; align-items:center; gap:16px; }
.lang-switch { display:flex; gap:4px; }
.lang-btn {
    width: 32px; height: 32px; border-radius: 50%;
    border: 1.5px solid #fff;
    display: flex; align-items:center; justify-content:center;
    font-size: 0.68rem; font-weight: 700;
    cursor: pointer; transition: var(--transition);
    color: #fff;
}
.header.scrolled .lang-btn {
    color: var(--navy);
    border-color: var(--navy);
}
.lang-btn.active { background: #fff; color:var(--navy); border-color: #fff; }
.header.scrolled .lang-btn.active {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}
.lang-btn:hover { border-color: var(--accent); color: var(--accent); }
.hamburger {
    display: flex;
    flex-direction: column; gap:5px;
    background:none; border:none; cursor:pointer; padding:8px;
}
.hamburger span {
    display:block; width:24px; height:2px;
    background: #fff; border-radius:2px; transition: var(--transition);
}
.header.scrolled .hamburger span {
    background: var(--navy);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity:0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile Nav */
.mobile-nav {
    position:fixed; top:0; right:-100%;
    width:100%; max-width:380px; height:100vh;
    background: var(--bg); z-index:999;
    transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
    box-shadow: -10px 0 50px rgba(0,0,0,0.08);
}
.mobile-nav.open { right:0; }
.mobile-nav-inner { padding: 100px 32px 40px; }
.mobile-nav ul { display:flex; flex-direction:column; gap:2px; }
.mobile-link {
    display:block; padding:16px 20px;
    font-weight:600; font-size:0.9rem; letter-spacing:2px;
    color: var(--navy); border-radius:8px; transition: var(--transition);
}
.mobile-link:hover {
    background: var(--bg-alt); color: var(--accent); transform: translateX(6px);
}

/* Side Buttons */
.side-buttons {
    position:fixed; right:0; top:50%;
    transform: translateY(-50%); z-index:900;
    display:flex; flex-direction:column; gap:1px;
}
.side-btn {
    display:block; padding:10px 16px;
    background: var(--navy);
    color: rgba(255,255,255,0.85);
    font-size: 0.62rem; font-weight:700;
    letter-spacing: 1.5px; text-transform:uppercase;
    transition: var(--transition);
}
.side-btn:hover {
    background: var(--accent); color:#fff; padding-right:24px;
}

/* ======== HERO ======== */
.hero {
    position:relative; width:100%;
    height: 100vh; min-height:600px;
    overflow:hidden;
}
.hero-bg { position:absolute; inset:0; }
.hero-img { width:100%; height:100%; object-fit:cover; }
.hero-overlay {
    position:absolute; inset:0;
    background: linear-gradient(
        135deg,
        rgba(26,29,48,0.55) 0%,
        rgba(26,29,48,0.35) 40%,
        rgba(255,255,255,0.2) 100%
    );
}
.hero-content {
    position:absolute; bottom:120px; left:80px; z-index:2;
    max-width: 600px;
}
.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(227,18,26,0.12);
    border: 1px solid rgba(227,18,26,0.25);
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.05;
    margin-bottom: 16px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.15);
}
.hero-accent {
    color: var(--accent);
    font-style: italic;
}
.hero-desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.8);
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 32px;
}
.hero-ctas { display:flex; gap:14px; flex-wrap:wrap; }
.hero-ctas .btn-outline { color:#fff; border-color: rgba(255,255,255,0.5); }
.hero-ctas .btn-outline:hover { background: #fff; color: var(--navy); border-color:#fff; }

.hero-scroll-hint {
    position:absolute; bottom:40px; left:50%;
    transform: translateX(-50%);
    display:flex; flex-direction:column; align-items:center; gap:8px;
    z-index:2;
}
.scroll-line {
    width:1px; height:50px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.6));
    animation: scrollPulse 2s infinite;
}
.hero-scroll-hint span {
    font-size: 0.6rem; font-weight:600;
    letter-spacing: 3px; color: rgba(255,255,255,0.5);
}
@keyframes scrollPulse {
    0%,100% { opacity:0.3; transform:scaleY(0.8); }
    50% { opacity:1; transform:scaleY(1); }
}

/* ======== COURSES — PUZA HOVER EXPAND ======== */
.courses-section {
    padding: 80px 0 60px;
    background: var(--bg);
    border-top: 1px solid var(--border);
}
.courses-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    border-bottom: 1px solid var(--border);
}
.course-col {
    position: relative;
    padding: 30px 20px;
    border-right: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}
.course-col:last-child { border-right: none; }
.course-col:hover { background: var(--bg-alt); }

.course-header { 
    position: relative; 
    height: 90px; /* Ensure space for the line and text */
}
.course-abbr {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--navy);
    letter-spacing: 1px;
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateY(0);
}
.course-col:hover .course-abbr {
    opacity: 0;
    transform: translateY(-30px);
    pointer-events: none;
}
.course-line {
    position: absolute;
    top: 35px; left: 0;
    width: 100%; height: 3px;
    background: var(--accent);
    border-radius: 2px;
    transform-origin: left;
    transition: var(--transition);
}
.course-full-title {
    position: absolute;
    top: 52px; left: 0;
    width: 100%;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    line-height: 1.4;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.course-col:hover .course-full-title {
    top: -20px; /* Gives enough clearance for 3 lines of text so it won't hit the red line at 35px */
    color: var(--navy);
    font-weight: 800;
}

/* Dropdown / expandable list */
.course-dropdown {
    position: absolute;
    top: 75px; /* Starts exactly 10px below the red line (30px + 35px + 10px) */
    left: -1px; /* Cover left border overlap if any */
    width: calc(100% + 2px); /* Full width including boundaries */
    background: var(--bg-alt);
    padding: 0 20px;
    z-index: 100;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    border-radius: 0 0 8px 8px; /* Give it a slight rounded edge at bottom */
    transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1),
                opacity 0.4s ease,
                padding-bottom 0.4s ease,
                box-shadow 0.4s ease;
}
.course-col:hover .course-dropdown {
    max-height: 350px;
    opacity: 1;
    padding-bottom: 30px;
    box-shadow: 0 15px 30px rgba(36,40,65,0.05);
    border: 1px solid var(--border);
    border-top: none;
}
.course-list li {
    margin-bottom: 0;
    border-bottom: 1px solid rgba(227, 18, 26, 0.3); /* Thin red divider */
}
.course-list li:last-child {
    border-bottom: none;
}
.course-list a {
    display: block;
    width: 100%;
    font-size: 0.95rem;
    font-weight: 600;
    color: #777; /* Standard grey */
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
    padding: 10px 0;
    text-transform: uppercase;
    text-align: left;
}
.course-list a:hover {
    color: var(--navy);
    font-weight: 800; /* Extremely bold on hover like YÖS */
}

/* ======== SECTION LABELS & HEADINGS ======== */
.section-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 8px;
}
.section-heading {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.15;
    margin-bottom: 50px;
}
.section-heading.light { color: #fff; }
.heading-accent { color: var(--accent); font-style: italic; }

/* ======== CONSULTANCY CARDS ======== */
.consultancy-section {
    padding: 100px 0;
    background: var(--bg-alt);
}
.consultancy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.c-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 36px 28px;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.c-card::before {
    content:'';
    position: absolute; top:0; left:0;
    width: 100%; height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}
.c-card:hover::before { transform: scaleX(1); }
.c-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.c-card-icon {
    width: 44px; height: 44px;
    color: var(--accent);
}
.c-card-icon svg { width:100%; height:100%; }
.c-card-title {
    font-size: 1rem; font-weight: 700;
    color: var(--navy); letter-spacing: 0.5px;
}
.c-card-desc {
    font-size: 0.82rem; color: var(--text-muted);
    line-height: 1.6; flex: 1;
}
.c-card-arrow {
    font-size: 1.2rem; color: var(--accent);
    opacity: 0; transform: translateX(-8px);
    transition: var(--transition);
}
.c-card:hover .c-card-arrow { opacity:1; transform: translateX(0); }

/* ======== INTERNATIONAL SECTION ======== */
.intl-section {
    padding: 100px 0;
    background: var(--bg);
}
.intl-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.intl-card {
    padding: 32px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
}
.intl-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.intl-card-num {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--bg-alt);
    line-height: 1;
    margin-bottom: 16px;
    transition: var(--transition);
}
.intl-card:hover .intl-card-num { color: rgba(227,18,26,0.1); }
.intl-card h3 {
    font-size: 0.85rem; font-weight: 700;
    color: var(--navy); letter-spacing: 0.3px;
    margin-bottom: 8px;
}
.intl-card p {
    font-size: 0.76rem; color: var(--text-muted);
    line-height: 1.5;
}

/* ======== GUIDANCE ======== */
.guidance-section {
    padding: 100px 0;
    background: var(--bg-alt);
}
.guidance-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.guidance-card {
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
}
.guidance-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.guidance-card-inner { padding: 40px; }
.guidance-icon {
    width: 52px; height: 52px;
    color: var(--navy); margin-bottom: 20px;
}
.guidance-icon svg { width:100%; height:100%; }
.guidance-card h3 {
    font-size: 1.1rem; font-weight: 700;
    color: var(--navy); margin-bottom: 10px;
}
.guidance-card p {
    font-size: 0.88rem; color: var(--text-muted);
    line-height: 1.7;
}

/* ======== CONTACT ======== */
.contact-section {
    padding: 100px 0;
    background: var(--bg-dark);
}
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}
.contact-left .section-label { color: var(--accent); }
.contact-info {
    display: flex; flex-direction: column; gap: 24px;
    margin-top: 10px;
}
.contact-item {
    display:flex; align-items:flex-start; gap:14px;
}
.contact-icon-wrap {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: rgba(227,18,26,0.1);
    display: flex; align-items:center; justify-content:center;
    color: var(--accent); flex-shrink:0;
    padding: 8px;
}
.contact-icon-wrap svg { width:100%; height:100%; }
.contact-item h4 {
    font-size: 0.87rem; font-weight:700;
    color: #fff; letter-spacing:1px; margin-bottom:2px;
}
.contact-item p { font-size: 0.92rem; color: rgba(255,255,255,0.5); }
.contact-socials {
    display:flex; gap:10px; margin-top:30px;
}
.social-link {
    width:40px; height:40px; border-radius:50%;
    border: 1px solid rgba(255,255,255,0.15);
    display:flex; align-items:center; justify-content:center;
    color: rgba(255,255,255,0.5); transition: var(--transition);
}
.social-link svg { width:16px; height:16px; }
.social-link:hover {
    background: var(--accent); border-color: var(--accent);
    color:#fff; transform: translateY(-3px);
}

/* Contact Form */
.contact-form {
    display:flex; flex-direction:column; gap:14px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    background: rgba(255,255,255,0.05);
    color: #fff;
    transition: var(--transition);
    outline: none;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,0.3); }
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    background: rgba(255,255,255,0.08);
}
.contact-form textarea { resize:vertical; min-height:120px; }

/* ======== FOOTER ======== */
.footer {
    background: var(--navy);
    color: rgba(255,255,255,0.6);
}
.footer-grid {
    display:grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 50px;
    padding: 60px 0 40px;
}
.footer-logo-link { margin-bottom: 24px; display: block; }
.footer-long-logo {
    max-height: 80px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}
.footer-long-logo:hover {
    transform: scale(1.05);
}
.footer-tagline {
    font-size: 0.82rem;
    font-style: italic;
    color: rgba(255,255,255,0.35);
    margin-top: 8px;
}
.footer-heading {
    font-size: 0.72rem; font-weight:700;
    letter-spacing: 2px; color: #fff;
    margin-bottom: 16px;
    text-transform: uppercase;
}
.footer-links li {
    margin-bottom: 8px; font-size: 0.8rem;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0; text-align:center;
}
.footer-bottom p { font-size: 0.72rem; letter-spacing:1px; }

/* ======== SCROLL ANIMATIONS ======== */
.fade-in {
    opacity:0; transform:translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity:1; transform:translateY(0); }

/* ======== RESPONSIVE ======== */
@media (max-width: 1100px) {
    .courses-grid { grid-template-columns: repeat(3, 1fr); }
    .consultancy-grid { grid-template-columns: repeat(2, 1fr); }
    .intl-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .header { padding: 0 20px; }
    .desktop-nav { display:none; }
    .hamburger { display:flex; }
    .side-buttons { display:none; }
    .hero { height: 85vh; }
    .hero-content { left:20px; bottom:60px; max-width:90%; }
    .hero-title { font-size: 2.2rem; }
    .hero-badge { font-size: 0.58rem; }
    .courses-grid { grid-template-columns: repeat(2, 1fr); }
    .course-col { border-bottom: 1px solid var(--border); }
    .consultancy-grid { grid-template-columns: 1fr; }
    .intl-grid { grid-template-columns: 1fr 1fr; }
    .section-heading { font-size: 1.8rem; }
    .guidance-grid { grid-template-columns: 1fr; }
    .contact-wrapper { grid-template-columns: 1fr; gap:40px; }
    .footer-grid { grid-template-columns: 1fr; gap:24px; }
    
    /* Icon scaling for mobile */
    .sig-bubble { width: 54px !important; height: 54px !important; }
    .sig-bubble svg { width: 22px !important; height: 22px !important; }
    .srh-icon-grid { gap: 12px 20px !important; margin-top: 15px !important; }
    .sig-item { min-width: 80px !important; }
    .sig-item span { font-size: 0.62rem !important; }
    
    /* Genel taşma koruması */
    *, *::before, *::after { max-width: 100%; }
    img, video { max-width: 100%; height: auto; }
}

/* ================================================
   AKILLI TELEFON — DERİN MOBİL İYİLEŞTİRMELER
   Masaüstü/tablet'e sıfır dokunulur.
   ================================================ */
@media (max-width: 480px) {

    /* --- HEADER: Kompakt & Dokunulabilir --- */
    .header { padding: 0 12px; }
    .header-inner { height: 60px; }
    .logo { gap: 6px; }
    .logo-img { height: 36px; }
    .logo-consultancy {
        font-size: 0.62rem;
        letter-spacing: 1.5px;
    }
    .logo-academics {
        font-size: 0.68rem;
        letter-spacing: 2px;
        margin-top: 1px;
    }
    .nav-right { gap: 8px; }
    .lang-btn {
        width: 28px; height: 28px;
        font-size: 0.6rem;
    }
    .hamburger { padding: 6px; }
    .hamburger span { width: 20px; }

    /* --- MOBİL MENÜ: Daha geniş & temiz --- */
    .mobile-nav { max-width: 100%; }
    .mobile-nav-inner { padding: 75px 24px 40px; }
    .mobile-link {
        padding: 18px 16px;
        font-size: 0.85rem;
        letter-spacing: 1.5px;
        border-bottom: 1px solid var(--border);
        border-radius: 0;
    }
    .mobile-link:last-child { border-bottom: none; }

    /* --- İÇERİK KONTEYNER --- */
    .container { padding: 0 16px; }

    /* --- KURS KARTLARI: İkili sütun --- */
    .courses-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
    .course-header { height: 70px; }
    .course-abbr { font-size: 1.15rem; }
    .course-full-title { font-size: 0.75rem; top: 48px; }
    .course-col { padding: 20px 16px; }

    /* --- BÖLÜM BAŞLIKLARI: Taşma önleme --- */
    .section-heading {
        font-size: 1.5rem;
        line-height: 1.25;
        margin-bottom: 30px;
    }
    .section-label {
        font-size: 0.62rem;
        letter-spacing: 3px;
    }

    /* --- DANIŞMANLIK KARTLARI --- */
    .consultancy-section { padding: 60px 0; }
    .c-card { padding: 24px 20px; gap: 12px; }
    .c-card-icon { width: 36px; height: 36px; }
    .c-card-title { font-size: 0.92rem; }
    .c-card-desc { font-size: 0.8rem; }

    /* --- ULUSLARARASI BÖLÜM --- */
    .intl-grid { grid-template-columns: 1fr; }
    .intl-section { padding: 60px 0; }
    .intl-card { padding: 24px 20px; }
    .intl-card-num { font-size: 2rem; }
    .intl-card h3 { font-size: 0.82rem; }
    .intl-card p { font-size: 0.74rem; }

    /* --- REHBERLİK KARTLARI --- */
    .guidance-section { padding: 60px 0; }
    .guidance-card-inner { padding: 28px 20px; }
    .guidance-card h3 { font-size: 1rem; }
    .guidance-card p { font-size: 0.82rem; }

    /* --- 3 GÜÇLÜ ADIM (Core Services Horizontal) --- */
    .core-services-horizontal { padding: 40px 0 60px; overflow: hidden; }
    .core-services-horizontal .container { padding: 0 16px !important; max-width: 100% !important; }
    .service-row-horizontal,
    .service-row-horizontal.reverse {
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .srh-image {
        width: 100% !important;
        min-height: 200px !important;
        max-width: 100% !important;
    }
    .srh-content {
        width: 100% !important;
        padding: 24px 16px !important;
        max-width: 100% !important;
    }
    .srh-content h3 { font-size: 1.2rem !important; }
    .srh-content p { font-size: 0.82rem !important; line-height: 1.6 !important; }
    .sig-bubble { width: 48px !important; height: 48px !important; }
    .sig-bubble svg { width: 20px !important; height: 20px !important; }
    .srh-icon-grid { gap: 10px 16px !important; margin-top: 12px !important; justify-content: center !important; }
    .sig-item { min-width: 70px !important; }
    .sig-item span { font-size: 0.58rem !important; max-width: 75px !important; }
    .services-list { width: 100%; overflow: hidden; }

    /* --- İLETİŞİM BÖLÜMÜ --- */
    .contact-section { padding: 60px 0; overflow: hidden; }
    .contact-wrapper { gap: 30px; }
    .contact-item h4 { font-size: 0.82rem; }
    .contact-item p { font-size: 0.85rem; }
    .contact-form input,
    .contact-form textarea {
        padding: 14px 16px;
        font-size: 0.88rem;
        width: 100%;
    }

    /* --- FOOTER: Kompakt --- */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 40px 0 24px;
    }
    .footer-long-logo { width: 220px !important; }
    .footer-heading { 
        font-size: 0.68rem;
        margin-bottom: 10px;
    }
    .footer-links li { 
        margin-bottom: 6px;
        font-size: 0.76rem;
    }
    .footer-bottom { padding: 14px 0; }
    .footer-bottom p { font-size: 0.66rem; }

    /* --- BUTONLAR: Daha büyük dokunma alanı --- */
    .btn-primary {
        padding: 16px 24px;
        font-size: 0.78rem;
        letter-spacing: 1.5px;
        width: 100%;
        max-width: 100%;
    }
    .btn-outline {
        padding: 16px 24px;
        font-size: 0.78rem;
        width: 100%;
        max-width: 100%;
    }

    /* --- GENEL TAŞMA KORUMASI --- */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
    }
    section, .container, .courses-section, .core-services-horizontal,
    .contact-section, .footer, header, nav {
        max-width: 100vw !important;
        overflow-x: hidden;
    }
    .container {
        padding: 0 16px !important;
    }
}

/* ======== YUKARIYA ÇIK BUTONU ======== */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 950;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(36,40,65,0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(227,18,26,0.3);
}
.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* ======== CORE SERVICES (3 PILLARS) ======== */
.core-services {
    padding: 100px 0 120px;
    background: var(--bg-alt);
}
.services-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}
.scp-card {
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
}
.scp-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.scp-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}
.scp-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.scp-card:hover .scp-image img {
    transform: scale(1.06);
}
.scp-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,20,31,0.5) 0%, transparent 100%);
}
.scp-bottom {
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
}
.scp-icon {
    width: 52px; height: 52px;
    color: var(--accent);
    margin-bottom: 24px;
    background: rgba(227,18,26,0.1);
    border-radius: 12px;
    padding: 10px;
}
.scp-icon svg { width:100%; height:100%; }
.scp-bottom h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 12px;
}
.scp-bottom p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    flex: 1;
}
.scp-arrow {
    display: inline-block;
    margin-top: 24px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--accent);
    opacity: 0;
    transform: translateX(-15px);
    transition: var(--transition);
    text-transform: uppercase;
}
.scp-card:hover .scp-arrow {
    opacity: 1;
    transform: translateX(0);
}
@media (max-width: 992px) {
    .services-grid-3 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 600px) {
    .services-grid-3 { grid-template-columns: 1fr; }
    .scp-image { height: 200px; }
}


/* ======== CORE SERVICES - HORIZONTAL (UZUNLAMASINA) ======== */
.core-services-horizontal {
    padding: 60px 0 80px;
    background: var(--bg-alt);
}
.services-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
}
.service-row-horizontal {
    display: flex;
    background: var(--bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid var(--border);
    transition: var(--transition);
    align-items: stretch;
}
.service-row-horizontal:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-color: transparent;
    transform: translateY(-2px);
}
.srh-image {
    width: 33%; /* Increased image width from 25% for more impact */
    position: relative;
    overflow: hidden;
    min-height: 100%;
}
.srh-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.service-row-horizontal:hover .srh-image img {
    transform: scale(1.05);
}
.srh-content {
    width: 67%;
    padding: 24px 40px; /* Increased side padding for clarity */
    display: flex;
    flex-direction: column;
    justify-content: center;
}
/* Hide the redundant large red icon to save height */
.srh-icon {
    display: none;
}
.srh-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 8px;
}
.srh-content p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    max-width: 900px;
}

/* ======== ICON GRID IN HORIZONTAL BANNERS ======== */
.srh-icon-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 35px; /* Tightened 15px vertical, 35px horizontal */
    margin-top: 25px;
    justify-content: flex-start; /* Grouping icons closer for better balance */
    width: 100%;
}
.sig-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    flex: 0 1 auto;
    min-width: 100px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s ease;
}
.sig-item:hover {
    transform: translateY(-4px);
}
.sig-bubble {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 6px 15px rgba(36,40,65,0.15);
    transition: all 0.35s ease;
}
.sig-bubble svg {
    width: 28px;
    height: 28px;
}
.sig-item:hover .sig-bubble {
    box-shadow: 0 10px 20px rgba(227, 18, 26, 0.25);
    background: var(--accent);
    color: #fff;
}
.sig-item span {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    line-height: 1.3;
    text-transform: uppercase;
    transition: color 0.3s;
    max-width: 90px;
}
.sig-item:hover span {
    color: var(--navy);
}

.service-row-horizontal.reverse {
    flex-direction: row-reverse;
}

@media (max-width: 992px) {
    .service-row-horizontal, .service-row-horizontal.reverse {
        flex-direction: column !important;
    }
    .srh-image, .srh-content { width: 100% !important; }
    .srh-image { min-height: 250px !important; }
    .srh-content { padding: 30px 20px !important; }
    .core-services-horizontal .container { max-width: 100% !important; padding: 0 20px !important; }
}
/* Mobile Nav Close Button */
.mobile-nav-close {
    position: absolute;
    top: 25px;
    right: 32px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--navy);
    cursor: pointer;
    padding: 10px;
    line-height: 1;
    transition: var(--transition);
    z-index: 1001;
}
.mobile-nav-close:hover {
    color: var(--accent);
    transform: rotate(90deg);
}
/* ======== PREMIUM MODAL BASE ======== */
.fb-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.fb-modal.active {
    display: flex;
    opacity: 1;
}
.fb-modal-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(10, 12, 22, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.fb-modal-container {
    position: relative;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.fb-modal.active .fb-modal-container {
    transform: scale(1);
}
.fb-modal-close {
    position: absolute;
    top: 20px; right: 20px;
    width: 44px; height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 100;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.fb-modal-close:hover {
    background: var(--accent);
    transform: rotate(90deg);
}

/* ======== PREMIUM 3D FLIPBOOK ======== */
.flip-container {
    width: 90% !important;
    max-width: 1200px !important;
    height: 90vh !important;
    background: #1a1a1a !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.flipbook {
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    position: relative;
}

.page {
    background-color: #fff;
    overflow: hidden;
}

.page-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.fb-modal-loading {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 10;
}

.fb-modal-controls {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: #fff;
    z-index: 20;
}

.control-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 44px; height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
}

.control-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}

@media (max-width: 768px) {
    .flip-container {
        width: 100% !important;
        height: 100% !important;
        border-radius: 0 !important;
        padding: 10px;
    }
    .fb-modal-controls {
        margin-top: 10px;
        gap: 10px;
    }
}
.pdf-fallback {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.fallback-tip {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 11px;
    padding: 8px;
    text-align: center;
    backdrop-filter: blur(5px);
    z-index: 100;
}
/* ====== FLIPBOOK MODAL ====== */
.flipbook-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 18, 30, 0.95);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.flipbook-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.flipbook-modal-content {
    width: 90vw;
    max-width: 1200px;
    height: 85vh;
    background: #1a1d33;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    transform: scale(0.95) translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.flipbook-modal-overlay.active .flipbook-modal-content {
    transform: scale(1) translateY(0);
}

.flipbook-modal-header {
    height: 50px;
    background: #242841;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.flipbook-modal-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 0;
}

.flipbook-modal-close {
    background: rgba(227, 18, 26, 0.1);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

.flipbook-modal-close:hover {
    background: #e3121a;
    transform: rotate(90deg);
}

.flipbook-modal-iframe-wrap {
    flex: 1;
    width: 100%;
    position: relative;
}

.flipbook-modal-iframe-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .flipbook-modal-content {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }
}

