/* Variables for Branding */
:root {
    --primary-blue: #0a3d62;
    --accent-orange: #e67e22;
    --dark-grey: #2c3e50;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body { line-height: 1.6; }

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10%;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo { display: flex; align-items: center; }
.logo img { height: 50px; margin-right: 10px; }
.logo span { font-weight: bold; color: var(--primary-blue); font-size: 1.2rem; }

.nav-links { display: flex; list-style: none; }
.nav-links li a {
    text-decoration: none;
    color: var(--dark-grey);
    padding: 10px 20px;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links li a:hover { background: var(--primary-blue); color: white !important; border-radius: 5px; background-color: black; border-radius: 5%; }
.contact-btn { background: var(--primary-blue); color: white !important; border-radius: 5px; }

/* Hero Section */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(10, 61, 98, 0.8), rgba(10, 61, 98, 0.8)), 
                url('https://images.unsplash.com/photo-1524178232363-1fb2b075b655?auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-content h1 { font-size: 3rem; margin-bottom: 20px; }
.highlight { color: var(--accent-orange); }
.hero-content p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 30px; }

.btn-main {
    padding: 12px 30px;
    background: var(--accent-orange);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-right: 15px;
    font-weight: bold;
}
.btn-sub {
    padding: 12px 30px;
    background: var(--accent-orange);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-right: 15px;
    font-weight: bold;
}
.btn-main:hover { background-color: black;}
.btn-sub:hover { background-color: black;}
/* Features Section */
.features { padding: 80px 10%; background: #f9f9f9; }
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.feature-card:hover { transform: translateY(-10px); }
.feature-card i { font-size: 40px; color: var(--accent-orange); margin-bottom: 20px; }

/* Responsive Mobile Menu */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-content h1 { font-size: 2rem; }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        cursor: pointer;
        font-size: 1.5rem;
        color: var(--primary-blue);
    }

    .nav-links {
        display: none; /* Pehle chhupa hua hoga */
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        text-align: center;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    /* Jab 'active' class add hogi toh menu dikhayi dega */
    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        padding: 15px 0;
        border-bottom: 1px solid #eee;
    }
}

.main-footer {
    background: #05192d; /* Deep Dark Blue */
    color: #ffffff;
    padding: 60px 0 20px;
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

.footer-logo {
    height: 70px;
    margin-bottom: 15px;
    filter: brightness(1.2);
}

.footer-col h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--accent-orange);
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

/* Heading ke niche choti line */
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-orange);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--accent-orange);
    padding-left: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-item i {
    color: var(--accent-orange);
    margin-right: 15px;
    font-size: 1.1rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--accent-orange);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: #95a5a6;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .footer-container {
        text-align: center;
    }
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .contact-item {
        justify-content: center;
    }
}
.home-courses {
    padding: 80px 10%;
    background: #fdfdfd;
}

.sub-title {
    color: var(--accent-orange);
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.course-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
    border: 1px solid #eee;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.course-img {
    position: relative;
    height: 200px;
}

.course-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-orange);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.course-info {
    padding: 25px;
}

.course-info h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.course-info p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.course-footer span {
    color: #888;
    font-size: 0.9rem;
}

