/* ===============================
   GLOBAL BODY SETTINGS
================================= */

body {
    margin: 0;
    padding: 0;
    padding-top: 80px;      /* Space for fixed navbar */
    padding-bottom: 60px;   /* Space for fixed footer */
    font-family: 'Segoe UI', sans-serif;
    background-color: #f3e9eb;
}

/* ===============================
   NAVBAR (FIXED TOP)
================================= */

.navbar {
    background-color: #722F37;
}

.navbar-brand {
    color: #ffffff !important;
    font-weight: bold;
    font-size: 18px;
}

.nav-link {
    color: #ffffff !important;
    margin-left: 15px;
}

.nav-link:hover {
    color: #ffdede !important;
}

.navbar-toggler {
    border-color: rgba(255,255,255,0.5);
}

.navbar-toggler-icon {
    filter: invert(1);
}

/* ===============================
   HERO SECTION
================================= */

.hero {
    height: 85vh;
}

.hero img {
    height: 85vh;
    width: 100%;
    object-fit: cover;
}

/* ===============================
   GENERAL CONTENT
================================= */

.section-title {
    font-weight: bold;
    margin-bottom: 30px;
}

.gallery img {
    transition: transform 0.4s ease;
}

.gallery img:hover {
    transform: scale(1.05);
}

/* ===============================
   HERO CAROUSEL FINAL FIX
================================= */

#heroCarousel {
    background-color: #f4e9eb;
    padding: 40px 0;
    display: flex;
    justify-content: center;
}

/* Center the carousel */
#heroCarousel .carousel-inner {
    width: 900px;
    max-width: 100%;
}

/* Force same height */
#heroCarousel .carousel-item {
    height: 600px;
}

/* Image styling */
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 8px solid #722F37;
    border-radius: 10px;
    display: block;
}

/* Tablet */
@media (max-width: 992px) {
    #heroCarousel .carousel-item {
        height: 450px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    #heroCarousel .carousel-item {
        height: 280px;
    }

    .hero-img {
        border-width: 5px;
    }
}
/* About Section Text */
.about-section p {
    text-align: justify;
    line-height: 1.9;
    font-size: 16px;
    color: #444;
}

/* Better heading spacing */
.about-section {
    max-width: 900px;
    margin: auto;
}

/* ===============================
   CONTACT PAGE PROFESSIONAL DESIGN
================================= */

.contact-box {
    background-color: #f4e9eb;
    border-left: 6px solid #722F37;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.contact-box h4 {
    color: #722F37;
    font-weight: 600;
}

