/* ==========================================================================
   SDM Institute of Technology - Primary Stylesheet
   Design Identity: Clean Academic Premium (Deep Navy, Gold Accent, High Contrast)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@600;700&display=swap');

:root {
    /* Color Palette */
    --navy-900: #051329;
    --navy-800: #0B2545;
    --navy-700: #133B6B;
    --navy-600: #1D4ED8;
    --gold-500: #C5A880;
    --gold-600: #B08E5D;
    --slate-900: #0F172A;
    --slate-800: #1E293B;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748B;
    --slate-200: #E2E8F0;
    --slate-100: #F1F5F9;
    --slate-50:  #F8FAFC;
    --white:     #FFFFFF;

    /* Status Colors */
    --success-bg: #DCFCE7;
    --success-text: #166534;
    --error-bg: #FEE2E2;
    --error-text: #991B1B;

    /* Typography */
    --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Layout & Shadows */
    --container-max: 1280px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 32px rgba(11, 37, 69, 0.12);
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 1. Global Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--slate-50);
    color: var(--slate-800);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* 2. Header & Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 84px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-badge {
    background: var(--navy-800);
    color: var(--gold-500);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.5px;
}

.logo-text .institution-name {
    display: block;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--navy-900);
    line-height: 1.2;
}

.logo-text .institution-sub {
    font-size: 0.78rem;
    color: var(--slate-500);
    font-weight: 500;
}

.main-nav .nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 28px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--slate-700);
    padding: 8px 0;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--navy-800);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold-500);
    border-radius: 2px;
}

/* Dropdown Menu */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 260px;
    padding: 10px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;

    transform: translateY(10px);
    transition: var(--transition);
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--slate-700);
}

.dropdown-menu a:hover {
    background: var(--slate-100);
    color: var(--navy-800);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

/* 3. Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.92rem;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--navy-800);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--navy-900);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--slate-200);
    color: var(--navy-900);
}

.btn-secondary:hover {
    background: var(--slate-300, #CBD5E1);
}

.btn-outline {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--navy-900);
}

.btn-large {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn-text, .link-btn {
    color: var(--navy-800);
    font-weight: 700;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-text:hover, .link-btn:hover {
    color: var(--gold-600);
    gap: 10px;
}

/* 4. Hero Section */
.academic-hero, .hero-section {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
    color: var(--white);
    padding: 90px 0 70px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.academic-badge, .eyebrow-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--gold-500);
    margin-bottom: 24px;
}

.hero-title, .hero-heading {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

.hero-tagline, .hero-description {
    font-size: 1.2rem;
    color: var(--slate-200);
    max-width: 680px;
    margin-bottom: 36px;
    line-height: 1.6;
}

.hero-actions, .hero-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    background: var(--white);
    color: var(--slate-900);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-top: 30px;
}

.stat-item {
    text-align: left;
    border-right: 1px solid var(--slate-200);
    padding-right: 16px;
}

.stat-item:last-child {
    border-right: none;
}

.stat-number, .card-big-stat {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--navy-800);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label, .card-subtext {
    font-size: 0.88rem;
    color: var(--slate-600);
    font-weight: 600;
}

/* 5. Trust / Quote Banner */
.trust-section, .statement-section {
    padding: 60px 0;
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
}

.trust-wrapper, .statement-wrapper {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}


.trust-quote blockquote, .statement-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--navy-900);
    line-height: 1.4;
    margin-bottom: 16px;
}

.quote-author {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gold-600);
}

.statement-body {
    font-size: 1.05rem;
    color: var(--slate-600);
}

/* 6. Section Headers */
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
}

.section-title, h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--navy-900);
    letter-spacing: -0.5px;
}

.section-subtitle {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold-600);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.section-lead {
    font-size: 1.1rem;
    color: var(--slate-600);
    margin-top: 8px;
}

/* 7. Programs & Departments Grid */
.programs-section, .departments-section {
    padding: 80px 0;
}

.program-grid, .dept-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.program-card, .dept-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.program-card:hover, .dept-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--navy-700);
}

.program-code, .dept-code {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--gold-600);
    margin-bottom: 12px;
    display: block;
}

.program-card h3, .dept-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 12px;

}

.program-card p, .dept-tagline {
    font-size: 0.95rem;
    color: var(--slate-600);
    margin-bottom: 24px;
    flex-grow: 1;
}

.program-meta, .dept-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--slate-100);
    font-size: 0.88rem;
    color: var(--slate-500);
    font-weight: 600;
}

/* 8. Metrics Section */
.metrics-section {
    padding: 80px 0;
    background: var(--navy-900);
    color: var(--white);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.metric-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 32px;
    border-radius: var(--radius-md);
}

.metric-value {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--gold-500);
    line-height: 1;
    margin-bottom: 12px;
}

