/* --- Notice Page Specific Styles --- */

/* Hero Overrides */
.notice-hero,
.cert-hero,
.guide-hero {
    background-image: url('/assets/hero_bg.png') !important;
}

/* Notice Grid Layout */
.notice-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.notice-grid-area {
    width: 100%;
}

.notice-list-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Premium Card Design for Notices */
.notice-card {
    background: var(--glass-bg, rgba(20, 20, 20, 0.7));
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
    border-radius: 30px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    text-decoration: none;
    color: inherit;
}

.notice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(230, 0, 18, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.notice-card:hover {
    transform: translateY(-10px);
    border-color: rgba(230, 0, 18, 0.4);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(230, 0, 18, 0.1);
}

.notice-card:hover::before {
    opacity: 1;
}

.notice-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.notice-card-category {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    background: var(--primary-red, #e60012);
    padding: 6px 16px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.notice-card-date {
    font-size: 0.9rem;
    color: var(--text-muted, #a0a0a0);
    font-weight: 500;
}

.notice-card-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.35;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
    word-break: keep-all;
}

.notice-card:hover .notice-card-title {
    color: var(--primary-red, #e60012);
}

.notice-card-summary {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
    height: 3.4rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.read-more-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: auto;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.notice-card:hover .read-more-btn {
    opacity: 1;
    transform: translateX(0);
}

/* Certification Image Styling within Notice Card */
.cert-img-wrap {
    margin: -40px -40px 30px -40px;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.cert-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.notice-card:hover .cert-img-wrap img {
    transform: scale(1.1) rotate(1deg);
}

.cert-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(20, 20, 20, 0.6) 0%, transparent 100%);
}

/* Sidebar Styling */
.notice-sidebar {
    position: sticky;
    top: 120px;
}

.sidebar-box {
    background: rgba(20, 20, 20, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 40px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.sidebar-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 25px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
}

.sidebar-title i {
    color: var(--primary-red, #e60012);
    font-size: 0.8rem;
}

.sidebar-filters {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-container {
    display: flex;
    align-items: center;
    position: relative;
    padding: 14px 20px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #a0a0a0;
    user-select: none;
    border-radius: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.radio-container:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transform: translateX(5px);
}

.radio-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    height: 16px;
    width: 16px;
    background-color: transparent;
    border: 2px solid #555;
    border-radius: 50%;
    margin-right: 15px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.radio-container input:checked~.checkmark {
    border-color: var(--primary-red, #e60012);
    background-color: var(--primary-red, #e60012);
    box-shadow: 0 0 15px rgba(230, 0, 18, 0.5);
}

.radio-container:has(input:checked) {
    background: rgba(230, 0, 18, 0.1);
    border-color: rgba(230, 0, 18, 0.3);
    color: #fff;
    font-weight: 600;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
}

.radio-container input:checked~.checkmark:after {
    display: block;
}

/* Search Box */
.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px 20px 15px 50px;
    color: white;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.search-box input:focus {
    border-color: var(--primary-red, #e60012);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 25px rgba(230, 0, 18, 0.2);
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    z-index: 2;
    transition: color 0.3s ease;
}

.search-box input:focus+.search-icon {
    color: var(--primary-red, #e60012);
}

/* Detail Page Specifics */
.notice-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px;
    position: relative;
    z-index: 1;
}

.notice-detail-header {
    margin-bottom: 80px;
    text-align: center;
}

.notice-detail-meta {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    color: var(--text-muted, #a0a0a0);
    font-size: 1.1rem;
    font-weight: 600;
}

.notice-detail-category {
    color: #fff;
    font-weight: 800;
    background: var(--primary-red, #e60012);
    padding: 6px 20px;
    border-radius: 100px;
    box-shadow: 0 4px 15px rgba(230, 0, 18, 0.4);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
}

.notice-title {
    font-size: 4rem;
    font-weight: 950;
    line-height: 1.2;
    color: #ffffff;
    word-break: keep-all;
    text-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    background: linear-gradient(to bottom, #fff 0%, #ccc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.notice-article {
    background: rgba(15, 15, 15, 0.4);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 100px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    line-height: 2.1;
    font-size: 1.25rem;
    color: #d1d1d1;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
}

.notice-article h2 {
    font-size: 2.4rem;
    font-weight: 900;
    color: #fff;
    margin: 80px 0 40px;
    display: flex;
    align-items: center;
}

.notice-article h2::before {
    content: '';
    width: 12px;
    height: 1.2em;
    background: var(--primary-red, #e60012);
    margin-right: 20px;
    border-radius: 100px;
}

.notice-article p {
    margin-bottom: 40px;
}

.notice-article img {
    max-width: 100%;
    height: auto;
    border-radius: 30px;
    margin: 60px 0;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

/* Responsive */
@media (max-width: 1100px) {
    .notice-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .notice-sidebar {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .notice-list-container {
        grid-template-columns: 1fr;
    }

    .notice-title {
        font-size: 2.5rem;
    }

    .notice-article {
        padding: 50px 25px;
        font-size: 1.15rem;
    }
}