/*
Theme Name: TMS College Profile
Theme URI: https://tmscollegeswm.com/
Description: College profile child theme for Thakur Madan Singh College. Preserves existing Astra pages, menus, media and content while refreshing the header, homepage slider and visual styling.
Author: NAMA COMPUTERS
Template: astra
Version: 1.0.0
Text Domain: tms-college-profile
*/

/* ---------- College palette and global polish ---------- */
:root{
  --tms-navy:#0b2d50;
  --tms-blue:#145da0;
  --tms-sky:#eaf5ff;
  --tms-gold:#d7a83e;
  --tms-ink:#1d2b3a;
  --tms-muted:#637487;
}
html{scroll-behavior:smooth}
body{color:var(--tms-ink);background:#f7f9fc}
a{transition:color .2s ease}
a:hover{color:var(--tms-gold)}
.ast-container{max-width:1240px}
.site-content{padding-top:24px;padding-bottom:36px}
.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-single,
.ast-separate-container .comments-area,
.ast-separate-container .ast-archive-description{
  border:1px solid #e5edf5;border-radius:14px;box-shadow:0 8px 26px rgba(12,45,80,.06)
}

/* ---------- Contact strip above the existing logo/menu header ---------- */
.tms-contact-strip{
  width:100%;background:var(--tms-navy);color:#fff;font-size:13px;
  border-bottom:3px solid var(--tms-gold)
}
.tms-contact-inner{
  max-width:1240px;margin:0 auto;padding:9px 22px;display:flex;
  align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap
}
.tms-contact-strip a{color:#fff;text-decoration:none;font-weight:600}
.tms-contact-strip a:hover{color:#f5d27c}
.tms-contact-item{display:inline-flex;align-items:center;gap:8px}
.tms-contact-label{color:#c9d9e9;font-weight:400}

/* Keep logo above the same existing WordPress primary menu. */
.ast-primary-header-bar .ast-builder-grid-row{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:7px;padding-top:12px;padding-bottom:8px
}
.ast-primary-header-bar .site-header-primary-section-left,
.ast-primary-header-bar .site-header-primary-section-right{
  width:100%;justify-content:center
}
.ast-primary-header-bar .site-branding{margin:0 auto;text-align:center}
.ast-primary-header-bar .custom-logo{max-height:94px;width:auto;max-width:min(90vw,520px);object-fit:contain}
.ast-primary-header-bar .main-header-menu{justify-content:center}
.ast-primary-header-bar .main-header-menu > .menu-item > .menu-link{
  font-weight:700;font-size:13px;letter-spacing:.15px;padding:12px 11px
}
.ast-primary-header-bar .main-header-menu > .menu-item:hover > .menu-link,
.ast-primary-header-bar .main-header-menu > .current-menu-item > .menu-link{
  color:var(--tms-blue)
}
.ast-primary-header-bar{border-bottom:1px solid #e7edf4;box-shadow:0 5px 18px rgba(11,45,80,.05)}

/* ---------- Full-width homepage slider after the menu ---------- */
.tms-hero-slider{position:relative;width:100%;height:min(76vh,760px);min-height:430px;overflow:hidden;background:#102b45}
.tms-hero-slide{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity 1s ease; background-position:center;background-size:cover}
.tms-hero-slide.is-active{opacity:1;visibility:visible}
.tms-hero-slide:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,25,46,.78),rgba(5,25,46,.35) 55%,rgba(5,25,46,.08))}
.tms-hero-content{position:relative;z-index:2;max-width:1240px;height:100%;margin:0 auto;padding:40px 28px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;color:#fff}
.tms-hero-kicker{display:inline-block;padding:7px 13px;margin-bottom:17px;border:1px solid rgba(255,255,255,.65);border-radius:30px;color:#ffe2a0;font-size:12px;font-weight:800;letter-spacing:1.5px;text-transform:uppercase}
.tms-hero-title{max-width:780px;margin:0 0 15px;color:#fff;font-size:clamp(32px,5vw,62px);line-height:1.08;font-weight:800;text-shadow:0 3px 16px rgba(0,0,0,.28)}
.tms-hero-subtitle{max-width:780px;margin:0;color:#f2f6fb;font-size:clamp(15px,1.7vw,20px);line-height:1.65}
.tms-hero-dots{position:absolute;z-index:5;bottom:22px;left:0;right:0;display:flex;justify-content:center;gap:10px}
.tms-hero-dot{width:10px;height:10px;padding:0;border:1px solid #fff;border-radius:50%;background:rgba(255,255,255,.4);cursor:pointer}
.tms-hero-dot.is-active{width:28px;border-radius:20px;background:var(--tms-gold);border-color:var(--tms-gold)}
.tms-hero-arrows{position:absolute;z-index:5;inset:50% 18px auto;display:flex;justify-content:space-between;transform:translateY(-50%);pointer-events:none}
.tms-hero-arrow{pointer-events:auto;width:42px;height:42px;border:1px solid rgba(255,255,255,.7);border-radius:50%;background:rgba(5,25,46,.35);color:#fff;font-size:24px;line-height:1;cursor:pointer}
.tms-hero-arrow:hover{background:var(--tms-gold);border-color:var(--tms-gold);color:#142b43}
.tms-hero-slider + .site-content{padding-top:32px}

/* ---------- Content and footer appearance only; no content is replaced ---------- */
.entry-content h2,.entry-content h3,.elementor-widget-heading h2,.elementor-widget-heading h3{
  color:var(--tms-navy)
}
.entry-content img{border-radius:8px}
.site-footer{border-top:4px solid var(--tms-gold)}
.site-primary-footer-wrap{background:var(--tms-navy)!important;color:#fff}
.site-primary-footer-wrap a,.site-primary-footer-wrap .widget-title,
.site-primary-footer-wrap p,.site-primary-footer-wrap li{color:#edf4fb}
.site-primary-footer-wrap a:hover{color:#f5d27c}
.site-below-footer-wrap{background:#071f37!important;color:#dce8f3}
.site-below-footer-wrap a{color:#f5d27c}
@media(max-width:921px){
  .ast-primary-header-bar .ast-builder-grid-row{gap:5px}
  .ast-primary-header-bar .custom-logo{max-height:76px}
  .ast-primary-header-bar .site-header-primary-section-left,
  .ast-primary-header-bar .site-header-primary-section-right{width:100%}
  .ast-primary-header-bar .main-header-menu{justify-content:flex-start}
}
@media(max-width:600px){
  .tms-contact-inner{justify-content:center;padding:8px 12px;font-size:12px}
  .tms-hero-slider{height:68vh;min-height:390px}
  .tms-hero-content{padding:28px 22px 48px}
  .tms-hero-slide:before{background:linear-gradient(90deg,rgba(5,25,46,.78),rgba(5,25,46,.38))}
  .tms-hero-arrow{width:34px;height:34px;font-size:20px}
  .ast-primary-header-bar .custom-logo{max-height:65px}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .tms-hero-slide{transition:none}
}
