/* Hycaroxy Coaching Center - Main Stylesheet */
:root {
    --primary: #0f4c81;
    --primary-dark: #0a3560;
    --accent: #e8b923;
    --accent-hover: #d4a61c;
    --text: #1a1a2e;
    --text-muted: #5a5a72;
    --bg-light: #f8f9fc;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(15, 76, 129, 0.08);
    --shadow-hover: 0 8px 30px rgba(15, 76, 129, 0.12);
    --radius: 12px;
    --transition: 0.3s ease;
}

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

img {
    max-width: 100%;
    vertical-align: middle;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', 'Noto Sans Devanagari', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
}

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

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow);
}

.header-top {
    background: var(--primary);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.9rem;
}

.header-contact {
    display: flex;
    gap: 24px;
    justify-content: flex-end;
}

.header-contact a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.95;
}

.header-contact a:hover {
    opacity: 1;
    text-decoration: underline;
}

.main-nav {
    padding: 16px 0;
}

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

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
    image-rendering: -webkit-optimize-contrast;
}

@media (max-width: 768px) {
    .logo-img {
        height: 44px;
        max-width: 160px;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--primary);
    color: var(--white);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 80px 0 100px;
    text-align: center;
}

.hero-with-bg {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    min-height: 320px;
}

@media (max-width: 768px) {
    .hero {
        padding: 48px 0 64px;
    }
    .hero-with-bg {
        min-height: 280px;
    }
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.hero .tagline {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 12px;
}

.hero .hindi-tagline {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 1.1rem;
    opacity: 0.9;
}

.hero-buttons {
    margin-top: 32px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent);
    color: var(--text);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

/* Sections */
.section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section {
        padding: 48px 0;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 40px 0;
    }
    .container {
        padding: 0 16px;
    }
}

.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(15, 76, 129, 0.08);
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.card h3 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 1.35rem;
}

.card p {
    color: var(--text-muted);
}

/* Card with image */
.card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
    margin: -32px -32px 20px -32px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-with-image .card {
    padding-top: 0;
    overflow: hidden;
}

@media (max-width: 768px) {
    .card-image {
        height: 140px;
        margin: -24px -24px 16px -24px;
    }
    .card-with-image .card {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .card-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .card-image {
        height: 160px;
    }
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .gallery-item {
        aspect-ratio: 1;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .gallery-item {
        aspect-ratio: 16/10;
        max-height: 220px;
    }
    .gallery-item img {
        object-fit: cover;
    }
}

/* About with image */
.about-with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    max-width: 100%;
}

.about-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
}

@media (max-width: 768px) {
    .about-with-image {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .about-image { order: -1; max-width: 100%; }
    .about-image img {
        max-height: 280px;
        object-fit: cover;
    }
}

@media (max-width: 480px) {
    .about-image img {
        max-height: 220px;
    }
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    box-shadow: var(--shadow-hover);
}

.news-card-content {
    padding: 24px;
}

.news-card .date {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.news-card h3 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 1.2rem;
}

/* Contact Form */
.contact-section {
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

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

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e4ec;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-info h3 {
    color: var(--primary);
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 12px;
    color: var(--text-muted);
}

.contact-info a {
    color: var(--primary);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Alert Messages */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
}

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

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

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

@media (max-width: 768px) {
    .page-header {
        padding: 40px 0;
    }
    .page-header h1 {
        font-size: 1.75rem;
    }
}

.page-header h1 {
    font-size: 2.25rem;
    margin-bottom: 8px;
}

.page-header p {
    opacity: 0.9;
}

/* About Page */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Courses Page */
.course-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-card .btn {
    margin-top: auto;
    text-align: center;
}

/* Footer */
.site-footer {
    background: var(--primary-dark);
    color: var(--white);
    margin-top: 80px;
}

.footer-main {
    padding: 60px 0 40px;
}

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

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

.footer-col h3,
.footer-col h4 {
    margin-bottom: 16px;
    font-size: 1.2rem;
}

.footer-tagline {
    margin-bottom: 8px;
    opacity: 0.95;
}

.footer-hindi {
    font-family: 'Noto Sans Devanagari', sans-serif;
    opacity: 0.9;
    margin-bottom: 16px;
}

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

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

.footer-col a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
}

.footer-col a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.footer-bottom p {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Mobile Menu */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .header-contact {
        justify-content: center;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero .tagline {
        font-size: 1rem;
    }
}
