/* ============================================================
   St. Xavier's College Clone — Inner Pages (Premium)
   ============================================================ */

/* Page Banner */
.page-banner {
    position: relative;
    background-image: url('/static/images/hero/hero2.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
}

.page-banner-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(15,35,58,0.88) 0%, rgba(27,58,92,0.82) 50%, rgba(15,35,58,0.92) 100%);
}

.page-banner .container { position: relative; z-index: 2; }

.page-banner-title {
    color: var(--white);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.breadcrumb {
    font-family: var(--font-primary);
    font-size: 0.88rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.breadcrumb a { color: rgba(255,255,255,0.9); }
.breadcrumb a:hover { color: var(--secondary-color); }
.breadcrumb i { font-size: 0.6rem; }

/* Page Layout */
.page-section { background-color: var(--bg-color); }

.page-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 50px;
}

.page-content h3 {
    margin: 2.5rem 0 1.2rem 0;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 12px;
    border-bottom: none;
}

.page-content h3::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 50px; height: 3px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

/* Sidebar Widgets */
.page-sidebar { display: flex; flex-direction: column; gap: 28px; }

.sidebar-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    padding: 28px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.sidebar-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.sidebar-card.highlight {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--white);
    box-shadow: var(--shadow-glow-blue);
}

.sidebar-card.highlight .sidebar-title { color: var(--white); }

.sidebar-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--secondary-color);
    width: fit-content;
}

.sidebar-card.highlight .sidebar-title { border-bottom-color: rgba(255,255,255,0.3); }

.sidebar-facts { display: flex; flex-direction: column; gap: 15px; }

.sidebar-facts li {
    display: flex; align-items: center; gap: 12px;
    font-size: 0.9rem;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.sidebar-facts li:last-child { border-bottom: none; }
.sidebar-facts li i { color: var(--secondary-color); width: 20px; text-align: center; }
.sidebar-card.highlight .sidebar-facts li i { color: rgba(255,255,255,0.8); }
.sidebar-card.highlight .sidebar-facts li { border-bottom-color: rgba(255,255,255,0.06); }

.sidebar-image {
    border-radius: var(--border-radius-lg);
    margin-bottom: 15px;
    width: 100%;
    box-shadow: var(--shadow-sm);
}

.sidebar-links { display: flex; flex-direction: column; gap: 10px; }

.sidebar-links a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 14px;
    border-radius: var(--border-radius);
    background: var(--light-bg);
    color: var(--text-color);
    font-size: 0.88rem; font-weight: 500;
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

.sidebar-links a:hover, .sidebar-links a.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
    transform: translateX(4px);
    box-shadow: var(--shadow-glow-blue);
}

.sidebar-links .badge {
    background: var(--gradient-secondary);
    color: var(--white);
    font-size: 0.72rem; font-weight: 700;
    padding: 2px 10px;
    border-radius: 10px;
}

/* Timeline */
.timeline { position: relative; padding-left: 35px; margin: 2rem 0; }

.timeline::before {
    content: '';
    position: absolute; left: 8px; top: 0;
    width: 3px; height: 100%;
    background: linear-gradient(to bottom, var(--secondary-color), var(--primary-color));
    border-radius: 2px;
}

.timeline-item { position: relative; margin-bottom: 2.5rem; }

.timeline-item::before {
    content: '';
    position: absolute; left: -32px; top: 5px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--gradient-secondary);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--secondary-color), 0 4px 10px rgba(196,30,58,0.2);
}

.timeline-year {
    font-family: var(--font-primary);
    font-weight: 800; font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.timeline-content h4 { font-size: 1.1rem; margin-bottom: 5px; }

/* Values Grid */
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 2rem 0; }

.value-card {
    background: var(--white);
    padding: 28px;
    border-radius: var(--border-radius-lg);
    border-top: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.value-card:nth-child(even) { border-top-color: var(--secondary-color); }

.value-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.value-card:nth-child(even) .value-icon {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.value-card h4 { font-size: 1.15rem; margin-bottom: 8px; }
.value-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0; }

/* Program Listing */
.program-level-section { margin-bottom: 4rem; }

.level-title {
    font-size: 1.8rem; font-weight: 700;
    margin-bottom: 1.5rem; padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-color);
    display: flex; align-items: center; gap: 12px;
}