.metric-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.metric-detail {
    font-size: 0.88rem;
    color: var(--slate-300, #CBD5E1);
}

/* 9. Innovation & Labs Section */
.innovation-section {
    padding: 80px 0;
    background: var(--white);
}

.innovation-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.check-list {
    list-style: none;
    margin-top: 24px;
}

.check-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 16px;
    font-size: 0.98rem;
    color: var(--slate-700);
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--navy-800);
    font-weight: 800;
}

.code-box {
    background: var(--slate-900);
    color: #A7F3D0;
    border-radius: var(--radius-md);
    padding: 24px;
    font-family: monospace;
    font-size: 0.88rem;
    box-shadow: var(--shadow-md);
}

/* 10. Department Detail Page */
.dept-hero {
    background: var(--navy-900);
    color: var(--white);
    padding: 60px 0;
}

.dept-hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.dept-title-large {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    margin-bottom: 16px;
}

.dept-lead {
    font-size: 1.15rem;
    color: var(--slate-200);
    margin-bottom: 28px;
}

.dept-stats-row {
    display: flex;
    gap: 32px;
}

.mini-stat .num {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gold-500);
}

.mini-stat .lbl {
    font-size: 0.82rem;
    color: var(--slate-300, #CBD5E1);
    text-transform: uppercase;
}

.dept-hod-card {
    background: var(--white);
    color: var(--slate-900);
    padding: 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.dept-hod-card h3 {
    font-size: 1rem;
    color: var(--slate-500);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hod-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--navy-900);
}

.hod-title {
    font-size: 0.9rem;
    color: var(--slate-600);
    margin-bottom: 16px;
}

.dept-content-section {
    padding: 70px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 48px;
}

.main-content h2, .main-content h3 {
    margin: 28px 0 16px;
}

.styled-list {
    margin: 16px 0 28px 20px;
}

.styled-list li {
    margin-bottom: 10px;
    color: var(--slate-700);
}

.labs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
}

.lab-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    padding: 20px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 14px;
}

.sidebar-box {
    background: var(--white);
    border: 1px solid var(--slate-200);
    padding: 28px;
    border-radius: var(--radius-md);
}

.sidebar-links {
    list-style: none;
    margin-top: 16px;
}

.sidebar-links li {
    border-bottom: 1px solid var(--slate-100);
}

.sidebar-links a {
    display: block;
    padding: 10px 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--slate-700);
}

.sidebar-links a:hover, .sidebar-links a.active {
    color: var(--navy-800);
    font-weight: 700;
}

/* 11. Placements & Recruiters Page */
.page-hero {
    background: var(--navy-900);
    color: var(--white);
    padding: 60px 0;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    margin-bottom: 12px;
}

.page-lead {
    font-size: 1.15rem;
    color: var(--slate-200);
    max-width: 700px;
}

.placement-stats-section {
    padding: 60px 0;
}

.stats-banner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.stat-box .stat-num {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--navy-800);
}

.stat-box .stat-lbl {
    font-size: 0.95rem;
    color: var(--slate-600);
    font-weight: 600;
}

.recruiters-section {
    padding: 60px 0;
}

.recruiter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.tag {
    background: var(--white);
    border: 1px solid var(--slate-200);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    color: var(--navy-900);
    box-shadow: var(--shadow-sm);
}

/* 12. Contact Form & Admissions */
.contact-section {
    padding: 70px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
}

.contact-info {
    background: var(--navy-900);
    color: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
}

.info-block {
    margin-top: 24px;
}

.info-block strong {
    color: var(--gold-500);
    display: block;
    margin-bottom: 4px;
}

.contact-form-wrapper {
    background: var(--white);
    border: 1px solid var(--slate-200);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--slate-800);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--navy-700);
    box-shadow: 0 0 0 3px rgba(11, 37, 69, 0.1);
}

.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    margin-bottom: 20px;
}

.alert-success {
    background: var(--success-bg);
    color: var(--success-text);
}

.alert-error {
    background: var(--error-bg);
    color: var(--error-text);
}

/* 13. Call to Action Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-900) 100%);
    color: var(--white);
    text-align: center;
}

.cta-box {
    max-width: 800px;
    margin: 0 auto;
}

.cta-box h2 {
    color: var(--white);
    font-size: 2.4rem;
    margin-bottom: 16px;
}

.cta-box p {
    font-size: 1.15rem;
    color: var(--slate-200);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* 14. Footer */
.site-footer {
    background: var(--navy-900);
    color: var(--white);
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin: 12px 0 8px;
    color: var(--white);
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--slate-300, #CBD5E1);
}

.footer-brand .affiliation {
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--gold-500);
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-col h4 {
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a, .footer-col p {
    font-size: 0.88rem;
    color: var(--slate-300, #CBD5E1);
}

.footer-col a:hover {
    color: var(--gold-500);
}

.footer-bottom {
    padding-top: 30px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--slate-400, #94A3B8);
}