/* =========================
   INDEX PAGE SPECIFIC STYLES
   ========================= */

/* Hero Slider Area */
.hero {
    height: 90vh;
    position: relative;
    background: #001f3f;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    filter: brightness(0.8) contrast(1.1);
    transition: opacity 1.5s ease-in-out, transform 10s linear;
    z-index: 1;
}

.hero-bg.active {
    opacity: 1;
    transform: scale(1.05);
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1;
}

.glow-trail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 30%, rgba(0, 31, 63, 0.4) 100%);
    pointer-events: none;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    text-align: center;
    color: white;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(197, 160, 33, 0.2), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 25px;
    border-radius: 50px;
    margin-bottom: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #ffd700;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero-title {
    font-size: 5.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    font-family: 'Playfair Display', serif;
    letter-spacing: -2px;
    line-height: 1.1;
    background: linear-gradient(to bottom, #ffffff 60%, rgba(255, 255, 255, 0.6));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto 50px;
    opacity: 0.95;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Ticker */
.news-ticker {
    background: #001f3f;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: white;
    padding: 0;
    overflow: hidden;
    height: 60px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.ticker-wrap {
    display: flex;
    align-items: center;
    height: 100%;
}

.ticker-label {
    background: linear-gradient(135deg, #c5a021, #b18c1a);
    padding: 0 35px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 2px;
    z-index: 10;
    box-shadow: 15px 0 35px rgba(0, 0, 0, 0.4);
    position: relative;
    text-transform: uppercase;
}

.ticker-text {
    white-space: nowrap;
    animation: scrollTicker 45s linear infinite;
    font-size: 1rem;
    font-weight: 500;
    padding-left: 60px;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

@keyframes scrollTicker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Welcome Section */
.welcome {
    padding: 120px 0;
    position: relative;
    background: white;
    /* Keep welcome light for contrast */
}

.welcome-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.section-tag {
    color: #c5a021;
    font-weight: 800;
    letter-spacing: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: block;
    position: relative;
    padding-left: 50px;
}

.section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 40px;
    height: 2px;
    background: #c5a021;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 30px;
    color: #001f3f;
    font-family: 'Playfair Display', serif;
    line-height: 1.1;
    font-weight: 700;
}

.lead-text {
    font-size: 1.3rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 35px;
    position: relative;
    font-weight: 400;
}

.welcome-img {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.15);
    position: relative;
    transform: perspective(1000px) rotateY(-5deg);
    transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    height: 550px;
    /* Force height so it doesn't collapse if img is slow or missing */
}

@media (max-width: 768px) {
    .welcome-img {
        height: 400px;
        transform: perspective(1000px) rotateY(0deg);
    }
}

.welcome-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.welcome-img:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-10px);
}

.exp-badge {
    position: absolute;
    bottom: 40px;
    left: 40px;
    background: linear-gradient(135deg, #c5a021, #b18c1a);
    color: white;
    padding: 40px;
    border-radius: 24px;
    text-align: left;
    box-shadow: 0 20px 60px rgba(197, 160, 33, 0.4);
    z-index: 10;
}

/* Tomorrow Section */
.tomorrow-section {
    padding: 120px 0;
    background: #001f3f;
    color: white;
    position: relative;
    overflow: hidden;
}

.tomorrow-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(197, 160, 33, 0.05), transparent 50%);
    pointer-events: none;
}

.tomorrow-header {
    max-width: 800px;
    margin: 0 auto 70px;
    text-align: center;
}

.tomorrow-header .section-tag {
    justify-content: center;
    padding-left: 0;
}

.tomorrow-header .section-tag::before {
    display: none;
}

.tomorrow-header .section-title {
    color: white;
    font-size: 3.5rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.tomorrow-card {
    position: relative;
    height: 500px;
    border-radius: 30px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.tomorrow-card:hover .card-bg {
    opacity: 0.5;
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 20%, rgba(0, 0, 0, 0.4) 60%, transparent);
    z-index: 5;
}

.card-overlay h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
    color: white;
}

.card-overlay p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 70px;
    height: 70px;
    background: #c5a021;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: 0.3s;
    z-index: 10;
}

.tomorrow-card:hover .card-btn {
    background: white;
    color: #c5a021;
}

.musings-section {
    display: flex;
    background: #fff;
    border-top: 1px solid #f1f5f9;
    border-bottom: 25px solid #0d2833;
    /* Dark Navy Accent */
    /* Bottom gold accent */
}

.section-tag {
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 25px;
}

.musings-content {
    flex: 1;
    padding: 100px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.musings-image {
    flex: 1;
    background-size: cover;
    background-position: center top;
    min-height: 650px;
    box-shadow: inset 50px 0 80px rgba(0, 0, 0, 0.05);
}

/* Gallery Section */
.gallery-section {
    padding: 120px 0;
    background: #0d1117;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-section .section-title {
    color: white !important;
}

.gallery-section .section-tag::before {
    background: var(--gold);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 300px;
    gap: 20px;
}

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.g-item-wide {
    grid-column: span 2;
    grid-row: span 2;
}

.g-item-tall {
    grid-row: span 2;
}

.g-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-item::after {
    content: '+';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    width: 50px;
    height: 50px;
    background: white;
    color: #c5a021;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 300;
    opacity: 0;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.gallery-item:hover .g-overlay {
    opacity: 1 !important;
}

.gallery-item:hover .g-img {
    transform: scale(1.1);
    filter: brightness(0.7);
}

/* Lightbox */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.close-lightbox {
    position: absolute;
    top: 40px;
    right: 40px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 992px) {

    .welcome-grid,
    .card-grid,
    .musings-section {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
}

/* Institutions Grid */
.institutions {
    background: #0a0d12 !important;
}

.institutions .section-title {
    color: white !important;
}

.inst-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.inst-card {
    background: #161b22;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.inst-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.inst-img {
    height: 200px;
    overflow: hidden;
}

.inst-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.inst-content {
    padding: 24px;
}

.inst-cat {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.inst-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--gold);
    font-family: 'Playfair Display', serif;
}

.inst-loc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Locations Section */
.locations-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.location-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: 0.3s;
    border: 1px solid #f1f5f9;
    width: 220px;
    /* Fixed width for consistent centering */
}

.location-card:hover {
    box-shadow: 0 20px 50px rgba(21, 62, 77, 0.1);
}

.location-header {
    background: white;
    color: var(--primary-dark);
    padding: 20px 30px;
    text-align: center;
}

.location-img-wrapper:hover .loc-card-img {
    transform: scale(1.1);
}

.location-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-size: 1.25rem;
    color: var(--gold);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 3px solid white;
}

.location-name {
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--primary-dark);
}

.location-tagline {
    font-size: 0.6rem;
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.location-body {
    padding: 12px;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.info-icon {
    color: var(--gold);
}

.info-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
}

.info-value {
    color: var(--text-main);
    font-size: 0.95rem;
}

.location-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.stat-box {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
}

.location-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px;
    background: #f8fafc;
    color: var(--primary);
    border-radius: 12px;
    font-weight: 600;
    transition: 0.3s;
}

.location-btn:hover {
    background: var(--primary);
    color: white;
}