/* ფონტის დაყენება მთელი საიტისთვის */
body {
    font-family: 'Noto Sans Georgian', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #FFFFFF; /* Crisp White background */
}

/* Royal Blue - Primary Brand Color */
.bg-eu-blue {
    background-color: #2B6BE6 !important;
}

.text-eu-blue {
    color: #2B6BE6 !important;
}

.btn-eu-blue {
    background-color: #2B6BE6;
    color: white;
    border: none;
    transition: all 0.3s ease;
    will-change: transform;
}

.btn-eu-blue:hover {
    background-color: #2056C8;
    color: white;
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Hero სექციის ფონი */
.hero-section {
    background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), url('https://upload.wikimedia.org/wikipedia/commons/thumb/b/b4/Flag_of_the_European_Union.svg/1200px-Flag_of_the_European_Union.svg.png');
    background-size: cover;
    background-position: center;
}

/* ბარათების ჰოვერ ეფექტი */
.card {
    transition: all 0.3s ease;
    border: 1px solid #E8EEF7; /* Light Azure for subtle borders */
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1.5rem rgba(43, 107, 230, 0.15);
    border-color: #A6C1E8; /* Light Azure on hover */
}

.hover-effect {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(43, 107, 230, 0.2)!important;
}

/* აიკონების ფონი ბარათებში */
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    font-size: 2rem;
}

/* ნავიგაციის ლინკები */
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,0.85);
}

