/* 
   Project: District Computer Education Centre
   Theme: Premium Educational - Blue, White, Light Gray
*/

:root {
    --primary-color: #0056b3;
    /* Deep Royal Blue */
    --primary-dark: #004494;
    --secondary-color: #ffffff;
    --accent-color: #f8f9fa;
    /* Light Gray Background */
    --text-color: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 25px rgba(0, 50, 150, 0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--secondary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.section-title .line {
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

section {
    padding: 80px 0;
}

/* Header */
.header {
    background: var(--secondary-color);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
}

.logo img {
    height: 85px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-color);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links .btn-primary {
    color: var(--secondary-color);
    padding: 10px 20px;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px auto;
    transition: var(--transition);
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--secondary-color);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    /* background: url('img/hero_bg.png') no-repeat center center/cover; */
    background: url('https://images.unsplash.com/photo-1531545514256-b1400bc00f31?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--secondary-color);
    margin-top: 0;
    /* Override section margin if needed */
    padding-top: 100px;
}

/* Fallback if image not loaded perfectly */
.hero {
    background-color: #2c3e50;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 1.05rem;
}

.about-text .highlight {
    background: #eef7ff;
    padding: 15px;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    color: var(--text-color);
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
}

/* Mission & Vision */
.mission-vision {
    background: var(--accent-color);
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.mv-card {
    background: var(--secondary-color);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.mv-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.mv-card .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.mv-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.mv-card p {
    color: var(--text-light);
}

/* Courses */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.course-card {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.course-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.course-icon {
    width: 70px;
    height: 70px;
    background: #eef7ff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 1.8rem;
    transition: var(--transition);
}

.course-card:hover .course-icon {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.course-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.course-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Why Choose Us */
.why-choose {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.why-choose .section-title h2 {
    color: var(--secondary-color);
}

.why-choose .line {
    background: var(--secondary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-item i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.feature-item h4 {
    font-weight: 500;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    height: 250px;
    background: #ccc;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-weight: 600;
    font-size: 1.2rem;
}

/* Facilities */
.facilities {
    background: var(--accent-color);
}

.facilities-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.facility-box {
    background: var(--secondary-color);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
}

.facility-box i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Certification */
.certification {
    text-align: center;
    padding: 60px 0;
}

.large-icon {
    font-size: 4rem;
    color: #ffd700;
    /* Gold for certificate */
    margin-bottom: 20px;
}

.cert-content h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.cert-content p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-light);
}

/* Admission Process */
.admission {
    background: #fff;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50%;
    line-height: 50px;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.step p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    background: var(--secondary-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-info {
    padding: 40px;
    background: #0056b3;
    color: #fff;
}

.contact-info h3 {
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.info-item i {
    font-size: 1.2rem;
    margin-right: 15px;
    margin-top: 5px;
    width: 20px;
}

.info-item h4 {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 5px;
}

.info-item p {
    font-weight: 500;
}

.map-placeholder {
    height: 100%;
    min-height: 400px;
    background: #eee;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* Media Queries */
@media (max-width: 1024px) {
    .facilities-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header .container {
        padding: 0 15px;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        background: var(--secondary-color);
        flex-direction: column;
        justify-content: center;
        width: 70%;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        padding: 20px;
    }

    .nav-links.active {
        right: 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-grid,
    .mv-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .steps-container {
        flex-direction: column;
    }

    .step {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-btns {
        flex-direction: column;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .facilities-list {
        grid-template-columns: 1fr;
    }
}

/* Contact Form Styles */
.contact-form-container {
    padding: 40px;
}

.contact-form h3 {
    margin-bottom: 25px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 86, 179, 0.2);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.form-checkbox input {
    margin-top: 4px;
    cursor: pointer;
}

.form-checkbox label {
    cursor: pointer;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-form-container {
        padding: 30px;
    }
}