/* Global Styles */
:root {
    --primary-color: #002147;
    --secondary-color: #f8f9fa;
    --accent-color: #ff4d4d;
}

body {
    font-family: 'Arial', sans-serif;
    padding-top: 76px; /* Height of navbar */
}

html {
    scroll-behavior: smooth;
}

/* Navigation */
.navbar {
    background-color: var(--primary-color);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    margin-right: 10px;
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-color) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    margin-top: 10px;
}

.dropdown-item {
    padding: 8px 20px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: white;
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--primary-color);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 0.5rem;
    }
    
    .dropdown-menu {
        background: transparent;
        border: none;
        box-shadow: none;
    }
    
    .dropdown-item {
        color: white;
    }
    
    .dropdown-item:hover {
        background: rgba(255,255,255,0.1);
    }
}

/* Hero Section */
#heroCarousel {
    margin-top: -16px;
}

.carousel-item img {
    height: 600px;
    object-fit: cover;
}

/* Welcome Section */
#welcome {
    background-color: var(--secondary-color);
}

/* Announcements Section */
.announcement-card {
    border: none;
    transition: transform 0.3s ease;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.announcement-card:hover {
    transform: translateY(-5px);
}

.announcement-date {
    background-color: var(--primary-color);
    color: white;
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
}

.announcement-date .day {
    font-size: 1.8rem;
    font-weight: bold;
    display: block;
    line-height: 1;
}

.announcement-date .month {
    font-size: 1rem;
    text-transform: uppercase;
}

.announcement-card .card-title {
    color: var(--primary-color);
    margin-top: 0.5rem;
    font-weight: 600;
}

.announcement-card .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.announcement-card .btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
}

/* Courses Section */
.card {
    transition: transform 0.3s ease;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    height: 100%;
    border: none;
    border-radius: 10px;
}

.card:hover {
    transform: translateY(-5px);
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-text {
    color: #666;
    line-height: 1.8;
}

.card .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 8px 20px;
    margin-top: 1rem;
}

.card .btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
}

/* Administration Section */
.admin-card {
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.admin-card:hover {
    transform: translateY(-5px);
}

.admin-card img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    margin-bottom: 1.5rem;
}

.admin-card h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.admin-card .designation {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.admin-card .qualification {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.admin-social a {
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.admin-social a:hover {
    color: var(--accent-color) !important;
}

/* Gallery Section */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
}

/* News Section */
.news-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card img {
    height: 100%;
    object-fit: cover;
}

.news-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-date {
    color: #666;
    font-size: 0.9rem;
}

.news-content h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.news-content p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.news-content .btn-primary {
    align-self: flex-start;
    padding: 0.25rem 1rem;
    font-size: 0.9rem;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.news-content .btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
}

  #events h2 {
    font-weight: 700;
    color: #007bff;
  }

/* Events Section */
.event-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-icon {
    position: relative;
    display: inline-block;
}

.event-icon img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 4px solid var(--primary-color);
}

.event-date {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--primary-color);
    color: white;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    min-width: 60px;
}

.event-date .month {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
}

.event-date .date {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1;
}

.event-card h4 {
    color: var(--primary-color);
    margin: 15px 0 10px;
    font-weight: 600;
}

.event-time {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.event-card .btn {
    padding: 8px 20px;
    border-radius: 5px;
}

.event-card .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.event-card .btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
}

/* Videos Section */
.video-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.1);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-button i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.video-card:hover .play-button {
    background: var(--primary-color);
}

.video-card:hover .play-button i {
    color: white;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.video-info {
    padding: 1rem;
}

.video-info h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.video-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Feedback Section */
/*Edited new*/
.feedback-align{
    position:relative;
    height: 40vh;
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    overflow-y: hidden;
    overflow-x:auto;
}
.feedback-align::-webkit-scrollbar{
    display:none;
}
.feedback-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feedback-card:hover {
    transform: translateY(-5px);
}

.student-info img {
  display: block;
  width: 70px !important;
  height: 70px !important;
  aspect-ratio: 1 / 1 !important; /* ensures perfect square */
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: center;
}

  .teacher-card {
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  }

  .profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    border: 3px solid #ddd;
  }

  .profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }


  @media (max-width: 768px) {
    .feedback-card {
      min-width: 240px;
    }
  }


.student-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.student-info h5 {
    margin: 0;
    color: var(--primary-color);
    font-weight: 600;
}

.student-info p {
    margin: 5px 0 0;
    font-size: 0.9rem;
}

  #feedback h2 {
    font-weight: 700;
    color: #007bff;
  }

.feedback-card .card-text {
    font-style: italic;
    color: #666;
    margin-top: 15px;
}

/* Footer */
footer {
    background-color: var(--primary-color) !important;
}

.social-links a {
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-item img {
        height: 400px;
    }
    
    #welcome img {
        margin-top: 2rem;
    }
    
    .counter {
        margin-bottom: 1rem;
    }
}

/* About Page Styles */
.about-hero {
    background-color: var(--secondary-color);
    padding-top: 100px;
}

.about-hero h1 {
    color: var(--primary-color);
    font-weight: 700;
}

.about-hero .lead {
    color: #666;
    font-size: 1.2rem;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    margin-bottom: 30px;
    position: relative;
}

.timeline-date {
    position: absolute;
    width: 100px;
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 8px 0;
    border-radius: 5px;
    font-weight: bold;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    position: relative;
    margin-top: 50px;
}

