body {
    scroll-behavior: smooth;
    width: 100%;
    margin: 0%;
    padding: 0%;
    position: relative;
    background-color: #f8f9fa;
}


/* Fixed height card styling */
.fixed-height-card {
    min-height: 600px;
    height: auto;
}

.fixed-height-card .card-body {
    height: calc(100% - 80px); /* Subtract header height */
    display: flex;
    flex-direction: column;
}

.card-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Custom card styling */
.card {
    transition: all 0.3s ease;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.card-header {
    border-bottom: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Toggle button styling */
.btn-light {
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-light:hover {
    background-color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Card content transitions */
.card-content {
    transition: opacity 0.3s ease;
}

.contact-info a {
    color: #1B97D4;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #0d6efd;
    text-decoration: underline !important;
}

.campus-card {
    transition: all 0.3s ease;
    background: white;
    border: 1px solid #e9ecef !important;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.campus-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12) !important;
    border-color: #1B97D4 !important;
}

.campus-card i {
    transition: transform 0.3s ease;
}

.campus-card:hover i {
    transform: scale(1.1);
}

/* Custom colors - using only primary color */
.text-primary {
    color: #1B97D4 !important;
}

.bg-primary {
    background-color: #1B97D4 !important;
}

/* Position utilities for toggle button */
.position-relative {
    position: relative !important;
}

.position-absolute {
    position: absolute !important;
}

.top-50 {
    top: 50% !important;
}

.end-0 {
    right: 0 !important;
}

.translate-middle-y {
    transform: translateY(-50%) !important;
}

.me-3 {
    margin-right: 1rem !important;
}

/* Flexbox utilities */
.h-100 {
    height: 100% !important;
}

.d-flex {
    display: flex !important;
}

.flex-column {
    flex-direction: column !important;
}

.justify-content-center {
    justify-content: center !important;
}

.align-items-center {
    align-items: center !important;
}

/* Responsive design */
@media only screen and (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .card-body {
        padding: 2rem !important;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    /* Adjust toggle button position on mobile */
    .btn-sm {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .me-3 {
        margin-right: 0.5rem !important;
    }
    
    /* Adjust fixed height for mobile */
    .fixed-height-card {
        min-height: 500px;
    }
}

@media only screen and (max-width: 576px) {
    .card-body {
        padding: 1.5rem !important;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .campus-card {
        margin-bottom: 1rem;
    }
    
    /* Hide toggle button text on very small screens */
    .btn-sm span {
        display: none;
    }
    
    /* Adjust fixed height for small screens */
    .fixed-height-card {
        min-height: 450px;
    }
}

/* Animation for page load */
.container-fluid {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Icon styling */
.fa-lg {
    width: 20px;
    text-align: center;
}

.fa-2x {
    width: 32px;
    text-align: center;
}

.fa-3x {
    width: 48px;
    text-align: center;
}

/* Custom spacing */
.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

/* Enhanced typography */
.fw-bold {
    font-weight: 700 !important;
}

.text-muted {
    color: #6c757d !important;
}

/* Link hover effects */
a {
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
}

/* Card border radius */
.rounded-4 {
    border-radius: 1rem !important;
}

.rounded-3 {
    border-radius: 0.75rem !important;
}

.rounded-top-4 {
    border-top-left-radius: 1rem !important;
    border-top-right-radius: 1rem !important;
}

/* Smooth transitions for card header changes */
.card-header h3 {
    transition: all 0.3s ease;
}

/* Button icon spacing */
.btn i {
    margin-right: 0.25rem;
}

/* Ensure proper z-index for toggle button */
.btn {
    z-index: 10;
}

/* Extended card size */
.col-lg-10 {
    max-width: 1200px;
}

/* Campus card grid improvements */
.campus-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.campus-card .d-flex {
    flex-grow: 1;
}

.campus-card p {
    margin-bottom: 0;
}

/* Contact view centering */
.contact-info {
    width: 100%;
}

.contact-info .d-flex {
    justify-content: flex-start;
    align-items: center;
}

/* Contact group styling */
.contact-group {
    max-width: 600px;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.logo-section {
    flex-shrink: 0;
}

.logo-section img {
    max-width: 250px;
    height: auto;
}

/* Contact info spacing */
.contact-info .d-flex {
    margin-bottom: 1.5rem;
}

.contact-info .d-flex:last-child {
    margin-bottom: 0;
}

/* Icon alignment */
.contact-info i {
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

/* Margin utilities */
.ms-3 {
    margin-left: 1rem !important;
}

.me-4 {
    margin-right: 1.5rem !important;
}

/* Ensure proper height distribution */
.row.h-100 {
    height: 100% !important;
}

.col-md-6.d-flex {
    height: 100%;
}

/* Centered layout improvements */
.col-12.d-flex {
    padding: 2rem 0;
}

/* Responsive adjustments for grouped contact */
@media only screen and (max-width: 768px) {
    .contact-group {
        max-width: 500px;
        flex-direction: column;
        text-align: center;
    }
    
    .logo-section {
        margin-bottom: 2rem;
        margin-right: 0 !important;
    }
    
    .contact-info {
        width: 100%;
        margin-left: 0 !important;
    }
}

@media only screen and (max-width: 576px) {
    .contact-group {
        max-width: 400px;
    }
    
    .logo-section img {
        max-width: 200px;
    }
    
    .contact-info .d-flex {
        margin-bottom: 1rem;
    }
    
    .contact-info i {
        font-size: 1rem;
    }
}

@media (min-width: 992px) {
  .contact-card {
    display: flex;
    flex-direction: column;   /* stack children vertically */
    justify-content: center;  /* center vertically */

  }

  .contact-card h5 {
    font-size: 1rem;       /* smaller title */
  }

  .contact-card p {
    font-size: 0.8rem;     /* smaller paragraph */
  }

  .contact-card a.btn {
    font-size: 0.8rem;     /* smaller button text */
    padding: 0.4rem 0.6rem;
  }
}
