/* Azerbaijan e-Visa Website Styles */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* CSS Variables */
:root {
    --primary-color: #138273;
    --secondary-color: #db433a;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --white: #ffffff;
    --black: #000000;
    --gray: #6c757d;
    --light-gray: #f8f9fa;
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
}

h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

h5 {
    font-size: 1.1rem;
    font-weight: 500;
}

p {
    margin-bottom: 1rem;
    font-size: 16px;
    line-height: 1.7;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: 1px solid #fff;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    min-width: 150px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 1px solid #fff;
    box-shadow: var(--box-shadow);
}

.btn-primary:hover {
    background-color: #0f6b5e;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: var(--white);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
    border: 1px solid #fff;
    box-shadow: var(--box-shadow);
}

.btn-secondary:hover {
    background-color: #c23a31;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: var(--white);
}

/* Pulsing Application Button */
.btn-application {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    font-weight: 700;
    font-size: 18px;
    padding: 15px 35px;
    border: 1px solid #fff;
    border-radius: 50px;
    animation: pulse 2s infinite;
    box-shadow: 0 4px 15px rgba(19, 130, 115, 0.4);
}

.btn-application:hover {
    animation: none;
    transform: scale(1.05);
    color: var(--white);
    text-decoration: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(19, 130, 115, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(19, 130, 115, 0.7);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 4px 15px rgba(19, 130, 115, 0.4);
    }
}

/* Header Styles */
.top-bar {
    background-color: var(--light-gray);
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid #dee2e6;
}

.header {
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    max-width: 300px;
    height: auto;
    max-height: 120px;
}

/* Navigation */
.navbar {
    background-color: var(--primary-color);
    min-height: 60px;
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    padding: 15px 20px !important;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white) !important;
}

.navbar-toggler {
    border-color: var(--white);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
    overflow: hidden;
    z-index: 1;
    margin-bottom: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* Parallax Section */
.parallax {
    position: relative;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
    color: var(--white);
    text-align: center;
    overflow: hidden;
    z-index: 1;
    margin-top: 0;
    margin-bottom: 0;
    padding: 100px 0;
}

.parallax::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.parallax .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    min-height: 400px;
}

/* Sections */
.section {
    padding: 80px 0;
    position: relative;
    z-index: 3;
    clear: both;
    margin-bottom: 0;
}

.section + .parallax {
    margin-top: 0;
}

.parallax + .section {
    margin-top: 0;
}

.section-light {
    background-color: var(--light-gray);
}

.section-dark {
    background-color: var(--dark-color);
    color: var(--white);
}

.section-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: var(--primary-color);
    color: var(--white);
    border-bottom: none;
    font-weight: 600;
}

/* Icons */
.icon {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
    text-align: center;
}

.icon-small {
    font-size: 1.2em;
    margin-right: 0.5rem;
}

/* Breadcrumbs */
.breadcrumb {
    background-color: var(--light-gray);
    padding: 15px 0;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--gray);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer h5 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
    font-size: 14px;
}

/* Accordion */
.accordion-button {
    background-color: var(--light-gray);
    color: var(--dark-color);
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: var(--white);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(19, 130, 115, 0.25);
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table th {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    font-weight: 600;
}

.table td {
    border-color: #dee2e6;
    vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(19, 130, 115, 0.05);
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.shadow-custom {
    box-shadow: var(--box-shadow);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .btn-application {
        font-size: 16px;
        padding: 12px 25px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero {
        min-height: 400px;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .parallax {
        min-height: 300px;
    }
    
    .hero {
        min-height: 400px;
    }
}

/* Preload and Performance */
.img-lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.img-lazy.loaded {
    opacity: 1;
}

/* Accessibility */
.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;
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus,
a:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .btn-application {
        display: none;
    }
    
    .hero {
        background: none;
        color: var(--black);
    }
    
    .hero::before {
        display: none;
    }
}

/* Fix for overlapping elements and better layout */
/* Cookie notification positioning */
.cookie-notification {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-top: 2px solid var(--primary-color);
}

/* Ensure main content doesn't overlap with fixed elements */
main {
    position: relative;
    z-index: 1;
    /* padding-bottom: 100px;  */
}
/* Better spacing for sections */
.section + .section {
    margin-top: 0;
}

/* Improved card spacing and layout */
.card {
    margin-bottom: 2rem;
}

.card-body {
    padding: 2rem;
}

/* Better responsive behavior for requirement cards */
@media (max-width: 768px) {
    .card-body {
        padding: 1.5rem;
    }
    
    main {
        padding-bottom: 120px; /* More space on mobile */
    }
    
    .section {
        padding: 60px 0;
    }
}

/* Fix for alert boxes spacing */
.alert {
    margin-bottom: 1.5rem;
}

/* Better list spacing in cards */
.card .list-unstyled li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.card .list-unstyled li:last-child {
    border-bottom: none;
}

/* Improved icon alignment */
.list-unstyled .fas {
    width: 20px;
    text-align: center;
}

/* Better spacing for requirement sections */
.requirements-section {
    padding: 3rem 0;
}

/* Fix for image positioning in requirement cards */
.requirement-image {
    max-height: 400px;
    object-fit: cover;
    width: 100%;
}

/* Better button spacing */
.btn + .btn {
    margin-left: 0.5rem;
}

@media (max-width: 576px) {
    .btn + .btn {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .d-flex.flex-column.flex-sm-row .btn {
        width: 100%;
    }
}

/* Requirements page specific styles */
.requirement-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.requirement-item:last-child {
    border-bottom: none;
}

.document-card {
    transition: var(--transition);
    background-color: var(--white);
}

.document-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.eligibility-card {
    transition: var(--transition);
}

.eligibility-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.note-card {
    height: 100%;
}

/* Quick requirements overview */
.quick-requirements .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Better spacing for requirement lists */
.requirement-item .fas {
    font-size: 1.2rem;
    width: 20px;
}

/* Alert improvements */
.alert-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* Responsive improvements for requirements page */
@media (max-width: 768px) {
    .requirement-item {
        padding: 0.75rem 0;
    }
    
    .document-card,
    .eligibility-card,
    .note-card {
        margin-bottom: 1.5rem;
    }
    
    .quick-requirements .icon {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .document-card .d-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .document-card .fas {
        margin-bottom: 1rem;
        margin-right: 0 !important;
    }
}

/* Ensure proper z-index stacking */
.navbar {
    z-index: 1030;
}

.header {
    z-index: 1020;
}

.hero {
    z-index: 1;
}

/* Better spacing for breadcrumbs */
.breadcrumb-nav {
    padding: 1rem 0;
    background-color: var(--light-gray);
    border-bottom: 1px solid #dee2e6;
}

/* Improved focus states for accessibility */
.card:focus-within {
    box-shadow: 0 0 0 3px rgba(19, 130, 115, 0.25);
}

/* Better print styles for requirements page */
@media print {
    .cookie-notification {
        display: none;
    }
    
    main {
        padding-bottom: 0;
    }
    
    .card {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
}

.alert.alert-info a{
    color: #333 !important;
}
/* Cookie Notice Styles */
.cookie-notice {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    padding: 20px !important;
    margin-top: 30px !important;
}

.cookie-notice strong {
    color: white !important;
}

.cookie-notice a {
    color: #ffffff !important;
    text-decoration: underline !important;
}

.cookie-notice a:hover {
    color: #f0f0f0 !important;
    text-decoration: underline !important;
}