
/* =====================================
   SITH GROUP OF INSTITUTE
   Main Website Stylesheet
===================================== */

:root {
    --primary: #c91f32;
    --primary-dark: #991629;
    --secondary: #171b2c;
    --text: #33394a;
    --muted: #6b7280;
    --light: #f6f7fb;
    --white: #ffffff;
    --border: #e5e7eb;
    --shadow: 0 10px 30px rgba(20, 25, 45, 0.08);
    --radius: 14px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
    transition: 0.25s ease;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

/* HEADER */

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.04);
}

.navbar {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-mark {
    width: 57px;
    height: 57px;
    border: 3px solid var(--primary);
    border-radius: 50%;
    color: var(--primary);
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 17px;
    letter-spacing: -1px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.brand-text strong {
    color: var(--secondary);
    font-size: 17px;
    letter-spacing: 0.4px;
}

.brand-text small {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-top: 4px;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
}

.main-nav > a {
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary);
}

.main-nav > a:hover {
    color: var(--primary);
}

.main-nav .nav-cta {
    background: var(--primary);
    color: var(--white);
    padding: 11px 19px;
    border-radius: 7px;
}

.main-nav .nav-cta:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.menu-toggle {
    display: none;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--secondary);
    border-radius: 8px;
    padding: 8px 13px;
    font-size: 25px;
    cursor: pointer;
}

/* GENERAL SECTIONS */

section {
    padding: 70px 0;
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 38px;
    text-align: center;
}

.section-heading h2 {
    color: var(--secondary);
    font-size: clamp(27px, 4vw, 38px);
    line-height: 1.25;
    margin-bottom: 12px;
}

.section-heading p {
    color: var(--muted);
}

.eyebrow {
    display: inline-block;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.text-primary {
    color: var(--primary);
}

/* BUTTONS */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 23px;
    border: 0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s ease;
}

