/* CSS Variables */
:root {
    --primary-blue: #004591;
    --primary-blue-opaque: rgba(0, 69, 145, 0.91);
    --text-dark: #212529;
    --text-heading: #545e6f;
    --text-muted: #6b7483;
    --text-muted-light: #abb4c1;
    --text-light: #9fa8b9;
    --bg-white: #ffffff;
    --bg-gray: #e9ecf2;
    --bg-dark: #0c294b;
    --border-color: #d9dde6;
    --border-light: #e6e9ef;
    --font-serif: "PT Serif", serif;
    --font-sans: "PT Sans", sans-serif;
    --font-ui: "Nunito Sans", sans-serif;
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-serif);
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    border: none;
    cursor: pointer;
    background: transparent;
    font-family: inherit;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* Utility classes used by the reference markup */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.d-inline-block {
    display: inline-block;
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

/* Container */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

.container.lg {
    max-width: 1140px;
}

.container-fluid {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 36px;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    border-radius: 5px;
    transition: var(--transition);
    cursor: pointer;
    font-family: var(--font-ui);
    line-height: 1.2;
}

.btn-wide {
    padding: 18px 70px;
    min-width: 356px;
}

.btn-outline {
    border: 1px solid var(--text-muted);
    color: var(--text-heading);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

/* ===================== BANNER WRAPPER ===================== */
.banner-wrapper {
    position: relative;
    overflow: hidden;
}

/* Banner Section */
.banner {
    position: relative;
    height: 65vh;
    min-height: 420px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.18);
}

.banner-title {
    color: white;
    font-size: 42px;
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.14;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.35);
    font-family: var(--font-serif);
}

.banner .container {
    position: relative;
    z-index: 2;
}

.banner-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: block;
    pointer-events: none;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
}

.banner-content .container {
    position: relative;
    height: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

.banner-content .language-container,
.banner-content .search-form {
    pointer-events: auto;
}

.banner-content .language-container {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    height: 64px;
    padding-right: 0;
}

.banner-content .search {
    padding: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: var(--transition);
    cursor: pointer;
}

.banner-content .logo {
    width: 55px;
    height: auto;
    position: absolute;
    top: 110px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    z-index: 2;
    pointer-events: none;
}

.banner-content .text {
    color: #ffffff;
    font-size: 20px;
    line-height: 1.2;
    opacity: 0.95;
    position: absolute;
    top: 165px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    pointer-events: none;
    font-family: var(--font-serif);
}

.banner-content .search-form {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 260px;
    margin-top: 0;
    z-index: 4;
    pointer-events: auto;
}

.banner-content .search-form.active {
    display: flex;
}

.banner-content .search-form input {
    width: 100%;
    padding: 8px 35px 8px 12px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

.banner-content .search-form input:focus {
    outline: none;
}

.banner-content .search-form button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    padding: 4px;
}

.banner-content .search-form button img {
    width: 14px;
    height: 14px;
}

.banner-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
}

/* ===================== MAIN NAVIGATION ===================== */
.main-nav,
.toolbar {
    background: var(--primary-blue-opaque);
    position: relative;
    z-index: 5;
    margin-top: 0;
    box-shadow: none;
}

.main-nav .container,
.toolbar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 79px;
    position: relative;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 22px;
    padding: 0;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.nav-items,
.navbar-items {
    display: flex;
    justify-content: center;
}

.nav-items > li,
.navbar-items > li {
    position: relative;
}

.nav-items > li > a,
.navbar-items > li > a {
    display: block;
    padding: 29px 14px 30px;
    color: white;
    font-size: 17px;
    font-weight: 400;
    white-space: nowrap;
    transition: var(--transition);
    line-height: 1.17;
}

.nav-items > li > a:hover,
.nav-items > li:hover > a,
.navbar-items > li > a:hover,
.navbar-items > li:hover > a {
    background: rgba(255, 255, 255, 0.1);
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 550px;
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100;
    border-top: none;
    border-radius: 0;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
}

.dropdown-inner {
    display: flex;
    padding: 25px 30px;
    gap: 30px;
}

.dropdown-col {
    flex: 1;
    min-width: 150px;
}

.dropdown-col h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-blue);
    font-family: var(--font-ui);
}

.dropdown-col h4 a {
    color: var(--primary-blue);
}

.dropdown-col ul li {
    margin-bottom: 8px;
}

.dropdown-col ul li a {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.4;
    font-family: var(--font-ui);
}

.dropdown-col ul li a:hover {
    color: var(--primary-blue);
}

/* ===================== ACTIVITIES SECTION ===================== */
.activities-section {
    background: var(--bg-white);
    padding: 32px 0 70px;
}

.activities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: start;
}

.quick-links {
    padding-right: 30px;
}

/* Quick Links */
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 30px;
    row-gap: 64px;
}

.quick-link-item {
    display: flex;
    align-items: center;
    padding: 0;
    transition: var(--transition);
    background: transparent;
}