.view-btn {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

.view-btn:hover {
    color: var(--accent-orange);
}

.btn-all-courses {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-all-courses:hover {
    background: var(--accent-orange);
}

.text-center { text-align: center; }

/* Page Header */
.page-header {
    background: linear-gradient(rgba(10, 61, 98, 0.9), rgba(10, 61, 98, 0.9)), url('campus.jpg');
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.page-header h1 { font-size: 2.5rem; }
.page-header a { color: var(--accent-orange); text-decoration: none; }

/* About Intro */
.about-intro { padding: 80px 10%; }
.container-flex {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-img { flex: 1; text-align: center; }
.about-img img { max-width: 80%; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

.about-text { flex: 1; }
.sub-heading { color: var(--accent-orange); font-weight: bold; text-transform: uppercase; letter-spacing: 2px; }
.about-text h2 { color: var(--primary-blue); font-size: 2.2rem; margin: 10px 0 20px; }

.about-features { display: grid; grid-template-columns: 1fr 1fr; margin-top: 30px; }
.a-feat { display: flex; align-items: center; margin-bottom: 15px; }
.a-feat i { color: var(--accent-orange); margin-right: 10px; font-size: 1.2rem; }

/* Mission & Vision Section */
.mission-vision {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 60px 10%;
    background: #f1f4f8;
}

.m-card {
    background: white;
    padding: 40px;
    text-align: center;
    border-radius: 15px;
    flex: 1;
    transition: 0.3s;
}

.m-card:hover { background: var(--primary-blue); color: white; }
.m-card i { font-size: 50px; color: var(--accent-orange); margin-bottom: 20px; }
.m-card h3 { margin-bottom: 15px; }

/* Mobile View for About */
@media (max-width: 768px) {
    .container-flex { flex-direction: column; text-align: center; }
    .mission-vision { flex-direction: column; }
    .about-features { grid-template-columns: 1fr; }
}

.faculty {
    padding: 80px 10%;
    background: #fff;
    text-align: center;
}

.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.faculty-card {
    background: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.faculty-img {
    position: relative;
    overflow: hidden;
}

.faculty-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: 0.5s;
}

/* Social Media Overlay on Hover */
.social-overlay {
    position: absolute;
    bottom: -50px; /* Shuru mein neechay chhupa hoga */
    left: 0;
    width: 100%;
    background: rgba(10, 61, 98, 0.8); /* Navy Blue Overlay */
    padding: 15px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    transition: 0.4s;
}

.faculty-card:hover .social-overlay {
    bottom: 0;
}

.faculty-card:hover img {
    transform: scale(1.1);
}

.social-overlay a {
    color: white;
    font-size: 1.1rem;
    transition: 0.3s;
}

.social-overlay a:hover {
    color: var(--accent-orange);
}

.faculty-info {
    padding: 20px;
}

.faculty-info h3 {
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.designation {
    color: var(--accent-orange);
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.faculty-info p {
    font-size: 0.9rem;
    color: #666;
}

/* Container jo poore section ko control kar raha hai */
.courses-section .container {
    display: flex;
    flex-direction: column; /* Isse har cheez ek ke neechay ek aaye gi */
    align-items: center;    /* Har cheez ko center kar dega */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Heading styling */
.section-header {
    text-align: center;
    width: 100%;
    margin-bottom: 50px; /* Neechay wali list se fasla */
}

/* List/Grid styling */
.courses-wrapper {
    display: grid;
    /* Laptop par 3 cards, Mobile par 1 card */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    width: 100%; /* Poori screen ki width cover karega */
}

/* Khali jagah khatam karne ke liye extra fix */
.courses-section {
    display: block; /* Force layout to flow vertically */
    padding: 60px 0;
}

/* Variables */
:root {
    --primary-blue: #0a3d62;
    --accent-orange: #e67e22;
}

/* Global Styles */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }

/* Main Courses Section */
.courses-section {
    padding: 80px 5%;
    background: #fdfdfd;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Heading Adjustment - Fixes the Empty Space Issue */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    width: 100%;
}

.top-line { color: var(--accent-orange); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; }
.section-header h2 { font-size: 2.5rem; color: var(--primary-blue); margin: 10px 0; }
.bold-underline { width: 70px; height: 4px; background: var(--accent-orange); margin: 0 auto 20px; border-radius: 2px; }
.section-desc { color: #666; font-size: 1.1rem; max-width: 700px; margin: 0 auto; line-height: 1.6; }

/* Grid Layout Fix */
.courses-wrapper { 
    display: grid; 
    /* Ye line laptop screen par khali jagah ko fill karegi */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 30px; 
    width: 100%;
}

/* Card Styling */
.course-box {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.4s;
    border: 1px solid #f0f0f0;
    height: 100%;
}

.course-box:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.1); 
}

.box-top { position: relative; height: 200px; }
.box-top img { width: 100%; height: 100%; object-fit: cover; }

.tag { 
    position: absolute; top: 15px; left: 15px; 
    background: var(--primary-blue); color: white; 
    padding: 6px 14px; border-radius: 5px; 
    font-size: 0.8rem; font-weight: 600; 
}

.box-bottom { padding: 25px; }
.cat { color: var(--accent-orange); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.box-bottom h3 { margin: 12px 0; color: var(--primary-blue); font-size: 1.4rem; }
.box-bottom p { color: #555; font-size: 0.95rem; line-height: 1.5; margin-bottom: 20px; }

/* Card Footer */
.box-footer { 
    display: flex; justify-content: space-between; align-items: center; 
    padding-top: 15px; border-top: 1px solid #eee; 
}

.status { font-size: 0.8rem; color: #27ae60; font-weight: 600; }
.status i { font-size: 0.6rem; margin-right: 5px; }

.main-link { text-decoration: none; color: var(--primary-blue); font-weight: 700; font-size: 0.9rem; }
