/* ============================================================
   VINDHYACHAL COLLEGE - Public Website CSS
   Modern Design
   ============================================================ */

:root {
    --primary:    #4f46e5;
    --primary-dark:#3730a3;
    --secondary:  #7c3aed;
    --accent:     #f59e0b;
    --success:    #10b981;
    --dark:       #0f172a;
    --light:      #f8fafc;
    --text:       #334155;
    --text-light: #64748b;
    --border:     #e2e8f0;
    --white:      #ffffff;
}

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

html { scroll-behavior: smooth; }
body { font-family: 'Inter', 'Segoe UI', sans-serif; color: var(--text); line-height: 1.6; }
img  { max-width: 100%; }
a    { text-decoration: none; color: inherit; }

/* ---- HEADER ---- */
.site-header {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    box-shadow: 0 1px 10px rgba(0,0,0,.06);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 40px;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.logo-mark {
    width: 46px; height: 46px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
}
.logo-text { font-size: 16px; font-weight: 800; color: var(--dark); line-height: 1.2; }
.logo-sub  { font-size: 11px; color: var(--text-light); font-weight: 500; }

.site-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.site-nav a {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    transition: all .2s;
}
.site-nav a:hover, .site-nav a.active {
    background: rgba(79,70,229,.08);
    color: var(--primary);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.btn-outline-primary {
    padding: 8px 18px;
    border: 1.5px solid var(--primary);
    border-radius: 8px;
    color: var(--primary);
    font-size: 13.5px;
    font-weight: 600;
    transition: all .2s;
}
.btn-outline-primary:hover { background: var(--primary); color: #fff; }
.btn-primary-fill {
    padding: 9px 20px;
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    transition: all .2s;
}
.btn-primary-fill:hover { background: var(--primary-dark); }

/* ---- HERO ---- */
.hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4f46e5 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 600px; height: 600px;
    background: rgba(124,58,237,.2);
    border-radius: 50%;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -80px;
    width: 400px; height: 400px;
    background: rgba(245,158,11,.1);
    border-radius: 50%;
}
.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: #c7d2fe;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}
.hero h1 {
    font-size: 52px;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 20px;
}
.hero h1 span { color: #fbbf24; }
.hero p {
    font-size: 17px;
    color: rgba(255,255,255,.75);
    margin-bottom: 32px;
    line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-btn-primary {
    padding: 14px 28px;
    background: #fff;
    color: var(--primary);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.hero-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.hero-btn-outline {
    padding: 14px 28px;
    border: 2px solid rgba(255,255,255,.4);
    color: #fff;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.hero-btn-outline:hover { background: rgba(255,255,255,.1); }

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 40px;
}
.hero-stat-num {
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}
.hero-stat-label { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 2px; }

.hero-image-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-image-card {
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 24px;
    padding: 30px;
    color: #fff;
    width: 100%;
    max-width: 380px;
}
.hero-image-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.hero-feature-list { list-style: none; }
.hero-feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
    font-size: 14px;
}
.hero-feature-list li:last-child { border-bottom: none; }
.hero-feature-list .check {
    width: 22px; height: 22px;
    background: rgba(16,185,129,.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    color: #34d399;
    flex-shrink: 0;
}

/* ---- SECTIONS ---- */
.section { padding: 80px 0; }
.section-alt { background: var(--light); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-head { text-align: center; margin-bottom: 50px; }
.section-badge {
    display: inline-block;
    background: rgba(79,70,229,.1);
    color: var(--primary);
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
    border: 1px solid rgba(79,70,229,.2);
}
.section-head h2 { font-size: 38px; font-weight: 900; color: var(--dark); margin-bottom: 12px; }
.section-head p  { font-size: 16px; color: var(--text-light); max-width: 600px; margin: 0 auto; }

/* ---- COURSE CARDS ---- */
.courses-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.course-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all .3s;
}
.course-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(79,70,229,.12); border-color: var(--primary); }
.course-card-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 24px;
    color: #fff;
}
.course-icon { font-size: 36px; margin-bottom: 10px; }
.course-card-header h3 { font-size: 18px; font-weight: 800; }
.course-card-header p  { font-size: 13px; opacity: .8; }
.course-card-body { padding: 20px; }
.course-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.course-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-light);
    background: var(--light);
    padding: 4px 10px;
    border-radius: 6px;
}
.course-card .apply-btn {
    display: block;
    text-align: center;
    background: var(--primary);
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13.5px;
    transition: all .2s;
}
.course-card .apply-btn:hover { background: var(--primary-dark); }

/* ---- FEATURE BOXES ---- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.feature-box {
    background: #fff;
    border-radius: 14px;
    padding: 28px 24px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all .3s;
}
.feature-box:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.feature-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, rgba(79,70,229,.1), rgba(124,58,237,.1));
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    margin: 0 auto 16px;
}
.feature-box h4 { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.feature-box p  { font-size: 13.5px; color: var(--text-light); }

/* ---- FORM ELEMENTS (Website) ---- */
.web-form .form-group { margin-bottom: 20px; }
.web-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--dark); }
.web-form input,
.web-form select,
.web-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text);
    outline: none;
    transition: border-color .2s;
    font-family: inherit;
}
.web-form input:focus,
.web-form select:focus,
.web-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.1); }
.web-form textarea { resize: vertical; min-height: 100px; }
.web-form .submit-btn {
    width: 100%;
    padding: 13px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
}
.web-form .submit-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ---- NEWS CARDS ---- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.news-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all .3s;
}
.news-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.news-card-body { padding: 20px; }
.news-date { font-size: 12px; color: var(--text-light); margin-bottom: 8px; }
.news-card h4 { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 10px; line-height: 1.4; }
.news-card p  { font-size: 13.5px; color: var(--text-light); }
.news-card .read-more { display: inline-block; margin-top: 12px; color: var(--primary); font-size: 13px; font-weight: 600; }