.quick-link-item:hover {
    opacity: 0.85;
}

.quick-link-icon {
    width: 91px;
    height: 91px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    border-radius: 0;
    background: transparent;
    border: none;
    flex-shrink: 0;
}

.quick-link-icon img {
    width: 91px;
    height: 91px;
    object-fit: contain;
    filter: none;
    opacity: 1;
}

.quick-link-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.quick-link-text .type {
    font-size: 14px;
    text-transform: uppercase;
    color: var(--text-muted-light);
    letter-spacing: 2.8px;
    margin-bottom: 6px;
    font-family: var(--font-sans);
}

.quick-link-text .title {
    font-size: 24px;
    font-weight: 400;
    color: var(--text-heading);
    line-height: 1.3;
    font-family: var(--font-serif);
}

/* Calendar Section */
.calendar-section {
    border-left: 1px solid var(--border-light);
    background: white;
    padding-left: 30px;
}

.date-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-light);
}

.date-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 23px 0 15px;
    background: #ffffff;
    border-right: 1px solid var(--border-light);
    transition: var(--transition);
    gap: 8px;
    color: var(--text-muted);
    font-family: var(--font-serif);
    cursor: pointer;
    text-decoration: none;
}

.date-tab:last-child {
    border-right: none;
}

.date-tab:hover {
    background: #ffffff;
}

.date-tab.active {
    background: white;
    color: var(--primary-blue);
    border-bottom: 2px solid var(--primary-blue);
}

.date-tab .day {
    font-size: 42px;
    font-weight: 400;
    line-height: 1.31;
}

.date-info {
    display: flex;
    flex-direction: column;
    font-size: 19px;
    line-height: 1.2;
}

.date-info .month {
    font-weight: 400;
}

.date-info .year {
    font-size: 14px;
    color: #666666;
}

.tab-contents {
    padding: 35px 0;
    min-height: 180px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    font-size: 30px;
    font-weight: 400;
    color: var(--text-heading);
    margin-bottom: 15px;
    font-family: var(--font-serif);
}

.calendar-link {
    padding: 0;
    text-align: center;
    border-top: none;
    margin-top: 10px;
}

.calendar-link a {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 15px;
    font-family: var(--font-ui);
    text-transform: uppercase;
    text-decoration: none;
}

.calendar-link a:hover {
    text-decoration: none;
    color: var(--primary-blue);
}

/* ===================== NEWS SECTION ===================== */
.news-section {
    background: var(--bg-gray);
    padding: 84px 0;
}

.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 400;
    color: var(--text-heading);
    letter-spacing: 1.26px;
    margin-bottom: 67px;
    font-family: var(--font-serif);
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 27px;
    max-width: 1140px;
    margin: 0 auto;
}

.news-column.main {
    display: flex;
}

.news-column.secondary {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.news-item {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    height: 350px;
}

.news-item.large {
    width: 100%;
    height: 728px;
}

.news-item a {
    display: block;
    height: 100%;
    text-decoration: none;
}

.news-item .news-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    inset: 0;
    z-index: 0;
}

.news-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 30px 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.35) 70%, transparent 100%);
    color: white;
    z-index: 1;
}

.news-overlay h3 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 10px;
    font-family: var(--font-serif);
    color: white;
}

.news-column.main .news-overlay h3 {
    font-size: 36px;
}

.news-date {
    font-size: 14px;
    opacity: 1;
    font-family: var(--font-serif);
    color: white;
}

.news-btn-container {
    text-align: center;
    margin-top: 40px;
}

/* ===================== QUESTION & LAWS SECTION ===================== */
.question-laws-section {
    background: var(--bg-white);
    padding: 70px 0;
}

.question-laws-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.box {
    border: none;
    padding: 68px 85px;
    background: var(--bg-gray);
}

.box-title {
    font-size: 28px;
    font-weight: 400;
    color: #1d3550;
    margin-bottom: 8px;
    font-family: var(--font-serif);
}

.box-subtitle {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 16px;
    font-family: var(--font-serif);
}

/* Deputy Form */
.deputy-form .form-group {
    margin-bottom: 12px;
}

.deputy-form input,
.deputy-form select,
.deputy-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 0;
    font-size: 16px;
    transition: var(--transition);
    background: white;
}

.deputy-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

.deputy-form input:focus,
.deputy-form select:focus,
.deputy-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.deputy-form .disclaimer {
    font-size: 14px;
    color: #707070;
    margin: 15px 0;
    line-height: 1.3;
    font-family: var(--font-serif);
}

.form-submit {
    text-align: center;
}

/* Laws List */
.laws-list li {
    padding: 7px 0;
    border-bottom: none;
}

.laws-list li:last-child {
    border-bottom: none;
}

.laws-list a {
    display: block;
}

.law-number {
    display: block;
    font-size: 17px;
    color: #828995;
    font-weight: 400;
    margin-bottom: 6px;
    font-family: var(--font-serif);
}

