/* IACER - Institute of Advanced Communication, Education and Research */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700;800&family=Montserrat:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #3db166;
  --dark-navy: #192f59;
  --dark: #161616;
  --light-gray: #f3f3f3;
  --text: #333;
  --white: #fff;
  --accent-blue: #8dd7e5;
}

html { scroll-behavior: smooth; }
body { font-family: 'Jost', sans-serif; color: var(--text); font-size: 16px; line-height: 1.7; }

a { text-decoration: none; color: inherit; transition: color .25s; }
a:hover { color: var(--green); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 40px; align-items: center; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.text-center { text-align: center; }
.text-white { color: var(--white); }
.bg-dark-navy { background: var(--dark-navy); }
.bg-dark { background: var(--dark); }
.bg-light { background: var(--light-gray); }
.bg-white { background: var(--white); }

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4,h5,h6 { font-family: 'Montserrat', sans-serif; font-weight: 700; line-height: 1.3; }
.section-title { font-size: 2rem; margin-bottom: 12px; }
.section-subtitle { font-size: 1rem; color: #666; margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }
.section-divider { width: 60px; height: 4px; background: var(--green); margin: 12px 0 30px; }
.section-divider.center { margin: 12px auto 30px; }
.lead { font-size: 1.1rem; color: #555; }

/* ===== TOP BAR ===== */
.topbar { background: var(--dark-navy); color: var(--white); font-size: 13px; padding: 8px 0; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.topbar-left { opacity: .8; }
.topbar-right { display: flex; align-items: center; gap: 20px; }
.topbar-right span { color: var(--accent-blue); }
.topbar-right .green { color: #4caf50; }
.topbar-right .btn-apply { background: var(--green); color: var(--white); padding: 4px 14px; border-radius: 3px; font-size: 12px; font-weight: 600; transition: background .25s; }
.topbar-right .btn-apply:hover { background: #2a9352; color: var(--white); }

/* ===== HEADER / NAV ===== */
.site-header { background: rgba(25, 47, 89, 0.97); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 20px rgba(0,0,0,.3); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 20px; }
.logo-wrap { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.logo-wrap img { height: 56px; width: auto; }
.logo-text { color: var(--white); }
.logo-text .name { font-family: 'Montserrat', sans-serif; font-size: 1.05rem; font-weight: 700; letter-spacing: .5px; }
.logo-text .tagline { font-size: 11px; opacity: .7; letter-spacing: .3px; }
nav.main-nav ul { display: flex; align-items: center; gap: 4px; }
nav.main-nav li { position: relative; }
nav.main-nav li a { color: rgba(255,255,255,.88); font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 4px; display: block; transition: all .25s; white-space: nowrap; }
nav.main-nav li a:hover, nav.main-nav li.active a { color: var(--white); background: rgba(61,177,102,.18); }
nav.main-nav li.active > a { color: var(--green); }
.dropdown { display: none; position: absolute; top: 100%; left: 0; background: var(--dark-navy); min-width: 200px; border-top: 3px solid var(--green); box-shadow: 0 8px 30px rgba(0,0,0,.3); border-radius: 0 0 6px 6px; z-index: 999; }
.dropdown li a { padding: 10px 18px; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.06); }
.dropdown li:last-child a { border-bottom: none; }
nav.main-nav li:hover .dropdown { display: block; }
.mobile-toggle { display: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.mobile-toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all .3s; }

/* ===== HERO SLIDER ===== */
.hero { position: relative; height: 90vh; min-height: 500px; overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.slide.active { opacity: 1; }
.slide-bg { width: 100%; height: 100%; object-fit: cover; }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(25,47,89,.75) 0%, rgba(0,0,0,.5) 100%); }
.slide-content { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--white); padding: 20px; }
.slide-content .pre-title { font-family: 'Poppins', sans-serif; font-size: 1rem; letter-spacing: 3px; text-transform: uppercase; opacity: .85; margin-bottom: 10px; }
.slide-content h1 { font-size: clamp(3rem, 8vw, 6rem); font-weight: 800; letter-spacing: -1px; line-height: 1; margin-bottom: 16px; font-family: 'Montserrat', sans-serif; }
.slide-content p { font-size: 1.1rem; opacity: .9; letter-spacing: 2px; margin-bottom: 32px; max-width: 600px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.btn { display: inline-block; padding: 13px 32px; border-radius: 4px; font-weight: 600; font-size: 14px; letter-spacing: .5px; transition: all .25s; cursor: pointer; border: 2px solid transparent; }
.btn-primary { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-primary:hover { background: #2a9352; border-color: #2a9352; color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-outline:hover { background: var(--white); color: var(--dark-navy); }
.slider-dots { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.4); border: 2px solid rgba(255,255,255,.5); cursor: pointer; transition: all .3s; }
.dot.active { background: var(--white); border-color: var(--white); }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.4); color: var(--white); font-size: 20px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .3s; }
.slider-arrow:hover { background: var(--green); border-color: var(--green); }
.slider-prev { left: 24px; }
.slider-next { right: 24px; }

/* ===== PAGE HERO ===== */
.page-hero { position: relative; min-height: 300px; display: flex; align-items: flex-end; background-size: cover; background-position: center; }
.page-hero::before { content:''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(25,47,89,.85) 0%, rgba(25,47,89,.45) 100%); }
.page-hero-content { position: relative; z-index: 1; padding: 60px 0 40px; color: var(--white); }
.page-hero-content .breadcrumb { font-size: 13px; opacity: .75; margin-bottom: 10px; }
.page-hero-content h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; }
.page-hero-content .subtitle { font-size: 1rem; opacity: .8; margin-top: 8px; }

/* ===== STATS ===== */
.stats-bar { background: var(--dark-navy); padding: 40px 0; }
.stats-bar .container { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; text-align: center; }
.stat-item { color: var(--white); }
.stat-item .number { font-size: 2.5rem; font-weight: 800; color: var(--green); font-family: 'Montserrat', sans-serif; }
.stat-item .label { font-size: 13px; opacity: .75; text-transform: uppercase; letter-spacing: 1px; }

/* ===== CARDS ===== */
.card { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.08); transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,.15); }
.card-img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 24px; }
.card-tag { display: inline-block; background: rgba(61,177,102,.12); color: var(--green); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 3px 10px; border-radius: 20px; margin-bottom: 10px; }
.card-title { font-size: 1.05rem; margin-bottom: 10px; color: var(--dark-navy); }
.card-text { font-size: .9rem; color: #666; }
.card-meta { font-size: 12px; color: #999; margin-top: 14px; border-top: 1px solid #eee; padding-top: 14px; }

/* ===== PROGRAM CARDS ===== */
.program-card { background: var(--white); border-radius: 10px; padding: 36px 28px; box-shadow: 0 4px 25px rgba(0,0,0,.08); border-bottom: 4px solid var(--green); transition: transform .3s, box-shadow .3s; }
.program-card:hover { transform: translateY(-8px); box-shadow: 0 15px 50px rgba(0,0,0,.15); }
.program-icon { font-size: 2.5rem; margin-bottom: 20px; }
.program-card h3 { font-size: 1.2rem; color: var(--dark-navy); margin-bottom: 12px; }
.program-card p { font-size: .92rem; color: #666; line-height: 1.7; }
.program-card .btn { margin-top: 20px; font-size: 13px; padding: 10px 22px; }

/* ===== FEATURES SECTION ===== */
.feature-item { display: flex; gap: 20px; align-items: flex-start; }
.feature-icon { width: 56px; height: 56px; border-radius: 12px; background: rgba(61,177,102,.1); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.feature-text h4 { font-size: 1rem; color: var(--dark-navy); margin-bottom: 6px; }
.feature-text p { font-size: .9rem; color: #666; }

/* ===== CTA SECTION ===== */
.cta-section { position: relative; padding: 100px 0; text-align: center; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(0.35); }
.cta-content { position: relative; z-index: 1; color: var(--white); }
.cta-content h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 16px; }
.cta-content p { font-size: 1.1rem; opacity: .85; max-width: 600px; margin: 0 auto 32px; }

/* ===== FACULTY CARDS ===== */
.faculty-card { text-align: center; }
.faculty-card .photo { width: 100%; height: 280px; object-fit: cover; object-position: top; border-radius: 8px; margin-bottom: 16px; transition: transform .3s; }
.faculty-card:hover .photo { transform: scale(1.03); }
.faculty-card h4 { font-size: 1rem; color: var(--dark-navy); }
.faculty-card .role { font-size: .85rem; color: var(--green); font-weight: 500; margin-top: 4px; }
.faculty-card .bio { font-size: .85rem; color: #666; margin-top: 8px; }

/* ===== TESTIMONIALS ===== */
.testimonial { background: var(--white); border-radius: 10px; padding: 32px; box-shadow: 0 4px 20px rgba(0,0,0,.07); border-left: 4px solid var(--green); }
.testimonial .quote { font-size: 1.05rem; color: #555; font-style: italic; line-height: 1.8; margin-bottom: 20px; }
.testimonial .author { display: flex; align-items: center; gap: 14px; }
.testimonial .author img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.testimonial .author-name { font-weight: 700; font-size: .95rem; color: var(--dark-navy); }
.testimonial .author-title { font-size: .8rem; color: #999; }

/* ===== GALLERY ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery-item { overflow: hidden; border-radius: 6px; aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item.large { grid-column: span 2; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info { }
.contact-card { display: flex; gap: 18px; align-items: flex-start; padding: 24px; background: var(--light-gray); border-radius: 8px; margin-bottom: 16px; }
.contact-card .icon { font-size: 1.8rem; }
.contact-card h4 { font-size: 1rem; color: var(--dark-navy); margin-bottom: 4px; }
.contact-card p, .contact-card a { font-size: .9rem; color: #555; }
.contact-card a:hover { color: var(--green); }
.contact-form { background: var(--white); padding: 40px; border-radius: 10px; box-shadow: 0 4px 25px rgba(0,0,0,.08); }
.contact-form h3 { font-size: 1.4rem; color: var(--dark-navy); margin-bottom: 6px; }
.contact-form .form-subtitle { font-size: .9rem; color: #666; margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .88rem; font-weight: 600; color: var(--dark-navy); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 16px; border: 2px solid #e8e8e8; border-radius: 6px; font-family: inherit; font-size: .9rem; transition: border-color .25s; outline: none; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--green); }
.form-group textarea { height: 130px; resize: vertical; }
.btn-submit { width: 100%; padding: 14px; background: var(--green); color: var(--white); border: none; border-radius: 6px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: background .25s; }
.btn-submit:hover { background: #2a9352; }

/* ===== MISSION SECTION ===== */
.mission-section { background: var(--dark-navy); padding: 80px 0; }
.mission-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 40px; }
.mission-item h3 { font-size: 1.1rem; color: var(--green); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid rgba(61,177,102,.3); }
.mission-item p { font-size: .92rem; color: rgba(255,255,255,.8); line-height: 1.8; }

/* ===== ACCORDION / CURRICULUM ===== */
.accordion { border-radius: 8px; overflow: hidden; box-shadow: 0 2px 15px rgba(0,0,0,.07); }
.accordion-item { border-bottom: 1px solid #eee; }
.accordion-item:last-child { border-bottom: none; }
.accordion-header { padding: 18px 24px; background: var(--white); cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--dark-navy); transition: background .25s; }
.accordion-header:hover { background: var(--light-gray); }
.accordion-header.active { background: var(--green); color: var(--white); }
.accordion-header .chevron { font-size: 1.2rem; transition: transform .3s; }
.accordion-header.active .chevron { transform: rotate(180deg); }
.accordion-body { display: none; padding: 20px 24px; background: #fafafa; }
.accordion-body.open { display: block; }
.accordion-body ul { padding-left: 20px; list-style: disc; }
.accordion-body ul li { padding: 4px 0; font-size: .92rem; color: #555; }

/* ===== TEAM GRID ===== */
.team-card { background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.08); transition: transform .3s; }
.team-card:hover { transform: translateY(-6px); }
.team-card img { width: 100%; height: 260px; object-fit: cover; object-position: top; }
.team-card-body { padding: 20px; }
.team-card h4 { font-size: 1rem; color: var(--dark-navy); }
.team-card .designation { font-size: .85rem; color: var(--green); font-weight: 600; margin: 4px 0; }
.team-card .qualification { font-size: .82rem; color: #888; }

/* ===== BLOG ===== */
.blog-card img { height: 200px; object-fit: cover; }
.blog-card .category { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--green); font-weight: 700; margin-bottom: 8px; }
.blog-card h3 { font-size: 1rem; color: var(--dark-navy); margin-bottom: 10px; line-height: 1.5; }
.blog-card p { font-size: .88rem; color: #666; }
.blog-card .date { font-size: 12px; color: #aaa; }
.blog-card .read-more { font-size: 13px; color: var(--green); font-weight: 600; margin-top: 14px; display: inline-block; }
.blog-card .read-more:hover { text-decoration: underline; }

/* ===== FOOTER ===== */
.site-footer { background: #111827; color: rgba(255,255,255,.8); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-logo { height: 80px; width: auto; margin-bottom: 16px; }
.footer-about p { font-size: .88rem; line-height: 1.8; opacity: .75; }
.footer-heading { font-size: .9rem; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--green); display: inline-block; }
.footer-links li { padding: 5px 0; }
.footer-links a { font-size: .88rem; opacity: .72; transition: opacity .25s; }
.footer-links a:hover { opacity: 1; color: var(--green); }
.footer-contact p { font-size: .88rem; opacity: .75; margin-bottom: 8px; line-height: 1.7; }
.footer-contact a { color: var(--accent-blue); }
.footer-contact a:hover { color: var(--green); }
.social-links { display: flex; gap: 12px; margin-top: 16px; }
.social-link { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; font-size: .9rem; transition: background .25s; color: var(--white); }
.social-link:hover { background: var(--green); color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: .82rem; opacity: .5; }

/* ===== NOTICE / ANNOUNCEMENT BAR ===== */
.announcement { background: var(--green); color: var(--white); padding: 10px 0; font-size: 13px; }
.announcement .container { display: flex; gap: 14px; align-items: center; }
.announcement strong { background: rgba(0,0,0,.2); padding: 2px 10px; border-radius: 3px; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.announcement p { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* ===== LIST ITEMS ===== */
.check-list { list-style: none; }
.check-list li { padding: 7px 0; padding-left: 26px; position: relative; font-size: .93rem; color: #555; }
.check-list li::before { content: '✓'; color: var(--green); font-weight: 700; position: absolute; left: 0; }

/* ===== HIGHLIGHT BOX ===== */
.highlight-box { background: linear-gradient(135deg, var(--dark-navy) 0%, #1e3a6e 100%); color: var(--white); padding: 40px; border-radius: 10px; }
.highlight-box h3 { font-size: 1.3rem; margin-bottom: 14px; color: var(--white); }
.highlight-box p, .highlight-box li { font-size: .93rem; opacity: .85; }

/* ===== INFO BOXES ===== */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.info-box { background: var(--white); border-radius: 8px; padding: 28px; box-shadow: 0 2px 15px rgba(0,0,0,.06); border-left: 4px solid var(--green); }
.info-box h4 { font-size: 1rem; color: var(--dark-navy); margin-bottom: 10px; }
.info-box p { font-size: .9rem; color: #666; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar .container { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .section { padding: 50px 0; }
  .grid-3, .grid-2, .contact-grid, .mission-grid, .info-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .gallery-item.large { grid-column: span 1; }
  nav.main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--dark-navy); padding: 10px 0; }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; padding: 0 16px; }
  nav.main-nav li a { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
  .dropdown { position: static; border-top: none; box-shadow: none; background: rgba(0,0,0,.15); }
  nav.main-nav li:hover .dropdown { display: none; }
  nav.main-nav li .has-dropdown:focus + .dropdown { display: block; }
  .mobile-toggle { display: flex; }
  .hero { height: 70vh; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .topbar-right { gap: 10px; font-size: 12px; }
  .stats-bar .container { grid-template-columns: repeat(2,1fr); gap: 30px; }
  .program-card, .team-card { }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .stats-bar .container { grid-template-columns: repeat(2,1fr); }
  .slide-content h1 { font-size: 2.5rem; }
  .hero-btns { flex-direction: column; align-items: center; }
}