.navbar-dark .navbar-nav .nav-link:hover, .navbar-dark .navbar-nav .nav-link.active {
    color: #FFD700; /* Gold - Success/Action Color */
    font-weight: bold;
}
/* პროგრეს ბარების სტილი */
.progress {
    border-radius: 1rem;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Hyperlinks use Royal Blue */
a {
    color: #2B6BE6;
    text-decoration: none;
}

a:hover {
    color: #2056C8;
    text-decoration: underline;
}

/* Accent colors - Slate Grey and Light Azure */
/* Slate Grey for subtle backgrounds (optional), Light Azure for borders and hover effects */
.bg-accent-grey {
    background-color: #708090; /* Slate Grey */
}

.bg-accent-azure {
    background-color: #E8EEF7; /* Light Azure */
}

.border-accent-azure {
    border-color: #A6C1E8 !important; /* Light Azure for borders */
}

/* Gold Success/Action Color */
.text-gold {
    color: #FFD700;
}

.bg-gold {
    background-color: #FFD700;
}

.btn-gold {
    background-color: #FFD700;
    color: #333;
    border: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background-color: #FFC700;
    color: #333;
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* Override Bootstrap warning colors to use Gold */
.text-warning {
    color: #FFD700 !important;
}

.bg-warning {
    background-color: #FFD700 !important;
}

.badge.bg-warning {
    background-color: #FFD700 !important;
    color: #333 !important;
}

/* Override Bootstrap primary colors to use Royal Blue */
.border-primary {
    border-color: #2B6BE6 !important;
}

.bg-primary {
    background-color: #2B6BE6 !important;
}

.text-primary {
    color: #2B6BE6 !important;
}

.btn-primary {
    background-color: #2B6BE6 !important;
    border-color: #2B6BE6 !important;
}

.btn-primary:hover {
    background-color: #2056C8 !important;
    border-color: #2056C8 !important;
}

.btn-outline-primary {
    color: #2B6BE6 !important;
    border-color: #2B6BE6 !important;
}

.btn-outline-primary:hover {
    background-color: #2B6BE6 !important;
    border-color: #2B6BE6 !important;
    color: white !important;
}

/* Button hover effects for generic buttons */
.btn:not(.btn-eu-blue):not(.btn-gold) {
    transition: all 0.3s ease;
    will-change: transform;
}

.btn:not(.btn-eu-blue):not(.btn-gold):hover {
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* White button styles for better visibility */
.btn-white {
    background-color: #ffffff;
    border: 2px solid #ffffff;
    font-weight: bold;
    will-change: transform;
}

.btn-white:hover {
    background-color: #f8f9fa;
    border-color: #f8f9fa;
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Social media icons styling */
footer a {
    transition: all 0.3s ease;
    opacity: 0.85;
}

footer a:hover {
    opacity: 1;
    transform: translateY(-3px);
}

/* Image styling for visual elements */
img.img-fluid {
    transition: transform 0.3s ease;
}

img.img-fluid:hover {
    transform: scale(1.02);
}

/* Enhanced icon styles for headers */
.header-icon {
    transition: all 0.3s ease;
}

.header-icon:hover {
    transform: scale(1.1);
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header, section {
    animation: fadeIn 0.6s ease-out;
}

/* Timeline-ის სტილი და column stacking for mobile and tablets */
@media (max-width: 991px) {
    .border-start {
        border-left: 5px solid !important;
        border-right: none !important;
        border-top: none !important;
        border-bottom: none !important;
    }
    
    /* Ensure proper column stacking on mobile */
    .col-lg-6, .col-lg-8 {
        margin-bottom: 1.5rem;
    }
    
    /* Ensure cards are full width on mobile */
    .row .col-lg-6:last-child {
        margin-bottom: 0;
    }
}

/* Light backgrounds for sections */
.bg-light {
    background-color: #F8F9FA !important; /* Subtle light grey for section breaks */
}

/* Mobile-first responsive styles for all devices */

/* Extra small devices (phones, 320px to 480px) */
@media (max-width: 480px) {
    /* Typography adjustments */
    .display-4 {
        font-size: 1.75rem !important;
        line-height: 1.3;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h4 {
        font-size: 1.1rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Padding and spacing adjustments */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card {
        padding: 1rem !important;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .mt-5, .my-5 {
        margin-top: 2rem !important;
    }
    
    .mb-5, .my-5 {
        margin-bottom: 2rem !important;
    }
    
    /* Card and SVG adjustments */
    .card svg {
        width: 80px !important;
        height: 80px !important;
    }
    
    /* Button adjustments */
    .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    /* Badge adjustments */
    .badge {
        font-size: 0.7rem;
    }
    
    /* Navbar adjustments */
    .navbar {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
}

/* Small to medium devices (481px to 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .display-4 {
        font-size: 2rem !important;
        line-height: 1.3;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .card {
        padding: 1.5rem !important;
    }
    
    .card svg {
        width: 100px !important;
        height: 100px !important;
    }
}

/* Medium devices (tablets, 768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .card svg {
        width: 120px !important;
        height: 120px !important;
    }
}

/* Responsive video container for embedded videos (Vimeo, YouTube, etc.) */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Custom aspect ratios for video wrappers */
.video-wrapper.aspect-4-3 {
    padding-bottom: 75%; /* 4:3 aspect ratio */
}

.video-wrapper.aspect-9-16 {
    padding-bottom: 177.78%; /* 9:16 aspect ratio (vertical) */
}

.video-wrapper.aspect-custom {
    padding-bottom: 54.46%; /* Custom aspect ratio */
}

/* Quiz Section Styles */
.quiz-container {
    background-color: #F8F9FA;
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
    border: 2px solid #E8EEF7;
}

.quiz-question {
    background-color: #FFFFFF;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #2B6BE6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.quiz-question h5 {
    color: #2B6BE6;
    font-weight: bold;
    margin-bottom: 1rem;
}

.quiz-option {
    background-color: #FFFFFF;
    border: 2px solid #E8EEF7;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
}

.quiz-option:hover {
    background-color: #E8EEF7;
    border-color: #2B6BE6;
    transform: translateX(5px);
}

.quiz-option input[type="radio"] {
    margin-right: 0.75rem;
    cursor: pointer;
}

.quiz-option.selected {
    background-color: #E8EEF7;
    border-color: #2B6BE6;
}

.quiz-option.correct {
    background-color: #d4edda;
    border-color: #28a745;
}

.quiz-option.incorrect {
    background-color: #f8d7da;
    border-color: #dc3545;
}

.quiz-submit-btn {
    background-color: #2B6BE6;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-submit-btn:hover {
    background-color: #2056C8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(43, 107, 230, 0.3);
}

.quiz-submit-btn:disabled {
    background-color: #708090;
    cursor: not-allowed;
    transform: none;
}

.quiz-result {
    background-color: #FFFFFF;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 2px solid #E8EEF7;
    display: none;
}

.quiz-result.show {
    display: block;
}

.quiz-result.success {
    background-color: #d4edda;
    border-color: #28a745;
}

.quiz-result.warning {
    background-color: #fff3cd;
    border-color: #ffc107;
}

.quiz-result.danger {
    background-color: #f8d7da;
    border-color: #dc3545;
}

.quiz-score {
    font-size: 2rem;
    font-weight: bold;
    color: #2B6BE6;
    margin-bottom: 0.5rem;
}