.law-title {
    font-size: 19px;
    color: #1d3550;
    line-height: 1.37;
    font-family: var(--font-serif);
}

.laws-list a:hover .law-title {
    color: var(--primary-blue);
}

.laws-btn-container {
    text-align: center;
    margin-top: 25px;
}

/* ===================== FOOTER ===================== */
.footer {
    background: var(--bg-dark);
    color: white;
    padding-top: 48px;
}

.footer-logo {
    text-align: center;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 146px;
    margin: 0 auto 0;
}

.footer-logo h3 {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-top: 10px;
    font-family: var(--font-serif);
}

.footer-social {
    text-align: center;
    margin-bottom: 35px;
}

.social-title {
    font-size: 13.5px;
    opacity: 1;
    margin-bottom: 10px;
    text-transform: none;
    font-family: var(--font-ui);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 0;
    background: transparent;
    transition: var(--transition);
}

.social-icon img {
    width: 35px;
    height: 35px;
    display: block;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding-bottom: 40px;
}

.footer-col h4 {
    font-size: 13.5px;
    font-weight: 400;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-family: var(--font-ui);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 15px;
    opacity: 1;
    color: #b5c2d1;
    display: flex;
    align-items: flex-start;
    line-height: 1.4;
    text-decoration: none;
    font-family: var(--font-ui);
}

.footer-col ul li a:hover {
    opacity: 1;
    color: #b5c2d1;
}

.documents-list img {
    width: 42px;
    height: 28px;
    margin-right: 20px;
    filter: none;
    opacity: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-list li a {
    flex-direction: column;
    align-items: flex-start;
}

.contact-title {
    font-size: 15px;
    opacity: 1;
    margin-bottom: 3px;
    color: #b5c2d1;
}

.contact-phone {
    font-size: 15px;
    font-weight: 400;
    opacity: 1;
    color: #b5c2d1;
}

.address-block {
    margin-bottom: 20px;
    font-size: 15px;
    opacity: 1;
    color: #b5c2d1;
    line-height: 1.6;
    font-family: var(--font-ui);
}

.address-block strong {
    font-weight: 400;
    opacity: 1;
}

.copyright {
    background: transparent;
    padding: 19px 0 21px;
    text-align: center;
}

.copyright p {
    font-size: 14px;
    opacity: 1;
    font-family: var(--font-ui);
}

/* ===================== RESPONSIVE STYLES ===================== */
@media (max-width: 1200px) {
    .container-fluid {
        padding: 0 25px;
    }
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .activities-grid {
        gap: 30px;
    }
}

@media (max-width: 900px) {
    .activities-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-column.main .news-item .news-image {
        height: 280px;
    }
    
    .question-laws-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .banner {
        height: 55vh;
        min-height: 320px;
    }
    
    .banner-title {
        font-size: 28px;
    }

    .banner-brand {
        top: 70px;
    }

    .banner-logo {
        width: 40px;
    }

    .banner-title-wrap {
        top: 170px;
    }
    
    /* Mobile Navigation */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-blue);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .navbar.active {
        max-height: 500px;
    }
    
    .nav-items,
    .navbar-items {
        flex-direction: column;
    }
    
    .nav-items > li > a,
    .navbar-items > li > a {
        padding: 14px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .dropdown {
        position: static;
        transform: none;
        min-width: auto;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        display: none;
        background: rgba(0, 0, 0, 0.15);
    }
    
    .has-dropdown.active .dropdown {
        display: block;
    }
    
    .dropdown-inner {
        flex-direction: column;
        padding: 15px 20px;
        gap: 20px;
    }
    
    .dropdown-col h4 {
        color: white;
        border-color: rgba(255, 255, 255, 0.3);
    }
    
    .dropdown-col h4 a {
        color: white;
    }
    
    .dropdown-col ul li a {
        color: rgba(255, 255, 255, 0.7);
    }
    
    .main-nav .container {
        justify-content: center;
        min-height: 50px;
    }
    
    /* Quick Links */
    .quick-links-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-link-item.full-width {
        grid-column: span 1;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-col ul li a {
        justify-content: center;
    }
    
    .contact-list li a {
        align-items: center;
    }
    
    .documents-list li a {
        justify-content: center;
    }
    
    .container-fluid {
        padding: 0 20px;
    }

    .btn-wide {
        min-width: 0;
        width: 100%;
        padding: 14px 20px;
    }
}

@media (max-width: 480px) {
    .date-tabs {
        flex-direction: column;
    }
    
    .date-tab {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .date-tab:last-child {
        border-bottom: none;
    }
    
    .banner-logo {
        width: 32px;
    }
    
    .banner-title {
        font-size: 22px;
    }

    .banner-title-wrap {
        top: 130px;
    }
    
    .box {
        padding: 20px;
    }
}

/* Animation styles */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Form error state */
.deputy-form input.error,
.deputy-form select.error,
.deputy-form textarea.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.15);
}
