/* ============================================================
   MODERN GLASS-UI DESIGN FOR GROUPS PAGE
   Inspired by navigation-card theme
============================================================ */

/* ============================================================
   PAGE CONTAINER - Glass Background
============================================================ */

#page-content {
    display: flow-root;
    min-height: 100vh;
  /* //  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f8fafc 100%); */
    padding: 2rem 0;
}

#page-content > .container {
    max-width: 1200px;
}

/* ============================================================
   BREADCRUMB - Modern Glass Style
============================================================ */

#page-content .breadcrumb {
    /* background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.1); */
    margin-bottom: 2rem;
}

#page-content .breadcrumb-item a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

#page-content .breadcrumb-item a:hover {
    color: #38bdf8;
}

#page-content .breadcrumb-item.active {
    color: #0ea5e9;
    font-weight: 600;
}

#page-content .breadcrumb-item + .breadcrumb-item::before {
    color: #38bdf8;
}

/* ============================================================
   FEED TILES SECTION - Compact Glass Cards
============================================================ */

.view-content.d-feed__body {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 0;
}

.o-tile.tile--feed-items {
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(56, 189, 248, 0.25);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.12);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.o-tile.tile--feed-items::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
    opacity: 1;
    transition: all 0.3s ease;
}

.o-tile.tile--feed-items:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(56, 189, 248, 0.25);
    border-color: rgba(56, 189, 248, 0.5);
    background: rgba(255, 255, 255, 1);
}

.o-tile.tile--feed-items:hover::before {
    height: 5px;
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.4);
}

.o-tile--nid-3002::before {
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
}

.o-tile--nid-3004::before {
    background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
}

.o-tile--nid-3003::before {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

.o-tile__wrapper {
    padding: 1.25rem 1.5rem;
    min-height: 85px;
    display: flex;
    align-items: center;
}

.o-tile__body {
    width: 100%;
}

.o-tile__title {
    margin: 0;
}

.o-tile__title a {
    color: #0f172a !important;
    font-weight: 600 !important;
    text-decoration: none;
    font-size: 1 !important;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    line-height: 1.5;
}

.o-tile__title a::before {
    content: '●';
    font-size: 0.6rem;
    margin-right: 0.625rem;
    color: #38bdf8;
    transition: all 0.3s ease;
}

.o-tile.tile--feed-items:hover .o-tile__title a::before {
    transform: scale(1.4);
    color: #0ea5e9;
}

.o-tile__title a:hover {
    color: #0ea5e9 !important;
}

/* ============================================================
   MAIN CONTENT CARD - Glass Container
============================================================ */

#page-main {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(56, 189, 248, 0.15);
    margin-bottom: 2rem;
}

/* ============================================================
   SECTION HEADERS - Modern Typography
============================================================ */

#about h2 {
    color: #0f172a;
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(56, 189, 248, 0.2);
    position: relative;
}

#about h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
}

#about > p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 2rem;
}

/* Group Headers with Glass Effect */
#about h2[style*="22px"] {
    font-size: 1.5rem !important;
    color: #0f172a;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    padding-bottom: 1rem;
    border: none;
    background: rgba(56, 189, 248, 0.05);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    border-left: 4px solid #38bdf8;
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.1);
}

/* ============================================================
   ACCORDION ITEMS - Glass Cards with Smooth Transitions
============================================================ */

.accordion {
    margin-bottom: 2rem;
}

.accordion-item {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.08);
}

.accordion-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.3);
}

.accordion-item.ml-3 {
    margin-left: 1.5rem !important;
}

.accordion-item button {
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    padding: 1.25rem 1.5rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.0625rem;
    font-weight: 600;
    color: #0f172a;
    transition: all 0.3s ease;
    position: relative;
}

.accordion-item button::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.accordion-item button:hover {
    background: rgba(56, 189, 248, 0.05);
    color: #0ea5e9;
}

.accordion-item button:hover::before {
    opacity: 1;
}

.accordion-item button[aria-expanded="true"] {
    background: rgba(56, 189, 248, 0.08);
    color: #0ea5e9;
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

.accordion-item button[aria-expanded="true"]::before {
    opacity: 1;
}

.accordion-title {
    flex: 1;
    padding-right: 1rem;
}

/* ============================================================
   ACCORDION ICON - Modern Plus/Minus
============================================================ */

.icon {
    width: 24px;
    height: 24px;
    position: relative;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(56, 189, 248, 0.3);
    border-radius: 50%;
}

.accordion-item button:hover .icon,
.accordion-item button[aria-expanded="true"] .icon {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
}

.icon::before,
.icon::after {
    content: '';
    position: absolute;
    background: currentColor;
    transition: all 0.3s ease;
}

.icon::before {
    width: 12px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.icon::after {
    width: 2px;
    height: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

button[aria-expanded="true"] .icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

/* ============================================================
   ACCORDION CONTENT - Smooth Reveal
============================================================ */

.accordion-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: rgba(255, 255, 255, 0.5);
}

.accordion-item button[aria-expanded="true"] + .accordion-content {
    padding: 1.5rem;
    max-height: 3000px;
}

.accordion-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 1rem;
}

/* ============================================================
   VIDEO CONTAINER - Glass Frame
============================================================ */

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.15);
    border: 2px solid rgba(56, 189, 248, 0.2);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* ============================================================
   GALLERY LIST - Glass Document Cards
