/* Color Palette:
   Primary: Blue (#003366) and Red (#cc0000)
   Background: #f4f4f4
*/

:root {
    --primary-blue: #003366;
    --primary-red: #cc0000;
    --light-bg: #f9f9f9;
    --dark-text: #333333;
    --light-text: #ffffff;
    --font-heading: 'Merriweather', serif;
    --font-body: 'Open Sans', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--dark-text);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-red);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-blue);
    color: var(--light-text);
    padding: 5px 0;
    font-size: 0.9em;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: var(--light-text);
    margin-left: 15px;
}

/* Header */
header {
    background-color: #ffffff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo-section img {
    height: 80px;
    margin-right: 15px;
}

.logo-text h1,
.logo-heading {
    font-family: var(--font-heading);
    font-size: 1.8em;
    color: var(--primary-red);
    margin-bottom: 0;
    line-height: 1.2;
    font-weight: 700;
}

.logo-text p {
    font-size: 0.9em;
    font-weight: bold;
    color: var(--primary-blue);
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--primary-blue);
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 1.1em;
    padding-bottom: 5px;
    position: relative;
    transition: color 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
    transform: translateX(-50%);
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-red);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}


.mobile-menu-btn {
    display: none;
    font-size: 1.5em;
    color: var(--primary-blue);
    cursor: pointer;
}

/* Marquee / Notice Board */
.notice-bar {
    background-color: var(--primary-red);
    color: var(--light-text);
    padding: 10px 0;
    display: flex;
    align-items: center;
}

.notice-title {
    font-weight: bold;
    padding: 0 15px;
    background-color: #aa0000;
    margin-right: 10px;
}

.notice-bar marquee {
    flex-grow: 1;
    font-weight: 500;
}

/* Hero Section */
/* Kept for backup/legacy as requested */
.hero {
    position: relative;
    height: 500px;
    background: url('../img/WhatsApp%20Image%202026-07-03%20at%2012.08.14%20PM.jpeg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 102, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h2 {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--primary-red);
    color: var(--light-text);
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
}

.btn:hover {
    background-color: #aa0000;
    color: var(--light-text);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
    z-index: 0;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 102, 0.6);
}

.slide .hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.slide .hero-content h2 {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s ease 0.3s;
}

.slide.active .hero-content h2 {
    transform: translateY(0);
    opacity: 1;
}

.slide .hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s ease 0.5s;
}

.slide.active .hero-content p {
    transform: translateY(0);
    opacity: 1;
}

.slide .btn {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s ease 0.7s;
}

.slide.active .btn {
    transform: translateY(0);
    opacity: 1;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 2;
    padding: 0 20px;
    pointer-events: none;
}

.slider-controls span {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5em;
    transition: background 0.3s;
    pointer-events: auto;
}

.slider-controls span:hover {
    background: var(--primary-red);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 2;
    gap: 10px;
}

.dot {
    width: 15px;
    height: 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--primary-red);
}

/* Main Content Grid */
.main-content {
    padding: 50px 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.about-snippet h2, .notices h2 {
    color: var(--primary-blue);
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Notice Board Box */
.notice-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    padding: 20px;
    height: 350px;
    overflow-y: hidden;
    position: relative;
}

.notice-list {
    list-style: none;
    animation: scrollUp 15s linear infinite;
}

.notice-list li {
    padding: 15px 0;
    border-bottom: 1px dashed #ccc;
}

.notice-list li a {
    color: var(--dark-text);
    font-weight: 500;
}

.notice-list li a:hover {
    color: var(--primary-red);
}

.new-badge {
    background: var(--primary-red);
    color: white;
    font-size: 0.7em;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
    animation: blink 1s infinite;
}

@keyframes scrollUp {
    0% { transform: translateY(100%); }
    100% { transform: translateY(-100%); }
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Courses Snippet */
.courses-section {
    background-color: #fff;
    padding: 50px 0;
    text-align: center;
}

.courses-section h2 {
    color: var(--primary-blue);
    margin-bottom: 40px;
}

.course-card {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-top: 4px solid var(--primary-red);
    max-width: 400px;
    margin: 0 auto;
}

.course-card h3 {
    color: var(--primary-blue);
}

/* Page Header (Inner Pages) */
.page-header {
    background: var(--primary-blue);
    color: var(--light-text);
    padding: 60px 0;
    text-align: center;
    border-bottom: 5px solid var(--primary-red);
}

.page-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

/* Inner Page Specifics */
.content-section {
    padding: 40px 0;
}

.content-section h2 {
    color: var(--primary-blue);
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.vision-mission {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary-blue);
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.leader-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
    border: 1px solid #eee;
}

.leader-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--primary-red);
}

