/* ============================================
   IMMIGRATION BELARUS - STYLESHEET
   Brand: immigrationbelarus
   Target: Students & Degree Holders
   ============================================ */

/* ===== ROOT VARIABLES ===== */
:root {
    --primary: #007b3e;
    --primary-dark: #005a2d;
    --primary-light: #00a04e;
    --accent: #d4af37;
    --accent-light: #f0d050;
    --red: #ce2029;
    --red-dark: #a01820;
    --dark: #1a1a2e;
    --dark-light: #2d2d44;
    --gray: #f4f4f4;
    --gray-dark: #e0e0e0;
    --gray-text: #666;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
    --font: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Georgia', 'Times New Roman', serif;
}

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    line-height: 1.7;
    color: #333;
    background: var(--white);
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 15px;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }

p { margin-bottom: 15px; }

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

a:hover {
    color: var(--primary-dark);
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-gray {
    background: var(--gray);
}

.section-dark {
    background: var(--dark);
    color: #fff;
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
    color: #fff;
}

/* ===== HEADER / NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    z-index: 1000;
    transition: var(--transition);
}

.header-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--primary);
    text-decoration: none;
}

.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 123, 62, 0.25);
}

.logo-icon img,
.logo-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Fallback for pages without the SVG logo */
.logo-text {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-menu a {
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

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

.nav-menu a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--primary);
    color: #fff !important;
    padding: 10px 25px !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.nav-cta::after {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 123, 62, 0.4), rgba(212, 175, 55, 0.2));
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 160, 78, 0.15), transparent 70%);
    transform: translateY(-50%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.hero h1 {
    color: #fff;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--accent-light);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 123, 62, 0.4);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: var(--dark);
    transform: translateY(-3px);
}

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

.btn-accent:hover {
    background: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    color: var(--dark);
}

/* ===== HERO STATS ===== */
.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-light);
    font-family: var(--font-heading);
}

.hero-stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===== PAGE HEADER (for inner pages) ===== */
.page-header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    color: #fff;
    padding: 140px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 123, 62, 0.3), rgba(212, 175, 55, 0.1));
}

.page-header h1 {
    color: #fff;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.breadcrumb {
    position: relative;
    z-index: 1;
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.7;
}

.breadcrumb a {
    color: var(--accent-light);
}

/* ===== CARDS GRID ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: #fff;
    border-radius: var(--radius);
    padding: 35px 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-dark);
}

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

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.card-icon.gold {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
}

.card-icon.red {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
}

.card h3 {
    color: var(--dark);
    margin-bottom: 10px;
}

.card p {
    color: var(--gray-text);
    font-size: 0.95rem;
}

.card-link {
    display: inline-block;
    margin-top: 15px;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

/* ===== SECTION TITLES ===== */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    margin-bottom: 15px;
}

.section-title p {
    color: var(--gray-text);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-title .divider {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 15px auto;
    border-radius: 2px;
}

.section-title .divider.gold {
    background: var(--accent);
}

/* ===== TABLES ===== */
.table-container {
    overflow-x: auto;
    margin: 30px 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

table th {
    background: var(--primary);
    color: #fff;
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

table th:first-child {
    border-top-left-radius: var(--radius);
}

table th:last-child {
    border-top-right-radius: var(--radius);
}

table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--gray-dark);
    font-size: 0.95rem;
}

table tr:hover {
    background: var(--gray);
}

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

/* ===== INFO BOXES ===== */
.info-box {
    background: linear-gradient(135deg, rgba(0, 123, 62, 0.05), rgba(212, 175, 55, 0.05));
    border-left: 4px solid var(--primary);
    padding: 25px 30px;
    border-radius: var(--radius-sm);
    margin: 30px 0;
}

.info-box.warning {
    background: rgba(206, 32, 41, 0.05);
    border-left-color: var(--red);
}

.info-box.gold {
    background: rgba(212, 175, 55, 0.08);
    border-left-color: var(--accent);
}

.info-box h4 {
    color: var(--primary);
    margin-bottom: 10px;
}

.info-box.warning h4 {
    color: var(--red);
}

.info-box.gold h4 {
    color: var(--accent);
}

/* ===== STEPS / TIMELINE ===== */
.steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 40px;
}

.step {
    display: flex;
    gap: 25px;
    padding-bottom: 35px;
    position: relative;
}

