/* General styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

main {
    flex: 1;
}

/* Add padding to all pages */
.container-fluid.p-0 {
    padding: 0 !important;
}

main > :not(.hero-banner):not(.section-container):not(.hero-carousel):not(#heroCarousel) {
    padding: 2rem 0;
}

/* Standard content container for all pages */
.content-container {
    padding: 2.5rem 1.5rem;
}

.content-container .container {
    padding: 0 2rem; 
}

/* Custom link styles */
footer a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #f8d7d7;
    text-decoration: underline;
}

/* Navigation styling */
.navbar {
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 60px;
}

.navbar-brand {
    font-weight: bold;
    color: #fff;
    font-size: 1.2rem;
    letter-spacing: 0.03em;
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.navbar .nav-link:hover {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Centered navbar */
.navbar-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

/* Fix for mobile collapsed navbar background */
.navbar-collapse {
    background-color: #7A0102;
    z-index: 1000;
    padding: 0 1rem;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        padding-bottom: 0.5rem;
        margin: 0 -1rem;
        padding-left: 1.5rem;
    }
    
    .navbar-nav {
        position: static;
        transform: none;
    }
}

/* CAIC specific colors */
.caic-red {
    background-color: #7A0102;
}

.caic-red-text {
    color: #7A0102;
}

.btn-caic {
    background-color: #7A0102;
    border-color: #7A0102;
    color: white;
}

.btn-caic:hover {
    background-color: #630001;
    border-color: #630001;
    color: white;
}

.bg-caic {
    background-color: #7A0102;
}

/* Navigation footer styling */
.nav-footer {
    background-color: #1A1A1A;
    color: white;
    padding-top: 2rem;
    padding-bottom: 1rem;
    margin-top: auto;
}

.nav-footer h5 {
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
}

.nav-footer h5::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: #7A0102;
    margin-top: 0.5rem;
}

.nav-footer li {
    margin-bottom: 0.5rem;
}

/* Social icons */
.social-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    color: white;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: #ddd;
}

/* Address styling */
address {
    line-height: 1.6;
    margin-bottom: 0;
}

/* Banner Slideshow */
.hero-banner {
    position: relative;
}

.carousel-item {
    background-size: cover;
    background-position: center;
    height: 600px;
}

/* Carousel background images */
.carousel-item.slide-welcome {
    background-image: url('../images/gallery/fullteam.jpeg');
}

.carousel-item.slide-events {
    background-image: url('../images/gallery/fullteam.jpeg');
}

.carousel-item.slide-clubs {
    background-image: url('../images/gallery/fullteam.jpeg');
}

.carousel-item.slide-tryst {
    background-image: url('../images/events/eventplaceholder.jpg');
}

.carousel-item.slide-techgc {
    background-image: url('../images/events/eventplaceholder.jpg');
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 5px;
    padding: 1.5rem;
    max-width: 60%;
    margin: 0 auto;
}

/* Homepage sections */
.section-title {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    font-weight: 600;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 2px;
    background-color: #7A0102;
}

.section-container {
    padding: 3rem 0;
}

.section-container:nth-child(even) {
    background-color: #f8f9fa;
}

/* Card styling */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card-title {
    color: #333;
    font-weight: 600;
}

/* Event cards */
.event-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.event-date {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #7A0102;
    color: white;
    padding: 0.5rem;
    font-weight: 600;
    border-radius: 4px;
    z-index: 10;
}

.event-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 4.5rem;
}

/* Team member cards */
.team-member {
    text-align: center;
    margin-bottom: 2rem;
}

.team-member img {
    border-radius: 50%;
    width: 220px;
    height: 220px;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Fix for onerror attribute in img tags */
.img-fallback {
    display: none;
}

/* Copyright footer */
footer.py-3 {
    margin-top: 0;
}

/* Club/Society Card Styling */
.club-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.club-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.club-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 150px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.club-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f8f9fa;
    padding: 10px;
    transition: transform 0.3s ease;
}

.club-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(122, 1, 2, 0.8);
    color: white;
    text-align: center;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.club-card-overlay h6 {
    margin: 0;
    font-weight: 600;
}

.club-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

.club-card:hover .club-card-overlay {
    background: rgba(122, 1, 2, 0.95);
}

/* Small card styling for clubs/societies - keeping for reference but no longer used */
.small-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.small-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.small-card .card-title {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    text-align: center;
}

.small-card .btn {
    width: 100%;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
}

/* Mobile responsive adjustments for clubs/societies grid */
@media (max-width: 767.98px) {
    .row .col-md-3.mb-4 {
        width: 50%;
    }
    
    /* Center the last item if there are 5 items in a row */
    .row:last-child .col-md-3.mb-4:last-child:nth-child(5) {
        margin-left: auto;
        margin-right: auto;
    }
} 