/* Google Map Styling */
.map-container {
    border: 6px solid #722F37;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

/* Get Directions Button */
.directions-btn {
    background-color: #722F37;
    color: #ffffff;
    padding: 10px 28px;
    font-weight: 600;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.directions-btn:hover {
    background-color: #5a232a;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .map-container iframe {
        height: 280px;
    }
}
/* ===== GALLERY SECTION ===== */
.gallery-section {
    background: #f3e9eb;
}

/* Gallery Card */
.gallery-card {
    height: 220px;
    overflow: hidden;
    border-radius: 10px;
    border: 3px solid #722F37;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: 0.4s;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Force image to fit perfectly */
.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== CAMPUS SECTION ===== */
.campus-section {
    background: #f3e9eb;
}

.campus-image img {
    max-width: 900px;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
    border: 4px solid #722F37;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ===== CAMPUS SECTION ===== */
.campus-section {
    background: #f3e9eb;
}

/* Main Campus Image */
.campus-main-img {
    width: 100%;
    max-width: 1000px;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
    border: 4px solid #722F37;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Feature Boxes */
.feature-box {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border-top: 4px solid #722F37;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-box h5 {
    font-weight: 600;
    margin-bottom: 10px;
    color: #722F37;
}

.feature-box p {
    font-size: 14px;
    color: #555;
}

/* Facility Cards */
.facility-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: 0.3s;
}

.facility-card:hover {
    transform: translateY(-5px);
}

.facility-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.facility-card h6 {
    padding: 15px;
    font-weight: 600;
    color: #333;
}

/* ===== Campus Slider ===== */

.campus-slider {
    max-width: 1000px;
    margin: 0 auto;
}

.campus-slider .carousel-inner {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.campus-slide-img {
    height: 450px;
    object-fit: cover;
}

/* Controls styling */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0,0,0,0.4);
    padding: 18px;
    border-radius: 50%;
}

/* Indicators styling */
.carousel-indicators [data-bs-target] {
    background-color: #722F37;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .campus-slide-img {
        height: 280px;
    }
}

/* ===== UNIVERSITY STYLE ABOUT ===== */

.about-wrapper {
    background: #f4f6f9;
}

/* Sidebar */
.about-sidebar {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.sidebar-title {
    padding: 0 25px 15px 25px;
    font-size: 13px;
    letter-spacing: 1px;
    font-weight: 700;
    color: #7b2d2d;
}

.sidebar-link {
    display: block;
    padding: 14px 25px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: 0.3s ease;
}

.sidebar-link:hover {
    background: #f1f1f1;
}

.sidebar-link.active {
    background: #7b2d2d;
    color: #fff;
}

/* Content Card */
.content-card {
    background: #ffffff;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

/* Title */
.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
}

.section-title:after {
    content: "";
    width: 60px;
    height: 4px;
    background: #7b2d2d;
    display: block;
    margin-top: 12px;
}

/* Profile Layout */
.profile-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.profile-layout img {
    width: 300px;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.profile-text p {
    line-height: 1.9;
    font-size: 16px;
    color: #444;
}

/* Responsive */
@media(max-width: 768px){
    .profile-layout {
        flex-direction: column;
    }

    .profile-layout img {
    width: 100%;
    max-width: 280px;      /* slightly smaller */
    height: 360px;         /* better proportion */
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

/* Add clean frame */
.profile-layout img {
    border: 6px solid #fff;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
.profile-image-box {
    width: 300px;
    margin: 0 auto;
}
}

/* ===== Principal Wrapper ===== */

.principal-wrapper {
    background: #ffffff;
    padding: 40px;
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
}

/* Image Box */
.principal-image-box {
    text-align: left; /* important */
}

.principal-photo {
    width: 100%;        /* make it fill column */
    max-width: 260px;   /* controlled size */
    height: 320px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Name */
.principal-name {
    font-weight: 600;
}

.principal-designation {
    font-size: 14px;
    color: #777;
}

/* Quote */
.principal-quote {
    color: #722F37;
    font-weight: 600;
    line-height: 1.5;
}

/* Paragraph */
.principal-content p {
    line-height: 1.8;
    color: #444;
}

/* Mobile */
@media (max-width: 992px) {
    .principal-photo {
        max-width: 220px;
        height: 280px;
    }
}

/* PDF Page Styling */

.pdf-wrapper {
    background: #ffffff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.pdf-wrapper iframe {
    width: 100%;
    min-height: 80vh;
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .pdf-wrapper iframe {
        min-height: 70vh;
    }
}

/* Floating Contact Buttons */

.floating-contact{
    position: fixed;
    right: 25px;
    bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 9999;
}

.float-btn{
    position: relative;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
    transition: 0.3s;
}

.float-btn:hover{
    transform: scale(1.1);
}

.call-btn{
    background:#0d6efd;
}

.email-btn{
    background:#dc3545;
}

.whatsapp-btn{
    background:#25D366;
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

.tooltip-text{
    position:absolute;
    right:80px;
    background:#333;
    color:#fff;
    padding:6px 10px;
    border-radius:4px;
    font-size:13px;
    white-space:nowrap;
    opacity:0;
    visibility:hidden;
    transition:0.3s;
}

.float-btn:hover .tooltip-text{
    opacity:1;
    visibility:visible;
}

/* ===============================
   FOOTER (FIXED BOTTOM)
================================= */

.footer {
    background-color: #722F37;   /* Same as navbar */
    color: #ffffff;
    text-align: center;
    padding: 15px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
}