/* Google Font Import */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&display=swap');

/* General Style Reset & Modern Theme */
body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #f4f7f9;
    color: #333;
    margin: 0;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; display: block; }

.topWrap, .contentsWrap, .bottomWarp { width: 100%; margin: 0 auto; }
.topWrap .top, .contentsWrap .contentsBox, .bottomWarp .bottom { max-width: 960px; margin: 0 auto; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }

/* Header & Navigation */
.topWrap .top { position: relative; padding: 0 15px; box-shadow: none; }

header .inner {
    position: absolute;
    top: 5px;
    right: 15px;
    z-index: 10;
}

header .logo { padding: 15px 0; }
header .logo a img { width: 220px; }

#hd_qnb { list-style: none; padding: 0; margin: 0; text-align: right; }
#hd_qnb li { display: inline-block; margin-left: 15px; font-size: 0.9em; color: #6c757d; }
#hd_qnb li a { color: #6c757d; text-decoration: none; }
#hd_qnb li a:hover { color: #007bff; }

.menu { position: relative; display: flex; list-style: none; padding: 0; margin: 0; background-color: #fff; border-top: 1px solid #e9ecef; border-bottom: 1px solid #e9ecef; }
.menu .has-submenu { position: relative; }
.menu a { font-weight: 500; color: #495057; display: block; padding: 15px 20px; text-decoration: none; border-bottom: 3px solid transparent; transition: all 0.3s ease; }
.menu a:hover, .menu li:hover > a { color: #007bff; border-bottom-color: #007bff; }
.submenu { display: none; position: absolute; top: 100%; left: 0; background-color: #fff; min-width: 180px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); z-index: 10; border-radius: 0 0 5px 5px; }
.has-submenu:hover > .submenu { display: block; }
.submenu a { border-bottom: 0; padding: 12px 15px; }
.submenu a:hover { background-color: #f8f9fa; }

/* Main Layout */
.contentsBox {
    padding: 20px;
    display: flex;
    flex-wrap: nowrap;
    background-color: transparent;
    box-shadow: none;
}
.navigation {
    width: 240px;
    flex-shrink: 0;
    order: 2;
}
.contents {
    flex-grow: 1;
    min-width: 0;
    order: 1;
    margin-right: 20px;
}

/* Sidebar sections */
.navigation section, .latest { background: #fff; padding: 15px; border-radius: 8px; margin-bottom: 20px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.navigation .aLatest { background: linear-gradient(45deg, #007bff, #0056b3); color: #fff; }
.navigation .aLatest a { color: #fff; }


/* --- Unique Review Card Design --- */
.review-card-link { text-decoration: none; color: inherit; display: block; }
.review-card {
    display: flex;
    align-items: flex-start; /* Align image and text block to the top */
    position: relative;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px;
    min-height: 140px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left-width: 5px;
}
.review-card-link:hover .review-card {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* Unique border color for each rank */
.box-filemaru { border-left-color: #F8B12C; }
.box-geniefile { border-left-color: #58C9B9; }
.box-todisk { border-left-color: #D65A5A; }
.box-filestar { border-left-color: #4A90E2; }
.box-ssadafile { border-left-color: #8B57D5; }
.box-filemong { border-left-color: #F5A623; }
.box-filesun { border-left-color: #27AE60; }
.box-smartfile { border-left-color: #BD10E0; }
.box-filebogo { border-left-color: #4990E2; }
.box-applefile { border-left-color: #B8E986; }

.review-card .logo-area { width: 140px; margin-right: 20px; text-align: center; flex-shrink: 0; }
.review-card .logo-area img { max-width: 100%; border-radius: 5px; }
.review-card .info-area { flex-grow: 1; align-self: stretch; }
.review-card .info-header { font-size: 1.2em; margin-bottom: 10px; display: flex; align-items: center; }
.review-card .info-header h2 { font-size: 1em; margin: 0; }
.review-card .info-header img { margin-left: 8px; height: 10px; } /* Final icon size reduction */

.review-card .pros-cons { display: flex; font-size: 0.9em; }
.review-card .pros-cons > div { width: 50%; padding: 0 8px; }
.review-card .pros-cons h4 { margin: 0 0 5px; font-size: 1.0em; }
.review-card .pros-cons ul { margin: 0; padding-left: 15px; }
.review-card .pros-cons .pros h4 { color: #007bff; }
.review-card .pros-cons .cons h4 { color: #dc3545; }

.review-card .card-footer { position: absolute; bottom: 10px; right: 15px; }
.go-button {
    background: #007bff;
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}
.review-card-link:hover .go-button { background-color: #0056b3; }

/* FAQ & Collapsible sections */
.faq-section details, .additional-info details {
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.faq-section summary, .additional-info summary {
    padding: 15px;
    font-weight: 500;
    font-size: 1.1em;
    cursor: pointer;
    outline: none;
}
.faq-section .faq-content, .additional-info .faq-content {
    padding: 0 15px 15px;
    border-top: 1px solid #e9ecef;
    color: #555;
}

/* Footer */
.bottomWarp { background: #343a40; color: #adb5bd; padding: 30px 15px; }
.bottomWarp .bottom { background: transparent; box-shadow: none; text-align: center; }
.bottomWarp a { color: #ced4da; }
.bottomWarp a:hover { color: #fff; }

/* --- Responsive --- */
@media (max-width: 920px) {
    .contentsBox { 
        flex-direction: column;
    }
    .navigation { 
        width: 100%; 
        order: 2; 
        margin-right: 0; 
        margin-bottom: 20px; 
    } 
    .contents { 
        width: 100%; 
        order: 1; 
        margin-right: 0; 
    }
    .topWrap .top, .contentsWrap .contentsBox { width: auto; }
}

@media (max-width: 600px) {
    /* Reorder header elements for mobile */
    header {
        display: flex;
        flex-direction: column;
    }
    header .inner { /* Date/visitors info */
        order: 1; /* Move to top */
        position: static;
        text-align: center;
        margin: 0;
        padding: 5px 0;
    }
    header .logo {
        order: 2; /* Logo below */
        margin: 0; /* Left-align logo */
        padding: 10px 0;
    }

    /* Adjust review card for mobile */
    .review-card {
        flex-direction: row;
        align-items: center;
        padding: 10px; /* Reduce padding */
    }
    .review-card .logo-area {
        width: 120px; /* Slightly larger image */
        margin: 0 15px 0 0;
    }
    .review-card .info-area {
        flex: 1;
        align-self: auto;
    }
     .review-card .info-header {
        margin-bottom: 5px;
    }
    .review-card .pros-cons {
        flex-direction: column;
    }
    .review-card .pros-cons > div {
        width: 100%;
        margin-bottom: 5px;
    }
    .review-card .card-footer {
        position: absolute;
        bottom: 8px;
        right: 8px;
    }
    .go-button {
        padding: 4px 10px; /* Shrink button */
        font-size: 0.8em;
    }
    
    /* Make menu horizontally scrollable */
    .menu {
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .menu li {
        display: inline-block;
    }
}

@media (max-width: 500px) {
    .navigation { /* Hide sidebar on small mobile */
        display: none;
    }
    .review-card .card-footer {
        bottom: 12px;
    }
}
