* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Roboto, system-ui, sans-serif; }
body { background: #f8f4f9; color: #1a2a3a; line-height: 1.6; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

header { background: linear-gradient(135deg, #2c3e6b, #5b7fa5); color: white; padding: 0.6rem 0; position: sticky; top: 0; z-index: 999; box-shadow: 0 4px 20px rgba(0,0,0,0.25); }
.nav-wrapper { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.logo-image { height: 50px; width: auto; border-radius: 8px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text .college-name { font-size: 1.3rem; font-weight: 700; color: white; letter-spacing: 0.5px; }
.logo-text .college-name span { color: #f7c5d0; }
.logo-text .college-location { font-size: 0.65rem; font-weight: 400; color: #b8d0e0; letter-spacing: 2px; text-transform: uppercase; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: transparent; border: none; padding: 0.3rem; }
.hamburger span { display: block; width: 28px; height: 3px; background: white; border-radius: 4px; transition: 0.25s; }
.nav-links { display: flex; gap: 2rem; font-weight: 500; font-size: 1rem; align-items: center; }
.nav-links a { color: #f0f7fc; text-decoration: none; transition: 0.2s; padding: 0.3rem 0; border-bottom: 2px solid transparent; }
.nav-links a:hover { border-bottom-color: #f7c5d0; color: #f7c5d0; }
.nav-links a.active { border-bottom-color: #f7c5d0; }
.nav-links.mobile-open { display: flex; flex-direction: column; width: 100%; background: #2c3e6b; padding: 1.2rem 0 1.8rem; gap: 0.8rem; border-radius: 0 0 1.5rem 1.5rem; margin-top: 0.4rem; }
.nav-links.mobile-open a { font-size: 1.1rem; padding: 0.4rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); width: 100%; text-align: center; }

.page-title { text-align: center; font-size: 2.5rem; font-weight: 700; color: #2c3e6b; margin: 2rem 0 1rem; }
.page-title i { color: #f7c5d0; }
.page-title::after { content: ''; display: block; width: 80px; height: 4px; background: #f7c5d0; margin: 0.5rem auto 0; border-radius: 4px; }

.back-link { display: inline-block; margin: 0.5rem 0 1.5rem; color: #2c3e6b; text-decoration: none; font-weight: 500; }
.back-link:hover { color: #f7c5d0; }
.back-link i { margin-right: 0.5rem; }

/* Home: hero slider */
.hero-slider { margin-top: 0.5rem; border-radius: 1.5rem; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.15); position: relative; background: #5b7fa5; }
.slides { display: flex; transition: transform 0.7s ease-in-out; }
.slide { min-width: 100%; height: 500px; background-size: cover; background-position: center; display: flex; align-items: center; padding: 0 3rem; position: relative; }
.slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(44,62,107,0.7) 0%, rgba(91,127,165,0.2) 100%); }
.slide-content { position: relative; z-index: 2; max-width: 600px; color: white; text-shadow: 0 4px 12px rgba(0,0,0,0.5); }
.slide-content h2 { font-size: 3.2rem; font-weight: 700; margin-bottom: 0.75rem; }
.slide-content p { font-size: 1.3rem; opacity: 0.95; font-weight: 300; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.2); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,0.15); color: white; font-size: 2rem; padding: 0.4rem 1rem; border-radius: 50px; cursor: pointer; z-index: 10; transition: 0.2s; }
.slider-btn:hover { background: rgba(247,197,208,0.5); color: #2c3e6b; }
.slider-btn.prev { left: 1.2rem; } .slider-btn.next { right: 1.2rem; }

.section-title { text-align: center; font-size: 2.2rem; font-weight: 700; color: #2c3e6b; margin: 3rem 0 1.5rem; position: relative; }
.section-title::after { content: ''; display: block; width: 80px; height: 4px; background: #f7c5d0; margin: 0.5rem auto 0; border-radius: 4px; }

.sections-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin: 1.5rem 0 3rem; }
@media (max-width: 850px) { .sections-grid { grid-template-columns: 1fr; } }

.section-card { background: white; border-radius: 1.5rem; padding: 2rem; box-shadow: 0 8px 24px rgba(0,0,0,0.06); border-top: 6px solid #f7c5d0; }
.section-card h3 { font-size: 1.8rem; color: #2c3e6b; display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.section-card h3 i { color: #f7c5d0; }
.section-card .class-list { list-style: none; padding: 0; }
.section-card .class-list li { padding: 0.6rem 0; border-bottom: 1px solid #f0e8ec; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.section-card .class-list li strong { color: #2c3e6b; }
.section-card .class-list li .subjects { font-size: 0.9rem; color: #6a7a8a; }
.section-card .class-list li .subjects i { color: #f7c5d0; margin-right: 0.3rem; }
.section-card .empty-msg { color: #8a9aaa; text-align: center; padding: 1rem; }

.partners { background: linear-gradient(135deg, #e8f0f8, #d4e4f0); border-radius: 1.5rem; padding: 2rem 2.5rem; margin: 1.5rem 0 3rem; box-shadow: 0 8px 24px rgba(0,0,0,0.04); }
.partners h3 { color: #2c3e6b; display: flex; align-items: center; gap: 0.8rem; font-size: 1.8rem; }
.partners h3 i { color: #f7c5d0; }
.partners-grid { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; margin-top: 1rem; }
.partner-item { background: white; padding: 0.8rem 2rem; border-radius: 60px; border: 1px solid #c8d8e8; font-weight: 500; color: #2c3e6b; display: flex; align-items: center; gap: 0.6rem; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.partner-item i { color: #f7c5d0; }

.gallery-preview { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 1.2rem; margin: 1.5rem 0 2rem; }
.gallery-preview .gallery-thumb { height: 180px; border-radius: 1.2rem; background-size: cover; background-position: center; border: 3px solid transparent; transition: 0.3s; }
.gallery-preview .gallery-thumb:hover { border-color: #f7c5d0; transform: scale(1.02); }
.view-all-gallery { text-align: center; margin: 1rem 0 2rem; }
.view-all-gallery a { display: inline-block; background: #2c3e6b; color: white; padding: 0.7rem 2.5rem; border-radius: 50px; text-decoration: none; font-weight: 600; transition: 0.2s; }
.view-all-gallery a:hover { background: #5b7fa5; transform: scale(1.05); }
.view-all-gallery a i { margin-right: 0.5rem; }

/* Gallery page */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 1.5rem; margin: 2rem 0 3rem; }
.gallery-item { border-radius: 1.2rem; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.08); height: 280px; background-size: cover; background-position: center; transition: 0.3s; border: 3px solid transparent; position: relative; cursor: pointer; }
.gallery-item:hover { transform: scale(1.03); border-color: #f7c5d0; box-shadow: 0 8px 30px rgba(0,0,0,0.15); }
.gallery-item .gallery-label { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(44,62,107,0.8)); padding: 2rem 1rem 0.8rem; color: white; font-weight: 500; font-size: 1rem; opacity: 0; transition: 0.3s; }
.gallery-item:hover .gallery-label { opacity: 1; }
.gallery-item .zoom-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0); color: white; font-size: 3rem; background: rgba(0,0,0,0.5); width: 70px; height: 70px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: 0.3s; opacity: 0; }
.gallery-item:hover .zoom-icon { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.empty-gallery { text-align: center; padding: 4rem; color: #8a9aaa; background: white; border-radius: 1.5rem; border: 2px dashed #d8d0d4; grid-column: 1 / -1; }
.empty-gallery i { font-size: 4rem; color: #d8d0d4; margin-bottom: 1rem; display: block; }

.lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.92); z-index: 9999; justify-content: center; align-items: center; padding: 2rem; }
.lightbox.active { display: flex; }
.lightbox .close-btn { position: absolute; top: 1.5rem; right: 2rem; color: white; font-size: 3rem; cursor: pointer; transition: 0.3s; z-index: 10; background: none; border: none; }
.lightbox .close-btn:hover { color: #f7c5d0; transform: rotate(90deg); }
.lightbox .lightbox-content { max-width: 90%; max-height: 85vh; border-radius: 1rem; box-shadow: 0 20px 60px rgba(0,0,0,0.5); object-fit: contain; }
.lightbox .lightbox-label { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); color: white; font-size: 1.2rem; background: rgba(0,0,0,0.6); padding: 0.5rem 2rem; border-radius: 40px; backdrop-filter: blur(10px); text-align: center; max-width: 80%; }
.lightbox .nav-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.15); color: white; border: none; font-size: 2.5rem; padding: 1rem 1.5rem; border-radius: 50px; cursor: pointer; transition: 0.3s; backdrop-filter: blur(5px); }
.lightbox .nav-btn:hover { background: rgba(247,197,208,0.4); color: #f7c5d0; }
.lightbox .prev-btn { left: 1.5rem; }
.lightbox .next-btn { right: 1.5rem; }
.lightbox .counter { position: absolute; top: 1.5rem; left: 2rem; color: rgba(255,255,255,0.6); font-size: 1rem; background: rgba(0,0,0,0.4); padding: 0.3rem 1rem; border-radius: 30px; }

/* About page */
.about-content { background: white; border-radius: 1.5rem; padding: 2.5rem; margin-bottom: 3rem; box-shadow: 0 8px 30px rgba(0,0,0,0.05); border-left: 6px solid #f7c5d0; }
.about-content p { font-size: 1.1rem; color: #3a4a5a; max-width: 900px; }
.director-section { background: white; border-radius: 1.5rem; padding: 2.5rem; margin-bottom: 3rem; box-shadow: 0 8px 30px rgba(0,0,0,0.05); border-top: 6px solid #f7c5d0; }
.director-section h2 { font-size: 2rem; color: #2c3e6b; display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.5rem; }
.director-section h2 i { color: #f7c5d0; }
.director-card { display: flex; gap: 2rem; align-items: flex-start; flex-wrap: wrap; }
.director-photo { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; border: 6px solid #f7c5d0; box-shadow: 0 8px 24px rgba(0,0,0,0.1); background: #e8e0e4; flex-shrink: 0; background-size: cover; background-position: center; }
.director-info { flex: 1; min-width: 250px; }
.director-info h3 { font-size: 1.8rem; color: #2c3e6b; }
.director-info .title { color: #f7c5d0; font-weight: 600; font-size: 1.1rem; margin-bottom: 0.5rem; }
.director-info .bio { color: #3a4a5a; }
.staff-section { background: white; border-radius: 1.5rem; padding: 2.5rem; margin-bottom: 3rem; box-shadow: 0 8px 30px rgba(0,0,0,0.05); border-top: 6px solid #5b7fa5; }
.staff-section h2 { font-size: 2rem; color: #2c3e6b; display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.5rem; }
.staff-section h2 i { color: #5b7fa5; }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }
.staff-card { background: #f8f4f9; border-radius: 1.2rem; padding: 1.5rem; text-align: center; transition: 0.3s; border: 2px solid transparent; }
.staff-card:hover { border-color: #f7c5d0; transform: translateY(-5px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.staff-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; border: 4px solid #e8e0e4; background: #ddd; background-size: cover; background-position: center; }
.staff-card h4 { font-size: 1.2rem; color: #2c3e6b; }
.staff-card .staff-title { color: #f7c5d0; font-weight: 500; font-size: 0.95rem; margin-bottom: 0.5rem; }
.staff-card .staff-bio { color: #5a6a7a; font-size: 0.9rem; }
.empty-staff { text-align: center; padding: 2rem; color: #8a9aaa; grid-column: 1 / -1; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin: 2rem 0 3rem; }
@media (max-width: 850px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { background: white; border-radius: 1.5rem; padding: 2.5rem; box-shadow: 0 8px 30px rgba(0,0,0,0.05); border-left: 6px solid #f7c5d0; }
.contact-info h3 { font-size: 1.8rem; color: #2c3e6b; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.8rem; }
.contact-info h3 i { color: #f7c5d0; }
.contact-info .info-item { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid #f0e8ec; }
.contact-info .info-item:last-child { border-bottom: none; }
.contact-info .info-item i { font-size: 1.3rem; color: #f7c5d0; width: 30px; text-align: center; margin-top: 0.2rem; }
.contact-info .info-item .label { font-weight: 600; color: #2c3e6b; }
.contact-info .info-item .value { color: #3a4a5a; }
.map-container { background: white; border-radius: 1.5rem; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,0.05); border: 1px solid #e8e0e4; min-height: 300px; position: relative; }
.map-container iframe { width: 100%; height: 100%; min-height: 350px; border: none; }
.contact-form { background: white; border-radius: 1.5rem; padding: 2.5rem; box-shadow: 0 8px 30px rgba(0,0,0,0.05); border-top: 6px solid #5b7fa5; }
.contact-form h3 { font-size: 1.8rem; color: #2c3e6b; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.8rem; }
.contact-form h3 i { color: #5b7fa5; }
.contact-form .form-group { margin-bottom: 1.2rem; }
.contact-form .form-group label { display: block; font-weight: 600; color: #2c3e6b; margin-bottom: 0.3rem; }
.contact-form .form-group input, .contact-form .form-group textarea { width: 100%; padding: 0.7rem 1rem; border: 2px solid #d8d0d4; border-radius: 0.8rem; font-size: 1rem; transition: 0.2s; }
.contact-form .form-group input:focus, .contact-form .form-group textarea:focus { outline: none; border-color: #f7c5d0; box-shadow: 0 0 0 3px rgba(247,197,208,0.2); }
.contact-form .form-group textarea { min-height: 120px; resize: vertical; }
.contact-form .btn-submit { background: #2c3e6b; color: white; border: none; padding: 0.8rem 2.5rem; border-radius: 50px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: 0.2s; }
.contact-form .btn-submit:hover { background: #5b7fa5; transform: scale(1.02); }
.contact-form .btn-submit i { margin-right: 0.5rem; }
.success-msg { background: #d4edda; color: #155724; padding: 1rem 1.5rem; border-radius: 0.8rem; margin-bottom: 1rem; display: none; border: 1px solid #c3e6cb; }
.success-msg.show { display: block; }

footer { background: linear-gradient(135deg, #2c3e6b, #5b7fa5); color: #e8f0f8; padding: 2rem 0; margin-top: 2rem; border-radius: 1.5rem 1.5rem 0 0; }
.footer-content { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.footer-content p i { color: #f7c5d0; }
.social i { font-size: 1.5rem; margin-left: 1.2rem; color: #b8d0e0; transition: 0.2s; cursor: pointer; }
.social i:hover { color: #f7c5d0; transform: scale(1.1); }
.admin-access { text-align: center; padding: 0.5rem 0; color: #8a9aaa; font-size: 0.75rem; }
.admin-access a { color: #8a9aaa; text-decoration: none; }
.admin-access a:hover { color: #f7c5d0; }

@media (max-width: 850px) {
  .container { padding: 0 1.2rem; }
  .slide { height: 350px; padding: 0 1.5rem; }
  .slide-content h2 { font-size: 2.2rem; }
  .slide-content p { font-size: 1rem; }
  .logo-text .college-name { font-size: 1.1rem; }
  .logo-image { height: 40px; }
  .director-card { flex-direction: column; align-items: center; text-align: center; }
  .director-photo { width: 160px; height: 160px; }
  .contact-info, .contact-form { padding: 1.8rem; }
  .lightbox .nav-btn { font-size: 1.5rem; padding: 0.5rem 1rem; }
  .lightbox .prev-btn { left: 0.5rem; }
  .lightbox .next-btn { right: 0.5rem; }
}
@media (max-width: 700px) {
  .hamburger { display: flex; }
  .nav-links { display: none; }
  .nav-links.mobile-open { display: flex; }
  .logo-text .college-name { font-size: 0.95rem; }
  .logo-image { height: 35px; }
  .slide { height: 280px; }
  .slide-content h2 { font-size: 1.8rem; }
  .gallery-preview .gallery-thumb { height: 140px; }
  .page-title { font-size: 2rem; }
  .staff-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item { height: 220px; }
  .lightbox .close-btn { font-size: 2rem; top: 0.8rem; right: 1.2rem; }
  .lightbox .counter { display: none; }
}
@media (max-width: 550px) {
  .container { padding: 0 0.8rem; }
  .slide { height: 220px; padding: 0 0.8rem; }
  .slide-content h2 { font-size: 1.4rem; }
  .slide-content p { font-size: 0.85rem; }
  .slider-btn { font-size: 1rem; padding: 0.2rem 0.6rem; }
  .slider-btn.prev { left: 0.5rem; } .slider-btn.next { right: 0.5rem; }
  .section-title { font-size: 1.6rem; }
  .section-card { padding: 1.2rem; }
  .section-card h3 { font-size: 1.4rem; }
  .partners { padding: 1.2rem; }
  .partner-item { padding: 0.5rem 1.2rem; font-size: 0.85rem; }
  .gallery-preview .gallery-thumb { height: 120px; }
  .page-title { font-size: 1.6rem; }
  .director-photo { width: 140px; height: 140px; }
  .staff-grid { grid-template-columns: 1fr; }
  .about-content, .director-section, .staff-section, .contact-info, .contact-form { padding: 1.2rem; }
  .gallery-item { height: 180px; }
  .lightbox .nav-btn { font-size: 1.2rem; padding: 0.4rem 0.7rem; }
  .lightbox .lightbox-label { font-size: 0.9rem; padding: 0.3rem 1rem; bottom: 1rem; }
  .logo-text .college-name { font-size: 0.8rem; }
  .logo-text .college-location { font-size: 0.5rem; }
  .logo-image { height: 30px; }
}
