/* Campus Life Specific Styles */

:root {
    --primary-maroon: #4a0e0e;
    --primary-orange: #d48300;
    --off-white: #f8f9fa;
    --text-dark: #4a4a4a;
    --text-light: #666;
}

/* Global Section centering */
section p {
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* New Hero Section */
.campus-hero {
    height: 80vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/night\ view.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 80px;
}

.campus-hero-content h1 {
    font-size: 2.8rem;
    font-family: var(--heading-font);
    font-weight: 800;
    margin-bottom: 20px;
    color: white !important;
    animation: fadeInUp 1s ease-out;
}

.campus-hero-content p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    color: white !important;
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* Smart Infrastructure */
.smart-infra-section {
    padding: 100px 0;
    background: white;
}

.infra-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}

.infra-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.infra-card {
    background: var(--off-white);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.infra-card i {
    font-size: 2.5rem;
    color: var(--primary-orange);
    margin-bottom: 15px;
}

.infra-card h4 {
    margin: 0;
    color: var(--text-dark);
}

.infra-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* World Class Facilities - Flip Cards */
.facilities-v3 {
    padding: 100px 0;
    background: var(--off-white);
}

.facilities-grid-v3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.facility-flip-card {
    perspective: 1000px;
    height: 400px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.facility-flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.flip-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.front-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
}

.flip-card-back {
    background: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.flip-card-back i {
    font-size: 3rem;
    color: var(--primary-maroon);
    margin-bottom: 20px;
}

/* Incubation Hub */
.incubation-v2 {
    padding: 100px 0;
    background: white;
}

.inno-card-maroon {
    background: var(--primary-maroon);
    border-radius: 40px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    overflow: hidden;
    color: white;
}

.inno-v2-content {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white !important;
}

.inno-v2-content h2 {
    font-size: 2.5rem;
    color: white !important;
}

.inno-v2-content p {
    color: white !important;
    opacity: 0.9;
}

.stats-v2 {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.stat-item-v2 h3 {
    font-size: 2.5rem;
    margin-bottom: 5px;
    color: white !important;
    font-weight: 500;
}

.inno-v2-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

/* Student Clubs - Glass Card Style */
.club-card-v2 {
    background: white;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    text-align: left;
}

.club-card-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--accent-color, var(--primary-maroon));
    transition: width 0.3s ease;
}

.club-card-v2:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.club-card-v2:hover::before {
    width: 100%;
    opacity: 0.05;
}

.club-card-v2 i {
    font-size: 3rem;
    color: var(--accent-color, var(--primary-maroon));
    margin-bottom: 25px;
    display: inline-block;
    transition: transform 0.3s ease;
    /* CSS trick to make solid icons look like line icons */
    -webkit-text-stroke: 1.5px var(--accent-color, var(--primary-maroon));
    paint-order: stroke fill;
    color: transparent;
}

.club-card-v2:hover i {
    transform: rotate(15deg) scale(1.1);
}

.club-card-v2 h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-family: var(--heading-font);
}

.club-card-v2 p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-light);
    margin: 0;
    text-align: center; /* Centering card text as well per user request */
}

/* Campus Events */
.event-card-horizontal {
    background: white;
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.event-card-horizontal:hover {
    transform: scale(1.02);
}

.event-img {
    width: 300px;
    flex-shrink: 0;
}

.event-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.event-details {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-details p {
    text-align: center;
}

.event-details h3 {
    text-align: center;
    margin: 10px 0;
    font-family: var(--heading-font);
    color: var(--primary-maroon);
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Voice of Helapuri / Testimonials */
.story-section-v2 p {
    text-align: center;
}

.story-card {
    transition: transform 0.3s ease;
}

.story-card:hover {
    transform: translateY(-10px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {

    .infra-grid,
    .inno-card-maroon {
        grid-template-columns: 1fr;
    }

    .facilities-grid-v3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .event-card-horizontal {
        flex-direction: column;
    }

    .event-img {
        width: 100%;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .facilities-grid-v3 {
        grid-template-columns: 1fr;
    }

    .infra-cards {
        grid-template-columns: 1fr;
    }
}