/* ---- PAGE BANNER ---- */
.page-banner {
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    padding: 60px 0;
    text-align: center;
    color: #fff;
}
.page-banner h1 { font-size: 40px; font-weight: 900; margin-bottom: 8px; }
.page-banner p  { font-size: 16px; opacity: .75; }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; font-size: 13px; opacity: .7; }
.breadcrumb a { color: #fff; }
.breadcrumb span { opacity: .5; }

/* ---- FOOTER ---- */
.site-footer {
    background: #0f172a;
    color: rgba(255,255,255,.7);
    padding: 60px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand .logo-mark { background: var(--primary); border-radius: 10px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 18px; }
.footer-brand p { font-size: 13.5px; line-height: 1.7; }
.footer-col h5 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 13.5px; color: rgba(255,255,255,.6); transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-contact { list-style: none; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 10px; font-size: 13.5px; }
.footer-contact i { color: var(--primary); margin-top: 2px; flex-shrink: 0; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 10px;
}

/* ---- CONTACT PAGE ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info-card {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 16px;
    padding: 36px;
    color: #fff;
}
.contact-info-card h3 { font-size: 24px; font-weight: 800; margin-bottom: 20px; }
.info-item { display: flex; gap: 14px; margin-bottom: 20px; }
.info-icon { width: 44px; height: 44px; background: rgba(255,255,255,.15); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.info-item h5 { font-size: 13px; opacity: .8; margin-bottom: 3px; }
.info-item p  { font-size: 14px; font-weight: 600; }
.contact-form-card { background: #fff; border-radius: 16px; padding: 36px; border: 1px solid var(--border); box-shadow: 0 4px 24px rgba(0,0,0,.06); }

/* ---- GALLERY ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.gallery-item { border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; background: var(--light); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-light); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.05); }

/* ---- VERIFY PAGE ---- */
.verify-card { max-width: 600px; margin: 0 auto; background: #fff; border-radius: 16px; padding: 40px; border: 1px solid var(--border); text-align: center; }
.verify-icon { font-size: 60px; margin-bottom: 16px; }
.verify-valid   { color: var(--success); }
.verify-invalid { color: var(--danger); }

/* ---- MOBILE NAV ---- */
.mobile-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; }
.mobile-menu { display: none; }

@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .site-nav, .header-cta { display: none; }
    .mobile-menu.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 16px; gap: 4px; z-index: 999; }
    .mobile-menu a { padding: 10px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; }
    .hero-inner    { grid-template-columns: 1fr; text-align: center; }
    .hero h1       { font-size: 36px; }
    .hero-image-wrap { display: none; }
    .footer-grid   { grid-template-columns: 1fr 1fr; }
    .contact-grid  { grid-template-columns: 1fr; }
    .hero-stats    { justify-content: center; }
}
