/* DoubleD Website - Responsive Stylesheet */

/* Tablet */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    .gnb-list {
        gap: 25px;
    }

    .grid-col-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-col-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Header */
    .header-inner {
        height: 60px;
    }

    .logo {
        font-size: 22px;
    }

    /* Mobile Menu */
    .user-menu-toggle-btn {
        display: block;
        order: 2;
    }

    .mobile-menu-btn {
        display: flex;
        order: 3;
    }

    .gnb {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 280px;
        height: calc(100vh - 60px);
        background: #fff;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        transition: left 0.3s;
        overflow-y: auto;
        z-index: 999;
        order: 1;
    }

    .gnb.active {
        left: 0;
    }

    .gnb-list {
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
    }

    .gnb-item {
        border-bottom: 1px solid #f0f0f0;
    }

    .gnb-item > a {
        padding: 15px 20px;
        font-size: 15px;
    }

    .sub-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        background: #f8f9fa;
        opacity: 1;
        visibility: visible;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
    }

    .gnb-item.open .sub-menu {
        max-height: 300px;
    }

    .sub-menu li {
        padding: 10px 20px 10px 40px;
    }

    /* User Menu */
    .user-menu {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 200px;
        height: auto;
        background: #fff;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s;
        padding: 20px;
        flex-direction: column;
        margin-left: 0;
        z-index: 998;
    }

    .user-menu.active {
        right: 0;
    }

    .user-menu-link {
        width: 100%;
        text-align: center;
    }

    /* Container */
    #container {
        margin-top: 60px;
        min-height: calc(100vh - 60px - 300px);
    }

    /* Page Title */
    .page-title {
        padding: 40px 0;
    }

    .page-title h2 {
        font-size: 28px;
    }

    .page-title p {
        font-size: 14px;
    }

    /* Content Section */
    .content-section {
        padding: 50px 0;
    }

    .section-title h3 {
        font-size: 24px;
    }

    .section-title p {
        font-size: 14px;
    }

    /* Grid */
    .grid {
        gap: 20px;
    }

    .grid-col-2,
    .grid-col-3,
    .grid-col-4 {
        grid-template-columns: 1fr;
    }

    /* Card */
    .card-img {
        height: 200px;
    }

    .card-body {
        padding: 20px;
    }

    .card-title {
        font-size: 18px;
    }

    /* Footer */
    #footer {
        padding: 30px 0 20px;
        margin-top: 50px;
    }

    .footer-top {
        flex-direction: column;
        gap: 20px;
        padding-bottom: 20px;
    }

    .footer-info {
        text-align: left;
    }

    .info-item {
        font-size: 13px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .logo {
        font-size: 20px;
    }

    .page-title h2 {
        font-size: 24px;
    }

    .section-title h3 {
        font-size: 20px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .card-img {
        height: 180px;
    }

    .pagination a,
    .pagination span {
        min-width: 35px;
        height: 35px;
        font-size: 13px;
    }
}
