/* 
   DIAN Clone Stylesheet
   High Fidelity and Premium Visual Recreation
*/

/* DESIGN SYSTEM VARIABLES */
:root {
    --primary-green: #008A5E;
    --primary-green-hover: #00b37a;
    --dark-blue: #0F4C81;
    --light-blue-bg: #EBF5FA;
    --body-bg: #FDFDFD;
    --card-border: #E1E8ED;
    --text-dark: #1C1F22;
    --text-muted: #55585D;
    --white: #FFFFFF;
    --gov-blue: #004884;
}

/* GENERAL RESET & BASICS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Work Sans', sans-serif;
    background-color: var(--body-bg);
    color: var(--text-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

/* TOP GOV.CO BAR */
.gov-bar {
    background-color: #F2F6FA;
    /* Light blue-gray background */
    height: 30px;
    border-bottom: 1px solid #E1E8ED;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.gov-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: stretch;
    /* So the logo block fills the height */
    height: 100%;
    justify-content: flex-start;
}

.gov-logo {
    background-color: #3366cc;
    /* GOV.CO blue background */
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-right: 1.5px solid var(--white);
    /* White separator */
    height: 100%;
    transition: background-color 0.2s;
    position: relative;
    z-index: 1;
}

.gov-logo::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: -100vw;
    background-color: #3366cc;
    z-index: -1;
}

.gov-logo img {
    height: 14px;
    width: auto;
    display: block;
}

.gov-logo:hover {
    background-color: #003a6c;
}

.gov-logo:hover::before {
    background-color: #003a6c;
}

.gov-text {
    color: #004884;
    /* GOV.CO blue text */
    font-size: 11px;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    padding-left: 15px;
}

@media (max-width: 480px) {
    .gov-text {
        font-size: 9px;
        padding-left: 8px;
    }

    .gov-logo {
        padding: 0 10px;
    }
}

/* MAIN HEADER */
.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
}

.dian-logo-svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* HERO BANNER */
.hero-banner-wrapper {
    width: 100%;
    background-color: var(--white);
    padding: 5px 0 20px 0;
}

.hero-banner-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-banner-link {
    display: block;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero-banner-link:hover {
    opacity: 0.96;
    transform: translateY(-1px);
}

.hero-banner-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.header-accent-band {
    height: 6px;
    background-color: var(--primary-green);
    width: 100%;
}

/* CONTENT WRAPPER */
.content-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ROW 1: SIDEBAR & MAIN CARDS */
.main-layout-row {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* LEFT SIDEBAR */
.sidebar {
    width: 25%;
    flex-shrink: 0;
}

.sidebar-title-area {
    margin-bottom: 20px;
}

.sidebar-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
}

.sidebar-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-green);
}

.sidebar-menu {
    background-color: var(--primary-green);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 138, 94, 0.1);
}

.menu-block {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--white);
    transition: background-color 0.2s ease;
}

.menu-block:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.menu-block-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.menu-icon {
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.95;
}

.menu-block h3 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.menu-desc {
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.85);
}

.menu-list {
    list-style: none;
    padding-left: 0;
}

.menu-list li {
    margin-top: 10px;
    padding-left: 12px;
    position: relative;
    font-size: 13px;
    line-height: 1.3;
}

.menu-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--white);
    font-weight: bold;
}

.menu-list li a {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.2s;
    font-weight: 500;
}

.menu-list li a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* MAIN CONTENT COLUMN */
.main-content {
    width: 75%;
}

.main-title-area {
    margin-bottom: 25px;
}

.main-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
}

.main-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-green);
}

/* CARDS GRID */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background-color: var(--white);
    border: 1px solid var(--card-border);
    border-radius: 4px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.01);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-green);
    padding-bottom: 10px;
}

.card-icon {
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
}

.card-list {
    list-style: none;
}

.card-list li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 1.4;
}

.card-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 6px;
    height: 6px;
    background-color: var(--primary-green);
}

.card-list li a {
    color: var(--text-dark);
    font-weight: 500;
}

.card-list li a:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

