@charset "utf-8";

/* --- 1. General & Reset --- */
body {
    font-family: "Calibri", sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    /* Flexbox Sticky Footer Setup */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Prevent horizontal scroll on mobile */
    overflow-x: hidden;
    /* Background Image from original design */
    background: #fff url(../images/bg.png) repeat center center;
    background-attachment: fixed;
}

h1 {
    font-size: 2rem;
    line-height: 1.3;
    margin: 0 0 20px 0;
    font-weight: 300;
    color: #2c3e50;
}

a {
    color: #0056b3;
    text-decoration: none;
}
a:hover {
    color: #003d82;
    text-decoration: underline;
}

/* --- 2. Main Wrapper --- */
#Wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* --- 3. Header & Logo --- */
#header {
    background-color: #f8f9fa;
    padding: 20px 0;
    border-bottom: 1px solid #dee2e6;
    text-align: center;
    width: 100%;
}

/*#title h2 {*/
/*    margin-top: 10px;*/
/*    color: #2c3e50;*/
/*    font-size: 1.5rem;*/
/*    padding: 0 10px;*/
/*}*/

#title h2 {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    color: #6190ca;
    text-shadow: 1px 1px 1px rgba(255,255,255,0.7);
    line-height: 140%;
    padding:5px 0px;
}

/* Logo Fix: Fluid width + Contain */
#logo {
    display: inline-block;
    background: url(../images/logo.png) no-repeat;
    background-size: contain;
    background-position: center;
    /* Original Dimensions */
    width: 289px;
    height: 80px;
    max-width: 100%; /* Prevents horizontal scroll on small phones */
}

/* --- 4. Navigation --- */
.navigation {
    margin-top: 15px;
    padding: 10px 0;
    background-color: #e9ecef;
    width: 100%;
    text-align: center;
}

.navigation a {
    margin: 5px 10px;
    display: inline-block;
    font-weight: bold;
    font-size: 1.1rem;
    color: #0056b3;
    border: 1px solid transparent; /* Keeps sizing consistent */
}

/* --- 5. Content Layout (Sidebar + Article) --- */
#Wrapper2 {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    gap: 30px;
    box-sizing: border-box;
}

/* table */
.table thead {
    background-color: #0056b3;
    color: white;
}
.table th {
    font-weight: 600;
}
.table a {
    text-decoration: none;
    color: #0056b3;
    font-weight: 600;
}
.table a:hover {
    text-decoration: underline;
}

/* Sidebar */
#sidebar-wrapper {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    background-color: #f1f3f5;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #dee2e6;
    box-sizing: border-box;
}

#sidebar-wrapper h2 {
    font-size: 1.4rem;
    color: #2c3e50;
    border-bottom: 2px solid #0056b3;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

#sidebar-wrapper h3 {
    font-size: 1.1rem;
    color: #495057;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

#sidebar-wrapper ul {
    list-style-type: none;
    padding-left: 0;
}

#sidebar-wrapper li {
    margin-bottom: 8px;
}

#sidebar-wrapper a {
    font-size: 0.95rem;
    display: block;
    padding: 5px 0;
    border-bottom: 1px dotted #ccc;
}

/* Main Content Area */
#contents {
    flex: 2;
    min-width: 300px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.intro-section {
    background-color: #fff;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 5px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.intro-section p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

/* Iframe */
iframe {
    width: 100%;
    border: none;
    min-height: 800px;
}

/* --- 6. Footer --- */
#copyrights {
    background-color: #343a40;
    color: #fff;
    padding: 30px 0;
    text-align: center;
    margin-top: auto;
    width: 100%;
    border-top: 3px solid #ccc;
}

#copyrights a {
    color: #adb5bd;
    margin: 0 5px;
}
#copyrights a:hover {
    color: #fff;
}

.social-icons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icons img {
    width: 40px;
    height: 40px;
    transition: transform 0.2s;
}
.social-icons img:hover {
    transform: scale(1.1);
}

/* --- 7. Mobile Responsiveness --- */
@media (max-width: 768px) {
    #Wrapper2 {
        flex-direction: column;
        padding: 10px;
    }

    #sidebar-wrapper {
        max-width: 100%;
        min-width: 0;
    }

    #contents {
        min-width: 0;
    }

    .navigation {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    #header {
        padding: 10px 0;
    }

    .intro-section h1 {
        font-size: 1.5rem;
    }

    /* Swap logo for smaller versions if desired, or let the fluid rule handle it */
    #logo {
        background: url(../images/logo2.png) no-repeat;
        background-size: contain;
        background-position: center;
        height: 55px;
        width: 200px;
    }
}

/* --- Mobile Table Adjustments (Max Width 576px) --- */
@media (max-width: 576px) {

    /* 1. Hide Author (3rd) and Keywords (4th) columns */
    .table th:nth-child(3),
    .table td:nth-child(3),
    .table th:nth-child(4),
    .table td:nth-child(4) {
        display: none;
    }

    /* 2. Reset widths for Date and Title so they fill the screen */
    /* We use !important to override the inline styles in your HTML */
    .table th:nth-child(1),
    .table td:nth-child(1) {
        width: 30% !important; /* Date column gets 30% width */
        white-space: nowrap;   /* Prevents date from wrapping awkwardly */
    }

    .table th:nth-child(2),
    .table td:nth-child(2) {
        width: 70% !important; /* Title column gets the rest */
    }

    #logo {
        background: url(../images/logo3.png) no-repeat;
        background-size: contain;
        background-position: center;
        height: 41px;
        width: 150px;
    }
}