.step:last-child {
    padding-bottom: 0;
}

.step::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 50px;
    bottom: 0;
    width: 2px;
    background: var(--gray-dark);
}

.step:last-child::before {
    display: none;
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    font-family: var(--font-heading);
    z-index: 1;
}

.step-content {
    flex: 1;
    padding-top: 5px;
}

.step-content h4 {
    margin-bottom: 8px;
    color: var(--dark);
}

.step-content p {
    color: var(--gray-text);
    font-size: 0.95rem;
}

/* ===== CONTENT LAYOUT ===== */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-top: 40px;
}

.content-main {
    min-width: 0;
}

.content-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-nav {
    background: var(--gray);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 20px;
}

.sidebar-nav h4 {
    color: var(--dark);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav ul li {
    margin-bottom: 10px;
}

.sidebar-nav ul li a {
    display: block;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--gray-text);
    font-size: 0.9rem;
    transition: var(--transition);
}

.sidebar-nav ul li a:hover {
    background: var(--primary);
    color: #fff;
}

.sidebar-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius);
    padding: 30px;
    color: #fff;
    text-align: center;
}

.sidebar-cta h4 {
    color: #fff;
    margin-bottom: 10px;
}

.sidebar-cta p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 15px;
}

/* ===== FAQ ACCORDION ===== */
.faq-item {
    background: #fff;
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-dark);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--dark);
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question .icon {
    font-size: 1.5rem;
    transition: var(--transition);
}

.faq-item.active .faq-question .icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-inner {
    padding: 0 25px 20px;
    color: var(--gray-text);
    font-size: 0.95rem;
}

/* ===== BRAND SHOWCASE ===== */
.brand-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.brand-panel {
    background: #fff;
    border-radius: var(--radius);
    padding: 35px 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-dark);
    display: flex;
    flex-direction: column;
}

.brand-panel h4 {
    color: var(--dark);
    margin: 20px 0 10px;
}

.brand-panel p {
    color: var(--gray-text);
    font-size: 0.92rem;
    margin-bottom: 0;
}

.brand-logo-preview {
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--gray-dark);
    min-height: 190px;
}

.brand-logo-preview img {
    max-width: 100%;
    max-height: 150px;
    display: block;
}

.brand-panel-dark {
    background: var(--dark);
    border-color: var(--dark);
}

.brand-panel-dark h4 {
    color: #fff;
}

.brand-panel-dark p {
    color: #aaa;
}

.brand-panel-dark .brand-logo-preview {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.brand-panel-colors {
    grid-column: 1 / -1;
}

.palette {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
    margin: 15px 0 20px;
}

.swatch {
    text-align: center;
}

.swatch-color {
    height: 70px;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-dark);
}

.swatch span {
    display: block;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
}

.swatch code {
    font-size: 0.8rem;
    color: var(--gray-text);
    background: var(--gray);
    padding: 2px 8px;
    border-radius: 4px;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* ===== CONTACT FORM ===== */
.contact-form {
    max-width: 600px;
    margin: 40px auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid var(--gray-dark);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition);
    font-family: var(--font);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 62, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary);
}

.testimonial-text {
    font-style: italic;
    color: var(--gray-text);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
}

.testimonial-name {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

.testimonial-role {
    font-size: 0.85rem;
    color: var(--gray-text);
}

.stars {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    color: #ccc;
    padding: 60px 0 20px;
}

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

.footer-brand .logo {
    color: #fff;
    margin-bottom: 15px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

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

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

.footer-col ul li a {
    color: #aaa;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--accent-light);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #888;
}

/* ===== FLAG STRIP ===== */
.flag-strip {
    display: flex;
    height: 4px;
    width: 100%;
}

.flag-strip .stripe-red { background: var(--red); flex: 1; }
.flag-strip .stripe-green { background: var(--primary); flex: 1; }

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mt-20 { margin-top: 20px; }
.mb-40 { margin-bottom: 40px; }
.highlight { color: var(--primary); font-weight: 600; }

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .content-with-sidebar {
        grid-template-columns: 1fr;
    }
    
    .content-sidebar {
        position: static;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        gap: 15px;
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: 25px;
    }
    
    .hero-stat-number {
        font-size: 1.8rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    h3 { font-size: 1.3rem; }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
}
