/* sitemap.css - Revised Layout */

* { box-sizing: border-box; }

body {
    background-image: url(../images/grad/h5_grey1.jpg);
    font-family: Georgia, "Times New Roman", Times, serif;
    color: #000000;
    margin: 0;
    padding: 0;
}

#wrapper {
    max-width: 1150px;
    margin: 5px auto 20px;
    padding: 20px 30px;
    background: linear-gradient(45deg, rgba(215,234,250,1) 0%, rgba(25,68,138,1) 0%, rgba(34,115,204,1) 49%, rgba(98,163,223,1) 100%);
}

#start { 
	width: 80%;
	background-color: #ABCCE0;
	padding: 2%;
	margin: 2% auto 4%;
	border: 1px solid #444; 
	font-size: 1rem; 
	text-align: left; 
	line-height: 1.4; }

/* Top Title Bar */
.content1 {
    background: linear-gradient(180deg, rgba(215,234,250,1) 0%, rgba(241,241,241,1) 0%, rgba(169,169,169,1) 100%);
    margin: 10px 0 20px 0;
    padding: 18px;
    border: 2px inset #FFFFFF;
    text-align: center;
}

.font-banner {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 28px;
    font-weight: bold;
    color: #333333;
    letter-spacing: 0.4em;
}

/* --- LINK STYLES --- */

/* Home Page Link */
.link2-home {
    font-size: 13pt;
    font-family: 'Tahoma', 'Helvetica', sans-serif;
    color: #005364;
    text-decoration: none;
    font-weight: bold;
}
.link2-home:hover { color: #0000FF; text-decoration: underline; }

/* Standard Section Links */
.link2 {
    font-size: 12pt;
    font-family: 'Tahoma', 'Helvetica', sans-serif;
    color: #005364;
    text-decoration: none;
    font-weight: bold;
    display: block;
    margin-bottom: 2px;
    line-height: 1.2;
}
.link2:hover { color: #0000FF; text-decoration: underline; }

/* Language Links (Single Spaced) */
.link2-lang {
    font-size: 11pt;
    font-family: 'Tahoma', 'Helvetica', sans-serif;
    color: #005364;
    text-decoration: none;
    font-weight: bold;
}
.link2-lang:hover { color: #0000FF; text-decoration: underline; }

/* Small Links for Internet Resources */
.link2-small {
    font-size: 10pt;
    font-family: 'Tahoma', 'Helvetica', sans-serif;
    color: #005364;
    text-decoration: none;
    font-weight: bold;
}
.link2-small:hover { color: #0000FF; text-decoration: underline; }

/* Description Text (Dark Color for Visibility) */
.link-desc {
    font-size: 0.85rem;
    color: #333333; 
    display: block;
    margin-bottom: 12px;
    line-height: 1.3;
    padding-left: 5px;
}

/* Language Navigation Bar */
.lang-nav-container {
    max-width: 80%;
    margin: 0 auto 25px auto;
    text-align: center;
    line-height: 1.4;
    color: #E3E3E3; 
}
.lang-nav-container.bottom { margin: 30px auto; }

/* --- LAYOUT STRUCTURE --- */

/* Main Container: Now acts as a simple wrapper for the Left Side only */
.main-container {
    width: 100%;
    margin-bottom: 30px;
}

.leftside {
    width: 100%;
    background-image: url(../images/grad/v5_bluesite3.jpg);
    padding: 25px;
    border: 2px solid #FFFFFF;
    line-height: 1.55;
}

/* Excerpt Section Wrapper */
.excerpt-section-wrapper {
    width: 100%;
}

.excerpt-group {
    width: 100%;
    margin-bottom: 20px;
}
.excerpt-group.full-width {
    width: 100%;
}

.rightside {
    background-image: url(../images/grad/v5_bluesite4.jpg);
    border: 2px solid #FFFFFF;
    padding: 25px;
}

.section-title {
    text-align: center;
    font-size: 1.4rem;
    color: #003366;
    margin: 0 0 20px 0;
}

/* --- COLUMNS --- */

/* Language Columns: Centered & Closer */
.lang-columns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 5% 0% 5% 15%;
    width: 80%;
}
.lang-columns .col-left, .lang-columns .col-right {
    width: 30%;
}
.col-right {margin-left: 10%;}

/* Support Columns */
.support-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin: 12px auto 20px auto;
    width: 90%;
}

/* Excerpt Links */
.excerpt-list a.link3 {
    display: block;
    font-family: Geneva, Arial, Helvetica, sans-serif;
    font-size: 11pt;
    font-weight: bold;
    color: #315257;
    background: linear-gradient(90deg, rgba(215,234,250,1) 0%, rgba(176,206,230,1) 50%, rgba(140,178,209,1) 100%);
    padding: 9px 20px;
    margin: 5px 0;
    border: 1px solid #E0FEFB;
    text-decoration: none;
    transition: all 0.25s ease;
    text-align: left;
}

.excerpt-list a.link3:hover {
    color: #FFFFFF;
    text-decoration: underline;
    background: linear-gradient(90deg, rgba(140,178,209,1) 0%, rgba(176,206,230,1) 50%, rgba(215,234,250,1) 100%);
}

.excerpt-list.two-columns {
    column-count: 2;
    column-gap: 30px;
}

/* Divider */
.divider {
    height: 2px;
    background: rgba(255,255,255,0.6);
    margin: 30px 0 20px 0;
}

/* Back to Top */
.back-to-top {
    text-align: center;
    margin: 40px 0 20px 0;
}

.link1 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #E3E3E3;
    text-decoration: none;
    text-shadow: 1px 1px 0px #000;
}
a.link1:hover { color: #FFDB52; text-decoration: underline;}

/* --- RESPONSIVE --- */

@media (max-width: 768px) {
    #wrapper { padding: 15px 20px; }
    .font-banner { font-size: 24px; }
    .lang-nav-container { max-width: 95%; }
    
    /* Keep Language Columns Side-by-Side */
    .lang-columns { gap: 10px; }
    .lang-columns .col-left, .lang-columns .col-right {
        width: 48%;
        font-size: 0.85rem;
    }
    
    /* Keep Support Columns Side-by-Side */
    .support-columns {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        width: 100%;
    }
    .support-columns .link-desc {
        font-size: 0.75rem;
    }

    /* Excerpts: Single Column & Centered */
    .excerpt-list.two-columns {
        column-count: 1;
    }
    .excerpt-list a.link3 {
        text-align: center;
        width: 90%;
        margin: 8px auto;
    }
}

@media (max-width: 500px) {
    /* Stack Language Columns only on very small screens */
    .lang-columns {
        flex-direction: column;
        align-items: center; /* Ensures columns center perfectly when stacked */
        margin-left: 0; /* Reset desktop margin for mobile centering */
        width: 100%;
    }
    .lang-columns .col-left, .lang-columns .col-right {
        width: 100%;
        font-size: 1rem;
        margin-bottom: 15px;
        text-align: center;
        margin-left: 0; /* Ensure no offset */
    }
    
    /* Stack Support Columns */
    .support-columns {
        grid-template-columns: 1fr;
        width: 100%;
    }
    
    /* Mobile Alignment Tweaks for Support Section */
    .support-columns .col-left {
        /* Top group: Add left margin */
        margin-left: 11px; 
    }
    
    .support-columns .col-right {
        /* Bottom group: Reduce left margin (negative relative to standard flow if needed, or just small) */
        margin-left: 12px;
    }
}