@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Lexend:wght@400;500;600;700&display=swap');

/* --- Reset & Core --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

:root {
    --bg-dark: #0a0d16;
    --bg-darker: #05070c;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Harmonious Brand Colors */
    --primary: #6366f1; /* Indigo */
    --primary-glow: rgba(99, 102, 241, 0.15);
    --secondary: #06b6d4; /* Teal */
    --secondary-glow: rgba(6, 182, 212, 0.15);
    --accent: #f59e0b; /* Amber/Gold */
    --accent-glow: rgba(245, 158, 11, 0.15);
    
    /* Glassmorphism settings */
    --glass-bg: rgba(20, 27, 45, 0.45);
    --glass-bg-hover: rgba(28, 38, 62, 0.6);
    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-border-hover: rgba(255, 255, 255, 0.15);
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
    
    --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.65);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

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

/* --- Layout Elements --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 130px 0;
    position: relative;
}

.section-header {
    text-align: left;
    max-width: 800px;
    margin: 0 0 60px;
}

.section-header h2 {
    font-size: 2.6rem;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary) 30%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border-left: 4px solid var(--secondary);
    padding-left: 16px;
    line-height: 1.25;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    padding-left: 20px;
}

/* --- Shared Header (Navbar) --- */
.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(10, 13, 22, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth);
}

.header-nav.scrolled {
    padding: 10px 0;
    background: rgba(5, 7, 12, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
}

.logo span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
    padding: 6px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.btn-nav {
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: var(--transition-smooth);
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

/* --- Common UI Components --- */

/* Glass Cards */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-6px);
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

/* Glass Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-outline {
    background: transparent;
    border-color: var(--glass-border);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
}

/* Badge tags */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.badge-primary {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.badge-secondary {
    background: rgba(6, 182, 212, 0.15);
    color: #67e8f9;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-accent {
    background: rgba(245, 158, 11, 0.15);
    color: #fde047;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* --- Landing Page Split Screen / Hero --- */
.split-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    padding-top: 100px;
    background: var(--bg-darker);
    position: relative;
}

.split-hero::after {
    content: 'OR';
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-secondary);
    z-index: 10;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
}

.split-side {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 150px 10% 100px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.split-side.germany {
    background: linear-gradient(rgba(10, 13, 22, 0.85), rgba(10, 13, 22, 0.95)), url('../assets/germany_hero.png') no-repeat center center/cover;
    border-right: 1px solid rgba(255, 255, 255, 0.03);
}

.split-side.montenegro {
    background: linear-gradient(rgba(10, 13, 22, 0.85), rgba(10, 13, 22, 0.95)), url('../assets/montenegro_hero.png') no-repeat center center/cover;
}

/* Hover effects for Split screen */
.split-hero:hover .split-side {
    opacity: 0.7;
}

.split-hero .split-side:hover {
    opacity: 1;
    flex-grow: 1.15;
}

.split-side .side-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
}

.split-side h1 {
    font-size: 3.2rem;
    line-height: 1.15;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.split-side.germany h1 {
    background: linear-gradient(135deg, #ffffff 40%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.split-side.montenegro h1 {
    background: linear-gradient(135deg, #ffffff 40%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.split-side p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 36px;
    line-height: 1.7;
}

.split-side .side-features {
    list-style: none;
    margin-bottom: 40px;
}

.split-side .side-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #ffffff;
}

.split-side .side-features li svg {
    flex-shrink: 0;
}

/* --- Comparison Grid Section (Fintech Matrix Style) --- */
.compare-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.compare-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--glass-border);
}

.compare-head .icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: rgba(255, 255, 255, 0.03);
}

.compare-head.germany .icon-wrapper {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.compare-head.montenegro .icon-wrapper {
    background: rgba(6, 182, 212, 0.1);
    color: var(--secondary);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.compare-title {
    font-size: 1.30rem;
    font-weight: 800;
    color: var(--text-primary);
}

.compare-list {
    list-style: none;
}

.compare-list li {
    padding: 14px 16px;
    margin: 4px 0;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.compare-list li:nth-child(odd) {
    background: rgba(255, 255, 255, 0.02);
}

.compare-list li:hover {
    background: rgba(255, 255, 255, 0.05);
}

.compare-list li span:first-child {
    color: var(--text-secondary);
    font-weight: 500;
}

.compare-list li span:last-child {
    font-weight: 700;
    color: var(--text-primary);
}

/* --- Hero Inner Pages --- */
.inner-hero {
    padding: 180px 0 110px;
    position: relative;
    overflow: hidden;
}

.inner-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.08) 0%, rgba(10, 13, 22, 0) 100%);
    pointer-events: none;
}

.inner-hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.inner-hero h1 {
    font-size: 3.8rem;
    line-height: 1.15;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.inner-hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.inner-hero-visual {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.inner-hero-visual img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* --- Timeline / Roadmap (Germany Page) --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 40px;
    width: 2px;
    background: linear-gradient(180deg, var(--secondary) 0%, var(--primary) 100%);
}

.timeline-item {
    position: relative;
    padding-left: 100px;
    margin-bottom: 60px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 26px;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 3px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 0 15px var(--primary-glow);
}

.timeline-dot::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
}