.level-title i { color: var(--secondary-color); }

/* Program Detail badges */
.program-detail-badges { display: flex; gap: 12px; margin-bottom: 2rem; flex-wrap: wrap; }

.detail-badge {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    padding: 10px 18px;
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 0.85rem; font-weight: 600;
    color: var(--primary-color);
    display: flex; align-items: center; gap: 8px;
    transition: all var(--transition-normal);
}

.detail-badge:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.detail-badge i { color: var(--secondary-color); }

.program-detail-image {
    width: 100%; max-height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

/* Notices Filters */
.notices-filter-bar { display: flex; gap: 10px; margin-bottom: 2.5rem; flex-wrap: wrap; }

.filter-btn {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 25px;
    font-family: var(--font-primary);
    font-size: 0.88rem; font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    color: var(--text-color);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--white);
    box-shadow: var(--shadow-glow-blue);
    transform: translateY(-2px);
}

/* Notice cards */
.notices-list-full { display: flex; flex-direction: column; gap: 20px; }

.notice-card-full {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 28px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border-left: 4px solid var(--primary-color);
}

.notice-card-full:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(5px);
    border-left-color: var(--secondary-color);
}

.notice-card-meta { display: flex; gap: 15px; align-items: center; margin-bottom: 12px; }
.notice-card-date { font-family: var(--font-primary); font-size: 0.85rem; color: var(--text-light); display: flex; align-items: center; gap: 6px; }

.notice-card-category-badge {
    font-family: var(--font-primary); font-size: 0.72rem; font-weight: 700;
    padding: 3px 12px; border-radius: 12px; text-transform: uppercase; letter-spacing: 0.5px;
}

.notice-card-category-badge.admission { background: linear-gradient(135deg, #d1e7dd, #e8f5e9); color: #0f5132; }
.notice-card-category-badge.exam { background: linear-gradient(135deg, #f8d7da, #fde8ea); color: #842029; }
.notice-card-category-badge.academic { background: linear-gradient(135deg, #cff4fc, #e0f7fa); color: #055160; }
.notice-card-category-badge.general { background: linear-gradient(135deg, #e2e3e5, #f0f1f3); color: #41464b; }

.notice-card-urgent-badge {
    background: var(--gradient-secondary); color: var(--white);
    font-family: var(--font-primary); font-size: 0.68rem; font-weight: 700;
    padding: 3px 10px; border-radius: 10px; text-transform: uppercase;
}

.notice-card-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; }
.notice-card-text { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 15px; }

/* Events */
.events-grid-full { display: flex; flex-direction: column; gap: 30px; }

.event-card-full {
    display: grid; grid-template-columns: 1fr 2fr;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--white);
    transition: all var(--transition-normal);
}

.event-card-full:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
    border-color: transparent;
}

.event-card-full-image { height: 100%; min-height: 220px; overflow: hidden; }
.event-card-full-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.event-card-full:hover .event-card-full-image img { transform: scale(1.08); }

.event-card-full-content { padding: 28px; display: flex; flex-direction: column; justify-content: center; }

.event-card-full-meta { display: flex; gap: 20px; font-size: 0.85rem; color: var(--text-light); margin-bottom: 10px; flex-wrap: wrap; }
.event-meta-item { display: flex; align-items: center; gap: 6px; }
.event-meta-item i { color: var(--secondary-color); }
.event-card-full-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 12px; }
.event-card-full-text { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; }

/* Gallery filter bar */
.gallery-filter-bar { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* Lightbox Modal */
.lightbox-modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(10px);
    z-index: 1000; justify-content: center; align-items: center;
}

.lightbox-modal.active { display: flex; }

.lightbox-content { max-width: 85%; max-height: 80%; position: relative; text-align: center; }

.lightbox-content img {
    max-width: 100%; max-height: 70vh; object-fit: contain;
    border: 3px solid rgba(255,255,255,0.2);
    border-radius: var(--border-radius-lg);
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-caption { color: var(--white); margin-top: 18px; font-family: var(--font-primary); font-size: 1.2rem; font-weight: 500; }

.lightbox-close {
    position: absolute; top: 20px; right: 30px;
    color: rgba(255,255,255,0.6); font-size: 2.5rem;
    cursor: pointer; transition: all var(--transition-normal);
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.lightbox-close:hover { color: var(--white); background: var(--gradient-secondary); }

.lightbox-prev, .lightbox-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--white); font-size: 1.5rem;
    cursor: pointer; padding: 15px;
    width: 54px; height: 54px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition-normal);
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: var(--gradient-secondary);
    border-color: transparent;
    box-shadow: var(--shadow-glow-red);
}

.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; }
.contact-cards-container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 2rem; }

.contact-info-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--border-radius-lg);
    display: flex; flex-direction: column; align-items: center; text-align: center;
    border-bottom: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.contact-info-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.contact-info-card:nth-child(even) { border-bottom-color: var(--secondary-color); }