.card-text {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-muted);
}

/* SECTION: TEMAS DE INTERÉS */
.temas-interes-box {
    background-color: var(--light-blue-bg);
    border-radius: 4px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
}

.temas-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.temas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.tema-card {
    display: flex;
    flex-direction: column;
}

.tema-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--primary-green);
    padding-bottom: 8px;
}

.tema-icon {
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tema-header h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

.tema-list {
    list-style: none;
}

.tema-list li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 6px;
    font-size: 12px;
    line-height: 1.4;
}

.tema-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 6px;
    height: 6px;
    background-color: var(--primary-green);
}

.tema-list li a {
    color: var(--text-dark);
    font-weight: 500;
}

.tema-list li a:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

.tema-text {
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-muted);
}

/* SECTION: SERVICIOS A LA CIUDADANÍA (FULL WIDTH) */
.servicios-ciudadania-section {
    margin-top: 50px;
    width: 100%;
}

.section-divider-line {
    height: 4px;
    background-color: var(--primary-green);
    margin-bottom: 25px;
    border-radius: 2px;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.servicios-cols-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.servicios-col {
    display: flex;
    flex-direction: column;
}

.col-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 18px;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 8px;
}

.servicios-list {
    list-style: none;
}

.servicios-list li {
    position: relative;
    padding-left: 14px;
    margin-bottom: 8px;
    font-size: 11.5px;
    line-height: 1.35;
}

.servicios-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 5px;
    height: 5px;
    background-color: var(--primary-green);
}

.servicios-list li a {
    color: #333333;
    font-weight: 500;
}

.servicios-list li a:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

/* Prevalidadores SUBSECTION */
.prevalidadores-subsection {
    margin-top: 40px;
    border-top: 1px solid var(--card-border);
    padding-top: 30px;
}

.subsection-main-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.prevalidadores-cols-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.prevalidadores-col {
    display: flex;
    flex-direction: column;
}

.sub-col-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

/* FOOTER */
.main-footer {
    background-color: var(--gov-blue);
    color: var(--white);
    padding: 50px 20px;
    margin-top: 80px;
    border-top: 4px solid var(--primary-green);
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 20% 40% 40%;
    gap: 40px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-logos {
    align-items: center;
    gap: 25px;
}

.footer-gov-logo {
    max-width: 150px;
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
}

.footer-co-logo {
    max-width: 80px;
    width: 100%;
    height: auto;
    display: block;
}

.footer-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-info h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 2px;
    background-color: var(--white);
}

.footer-info p {
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.85);
}

.footer-info p strong {
    color: var(--white);
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--white);
    color: var(--gov-blue);
    border-radius: 50%;
    transition: transform 0.2s, background-color 0.2s, color 0.2s;
}

.social-icons a:hover {
    transform: scale(1.15);
    background-color: #FFCD00;
    /* Colombia yellow accent on hover */
    color: var(--gov-blue);
}

.footer-links h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 2px;
    background-color: var(--white);
}

.contact-center-box {
    margin-bottom: 25px;
}

.contact-center-box h4,
.servicios-linea-box h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #FFCD00;
}

.contact-center-box p {
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.85);
}

.contact-center-box p strong {
    color: var(--white);
    font-size: 13px;
}

.footer-link-list {
    list-style: none;
}

.footer-link-list li {
    margin-bottom: 8px;
    font-size: 12px;
}

.footer-link-list li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

.footer-link-list li a:hover {
    color: #FFCD00;
}

/* RESPONSIVE DESIGN (MEDIA QUERIES) */

@media (max-width: 1024px) {
    .main-layout-row {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .main-content {
        width: 100%;
        margin-top: 30px;
    }

    .temas-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .servicios-cols-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .prevalidadores-cols-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-logos {
        align-items: center;
    }

    .footer-info h3::after,
    .footer-links h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .temas-grid {
        grid-template-columns: 1fr;
    }

    .servicios-cols-grid {
        grid-template-columns: 1fr;
    }

    .prevalidadores-cols-grid {
        grid-template-columns: 1fr;
    }
}