/* Basic Reset & Typography */
body { margin: 0; font-family: 'Inter', sans-serif; color: var(--text-color); background: #fff; line-height: 1.6; }
h1, h2, h3, h4, h5, h6 { font-family: 'Playfair Display', serif; color: var(--primary-color); }
a { text-decoration: none; color: inherit; transition: 0.3s; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.text-center { text-align: center; }
.mb-5 { margin-bottom: 3rem; }
.text-white { color: #fff !important; }

/* Buttons */
.btn { display: inline-block; padding: 12px 28px; border-radius: 4px; font-weight: 600; cursor: pointer; border: none; }
.btn-primary { background: var(--accent-color); color: #fff; }
.btn-primary:hover { filter: brightness(0.9); transform: translateY(-2px); }
.btn-lg { font-size: 1.1rem; padding: 16px 36px; }

/* Announcement Bar */
.announcement-bar { background: var(--primary-color); color: #fff; padding: 8px 0; font-size: 14px; display: flex; align-items: center; justify-content: center; overflow: hidden;}
.announce-link { color: var(--accent-color); text-decoration: underline; margin-left: 5px; }

/* Header & Nav */
.site-header { position: absolute; width: 100%; top: 40px; z-index: 100; transition: 0.3s; padding: 0; }
.site-header.scrolled { position: fixed; top: 0; background: rgba(26, 58, 92, 0.95); backdrop-filter: blur(10px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); padding: 5px 0; }
.header-container { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; }
.logo { display: block; }
.main-nav { display: flex; align-items: center; }
.logo-text { display: flex; align-items: center; gap: 15px; color: #fff; }
.logo-text i { font-size: 40px; color: var(--accent-color); }
.logo-text h1 { margin: 0; font-size: 24px; color: #fff; line-height: 1.2; }
.logo-text span { font-size: 12px; font-family: 'Inter', sans-serif; letter-spacing: 2px; text-transform: uppercase; }
.main-nav ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.main-nav a { color: #fff; font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; position: relative; }
.main-nav a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--accent-color); transition: 0.3s; }
.main-nav a:hover::after { width: 100%; }
.mobile-toggle { display: none; color: #fff; font-size: 24px; cursor: pointer; }

/* Hero Section */
.hero-section { position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; overflow: hidden; }
.hero-media { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.bg-video, .bg-image { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 32, 53, 0.6); }
.hero-content { position: relative; z-index: 1; width: 90%; max-width: 800px; box-sizing: border-box; }
.hero-content h1 { font-size: 4.5rem; margin-bottom: 20px; color: #fff; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); line-height: 1.1; }
.hero-content .subtitle { font-size: 1.5rem; font-style: italic; margin-bottom: 40px; font-family: 'Playfair Display', serif; }

/* General Sections */
.inner-page-header { background: var(--primary-color); height: 140px; }
.page-main-title { font-size: 3rem; margin: 0 0 40px 0; color: var(--primary-color); text-align: center; font-family: 'Playfair Display', serif; }
.section-padding { padding: 60px 0; }
.section-title { font-size: 2.5rem; margin-bottom: 15px; }
.title-divider { width: 80px; height: 3px; background: var(--accent-color); margin: 0 auto; }
.divider-light { background: var(--accent-color); }
.bg-light { background: var(--light-bg); }

/* Principal Section */
.principal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.principal-image { position: relative; }
.image-wrapper { border-radius: 10px; overflow: hidden; box-shadow: 20px 20px 0px var(--accent-color); }
.image-wrapper img { width: 100%; display: block; object-fit: cover; }
.name-badge { position: absolute; bottom: -30px; left: -30px; background: #fff; padding: 25px 40px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-radius: 5px; }
.name-badge h3 { margin: 0 0 5px 0; color: var(--text-color); font-family: 'Inter', sans-serif; font-size: 1.2rem; }
.name-badge span { color: var(--accent-color); font-weight: 600; font-size: 0.9rem; letter-spacing: 2px; text-transform: uppercase; }
.message-content { font-size: 1.1rem; line-height: 1.8; color: #4a5568; margin-top: 30px; border-left: 4px solid var(--accent-color); padding-left: 20px; font-style: italic; }

/* Highlights Section */
.highlights-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.highlight-card { background: #fff; padding: 40px 30px; border-radius: 10px; text-align: center; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: 0.3s; border-bottom: 3px solid transparent; }
.highlight-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); border-bottom-color: var(--accent-color); }
.icon-wrapper { width: 80px; height: 80px; background: rgba(200, 149, 42, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.icon-wrapper i { font-size: 30px; color: var(--accent-color); }
.highlight-card h3 { font-size: 1.3rem; margin-bottom: 15px; color: var(--primary-color); }
.highlight-card p { color: #718096; font-size: 0.95rem; }

/* Milestones */
.milestones-section { background: var(--primary-color); color: #fff; padding-bottom: 60px; }
.milestones-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; margin-top: 50px; }
.ms-value { font-size: 4rem; font-weight: 700; color: var(--accent-color); font-family: 'Playfair Display', serif; line-height: 1; margin-bottom: 15px; }
.ms-label { font-size: 1.1rem; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; opacity: 0.9; }

/* Footer */
.site-footer { background: #0a1523; color: #a0aec0; padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 40px; }
.footer-col h3 { color: #fff; font-family: 'Inter', sans-serif; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; }
.footer-logo { margin-bottom: 20px; display: inline-flex; }
.footer-logo h2 { font-size: 20px; color: #fff; margin: 0; }
.social-links { display: flex; gap: 15px; margin-top: 25px; }
.social-links a { width: 40px; height: 40px; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; }
.social-links a:hover { background: var(--accent-color); }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 15px; margin-bottom: 20px; }
.contact-list i { color: var(--accent-color); margin-top: 5px; }
.quick-links { list-style: none; padding: 0; margin: 0; }
.quick-links li { margin-bottom: 12px; }
.quick-links a:hover { color: var(--accent-color); padding-left: 5px; }
.footer-bottom { background: #050b12; padding: 25px 0; text-align: center; font-size: 14px; }

/* About Us Page */
.history-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img-shadow { width: 100%; border-radius: 10px; box-shadow: -15px 15px 0px var(--accent-color); }
.about-text-content { font-size: 1.1rem; line-height: 1.8; color: var(--text-color); }
.vision-mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.vm-card { background: var(--light-bg); padding: 40px; border-radius: 10px; }
.content-sidebar-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.admission-form-wrapper { background: var(--light-bg); padding: 40px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.student-life-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-top: 60px; }
.sl-card { background: #fff; padding: 40px; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); border-top: 4px solid var(--accent-color); }
.sl-card-title { color: var(--primary-color); margin-top: 0; border-bottom: 2px solid var(--light-bg); padding-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.sl-card-title i { color: var(--accent-color); }
.sl-card-content { line-height: 1.7; color: var(--text-color); }
.curriculum-text { font-size: 1.1rem; line-height: 1.8; text-align: justify; max-width: 800px; margin: 0 auto; }
.portal-item { background: #fff; padding: 20px; border-radius: 8px; margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.calendar-card { background: #fff; padding: 30px; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); text-align: center; margin-bottom: 40px; border-top: 5px solid var(--accent-color); }
.calendar-icon { font-size: 3rem; color: var(--accent-color); margin-bottom: 15px; }
.calendar-title { margin-top: 0; font-size: 1.5rem; }
.calendar-actions { display: flex; justify-content: center; gap: 15px; margin-top: 20px; }
.btn-outline { background: #fff; color: var(--primary-color); border: 1px solid var(--primary-color); }
.btn-outline:hover { background: var(--primary-color); color: #fff; }

/* News & Events */
.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 80px; }
.event-item { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.05); cursor: pointer; transition: 0.3s; }
.event-item:hover { transform: translateY(-10px); }
.event-img { width: 100%; height: 200px; object-fit: cover; }
.event-img-placeholder { width: 100%; height: 200px; background: var(--light-bg); display: flex; align-items: center; justify-content: center; }
.event-img-placeholder i { font-size: 4rem; color: #cbd5e0; }
.event-body { padding: 25px; }
.event-date { color: var(--accent-color); font-weight: bold; font-size: 0.9rem; margin-bottom: 10px; text-transform: uppercase; }
.event-title { margin: 0 0 15px 0; color: var(--text-color); font-size: 1.3rem; }
.event-summary { color: #718096; margin-bottom: 20px; font-size: 0.95rem; line-height: 1.6; }
.read-more { color: var(--accent-color); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }

.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.news-card { display: flex; gap: 20px; background: #fff; padding: 20px; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); cursor: pointer; transition: 0.3s; }
.news-card:hover { box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.news-card-img-wrapper { width: 150px; flex-shrink: 0; }
.news-card-img { width: 100%; height: 150px; object-fit: cover; border-radius: 5px; }
.news-card-img-placeholder { width: 100%; height: 150px; background: var(--light-bg); display: flex; align-items: center; justify-content: center; border-radius: 5px; }
.news-card-img-placeholder i { font-size: 3rem; color: #cbd5e0; }
.news-card-body { flex: 1; }
.news-card-title { margin: 0 0 10px 0; color: var(--primary-color); font-size: 1.2rem; }
.news-card-date { font-size: 0.85rem; color: #a0aec0; margin-bottom: 10px; }
.news-card-summary { color: #4a5568; font-size: 0.9rem; line-height: 1.5; margin-bottom: 15px; }

/* News Modal */
.news-modal-overlay { display: none; position: fixed; z-index: 10000; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); justify-content: center; align-items: center; }
.news-modal-container { background: #fff; width: 90%; max-width: 1000px; max-height: 85vh; border-radius: 15px; overflow: hidden; display: flex; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.3); animation: slideUp 0.4s ease-out; }
.news-modal-close { position: absolute; top: 15px; right: 20px; background: #fff; border: none; font-size: 24px; cursor: pointer; z-index: 10; width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.news-modal-img-column { width: 45%; background: #f0f0f0; overflow: hidden; }
.news-modal-img-column img { width: 100%; height: 100%; object-fit: cover; }
.news-modal-content-column { width: 55%; padding: 40px; overflow-y: auto; }
.news-modal-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 20px; }
.news-modal-type { background: var(--accent-color); color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: bold; text-transform: uppercase; }
.news-modal-date { color: #a0aec0; font-size: 0.85rem; }
.news-modal-title { font-size: 2.2rem; margin-bottom: 20px; line-height: 1.2; color: var(--primary-color); }
.news-modal-text { font-size: 1.05rem; line-height: 1.8; color: #4a5568; }

/* Contact Page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info-card { background: #fff; padding: 40px; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); margin-bottom: 30px; }
.contact-method { display: flex; gap: 20px; margin-bottom: 30px; }
.contact-method:last-child { margin-bottom: 0; }
.contact-icon { width: 50px; height: 50px; background: rgba(200, 149, 42, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-icon i { color: var(--accent-color); font-size: 1.5rem; }
.contact-text h3 { margin: 0 0 10px 0; font-size: 1.2rem; color: var(--primary-color); }
.contact-text p { margin: 0; color: #4a5568; line-height: 1.6; }
.operating-hours-card { background: var(--dark-bg); padding: 30px; border-radius: 10px; color: #fff; }
.accent-title { margin-top: 0; color: var(--accent-color); }

.mb-3 { margin-bottom: 1rem; }

/* Responsive Fixes */
html, body { overflow-x: hidden; width: 100%; position: relative; }

@media (max-width: 1024px) {
    .highlights-grid { grid-template-columns: repeat(2, 1fr); }
    .events-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .principal-grid { grid-template-columns: 1fr; gap: 40px; }
    .name-badge { left: 20px; bottom: -20px; padding: 15px 25px; }
}

@media (max-width: 768px) {
    .site-header { top: 0; position: fixed; background: var(--primary-color); box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
    .header-container { padding: 15px 0; }
    .main-nav { 
        position: fixed; 
        top: 0; 
        left: -100%; 
        width: 100%; 
        height: 100vh; 
        background: var(--primary-color); 
        display: flex !important; 
        flex-direction: column; 
        justify-content: flex-start; 
        align-items: flex-start; 
        padding: 100px 40px;
        transition: 0.4s ease-in-out; 
        z-index: 1000;
        box-sizing: border-box;
    }
    .main-nav.active { left: 0; }
    .main-nav ul { flex-direction: column; gap: 20px; text-align: left; width: 100%; }
    .main-nav a { font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,0.1); width: 100%; display: block; padding-bottom: 10px; }
    .mobile-toggle { display: block; z-index: 1001; position: relative; }
    .hero-section { height: 70vh; min-height: 450px; padding-top: 60px; box-sizing: border-box; }
    .inner-page-header { height: 100px; }
    .hero-content h1 { font-size: 2.8rem; line-height: 1.2; margin-bottom: 15px; }
    .hero-content .subtitle { font-size: 1.2rem; margin-bottom: 30px; }
    .highlights-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .highlight-card { padding: 25px 15px; }
    .icon-wrapper { width: 50px; height: 50px; margin-bottom: 10px; }
    .icon-wrapper i { font-size: 20px; }
    .highlight-card h3 { font-size: 1rem; margin-bottom: 10px; }
    .highlight-card p { font-size: 0.8rem; line-height: 1.4; }
    .milestones-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr; }
    .section-padding { padding: 30px 0; }
    .milestones-section { padding-bottom: 30px; }
    .site-footer { padding-top: 30px; }
    .principal-grid { gap: 30px; }
    .principal-image { max-width: 300px; margin: 0 auto; }
    .image-wrapper { box-shadow: 10px 10px 0px var(--accent-color); }
    .name-badge { padding: 15px 25px; bottom: -15px; left: 10px; width: 80%; box-sizing: border-box; }
    .name-badge h3 { font-size: 1rem; }
    .message-content { font-size: 0.95rem; margin-top: 20px; }
    .section-title { font-size: 2rem; }
    .page-main-title { font-size: 2.5rem; }
    .history-grid, .vision-mission-grid { grid-template-columns: 1fr; gap: 30px; }
    .content-sidebar-grid, .form-grid, .student-life-grid, .contact-grid { grid-template-columns: 1fr; gap: 20px; }
    .contact-method { gap: 15px; margin-bottom: 20px; }
    .contact-icon { width: 40px; height: 40px; }
    .contact-icon i { font-size: 1.2rem; }
    .events-grid, .news-grid { grid-template-columns: 1fr; gap: 20px; }
    .news-card { flex-direction: column; }
    .news-card-img-wrapper { width: 100%; }
    .news-card-img { height: 180px; }
    .news-modal-container { flex-direction: column; width: 95%; max-height: 90vh; }
    .news-modal-img-column { width: 100%; height: 250px; }
    .news-modal-content-column { width: 100%; padding: 25px; }
    .news-modal-title { font-size: 1.5rem; }
    .admission-form-wrapper, .sl-card, .contact-info-card { padding: 25px 15px; }
    .portal-item { flex-direction: column; align-items: flex-start; gap: 15px; }
    .calendar-card { padding: 20px; }
    .calendar-icon { font-size: 2rem; margin-bottom: 10px; }
    .calendar-title { font-size: 1.2rem; }
    .calendar-actions { gap: 10px; }
    .calendar-actions .btn { padding: 10px 15px; font-size: 0.9rem; }
    .about-img-shadow { box-shadow: 10px 10px 0px var(--accent-color); }
    .vm-card { padding: 25px; text-align: justify; }
    .vm-card p { font-size: 0.95rem; }
    .about-text-content { font-size: 0.95rem; text-align: justify; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 2rem; }
    .logo-text h1 { font-size: 18px; }
    .logo-text i { font-size: 28px; }
    .logo-text span { font-size: 10px; }
    .ms-value { font-size: 3rem; }
}