.timeline-item:nth-child(even) .timeline-dot {
    border-color: var(--secondary);
}
.timeline-item:nth-child(even) .timeline-dot::after {
    background: var(--secondary);
}

.timeline-meta {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.timeline-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.timeline-content h3 {
    margin-bottom: 12px;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- Filter / Listing (Montenegro Page) --- */
.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 12px 24px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
}

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

.faculty-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.faculty-card h3 {
    font-size: 1.45rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.faculty-departments {
    list-style: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--glass-border);
}

.faculty-departments li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.faculty-departments li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

/* --- Interactive Accordion (FAQ Page) --- */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 16px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: none;
    border: none;
    text-align: left;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 700;
    transition: var(--transition-fast);
}

.accordion-header:hover {
    background: var(--glass-bg-hover);
}

.accordion-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(0, 0, 0, 0.1);
}

.accordion-content-inner {
    padding: 0 24px 24px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.accordion-item.active {
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-md);
    background: var(--glass-bg-hover);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
    background: var(--primary);
    color: white;
}

/* --- Interactive Form (Contact Page) --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 24px;
    font-weight: 800;
    color: var(--text-primary);
}

.contact-details {
    list-style: none;
    margin-bottom: 40px;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
}

.contact-details .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.contact-details p {
    color: var(--text-secondary);
}

.contact-form-wrapper {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(16px);
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 14px 20px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

textarea.form-input {
    min-height: 150px;
    resize: vertical;
}

.form-submit {
    width: 100%;
    padding: 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: var(--transition-smooth);
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 24px;
    text-align: center;
    font-weight: 500;
}

/* --- Shared Footer (Premium Navy Institutional) --- */
.footer {
    background: var(--bg-darker);
    padding: 80px 0 40px;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-about p {
    color: var(--text-secondary);
    margin-top: 16px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-links h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 4px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .compare-grid {
        grid-template-columns: 1fr;
    }
    .faculties-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .split-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .split-hero::after {
        display: none;
    }
    .split-side {
        padding: 80px 8%;
        min-height: 50vh;
    }
    .split-hero:hover .split-side {
        opacity: 1;
    }
    .split-hero .split-side:hover {
        flex-grow: 1;
    }
    .menu-toggle {
        display: block;
    }
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(5, 7, 12, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        transition: var(--transition-smooth);
        border-top: 1px solid var(--glass-border);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    .nav-links.open {
        left: 0;
    }
    .inner-hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .inner-hero h1 {
        font-size: 2.8rem;
    }
    .timeline::before {
        left: 20px;
    }
    .timeline-item {
        padding-left: 60px;
    }
    .timeline-dot {
        left: 6px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* --- Responsive Grid Utilities --- */
.grid-2-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}
.grid-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.grid-2-col-align-center {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    align-items: center;
}
.grid-2-col-stretch {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: stretch;
}
.grid-unequal-2-col {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 992px) {
    .grid-2-col,
    .grid-2-col-align-center,
    .grid-2-col-stretch,
    .grid-unequal-2-col {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .grid-3-col {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* --- Timeline Layout with Sticky Sidebar --- */
.timeline-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 50px;
    align-items: start;
}

.timeline-sidebar {
    position: sticky;
    top: 120px;
    z-index: 10;
}

@media (max-width: 992px) {
    .timeline-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .timeline-sidebar {
        position: relative;
        top: 0;
    }
}

/* --- Premium CTA Section Styling --- */
.cta-section {
    background: linear-gradient(135deg, #0a2540 0%, #06152b 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 130px 0;
    color: #ffffff;
}

/* --- Premium Stat Cards (Why Us) --- */
.stats-container {
    display: flex;
    gap: 20px;
}

.stat-card {
    flex: 1;
    background: #ffffff;
    border: 1px solid rgba(10, 37, 64, 0.06);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(212, 175, 55, 0.25);
}

.stat-card h4 {
    color: var(--primary);
    font-size: 2.2rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    margin-bottom: 4px;
    line-height: 1.1;
}

.stat-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.45;
    margin: 0 !important;
}

@media (max-width: 576px) {
    .stats-container {
        flex-direction: column;
        gap: 15px;
    }
}

/* --- Mobile Button Groups Wrap Fix --- */
@media (max-width: 576px) {
    .split-side .side-content div[style*="display: flex"] {
        flex-direction: column;
        width: 100%;
        gap: 12px !important;
    }
    .split-side .side-content .btn {
        width: 100%;
        justify-content: center;
    }
}

/* --- Comparison Matrix Mobile Wrap & Contrast Fixes --- */
@media (max-width: 480px) {
    .compare-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 12px;
    }
    .compare-list li span:last-child {
        align-self: flex-end;
        text-align: right;
    }
}

/* High Contrast Rules for Dark Table Cells/BGs */
.compare-list li.dark-cell,
.compare-list li.dark {
    background: var(--primary) !important;
    color: #ffffff !important;
}
.compare-list li.dark-cell span,
.compare-list li.dark span {
    color: #ffffff !important;
}
.compare-list li span[style*="color: #eab308"] {
    color: #fde047 !important;
}
.compare-list li span[style*="color: #4ade80"] {
    color: #4ade80 !important;
}

/* ==========================================================================
   Germany Expansion Styles (Rankings, Tabs, search, catalogs)
   ========================================================================== */

/* Leaderboard Ranking Table */
.ranking-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--glass-border);
    margin-top: 24px;
    background: var(--glass-bg);
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.ranking-table th {
    background: var(--primary);
    color: #ffffff;
    padding: 16px 20px;
    font-weight: 600;
}

.ranking-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.ranking-table tr:last-child td {
    border-bottom: none;
}

.ranking-table tr:hover td {
    background: var(--glass-bg-hover);
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
}

.rank-badge.rank-1 {
    background: #f59e0b;
    color: #ffffff;
}

.rank-badge.rank-2 {
    background: #94a3b8;
    color: #ffffff;
}

.rank-badge.rank-3 {
    background: #b45309;
    color: #ffffff;
}

.rank-badge.rank-other {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* Tabs System */
.uni-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 8px;
    overflow-x: auto;
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: #ffffff;
    background: var(--primary);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

/* Inline Search Bar inside Tab Panes */
.pane-search-bar {
    margin: 15px 0;
    position: relative;
    max-width: 400px;
}

.pane-search-input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
    transition: all 0.3s;
}

.pane-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.pane-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
    font-size: 0.95rem;
}

/* Scrollable department list inside tabs */
.dep-table-wrapper {
    max-height: 450px;
    overflow-y: auto;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
}

.dep-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.dep-table th {
    position: sticky;
    top: 0;
    background: rgba(10, 13, 22, 0.9);
    backdrop-filter: blur(5px);
    color: var(--text-primary);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--glass-border);
}

.dep-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.dep-table tr:hover td {
    background: var(--glass-bg-hover);
}

/* Catalog Filter Bar */
.catalog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--glass-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--glass-border);
    align-items: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 200px;
}