.btn-primary {
    color: var(--white);
    background: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    color: var(--primary);
    background: var(--white);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* HERO */

.hero {
    background:
        radial-gradient(circle at 90% 10%, rgba(201, 31, 50, 0.09), transparent 32%),
        linear-gradient(120deg, #fff 0%, #fff7f8 100%);
    padding: 85px 0;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 55px;
}

.hero h1 {
    color: var(--secondary);
    font-size: clamp(35px, 5vw, 58px);
    line-height: 1.13;
    margin-bottom: 22px;
}

.hero p {
    color: var(--muted);
    font-size: 17px;
    margin-bottom: 28px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.hero-image {
    min-height: 330px;
    background: linear-gradient(135deg, #fbe3e7, #fff);
    border-radius: 28px;
    display: grid;
    place-items: center;
    padding: 30px;
    border: 1px solid #f4d4d9;
}

.hero-image img {
    width: 100%;
    max-height: 390px;
    object-fit: contain;
    border-radius: 15px;
}

/* STATISTICS */

.stats-section {
    padding: 0 0 35px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.stat-card {
    padding: 25px 18px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.stat-card h3 {
    font-size: 29px;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-card p {
    color: var(--muted);
    font-size: 14px;
}

/* COURSES */

.courses-section {
    background: var(--light);
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.course-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-card img {
    width: 100%;
    height: 205px;
    object-fit: cover;
    background: #f0f1f5;
}

.course-card-body {
    padding: 23px;
}

.course-card h3 {
    color: var(--secondary);
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.course-card p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 17px;
}

.course-card .course-link {
    color: var(--primary);
    font-size: 14px;
    font-weight: 800;
}

/* CONTENT / ABOUT */

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
    align-items: center;
}

.content-image {
    min-height: 300px;
    border-radius: var(--radius);
    background: #fbe8eb;
    overflow: hidden;
}

.content-image img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
}

.content-text h2 {
    color: var(--secondary);
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.25;
    margin-bottom: 18px;
}

.content-text p {
    color: var(--muted);
    margin-bottom: 16px;
}

.feature-list {
    list-style: none;
    margin: 22px 0;
}

.feature-list li {
    margin: 10px 0;
    padding-left: 27px;
    position: relative;
}

.feature-list li::before {
    content: "✓";
    color: var(--primary);
    font-weight: 900;
    position: absolute;
    left: 0;
}

/* CALL TO ACTION */

.cta-section {
    background: var(--secondary);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 12px;
}

.cta-section p {
    max-width: 650px;
    margin: 0 auto 25px;
    color: #d7d9e2;
}

.cta-section .btn {
    background: var(--primary);
    color: var(--white);
}

/* INNER PAGE BANNER */

.page-banner {
    padding: 65px 0;
    background: linear-gradient(120deg, #fff0f2, #f8f9fc);
    text-align: center;
}

.page-banner h1 {
    color: var(--secondary);
    font-size: clamp(30px, 4vw, 45px);
    margin-bottom: 12px;
}

.page-banner p {
    color: var(--muted);
}

/* GALLERY */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--light);
    border: 1px solid var(--border);
}

.gallery-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
}

/* PLACEMENTS */

.placement-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.placement-card {
    background: var(--white);
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.placement-card h3 {
    color: var(--secondary);
    margin-bottom: 8px;
}

.placement-card p {
    color: var(--muted);
}

/* FORMS */

.form-card {
    max-width: 760px;
    margin: 0 auto;
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    color: var(--secondary);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #d7dbe4;
    border-radius: 7px;
    background: var(--white);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(201, 31, 50, 0.1);
}

.form-group textarea {
    min-height: 130px;
    resize: vertical;
}

/* FOOTER */

.site-footer {
    background: #121626;
    color: #e5e7ef;
    padding-top: 55px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 45px;
    padding-bottom: 40px;
}

.footer-brand .brand-text strong {
    color: var(--white);
}

.footer-about p {
    color: #bfc3d0;
    margin-top: 20px;
    max-width: 420px;
}

.footer-links h3,
.footer-contact h3 {
    color: var(--white);
    margin-bottom: 18px;
    font-size: 18px;
}

.footer-links a {
    display: block;
    color: #bfc3d0;
    margin: 8px 0;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--white);
}

.footer-contact p {
    color: #bfc3d0;
    margin-bottom: 15px;
}

.footer-bottom {
    border-top: 1px solid #303446;
    padding: 18px 0;
    color: #bfc3d0;
    font-size: 13px;
    text-align: center;
}

/* ALERTS */

.alert {
    padding: 14px 17px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #e8f8ee;
    color: #176b36;
}

.alert-error {
    background: #fff0f0;
    color: #a51e2b;
}

/* RESPONSIVE */

@media (max-width: 1050px) {
    .main-nav {
        gap: 13px;
    }

    .main-nav > a {
        font-size: 13px;
    }

    .hero-grid {
        gap: 30px;
    }
}

@media (max-width: 850px) {
    .navbar {
        min-height: 75px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 18px 4%;
        background: var(--white);
        border-top: 1px solid var(--border);
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav > a {
        padding: 12px 8px;
        font-size: 15px;
    }

    .main-nav .nav-cta {
        text-align: center;
        margin-top: 8px;
    }

    .hero-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-image {
        min-height: 250px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .course-grid,
    .gallery-grid,
    .placement-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 560px) {
    section {
        padding: 48px 0;
    }

    .brand-mark {
        width: 47px;
        height: 47px;
        font-size: 14px;
    }

    .brand-text strong {
        font-size: 14px;
    }

    .brand-text small {
        font-size: 10px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 15px;
    }

    .stats-grid,
    .course-grid,
    .gallery-grid,
    .placement-grid,
    .form-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .course-card img {
        height: 220px;
    }

    .gallery-item img {
        height: 220px;
    }

    .form-card {
        padding: 20px;
    }

    .footer-grid {
        gap: 30px;
    }
}
