/* --------------------------------------------------
   BREADCRUMB NAVIGATION
-------------------------------------------------- */
.breadcrumb {
    font-size: 0.9rem;
    padding: 15px 20px;
    background: #eef3ff;
    border-bottom: 1px solid #d6e0f5;
}

.breadcrumb a {
    color: #0055cc;
    text-decoration: none;
}

.breadcrumb span {
    color: #333;
}

/* --------------------------------------------------
   PAGE HEADER
-------------------------------------------------- */
.page-header {
    text-align: center;
    padding: 30px 20px 10px;
}

.page-header h1 {
    font-size: 2rem;
    color: #003366;
}

.page-header .page-subtitle {
    font-size: 1rem;
    color: #555;
    margin-top: 8px;
}

/* --------------------------------------------------
   MAIN LAYOUT (Sidebar + Content)
-------------------------------------------------- */
.layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* --------------------------------------------------
   SIDEBAR
-------------------------------------------------- */
.sidebar {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-left: 6px solid #0055cc;
}

.sidebar h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #003366;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 12px;
}

.sidebar a {
    text-decoration: none;
    color: #0055cc;
    font-size: 0.95rem;
}

.sidebar a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------
   MAIN CONTENT AREA
-------------------------------------------------- */
.content {
    padding: 10px;
}

/* --------------------------------------------------
   INTRO BUBBLE (Spacing Adjustment)
-------------------------------------------------- */
.content .intro-bubble {
    margin-bottom: 30px;
}

/* --------------------------------------------------
   CATEGORY GRID
-------------------------------------------------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

/* --------------------------------------------------
   CATEGORY CARDS
-------------------------------------------------- */
.category-card {
    display: block;
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 6px solid #003366;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.category-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #003366;
}

.category-card p {
    font-size: 0.95rem;
    color: #444;
}

/* --------------------------------------------------
   RESPONSIVE BEHAVIOR
-------------------------------------------------- */
@media (max-width: 900px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        margin-bottom: 20px;
    }
}

/* --------------------------------------------------
   DOOR OPEN ANIMATION (CLICK)
-------------------------------------------------- */

.door {
    transform-origin: left center;
    transition: transform 0.35s ease-out;
}

/* When the door is opening */
.door.opening {
    transform: rotateY(-22deg);
}

/* Adds depth so the rotation looks real */
.door-frame {
    perspective: 1000px;
}