.leader-card h3 {
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.leader-card p.role {
    font-weight: bold;
    color: var(--primary-red);
    margin-bottom: 15px;
}

.affiliations-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    list-style: none;
}

.affiliations-list li {
    background: #fff;
    padding: 15px 25px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-weight: bold;
    color: var(--primary-blue);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Footer */
footer {
    background-color: var(--primary-blue);
    color: var(--light-text);
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h3 {
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ddd;
}

.footer-col ul li a:hover {
    color: var(--primary-red);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    font-size: 0.9em;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .logo-section {
        padding-right: 50px;
    }
    
    .logo-text h1,
    .logo-heading {
        font-size: 1.2em;
    }
    
    .logo-text p {
        font-size: 0.75em;
    }
    
    .mobile-menu-btn {
        display: block;
        position: absolute;
        top: 30px;
        right: 20px;
    }
    
    nav {
        display: none;
        width: 100%;
        margin-top: 15px;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .top-bar .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content h2 {
        font-size: 1.6em;
    }
}

/* Tables */
.syllabus-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 40px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.syllabus-table th, .syllabus-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
}

.syllabus-table th {
    background-color: var(--primary-blue);
    color: var(--light-text);
    font-weight: 600;
}

.syllabus-table tr:nth-child(even) {
    background-color: var(--light-bg);
}

.syllabus-table tr:hover {
    background-color: #e2e2e2;
}

/* Admission Process Steps */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.step-card {
    display: flex;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid #ddd;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.step-number {
    background: var(--primary-red);
    color: var(--light-text);
    font-size: 2em;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    flex-shrink: 0;
}

.step-content {
    padding: 20px;
}

.step-content h3 {
    color: var(--primary-blue);
    margin-bottom: 10px;
}

/* Facilities Section */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.facility-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid #ddd;
    transition: transform 0.3s ease;
}

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

.facility-img {
    width: 100%;
    height: 200px;
    background-color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    font-size: 4em;
    object-fit: cover;
}

.facility-content {
    padding: 20px;
}

.facility-content h3 {
    color: var(--primary-blue);
    margin-bottom: 10px;
    border-bottom: 2px solid var(--primary-red);
    display: inline-block;
    padding-bottom: 5px;
}

@media (max-width: 768px) {
    .step-card {
        flex-direction: column;
    }
    .step-number {
        width: 100%;
        padding: 10px 0;
        font-size: 1.5em;
    }
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.contact-info-box {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary-blue);
}

.contact-item {
    display: flex;
    margin-bottom: 25px;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.5em;
    color: var(--primary-red);
    margin-right: 15px;
    margin-top: 5px;
}

.contact-item h4 {
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.contact-form-box {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary-red);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-blue);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1em;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 5px rgba(0, 51, 102, 0.2);
}

.btn-submit {
    width: 100%;
    cursor: pointer;
    border: none;
    font-size: 1.1em;
}

.map-container {
    margin-top: 50px;
}

.map-container iframe {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#form-message {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 4px;
    display: none;
    font-weight: bold;
}

.msg-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.msg-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
