/* ========================================
   VIDYAPITH COLLEGE – Main Stylesheet
   Theme: Dark Gold #C8960C on Deep Maroon/Navy
   ======================================== */

:root {
  --gold: #C8960C;
  --gold-light: #F0B429;
  --gold-pale: #FFF3CC;
  --gold-dark: #8B6508;
  --deep: #1a1400;
  --deep2: #2a1f00;
  --maroon: #5C1A1A;
  --dark-bg: #121212;
  --surface: #1e1a0f;
  --surface2: #f9f5ea;
  --text: #1a1400;
  --text-muted: #5a5040;
  --white: #ffffff;
  --border: #e8d8a0;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(200,150,12,0.12);
  --shadow-lg: 0 8px 40px rgba(200,150,12,0.2);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', sans-serif;
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:var(--font-body);color:var(--text);background:#fff;line-height:1.6;overflow-x:hidden}
img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}

/* ---- UTILITY ---- */
.container{max-width:1180px;margin:0 auto;padding:0 1.5rem}
.section{padding:5rem 0}
.alt-bg{background:var(--surface2)}
.eyebrow{font-size:.75rem;font-weight:600;letter-spacing:.15em;text-transform:uppercase;color:var(--gold-dark);margin-bottom:.5rem}
.center{text-align:center}
h2{font-family:var(--font-display);font-size:clamp(1.8rem,3vw,2.5rem);color:var(--deep);line-height:1.25;margin-bottom:1.25rem}
h3{font-family:var(--font-display);font-size:1.25rem;color:var(--deep);margin-bottom:.6rem}
p{color:var(--text-muted);margin-bottom:1rem;font-size:.95rem}

