/* ============================================================
   SCHOOL STRUCTURE SECTION - INTERACTIVE ACCORDION CARDS
   File: assets/css/school-structure.css
   ============================================================ */

.pa-structure-section {
    background-color: var(--smoke-color, #F3F0E5);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(176, 152, 69, 0.15) 0%, transparent 50%),
        /* Gold subtle glow */
        radial-gradient(circle at 90% 80%, rgba(152, 13, 26, 0.1) 0%, transparent 50%);
    /* Red subtle glow */
    font-family: var(--body-font, 'Poppins', sans-serif);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Stylish, modern academic geometrical watermark pattern */
.pa-structure-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23B09845" fill-opacity="0.12"><path d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/></g></g></svg>');
    opacity: 0.8;
    z-index: -1;
}

.pa-structure-section .relative-z {
    position: relative;
    z-index: 2;
}

.pa-structure-grid {
    display: flex;
    gap: 20px;
    height: 500px;
    width: 100%;
    margin-top: 20px;
}

/* Base Card */
.pa-structure-card {
    position: relative;
    flex: 1;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.pa-structure-card:hover {
    flex: 3;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.pa-structure-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.pa-structure-card:hover img {
    transform: scale(1.05);
}

/* Overlay Gradient */
.pa-structure-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    /* Cover full height so we can position spine text anywhere */
    background: linear-gradient(to top, rgba(17, 17, 17, 0.95) 0%, rgba(17, 17, 17, 0.4) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0.8;
    /* Slightly visible gradient on normal state to make text pop */
    transition: opacity 0.4s ease;
}

.pa-structure-card:hover .pa-structure-overlay {
    opacity: 1;
    /* Darken on hover */
    background: linear-gradient(to top, rgba(17, 17, 17, 0.95) 0%, rgba(17, 17, 17, 0.7) 60%, rgba(17, 17, 17, 0.2) 100%);
}

/* Normal Content State (when collapsed) - Creative "Spine" Look */
.pa-structure-title-vert {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    /* Solid white text for readability */
    font-size: 26px;
    /* Slightly smaller since it's solid */
    font-weight: 800;
    letter-spacing: 4px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    white-space: nowrap;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-family: var(--title-font, 'Poppins', sans-serif);
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    /* shadow to help it stand out */
}

.pa-structure-card:hover .pa-structure-title-vert {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
    pointer-events: none;
}

/* Add a colorful accent line to the bottom of the card */
.pa-structure-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--theme-color);
    transform: scaleY(1);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

.pa-structure-card:hover::after {
    height: 8px;
    background: #b11f26;
    /* Darker red on hover */
}

/* Expanded Content State (when hovered) */
.pa-structure-content-full {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s ease;
    transition-delay: 0s;
    pointer-events: none;
}

.pa-structure-card:hover .pa-structure-content-full {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
    /* delays the appearance slightly until card opens */
    pointer-events: auto;
}

.pa-structure-content-full h3 {
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
}

.pa-structure-badge {
    display: inline-block;
    background: var(--theme-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pa-structure-content-full p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 400px;
}

.pa-structure-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #111;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pa-structure-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.pa-structure-btn:hover {
    background: var(--theme-color);
    color: #fff;
}

.pa-structure-btn:hover i {
    transform: translateX(4px);
}

/* Responsive Handling */
@media (max-width: 991px) {
    .pa-structure-grid {
        height: auto;
        flex-direction: column;
    }

    .pa-structure-card {
        height: 200px;
        flex: none;
    }

    .pa-structure-card:hover {
        height: 350px;
        flex: none;
    }

    .pa-structure-title-vert {
        writing-mode: horizontal-tb;
        left: 30px;
        bottom: 30px;
        transform: none;
    }
}