.filter-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.filter-control {
    padding: 10px 14px;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-primary);
    outline: none;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.filter-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Catalog grid & cards */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.catalog-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.3s ease;
}

.catalog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--glass-border-hover);
}

.catalog-header {
    display: flex;
    gap: 16px;
    align-items: center;
}

.catalog-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    flex-shrink: 0;
}

.catalog-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.catalog-score {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: #eab308;
    margin-top: 4px;
    font-weight: 600;
}

.catalog-meta-box {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
}

.catalog-meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
}

.catalog-meta-item span:first-child {
    font-weight: 500;
}

.catalog-meta-item span:last-child {
    font-weight: 600;
    color: var(--text-primary);
}

.catalog-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.catalog-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.catalog-badge.type-devlet {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
}

.catalog-badge.type-uni {
    background: rgba(6, 182, 212, 0.15);
    color: #67e8f9;
}

.catalog-badge.prep-var {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
}

.catalog-badge.prep-yok {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

.catalog-footer-btn {
    margin-top: auto;
    width: 100%;
    padding: 10px;
    background: none;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: 8px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
}

.catalog-footer-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .ranking-table th, .ranking-table td {
        padding: 12px 14px;
        font-size: 0.85rem;
    }
    .catalog-filters {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-group {
        flex: 1 1 auto;
    }
}

/* ==========================================================================
   Header Dropdown Menu & Logo Standardizer
   ========================================================================== */

/* Dropdown Container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown Menu styling */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(10, 13, 22, 0.95);
    min-width: 250px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    z-index: 1000;
    padding: 8px 0;
    backdrop-filter: blur(15px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Hover triggers dropdown */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: block !important;
    padding: 12px 20px !important;
    color: var(--text-secondary) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    position: relative !important;
}

.dropdown-menu a:last-child {
    border-bottom: none !important;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--text-primary) !important;
    padding-left: 24px !important;
}

.dropdown-menu a::after {
    display: none !important; /* Disable hover underline for dropdown links */
}

/* Standardized Logo Box Wrapper */
.catalog-logo-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 8px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.catalog-logo-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Responsive Dropdown for Mobile */
@media (max-width: 768px) {
    .dropdown {
        width: 100%;
        text-align: center;
    }
    .dropdown-menu {
        position: static;
        display: block;
        box-shadow: none;
        border: none;
        background: transparent;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        width: 100%;
        padding: 0;
        margin-top: 5px;
        backdrop-filter: none;
    }
    .dropdown-menu a {
        padding: 10px 0 !important;
        font-size: 0.95rem !important;
        border-bottom: none !important;
    }
    .dropdown-menu a:hover {
        padding-left: 0 !important;
        background: transparent !important;
    }
}