.timeline-content::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-content h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Facility Cards */
.facility-card {
    background: white;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.facility-card:hover {
    transform: translateY(-5px);
}

.facility-card h4 {
    color: var(--primary-color);
    margin: 15px 0;
}

.facility-card p {
    color: #666;
    line-height: 1.6;
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 40px;
    }
    
    .timeline-date {
        left: 40px;
        transform: none;
    }
    
    .timeline-content {
        margin-left: 70px;
    }
    
    .timeline-content::before {
        left: -10px;
        transform: none;
    }
}

/* Gallery Page Styles */
.gallery-hero {
    background-color: var(--secondary-color);
    padding-top: 100px;
}

.gallery-hero h1 {
    color: var(--primary-color);
    font-weight: 700;
}

  #gallery h2 {
    font-weight: 700;
    color: #007bff;
  }


/* Upload Section */
.upload-section {
    background-color: var(--secondary-color);
}

.upload-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.upload-card h3 {
    color: var(--primary-color);
    font-weight: 600;
}

/* Gallery Filter */
.filter-buttons {
    margin-bottom: 30px;
}

.filter-buttons .btn {
    margin: 0 5px 10px;
    transition: all 0.3s ease;
}

.filter-buttons .btn:hover,
.filter-buttons .btn.active {
    background-color: var(--primary-color);
    color: white;
}

/* Gallery Grid */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h5 {
    color: white;
    margin-bottom: 5px;
    font-weight: 600;
}

.gallery-overlay p {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.gallery-category {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Lightbox Customization */
.lb-data .lb-caption {
    font-size: 1.1rem;
    font-weight: 600;
}

.lb-data .lb-details {
    width: 100%;
    padding: 10px 0;
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-item img {
        height: 200px;
    }
    
    .gallery-overlay {
        padding: 15px;
    }
    
    .gallery-overlay h5 {
        font-size: 1rem;
    }
    
    .gallery-overlay p {
        font-size: 0.8rem;
    }
}

/* Category Modal Styles */
#categoryModal .modal-dialog {
    max-width: 90%;
    margin: 1.75rem auto;
}

#categoryModal .modal-content {
    background-color: var(--secondary-color);
    border: none;
    border-radius: 15px;
}

#categoryModal .modal-header {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 1rem 1.5rem;
}

#categoryModal .modal-title {
    color: var(--primary-color);
    font-weight: 600;
}

#categoryModal .modal-body {
    padding: 1.5rem;
}

/* Category Carousel Styles */
#categoryCarousel {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

#categoryCarousel .carousel-item img {
    width: 100%;
    height: 70vh;
    object-fit: cover;
}

#categoryCarousel .carousel-control-prev,
#categoryCarousel .carousel-control-next {
    width: 5%;
    opacity: 0.8;
}

#categoryCarousel .carousel-control-prev:hover,
#categoryCarousel .carousel-control-next:hover {
    opacity: 1;
}

#categoryCarousel .carousel-control-prev-icon,
#categoryCarousel .carousel-control-next-icon {
    background-color: var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    background-size: 50%;
}

/* Photo Info Styles */
.photo-info {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.photo-info h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.photo-info p {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

  .faq-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
  }

  .faq-question {
    width: 100%;
    text-align: left;
    background-color: #007bff;
    color: white;
    padding: 15px 20px;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
  }

  .faq-question:hover {
    background-color: #0056b3;
  }

  .faq-answer {
    display: none;
    padding: 15px 20px;
    background-color: #f8f9fa;
    font-size: 15px;
    color: #333;
  }

  .close {
    position: absolute;
    top: 30px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
  }

  .close:hover {
    color: #bbb;
  }

  @media (max-width: 768px) {
    .gallery-grid {
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
  }

  #placements {
    background-color: #f8f9fa;
  }

  #placements h2 {
    font-weight: 700;
    color: #007bff;
  }

  #placements h3 {
    color: #333;
    margin-bottom: 15px;
  }

  #placements p {
    font-size: 16px;
    color: #555;
  }

  #placements ul {
    list-style: disc inside;
    margin-top: 15px;
    margin-bottom: 20px;
    color: #555;
  }

  #placements ul li {
    margin-bottom: 10px;
  }

  #placements .btn {
    background-color: #007bff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
  }

  #placements .btn:hover {
    background-color: #0056b3;
  }

  #student-life h2 {
    font-weight: 700;
    color: #007bff;
  }

  .student-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: #fff;
  }

  .student-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
  }

  .student-card h5 {
    color: #333;
    margin-top: 15px;
    margin-bottom: 10px;
  }

  .student-card p {
    color: #555;
    font-size: 15px;
  }

  #student-life .btn {
    background-color: #007bff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
  }

  #student-life .btn:hover {
    background-color: #0056b3;
  }

/* Governing Body Image Size */
section .admin-img {
    width: 150px;
    height: 150px;
}

  #faqs h2 {
    font-weight: 700;
    color: #007bff;
  }


/* Responsive Modal */
@media (max-width: 768px) {
    #categoryModal .modal-dialog {
        max-width: 95%;
        margin: 1rem auto;
    }

    #categoryCarousel .carousel-item img {
        height: 50vh;
    }

    .photo-info {
        padding: 1rem;
    }

    .photo-info h4 {
        font-size: 1.2rem;
    }

    .photo-info p {
        font-size: 0.9rem;
    }
} 