.contact-card-icon {
    width: 56px; height: 56px;
    background: var(--light-bg);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 15px;
    transition: all var(--transition-normal);
}

.contact-info-card:hover .contact-card-icon {
    background: var(--gradient-secondary);
    color: var(--white);
    box-shadow: var(--shadow-glow-red);
}

.contact-info-card:nth-child(even) .contact-card-icon { color: var(--primary-color); }
.contact-info-card:nth-child(even):hover .contact-card-icon { background: var(--gradient-primary); color: var(--white); }

.contact-card-content h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.contact-card-content p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0; line-height: 1.5; }

/* Contact Form */
.contact-form-panel {
    background: var(--white);
    padding: 42px;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0,0,0,0.04);
}

.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.form-group { margin-bottom: 1.5rem; }

.form-group label {
    display: block; font-family: var(--font-primary);
    font-size: 0.82rem; font-weight: 600;
    margin-bottom: 8px; color: var(--primary-color);
    letter-spacing: 0.02em;
}

.form-control {
    width: 100%; padding: 13px 16px;
    font-family: var(--font-secondary); font-size: 0.9rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    outline: none;
    transition: all var(--transition-normal);
    background: var(--light-bg);
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(196,30,58,0.08);
    background: var(--white);
}

.required { color: var(--secondary-color); }

/* Map */
.map-container {
    background: var(--light-bg);
    border-radius: var(--border-radius-xl);
    border: 1px solid var(--border-color);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.map-placeholder { text-align: center; }
.map-icon { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 10px; }
.map-placeholder h3 { margin-bottom: 5px; }
.map-placeholder p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }

.map-iframe-wrapper {
    height: 350px;
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
    border-radius: var(--border-radius-lg);
    overflow: hidden; position: relative;
}

.mock-map {
    width: 100%; height: 100%;
    background-image: radial-gradient(circle, rgba(255,255,255,0.12) 10%, transparent 11%);
    background-size: 20px 20px;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}

.mock-map .pin { font-size: 3rem; color: var(--secondary-color); animation: bounce 2s infinite; filter: drop-shadow(0 4px 8px rgba(196,30,58,0.3)); }
.mock-map .label { background: var(--gradient-primary); color: var(--white); font-family: var(--font-primary); font-size: 0.85rem; font-weight: 600; padding: 8px 18px; border-radius: 20px; margin-top: 10px; box-shadow: var(--shadow-lg); }

@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Alumni Activities */
.alumni-activities { display: flex; flex-direction: column; gap: 20px; margin-top: 2rem; }

.activity-card {
    background: var(--white);
    padding: 22px;
    border-radius: var(--border-radius-lg);
    border-left: 5px solid var(--secondary-color);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.activity-card:hover { transform: translateX(5px); box-shadow: var(--shadow-md); }

.activity-date { font-family: var(--font-primary); font-size: 0.78rem; font-weight: 700; color: var(--secondary-color); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.5px; }
.activity-card h4 { font-size: 1.1rem; margin-bottom: 8px; }
.activity-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0; }
