/* WBS Pune College Website - Maroon Theme */

:root {
    --primary-color: #800000;
    --secondary-color: #660000;
    --accent-color: #A52A2A;
    --light-maroon: #B22222;
    --white: #FFFFFF;
    --light-gray: #f5f5f5ba;
    --dark-gray: #333333;
    --text-dark: #333333;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

/* Navigation */
.navbar {
    background-color: #800000 !important;
    padding: 0.5rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white) !important;
    text-decoration: none;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand:hover {
    opacity: 0.9;
}

.logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
    /* vertical-align: middle;  <-- removed (ignored for block-level) */
    /* optionally: align-self: center; */
}

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

.brand-text {
    font-weight: 600;
    font-size: 1.5rem;
    white-space: nowrap;
    margin: 0;
    line-height: 1.2;
    display: flex;
    align-items: center;
}

.brand-text.full { display: inline-block; }
.brand-text.short { display: none; }

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .logo-img {
        height: 90px;
    }
    
    .brand-text {
        font-size: 1.15rem;
    }
}

@media (max-width: 576px) {
    .brand-text.full { display: none; }
    .brand-text.short { display: inline-block; }
    .brand-text.short { font-size: 1rem; font-weight: 600; white-space: nowrap; }
    .logo-img { height: 70px; } /* optional: adjust logo for phones */
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    margin: 0 10px;
    font-weight: 500;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
    color: #FFD700 !important;
}

.navbar-toggler {
    border-color: var(--white);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Modern colored navbar dropdowns */
.navbar .dropdown-menu {
    background: linear-gradient(180deg, rgba(91,0,0,0.98) 0%, rgba(128,0,0,0.98) 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    padding: 0.4rem;
    min-width: 220px;
    transform-origin: top right;
    transition: transform .18s cubic-bezier(.2,.9,.2,1), opacity .18s ease;
    opacity: 0;
    transform: translateY(-8px) scale(.98);
    pointer-events: none;
}

/* Show state */
.navbar .show > .dropdown-menu,
.navbar .dropdown-menu.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Dropdown items */
.navbar .dropdown-item {
    color: rgba(255,255,255,0.95);
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    transition: background .14s ease, color .14s ease, transform .14s ease;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
}

/* Hover / focus */
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background: rgba(255,215,0,0.12); /* subtle gold highlight */
    color: #fff;
    transform: translateX(4px);
    text-decoration: none;
}

/* Active / selected */
.navbar .dropdown-item.active,
.navbar .dropdown-item:active {
    background: #FFD700;
    color: #800000;
    font-weight: 600;
}

/* Optional section header inside dropdown */
.navbar .dropdown-header {
    color: rgba(255,255,255,0.9);
    font-weight: 700;
    padding: 0.55rem 0.9rem;
    font-size: 0.95rem;
}

/* Divider style */
.navbar .dropdown-divider {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin: .35rem 0;
}

/* Caret color (Bootstrap 5) */
.navbar .nav-link.dropdown-toggle::after {
    border-top-color: #FFD700 !important;
}


/* Right-aligned menus (dropdown-menu-end) keep alignment on large screens */
@media (min-width: 992px) {
    .navbar .dropdown-menu {
        right: 0;
        left: auto;
    }
}

/* Small screens: increase touch target */
@media (max-width: 576px) {
    .navbar .dropdown-item {
        padding: 0.85rem 1rem;
        font-size: 1rem;
    }
}

/* HERO SLIDER */
body {
  padding-top: 100px; /* must match navbar height */
}


.hero-slide {
  height: 90vh;
  display: flex;
  align-items: center;
  color: #fff;
  position: relative;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.123);
  pointer-events: none;
}

.hero-slide .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 650px;
}

.hero-content h1 {
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 12px;
  margin-top: 30px;
  line-height: 1.2;
}

.hero-content p {
  font-size: clamp(0.95rem, 2.2vw, 1.25rem);
  margin-bottom: 20px;
}