============================================================ */

.gallery-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
    list-style: none;
    padding: 1.5rem 0;
    margin: 0;
}

.ui-document {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.08);
    position: relative;
    overflow: hidden;
}

.ui-document::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ui-document:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 32px rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.4);
}

.ui-document:hover::before {
    opacity: 1;
}

.ui-document svg {
    width: 80px !important;
    height: 80px !important;
    transition: transform 0.3s ease;
}

.ui-document:hover svg {
    transform: scale(1.1);
}

.ui-document .group-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

/* ============================================================
   FOCUS STATES - Accessibility
============================================================ */

.accordion-item button:focus {
    outline: 2px solid rgba(56, 189, 248, 0.5);
    outline-offset: 2px;
}

.ui-document:focus {
    outline: 2px solid rgba(56, 189, 248, 0.5);
    outline-offset: 2px;
}

.o-tile__title a:focus {
    outline: 2px solid rgba(56, 189, 248, 0.5);
    outline-offset: 2px;
}

/* ============================================================
   SCROLLBAR - Modern Blue Theme
============================================================ */

.accordion-content::-webkit-scrollbar {
    width: 6px;
}

.accordion-content::-webkit-scrollbar-track {
    background: rgba(56, 189, 248, 0.05);
    border-radius: 10px;
}

.accordion-content::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.3);
    border-radius: 10px;
}

.accordion-content::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 189, 248, 0.5);
}

/* ============================================================
   ANIMATION KEYFRAMES
============================================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.accordion-content[style*="padding"] > div {
    animation: fadeInUp 0.4s ease;
}

/* ============================================================
   RESPONSIVE DESIGN
============================================================ */

@media (max-width: 991px) {
    .view-content.d-feed__body {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem;
    }
}

@media (max-width: 768px) {
    #page-content {
        padding: 1.5rem 0;
    }

    .view-content.d-feed__body {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .o-tile__wrapper {
        padding: 1rem 1.25rem;
        min-height: 75px;
    }

    .o-tile__title a {
        font-size: 0.875rem !important;
    }

    #page-main {
        padding: 1.5rem;
        border-radius: 12px;
    }

    #about h2 {
        font-size: 1.5rem;
    }

    #about h2[style*="22px"] {
        font-size: 1.25rem !important;
        padding: 0.875rem 1rem;
        margin-top: 2rem;
    }

    .accordion-item button {
        padding: 1rem;
        font-size: 0.9375rem;
    }

    .accordion-item.ml-3 {
        margin-left: 0.75rem !important;
    }

    .gallery-list {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.75rem;
    }

    .ui-document {
        min-height: 120px;
        padding: 1rem;
    }

    .ui-document svg {
        width: 60px !important;
        height: 60px !important;
    }

    .o-tile__wrapper {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    #page-content {
        padding: 1rem 0;
    }

    .view-content.d-feed__body {
        gap: 0.625rem;
    }

    .o-tile__wrapper {
        padding: 0.75rem 0.875rem;
        min-height: 60px;
    }

    .o-tile__title a {
        font-size: 0.8125rem !important;
    }

    #page-main {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .accordion-item button {
        font-size: 0.875rem;
        padding: 0.875rem 1rem;
    }

    .accordion-content p {
        font-size: 0.9375rem;
    }

    .gallery-list {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 0.625rem;
    }

    .ui-document {
        min-height: 100px;
        padding: 0.75rem;
    }

    .ui-document svg {
        width: 50px !important;
        height: 50px !important;
    }

    #about h2::after {
        width: 60px;
    }
}

/* ============================================================
   PRINT STYLES
============================================================ */

@media print {
    .o-tile.tile--feed-items,
    #page-main,
    .accordion-item {
        box-shadow: none;
        border: 1px solid #ddd;
        background: white;
    }

    .accordion-item button {
        background: #f8fafc !important;
        color: #000 !important;
    }

    .accordion-content {
        max-height: none !important;
        padding: 1rem !important;
    }
}

/* ============================================================
   LOADING STATE
============================================================ */

.accordion-item.loading button {
    opacity: 0.6;
    cursor: wait;
    pointer-events: none;
}

.accordion-item.loading button::after {
    content: '';
    position: absolute;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(56, 189, 248, 0.2);
    border-top-color: #38bdf8;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}
