/*
 * Campus Tour — Page-Specific Styles
 * ────────────────────────────────────
 * Shared design system: srusti-design-system.css (loaded first)
 *
 * This file contains ONLY page-specific styles:
 *   - Campus visual (hero right)
 *   - Overview layout
 *   - Campus spaces grid & cards
 *   - Journey timeline reuse (relies on shared system classes)
 *   - Gallery grid (dynamic images from DB)
 *   - Outcomes grid
 *   - Facility table
 *   - Page-specific responsive overrides
 */


/* ══════════════════════════════════════════════════
   HERO RIGHT — Campus Visual
══════════════════════════════════════════════════ */

.campus-visual {
    position: relative;
    width: 420px;
    height: 420px;
    flex-shrink: 0;
}

.campus-circle {
    width: 100%;
    height: 100%;
    background: url("https://orchid-tarsier-515153.hostingersite.com/public/img/srusti-building.png");
    border: 1.5px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: campus-pulse 3s ease-in-out infinite;
    background-size: contain;
}

@keyframes campus-pulse {
    0%, 100% {
        box-shadow: 0 0 0 10px rgba(220,162,0,0.08), 0 0 0 22px rgba(220,162,0,0.04);
    }
    50% {
        box-shadow: 0 0 0 18px rgba(220,162,0,0.12), 0 0 0 36px rgba(220,162,0,0.06);
    }
}

@media (prefers-reduced-motion: reduce) {
    .campus-circle { animation: none; }
}

.campus-circle svg {
    width: 120px;
    height: 120px;
    stroke: var(--gold);
}


/* ══════════════════════════════════════════════════
   OVERVIEW SECTION (text left + image grid right)
══════════════════════════════════════════════════ */

.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
    align-items: start;
}

.overview-text-col p {
    font-size: 15px;
    color: var(--body-gray);
    line-height: 1.75;
    margin-bottom: 16px;
}

/* Image placeholder grid: 1 large spanning full width + 2 half-width below */
.overview-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Placeholder frame base — reusable image placeholder */
.ph-frame {
    background: linear-gradient(150deg, #dfe4f7, #c7cff0);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.ph-frame svg {
    width: 40px;
    height: 40px;
    stroke: rgba(55, 71, 153, 0.4);
}

.ph-frame span {
    font-family: "Antonio", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(55, 71, 153, 0.5);
}

/* When an actual image replaces the placeholder */
.ph-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
}

/* Large frame: spans full width, taller */
.ph-large {
    grid-column: 1 / -1;
    min-height: 260px;
}

/* Small frames: equal height */
.ph-small {
    min-height: 180px;
}


/* ══════════════════════════════════════════════════
   CAMPUS SPACES GRID
══════════════════════════════════════════════════ */

.spaces-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.space-card {
    background: var(--white);
    border-top: 5px solid var(--gold);
    border-radius: var(--radius-lg);
    padding: 28px 22px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.space-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.space-icon-wrap {
    width: 54px;
    height: 54px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.space-icon-wrap img{
    width: 35px;
    height: 35px;
}

.space-icon-wrap svg {
    width: 26px;
    height: 26px;
    stroke: var(--navy);
}

.space-card h4 {
    font-family: "Antonio", sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 8px;
}

.space-card p {
    font-size: 13px;
    color: var(--body-gray);
    line-height: 1.6;
}


/* ══════════════════════════════════════════════════
   JOURNEY TIMELINE (uses shared classes;
   this section re-exports only local .journey overrides if needed)
══════════════════════════════════════════════════ */

/* Journey uses all shared classes from srusti-design-system.css */
/* (section-stats, journey-wrap, journey-line-track, journey-line-fill,
    journey-timeline, journey-step, journey-icon-wrap, journey-num-dot,
    journey-heading, journey-text) */

/* Local: navy bg is applied via .bg-navy utility in view HTML */


/* ══════════════════════════════════════════════════
   GALLERY (dynamic images from DB)
══════════════════════════════════════════════════ */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(17, 26, 68, 0.85));
    padding: 32px 16px 16px;
    pointer-events: none;
}

.gallery-caption h4 {
    font-family: "Antonio", sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.gallery-caption p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}


/* ══════════════════════════════════════════════════
   OUTCOMES GRID
══════════════════════════════════════════════════ */

.outcomes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.outcome-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.outcome-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.outcome-icon {
    width: 42px;
    height: 42px;
    background: var(--off-white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.outcome-icon svg {
    width: 22px;
    height: 22px;
}

.outcome-card h4 {
    font-family: "Antonio", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--blue);
}

.outcome-card p {
    font-size: 13.5px;
    color: var(--body-gray);
    line-height: 1.65;
}


/* ══════════════════════════════════════════════════
   FACILITY TABLE
══════════════════════════════════════════════════ */

.facility-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.facility-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    font-family: "Poppins", sans-serif;
    font-size: 14px;
}

.facility-table th {
    background: var(--navy);
    color: var(--white);
    font-family: "Antonio", sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 14px 18px;
    text-align: left;
}

.facility-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    color: var(--charcoal);
}

.facility-table tbody tr:hover {
    background: var(--gold-pale);
}

.facility-table tbody tr:last-child td {
    border-bottom: none;
}


/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .spaces-grid   { grid-template-columns: repeat(2, 1fr); }
    .overview-grid { grid-template-columns: 1fr; }
    .outcomes-grid { grid-template-columns: 1fr 1fr; }
    .explore-grid  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .spaces-grid   { grid-template-columns: 1fr 1fr; }
    .outcomes-grid { grid-template-columns: 1fr; }
    .gallery-grid  { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
    .gallery-item img { height: 180px; }
}

@media (max-width: 480px) {
    .spaces-grid  { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
}


/* ══════════════════════════════════════════════════
   EXPLORE MORE GRID
══════════════════════════════════════════════════ */

.explore-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.explore-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.explore-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.explore-icon {
    width: 48px;
    height: 48px;
    background: var(--off-white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.explore-icon svg {
    width: 24px;
    height: 24px;
}

.explore-card h4 {
    font-family: "Antonio", sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: var(--navy);
}

.explore-card p {
    font-size: 13.5px;
    color: var(--body-gray);
    line-height: 1.65;
    flex: 1;
}

/* Responsive */
@media (max-width: 640px) {
    .explore-grid { grid-template-columns: 1fr; }
}