.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 25px;
}

/* Header/Hero Section */
.new-hero-section {
    background-image: url('../images/new background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0px;
}

.new-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(128, 0, 0, 0.7) 0%, rgba(102, 0, 0, 0.7) 100%);
    z-index: 1;
}

.new-hero-content {
    position: relative;
    z-index: 2;
}

.new-hero-section h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.new-hero-section p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

/* Slide Background Images */
.slide-1 {
    background-image: url("../images/Slide 1 new.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slide-2 {
    background-image: url("../images/Slide 2 new.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slide-3 {
    background-image: url("../images/Slide 3 new.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Responsive */
@media (max-width: 768px) {
    /* Make hero shorter on tablets/phones, center content and allow wrapping */
    .hero-slide {
        height: 55vh;
        display: flex;
        align-items: center;
    }

    .hero-content {
        max-width: 100%;
        padding: 0 1rem;
        text-align: center;
        margin: 0 auto;
    }

    .hero-content h1 {
        font-size: clamp(1.25rem, 4.5vw, 1.9rem);
        margin-top: 8px;
        margin-bottom: 8px;
        line-height: 1.15;
    }

    .hero-content p {
        font-size: clamp(0.9rem, 2.2vw, 1.05rem);
        margin-bottom: 12px;
    }

    /* Make hero buttons stack / fill width on small screens for easier tapping */
    .hero-content .btn {
        display: inline-block;
        width: 100%;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
        padding: 10px 18px;
        font-size: 1rem;
        white-space: normal;
        box-sizing: border-box;
    }

    .carousel-indicators {
        bottom: 8px;
    }
}

/* Header/Hero Section */
.hero-section {
    background-image: url('../images/new background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 60px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(128, 0, 0, 0.7) 0%, rgba(102, 0, 0, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.hero-content .btn {
  font-size: clamp(0.9rem, 2.2vw, 1.1rem);
  padding: clamp(8px, 2vw, 12px) clamp(18px, 4vw, 30px);
  border-radius: 6px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.25s ease;
}

@media (max-width: 768px) {
    .hero-content .btn {
        min-width: 0;
        width: 100%;
        max-width: 360px;
    }
}

.hero-content .btn:hover {
  transform: translateY(-2px);
}

.hero-content .btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.4);
}

/* Buttons */
.btn-primary {
    background-color: #800000 !important;
    border-color: #800000 !important;
    color: var(--white) !important;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #660000 !important;
    border-color: #660000 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(128, 0, 0, 0.3);
}

.btn-light {
    background-color: var(--white) !important;
    color: #800000 !important;
    border-color: var(--white) !important;
}

.btn-light:hover {
    background-color: #f0f0f0 !important;
    border-color: #f0f0f0 !important;
}

.btn-outline-primary {
    color: #800000 !important;
    border-color: #800000 !important;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 500;
}

.btn-outline-primary:hover {
    background-color: #800000 !important;
    border-color: #800000 !important;
    color: var(--white) !important;
}

.col-md-4, .col-md-6 {
    margin-bottom: 30px;
}

/* Image Sections */
.image-section {
    padding: 40px 0;
    background-color: var(--light-gray);
}

.image-section-alt {
    background-color: var(--white);
}

.image-section h2 {
    color: #800000;
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    font-weight: bold;
}

.image-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 30px;
    height: 100%;
}

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

.image-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.image-card-body {
    padding: 20px;
}

.image-card h3 {
    color: #800000;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.image-card p {
    color: var(--text-dark);
    line-height: 1.8;
}

/* Section Styling */
.section {
    padding: 80px 0;
}

.section-alt {
    background-color: var(--light-gray);
}

.section h2 {
    color: #800000;
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
}

.section h3 {
    color: #660000;
    font-size: 1.8rem;
    margin-bottom: 20px;
    margin-top: 30px;
}

.section p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Mission, Vision, Objectives */
.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.objective-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-left: 5px solid #800000;
    transition: transform 0.3s;
}

.objective-card:hover {
    transform: translateY(-5px);
}

.objective-card h3 {
    color: #800000;
    margin-bottom: 15px;
}

/* Programs Cards */
.program-card {
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    padding: 40px;
    margin-bottom: 20px, 20px, 20px;
    transition: all 0.3s;
    height: 100%;
}

.program-card:hover {
    border-color: #800000;
    box-shadow: 0 8px 15px rgba(128, 0, 0, 0.2);
}

.program-card h3 {
    color: #800000;
    margin-bottom: 10px;
}

.program-card ul {
    list-style: none;
    padding-left: 0;
}

.program-card ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.program-card ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #800000;
    font-weight: bold;
}