/* ---- BUTTONS ---- */
.btn-primary{display:inline-block;background:var(--gold);color:var(--deep);font-weight:600;font-size:.9rem;padding:.75rem 1.75rem;border-radius:var(--radius);border:2px solid var(--gold);transition:all .2s;cursor:pointer}
.btn-primary:hover{background:var(--gold-dark);border-color:var(--gold-dark);color:#fff}
.btn-ghost{display:inline-block;background:transparent;color:var(--white);font-weight:600;font-size:.9rem;padding:.75rem 1.75rem;border-radius:var(--radius);border:2px solid rgba(255,255,255,.5);transition:all .2s}
.btn-ghost:hover{background:rgba(255,255,255,.1);border-color:#fff}
.btn-sm{display:inline-block;padding:.35rem .85rem;border:1.5px solid var(--gold);color:var(--gold-dark);font-size:.8rem;border-radius:4px;font-weight:600;margin-top:.75rem;transition:all .2s}
.btn-sm:hover{background:var(--gold);color:var(--deep)}

/* ---- TOPBAR ---- */
.topbar{background:var(--deep);color:rgba(255,255,255,.75);font-size:.8rem;padding:.45rem 0}
.topbar-inner{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.5rem}
.topbar-left{display:flex;gap:1.5rem}
.topbar-right{display:flex;gap:.6rem}
.btn-top{padding:.3rem .85rem;border-radius:4px;font-size:.78rem;font-weight:600;border:1px solid var(--gold);color:var(--gold);transition:all .2s}
.btn-top:hover{background:var(--gold);color:var(--deep)}
.btn-admin{background:var(--gold);color:var(--deep)}
.btn-admin:hover{background:var(--gold-light)}

/* ---- HEADER ---- */
.header{background:#fff;box-shadow:0 2px 12px rgba(0,0,0,.1);position:sticky;top:0;z-index:100;padding:.75rem 0}
.header-inner{display:flex;justify-content:space-between;align-items:center}
.logo-block{display:flex;align-items:center;gap:.85rem}
.logo-icon svg{flex-shrink:0}
.logo-main{display:block;font-family:var(--font-display);font-size:1.25rem;font-weight:700;color:var(--deep)}
.logo-sub{display:block;font-size:.68rem;color:var(--text-muted);margin-top:.1rem}

.nav ul{display:flex;gap:0;list-style:none}
.nav ul li{position:relative}
.nav ul li a{display:block;padding:.5rem 1rem;font-size:.88rem;font-weight:500;color:var(--text);transition:color .2s;white-space:nowrap}
.nav ul li a:hover,.nav ul li a.active{color:var(--gold-dark)}
.caret{font-size:.65rem}

.dropdown{display:none;position:absolute;top:100%;left:0;background:#fff;min-width:200px;box-shadow:var(--shadow-lg);border-top:2px solid var(--gold);border-radius:0 0 var(--radius) var(--radius);z-index:200}
.dropdown li a{padding:.6rem 1rem;font-size:.85rem;border-bottom:1px solid #f0ead0}
.dropdown li:last-child a{border-bottom:none}
.has-dropdown:hover .dropdown{display:block}

.hamburger{display:none;flex-direction:column;gap:5px;background:none;border:none;cursor:pointer;padding:.35rem}
.hamburger span{display:block;width:24px;height:2px;background:var(--deep);transition:all .3s}
.hamburger.open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.hamburger.open span:nth-child(2){opacity:0}
.hamburger.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* ---- HERO ---- */
.hero{position:relative;min-height:90vh;display:flex;align-items:center;background:linear-gradient(135deg,var(--deep) 0%,var(--deep2) 40%,#3d2a00 100%);overflow:hidden}
.hero::before{content:'';position:absolute;inset:0;background:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C8960C' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(to right,rgba(26,20,0,.7) 0%,rgba(26,20,0,.2) 100%)}
.hero-content{position:relative;z-index:2;max-width:700px;padding:3rem 0}
.hero-badge{display:inline-block;background:rgba(200,150,12,.15);border:1px solid rgba(200,150,12,.4);color:var(--gold-light);font-size:.78rem;font-weight:600;letter-spacing:.1em;padding:.35rem .9rem;border-radius:20px;margin-bottom:1.5rem}
.hero-title{font-family:var(--font-display);font-size:clamp(2.5rem,5vw,4rem);color:#fff;line-height:1.15;margin-bottom:1.25rem;font-weight:800}
.hero-title .accent{color:var(--gold-light)}
.hero-sub{color:rgba(255,255,255,.75);font-size:1.05rem;max-width:540px;margin-bottom:2rem}
.hero-actions{display:flex;gap:1rem;flex-wrap:wrap;margin-bottom:3rem}
.hero-stats{display:flex;gap:2.5rem;flex-wrap:wrap;border-top:1px solid rgba(200,150,12,.25);padding-top:2rem}
.stat strong{display:block;font-family:var(--font-display);font-size:1.6rem;color:var(--gold-light);font-weight:700}
.stat span{font-size:.8rem;color:rgba(255,255,255,.55);text-transform:uppercase;letter-spacing:.08em}

/* ---- TICKER ---- */
.ticker-wrap{background:var(--gold);overflow:hidden;display:flex;align-items:stretch}
.ticker-label{background:var(--deep);color:var(--gold);font-weight:700;font-size:.78rem;letter-spacing:.12em;text-transform:uppercase;padding:.65rem 1rem;white-space:nowrap;flex-shrink:0}
.ticker-track{display:flex;white-space:nowrap;animation:ticker-scroll 40s linear infinite;padding:.65rem 0}
.ticker-track span{font-size:.85rem;font-weight:600;color:var(--deep);padding-right:2rem}
@keyframes ticker-scroll{0%{transform:translateX(0)}100%{transform:translateX(-50%)}}
.ticker-wrap:hover .ticker-track{animation-play-state:paused}

/* ---- TWO COL ---- */
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:4rem;align-items:center}
.two-col.reverse .col-text{order:2}
.two-col.reverse .col-img{order:1}

.feature-list{list-style:none;margin:.75rem 0;display:flex;flex-direction:column;gap:.5rem}
.feature-list li{font-size:.9rem;color:var(--text-muted)}

/* ---- IMG FRAME ---- */
.img-frame{border-radius:12px;overflow:hidden;border:3px solid var(--border);box-shadow:var(--shadow-lg)}
.dark-frame{border-color:var(--gold-dark)}
.img-placeholder{background:linear-gradient(135deg,#f5edcc,#fffae6);min-height:320px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem}
.img-placeholder p{color:var(--text-muted);font-size:.85rem;font-weight:500}

/* ---- PRINCIPAL ---- */
.principal-card{display:flex;gap:2.5rem;align-items:flex-start;background:#fff;border-radius:12px;padding:2.5rem;box-shadow:var(--shadow);border-left:4px solid var(--gold)}
.principal-avatar{flex-shrink:0}
blockquote{font-family:var(--font-display);font-size:1.1rem;color:var(--deep);line-height:1.7;font-style:italic;margin-bottom:1rem}
cite{font-size:.9rem;color:var(--gold-dark);font-style:normal;font-weight:600}
cite small{display:block;font-weight:400;color:var(--text-muted);font-size:.8rem}

/* ---- COURSES ---- */
.courses-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.5rem;margin-top:2rem}
.course-card{background:#fff;border:1px solid var(--border);border-radius:10px;padding:1.75rem;transition:all .25s;position:relative}
.course-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg);border-color:var(--gold)}
.highlight-card{background:var(--deep);border-color:var(--gold)}
.highlight-card h3,.highlight-card p,.highlight-card .course-tag{color:rgba(255,255,255,.85)}
.highlight-card h3{color:var(--gold-light)}
.course-icon{font-size:2rem;margin-bottom:.75rem}
.course-tag{display:inline-block;background:var(--gold-pale);color:var(--gold-dark);font-size:.72rem;font-weight:700;padding:.2rem .65rem;border-radius:20px;margin-top:.5rem;border:1px solid var(--border)}
.highlight-card .course-tag{background:rgba(200,150,12,.15);color:var(--gold-light);border-color:rgba(200,150,12,.3)}

/* ---- DISTANCE ---- */
.dl-features{display:flex;flex-direction:column;gap:1.25rem;margin-top:1.5rem}
.dl-item{display:flex;gap:1rem;align-items:flex-start}
.dl-icon{font-size:1.5rem;flex-shrink:0}
.dl-item strong{color:var(--deep);font-size:.9rem}
.dl-item p{margin:0;font-size:.85rem}

/* ---- ADMISSIONS ---- */
.admission-steps{display:flex;gap:0;align-items:flex-start;margin:2.5rem 0;flex-wrap:wrap}
.step{flex:1;min-width:180px;text-align:center;padding:1.5rem 1rem;background:#fff;border:1px solid var(--border);border-radius:10px}
.step-num{font-family:var(--font-display);font-size:2.5rem;font-weight:800;color:var(--gold);opacity:.3;line-height:1}
.step h4{color:var(--deep);margin:.5rem 0;font-size:.95rem}
.step p{font-size:.82rem}
.step-arrow{font-size:1.5rem;color:var(--gold);padding:.5rem;align-self:center;flex-shrink:0}

.fee-table-wrap{margin-top:3rem;background:#fff;border-radius:10px;overflow:hidden;box-shadow:var(--shadow)}
.fee-table-wrap h3{padding:1.25rem 1.5rem;background:var(--deep);color:var(--gold-light);font-family:var(--font-display)}
.fee-table{width:100%;border-collapse:collapse}
.fee-table th{background:var(--deep2);color:var(--gold);padding:.85rem 1.5rem;text-align:left;font-size:.85rem;letter-spacing:.05em}
.fee-table td{padding:.8rem 1.5rem;border-bottom:1px solid var(--border);font-size:.9rem}
.fee-table tr:last-child td{border-bottom:none}
.fee-table tr:hover td{background:var(--gold-pale)}

/* ---- NOTICES & EVENTS ---- */
.notice-list{list-style:none;display:flex;flex-direction:column;gap:0}
.notice-list li{display:flex;gap:1rem;align-items:baseline;padding:.85rem 0;border-bottom:1px solid var(--border)}
.notice-date{font-size:.75rem;color:var(--gold-dark);font-weight:600;white-space:nowrap;flex-shrink:0}
.notice-list a{font-size:.88rem;color:var(--text);transition:color .2s}
.notice-list a:hover{color:var(--gold-dark)}

.events-list{display:flex;flex-direction:column;gap:.75rem}
.event-item{display:flex;gap:1.25rem;align-items:center;background:#fff;padding:1rem 1.25rem;border-radius:8px;border-left:3px solid var(--gold);box-shadow:var(--shadow)}
.event-date{text-align:center;min-width:44px;flex-shrink:0}
.event-date strong{display:block;font-family:var(--font-display);font-size:1.5rem;color:var(--deep);line-height:1}
.event-date span{font-size:.72rem;color:var(--gold-dark);font-weight:600;text-transform:uppercase}
.event-info h4{font-size:.9rem;color:var(--deep);margin-bottom:.2rem}
.event-info p{font-size:.8rem;margin:0}

/* ---- GALLERY ---- */
.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:auto auto;gap:1rem;margin-top:2rem}
.gi-large{grid-row:span 2;grid-column:span 1}
.gallery-item{border-radius:8px;overflow:hidden;border:2px solid var(--border);transition:all .25s;cursor:pointer}
.gallery-item:hover{border-color:var(--gold);transform:scale(1.02)}
.gallery-placeholder{min-height:140px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.4rem;background:linear-gradient(135deg,#f5edcc,#fffae6)}
.gi-large .gallery-placeholder{min-height:292px}
.gallery-placeholder span{font-size:2.2rem}
.gallery-placeholder p{font-size:.8rem;color:var(--text-muted);font-weight:600}

/* ---- CONTACT ---- */
.contact-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:3rem;align-items:start;margin-top:2rem}
.contact-info{display:flex;flex-direction:column;gap:1.5rem}
.contact-item{display:flex;gap:1rem;align-items:flex-start}
.cicon{font-size:1.3rem;flex-shrink:0;margin-top:.15rem}
.contact-item strong{display:block;font-size:.9rem;color:var(--deep);margin-bottom:.2rem}
.contact-item p{font-size:.85rem;margin:0}

.contact-form{background:#fff;padding:2rem;border-radius:12px;box-shadow:var(--shadow)}
.contact-form h3{margin-bottom:1.25rem;color:var(--deep)}
.contact-form input,.contact-form select,.contact-form textarea{width:100%;padding:.7rem 1rem;border:1.5px solid var(--border);border-radius:6px;font-family:var(--font-body);font-size:.9rem;margin-bottom:.85rem;background:#fafaf7;transition:border .2s;outline:none}
.contact-form input:focus,.contact-form select:focus,.contact-form textarea:focus{border-color:var(--gold)}
.contact-form button{width:100%;padding:.85rem;border:none;font-size:.95rem;font-weight:700}

/* ---- FOOTER ---- */
.footer{background:var(--deep);padding:4rem 0 0}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:2.5rem;padding-bottom:3rem}
.footer-logo .logo-main{color:var(--gold-light);font-size:1.25rem}
.footer-logo .logo-sub{color:rgba(255,255,255,.4);font-size:.7rem}
.footer-desc{color:rgba(255,255,255,.45);font-size:.85rem;margin-top:.75rem;line-height:1.7}
.footer-col h4{color:var(--gold);font-size:.8rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;margin-bottom:1rem}
.footer-col ul{list-style:none;display:flex;flex-direction:column;gap:.5rem}
.footer-col ul a{color:rgba(255,255,255,.5);font-size:.85rem;transition:color .2s}
.footer-col ul a:hover{color:var(--gold-light)}
.portal-btn{display:block;padding:.6rem 1rem;border:1px solid rgba(200,150,12,.4);color:var(--gold);font-size:.82rem;font-weight:600;border-radius:6px;text-align:center;margin-bottom:.6rem;transition:all .2s}
.portal-btn:hover{background:var(--gold);color:var(--deep)}
.admin-portal{border-color:rgba(255,255,255,.2);color:rgba(255,255,255,.6)}
.admin-portal:hover{background:rgba(255,255,255,.1);color:#fff}
.social-links{display:flex;gap:.75rem;margin-top:1rem}
.social-links a{width:34px;height:34px;display:flex;align-items:center;justify-content:center;border-radius:50%;border:1px solid rgba(200,150,12,.35);color:var(--gold);font-size:.9rem;transition:all .2s}
.social-links a:hover{background:var(--gold);color:var(--deep)}
.footer-bottom{border-top:1px solid rgba(200,150,12,.15);padding:1.25rem 0}
.footer-bottom p{text-align:center;color:rgba(255,255,255,.3);font-size:.8rem}

/* ---- VISION ---- */
#vision.section,.section#vision{scroll-margin-top:80px}

/* ============================
   RESPONSIVE
   ============================ */

@media(max-width:900px){
  .two-col{grid-template-columns:1fr;gap:2.5rem}
  .two-col.reverse .col-text,.two-col.reverse .col-img{order:unset}
  .footer-grid{grid-template-columns:1fr 1fr;gap:2rem}
  .contact-grid{grid-template-columns:1fr}
  .gallery-grid{grid-template-columns:repeat(2,1fr)}
  .gi-large{grid-row:span 1;grid-column:span 2}
  .principal-card{flex-direction:column;gap:1.5rem}
}

@media(max-width:768px){
  .hamburger{display:flex}
  .nav{display:none;position:fixed;top:0;right:-100%;width:75%;max-width:300px;height:100vh;background:#fff;flex-direction:column;box-shadow:-4px 0 20px rgba(0,0,0,.15);transition:right .3s;z-index:200;padding:5rem 2rem 2rem;overflow-y:auto}
  .nav.open{display:flex;right:0}
  .nav ul{flex-direction:column;gap:0}
  .nav ul li a{padding:.85rem .5rem;border-bottom:1px solid #f0ead0;font-size:.95rem}
  .dropdown{display:none!important}
  .header-inner{position:relative;z-index:201}
  .overlay{display:block;position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:199}
  .topbar-left{display:none}
  .admission-steps{flex-direction:column}
  .step-arrow{transform:rotate(90deg);align-self:center}
  .footer-grid{grid-template-columns:1fr}
  .hero{min-height:100svh}
  .hero-stats{gap:1.5rem}
}

@media(max-width:480px){
  .gallery-grid{grid-template-columns:1fr}
  .gi-large{grid-column:span 1}
  .courses-grid{grid-template-columns:1fr}
  .fee-table th,.fee-table td{padding:.7rem 1rem;font-size:.82rem}
}
