/* ======================================
   REPÚBLICA SOCIALISTA DE OBRISTÁN
   Embajada Oficial - Estilos Compartidos
   ====================================== */

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

body {
    font-family: 'Times New Roman', serif;
    background: #ffffff;
    color: #333333;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Ensure all text is readable */
p, td, th, li, span, div {
    color: inherit;
}

strong, b {
    color: #8B0000;
}

/* ======================================
   HEADER STYLES
   ====================================== */

.header {
    background: #cc0000;
    border-bottom: 4px solid #8B0000;
    border-top: 3px solid #FFD700;
    padding: 20px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('photo/ob1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.8;
    z-index: -2;
    transition: all 1s ease-in-out;
}

.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: -1;
}

.emblem {
    width: 80px;
    height: 80px;
    background: #FFD700;
    border: 3px solid #8B0000;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    color: #8B0000;
    position: relative;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.country-name {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.embassy-title {
    font-size: 18px;
    color: #FFD700;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.cyrillic-text {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 12px;
    opacity: 0.9;
    color: #FFD700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

/* ======================================
   NAVIGATION STYLES
   ====================================== */

.main-nav {
    background: #8B0000;
    border-bottom: 3px solid #cc0000;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.main-nav li {
    margin: 0;
}

.nav-link {
    display: block;
    padding: 15px 25px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-link:hover {
    background: #cc0000;
    border-bottom-color: #FFD700;
}

.nav-link.active {
    background: #cc0000;
    border-bottom-color: #FFD700;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

/* ======================================
   MAIN CONTENT STYLES
   ====================================== */

.main-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.page-title {
    color: #8B0000;
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
    letter-spacing: 1px;
    border-bottom: 2px solid #cc0000;
    padding-bottom: 15px;
    font-weight: bold;
}

/* ======================================
   COMMON SECTION STYLES
   ====================================== */

.section {
    background: #f8f8f8;
    border-left: 4px solid #cc0000;
    padding: 30px;
    margin-bottom: 40px;
    border-radius: 0 8px 8px 0;
    position: relative;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.section h2 {
    color: #8B0000;
    font-size: 24px;
    margin-bottom: 20px;
    border-bottom: 2px solid #cc0000;
    padding-bottom: 10px;
    font-weight: bold;
}

.section h3 {
    color: #8B0000;
    font-size: 18px;
    margin: 20px 0 10px 0;
}

.section p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: #333333;
}

/* ======================================
   CARD STYLES
   ====================================== */

.card {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #d0d0d0;
    border-left: 4px solid #cc0000;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.card:hover {
    background: #f8f8f8;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border-left-color: #8B0000;
}

.card h3 {
    color: #8B0000;
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: bold;
}

.card p {
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.9;
    color: #333333;
}

.card a {
    color: #8B0000;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

.card a:hover {
    color: #8B0000;
    text-decoration: underline;
}

/* ======================================
   FORM AND INPUT STYLES
   ====================================== */

.form-section {
    background: #f8f8f8;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
    border: 1px solid #d0d0d0;
}

.form-section h3 {
    color: #8B0000;
    margin-bottom: 20px;
}

/* ======================================
   BUTTON STYLES
   ====================================== */

.btn-primary {
    background: #cc0000;
    color: #ffffff;
    border: 2px solid #8B0000;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: #8B0000;
    border: 2px solid #660000;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    color: #ffffff;
}

.btn-secondary {
    background: #ffffff;
    color: #8B0000;
    border: 1px solid #8B0000;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: #f0f0f0;
    border-color: #8B0000;
    color: #8B0000;
}

/* ======================================
   GRID LAYOUTS
   ====================================== */

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

/* ======================================
   FOOTER STYLES
   ====================================== */

.footer {
    background: #8B0000;
    text-align: center;
    padding: 25px;
    margin-top: 60px;
    border-top: 3px solid #cc0000;
    color: #ffffff;
}

.cyrillic-footer {
    font-size: 12px;
    opacity: 0.6;
    margin-top: 10px;
    font-style: italic;
}

/* ======================================
   UTILITY CLASSES
   ====================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.color-primary { color: #8B0000; }
.color-secondary { color: #cc0000; }
.color-accent { color: #FFD700; }

.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

/* ======================================
   RESPONSIVE DESIGN
   ====================================== */

@media (max-width: 768px) {
    .country-name {
        font-size: 24px;
    }
    
    .cyrillic-text {
        position: static;
        margin-top: 10px;
        text-align: center;
    }
    
    .emblem {
        width: 60px;
        height: 60px;
        font-size: 24px;
        border: 2px solid #8B0000;
    }
    
    .embassy-title {
        font-size: 16px;
    }

    .main-nav ul {
        flex-direction: column;
    }
    
    .nav-link {
        padding: 12px 20px;
        font-size: 13px;
        text-align: center;
    }

    .main-content {
        max-width: 100%;
        margin: 20px auto;
        padding: 0 15px;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 28px;
    }

    .section {
        padding: 20px;
        margin-bottom: 30px;
    }

    .card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .country-name {
        font-size: 20px;
        letter-spacing: 1px;
    }
    
    .embassy-title {
        font-size: 14px;
    }

    .page-title {
        font-size: 24px;
    }

    .section h2 {
        font-size: 20px;
    }

    .btn-primary {
        padding: 12px 30px;
        font-size: 16px;
    }
}