/* Forms */
.form-section {
    background-color: var(--light-gray);
    padding: 60px 0;
}

.form-control:focus {
    border-color: #800000;
    box-shadow: 0 0 0 0.2rem rgba(128, 0, 0, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
}

/* Table */
.table {
    margin-top: 30px;
}

.table thead {
    background-color: #800000;
    color: var(--white);
}

.table tbody tr:hover {
    background-color: #FFE4E1;
}

/* Footer */
.footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 30px;
}

.footer h5 {
    color: #800000;
    margin-bottom: 20px;
}

.footer a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: #800000;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
}

/* Timeline */
.timeline-item {
    background: var(--white);
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #800000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.timeline-item h4 {
    color: #800000;
    margin-bottom: 10px;
}

/* Infrastructure Section */
.infrastructure-section {
    margin-top: 10px;
    margin-bottom: 20px;
    padding: 30px 0;
}

.infrastructure-section h2 {
    color: #800000;
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    font-weight: bold;
}

.infrastructure-section .image-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.infrastructure-section .image-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.infrastructure-section .image-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.infrastructure-section .image-card h3 {
    color: #800000;
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.infrastructure-section .image-card p {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

.infrastructure-section .image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(128, 0, 0, 0.3);
}

/* Recruiters Section */
.recruiters-scroll {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 20px 0;
    scroll-behavior: smooth;
}

.recruiters-scroll::-webkit-scrollbar {
    height: 8px;
}

.recruiters-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.recruiters-scroll::-webkit-scrollbar-thumb {
    background: #800000;
    border-radius: 10px;
}

.recruiters-scroll::-webkit-scrollbar-thumb:hover {
    background: #660000;
}

.recruiter-logo {
    max-width: 180px;
    height: auto;
    transition: transform 0.3s ease;
    filter: grayscale(100%);
}

.recruiter-logo:hover {
    transform: scale(1.1);
    filter: grayscale(0%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.2rem;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    .objectives-grid {
        grid-template-columns: 1fr;
    }
}

/* Chairman Message Page */
.chairman-section {
    background: #ffffff;
    padding: 60px 0;
}

.chairman-title {
    font-size: 36px;
    font-weight: 700;
    color: #000;
}

.chairman-img {
    width: 100%;
    max-width: 260px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.chairman-message p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
    text-align: justify;
}

.chairman-signature h5 {
    font-weight: 700;
    margin-bottom: 5px;
}

.chairman-signature p {
    font-size: 15px;
    color: #000;
}

.dean-message-section {
    background: #ffffff;
}

/* Quote */
.dean-quote {
    font-family: "Brush Script MT", cursive;
    font-size: 1.4rem;
    color: #000;
    margin-bottom: 25px;
}

.dean-quote span {
    display: block;
    margin-top: 6px;
    font-size: 1.1rem;
}

/* Text */
.dean-text {
    font-size: 1.05rem;
    line-height: 1.8;
    text-align: justify;
    color: #222;
    margin-bottom: 15px;
}

/* Image */
.dean-image {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Signature */
.dean-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.dean-designation {
    font-size: 1rem;
    color: #333;
}

.director-section {
    background: #f9f9f9;
}

.director-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #000;
}

.director-title span {
    font-family: "Brush Script MT", cursive;
    font-weight: 500;
}

.director-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    text-align: justify;
    margin-bottom: 15px;
}

.director-image {
    border-radius: 6px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.director-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.director-designation {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
}

.big-heading {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.sub-heading {
    font-size: 1.6rem;
    font-weight: 600;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.8;
    text-align: justify;
}

.motto-text {
    font-family: "Brush Script MT", cursive;
    font-size: 1.4rem;
    margin-bottom: 30px;
}

.quote-circle {
    border: 3px solid #000;
    border-radius: 50%;
    padding: 30px;
    font-family: "Brush Script MT", cursive;
    font-size: 1.3rem;
    display: inline-block;
}

.vision-list,
.quality-list {
    font-size: 1.05rem;
    line-height: 1.8;
}

.section-alt {
    background: #f8f8f8;
}

/* Ensure `.container` centers content and is responsive */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

/* Utility to perfectly center vertically and horizontally when needed */
.container.centered {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* ===========================
   MOBILE RESPONSIVE NAVBAR
   =========================== */

/* Mobile view - tablet and smaller devices */
@media (max-width: 991px) {
    /* Make navbar collapse scrollable */
    .navbar-collapse {
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }
    
    /* Stack nav items vertically */
    .navbar-nav {
        flex-direction: column;
    }
    
    /* Style main nav links on mobile */
    .navbar-nav .nav-link {
        padding: 0.75rem 1.5rem !important;
        margin: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        white-space: normal;
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(255, 215, 0, 0.1);
    }
    
    /* HIDE dropdown toggle caret on mobile */
    .navbar .dropdown-toggle::after {
        display: none !important;
    }
    
    /* Dropdown menus - SHOW AS REGULAR ITEMS (no animation) */
    .navbar .dropdown-menu {
        position: static !important;
        width: 100%;
        margin: 0 !important;
        padding: 0;
        background: transparent !important;
        border-radius: 0;
        border: none;
        box-shadow: none;
        
        /* Always visible on mobile */
        display: block !important;
        max-height: none !important;
        overflow: visible !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none;
        pointer-events: auto !important;
    }
    
    /* Dropdown items - styled like regular nav links */
    .navbar .dropdown-item {
        padding: 0.75rem 2rem !important;
        border-radius: 0;
        white-space: normal;
        color: rgba(255, 255, 255, 0.95) !important;
        display: block;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background: transparent;
        transition: background 0.2s ease;
    }
    
    .navbar .dropdown-item:hover,
    .navbar .dropdown-item:focus {
        background: rgba(255, 215, 0, 0.1) !important;
        color: #FFD700 !important;
        transform: none !important;
    }
}

/* Small screens - phones */
@media (max-width: 576px) {
    .navbar-collapse {
        max-height: calc(100vh - 90px);
    }
    
    .navbar-nav .nav-link {
        padding: 0.65rem 1.25rem !important;
        font-size: 0.95rem;
    }
    
    .navbar .dropdown-item {
        padding: 0.65rem 1.75rem !important;
        font-size: 0.95rem;
    }
    
    .navbar-brand {
        gap: 0.3rem;
    }
}

/* Extra small screens - very small phones */
@media (max-width: 360px) {
    .navbar-nav .nav-link {
        padding: 0.55rem 1rem !important;
        font-size: 0.9rem;
    }
    
    .navbar .dropdown-item {
        padding: 0.55rem 1.5rem !important;
        font-size: 0.9rem;
    }
}

/* Desktop view - keep original dropdown styling with animations */
@media (min-width: 992px) {
    .navbar .dropdown-menu {
        right: 0;
        left: auto;
    }
    
    .navbar .dropdown-toggle::after {
        display: inline-block !important;
    }
}
