/*
Theme Name: St Andrews
Author: Anand Hariharan
Version: 1.0
Description: A custom WordPress theme built for St Andrews website.
*/

@font-face {
    font-family: 'Karla';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/karla/v33/qkB9XvYC6trAT55ZBi1ueQVIjQTD-JrIH2G7nytkHRyQ8p4wUjm6bmMorHBiTg.woff2) format('woff2');
    unicode-range: U +0100 -02BA, U +02BD -02C5, U +02C7 -02CC, U +02CE -02D7, U +02DD -02FF, U +0304, U +0308, U +0329, U +1D00 -1DBF, U +1E00 -1E9F, U +1EF2 -1EFF, U +2020, U +20A0 -20AB, U +20AD -20C4, U +2113, U +2C60 -2C7F, U + A720-A7FF;
}

/*Colors*/
:root {
    --ls-black: #000;
    --ls-white: #fff;
    --ls-dblue: #0d499c;
    --ls-ablue: #008fd5;
    --ls-eblue: #434554;
    --ls-orange: #f26522;
    --ls-green: #96bc33;
    --ls-purple: #9b4198;
    --ls-jade: #009d95;
    --ls-grey: #1e1e1e;
    --ls-lgrey: #efefef;
}

html { scroll-padding-top: 100px; scroll-behavior: smooth; background-color:#e1e1e1; }
body { color: var(--ls-grey); margin:0 auto; padding:0 !important; font-family: "Karla", sans-serif; }

@media (min-width: 1800px) {
    body {
        max-width: 1800px;
        margin-top: 30px;
    }
}

h1, h2, h3, h4, h5, h6, p, dl, dt { margin: 0; padding: 0; font-family: 'Karla', sans-serif; }
a { color: var(--ls-dblue); }
a:hover { color: var(--ls-grey); }

.skip-to-content, .skip-to-menu { display: inline-block; padding: 5px 10px; border: solid 1px var(--ls-ablue); background-color: var(--ls-dblue); color: var(--ls-white); text-decoration: none; position: absolute; top: -100px; z-index: 9999; }
.skip-to-content:focus, .skip-to-menu:focus { top: 0; z-index: 9999; }

#btn-back-to-top { color:  var(--ls-ablue); position: fixed; bottom: 20px; right: 20px; display: none; z-index: 99; }

.site-header { padding: 22.5px 20px; position: sticky; top: 0; z-index: 1050; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.header-inner { height: 80px; position: relative; } 

/* Desktop Navigation */
.primary-nav { display: flex; align-items: center; justify-content: center; gap: 2rem; position: absolute; left: 10%; }
.primary-nav .nav .menu-item { margin: 0 calc(.75vw + 4px); }
.primary-nav .nav .menu-item a { padding: 0; }
.primary-nav .nav .menu-item a { color: #333; text-decoration: none; font-size: 1.05rem; font-weight: 700; text-transform: uppercase; 
    position: relative;
}
.primary-nav .nav .menu-item a:hover, .primary-nav .nav .current-menu-item a { color: var(--ls-dblue); } 
.primary-nav .nav .menu-item a:hover::after, .primary-nav .nav .current-menu-item a:after { transform: scale(1.0) !important; width:100%; }
.primary-nav .nav .menu-item a::after, .primary-nav .nav .current-menu-item a:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background-color: var(--ls-dblue);
    transform: scaleX(0);
    transform-origin: bottom left;
    transition: transform 0.3s ease-out;
}
@media (min-width: 1400px) {
    .primary-nav { left: 20%; }
}
@media (width < 1400px) {
    .primary-nav { left: 15%; }
}
@media (width < 1200px) {
    .primary-nav { left: 10%; }
}

/* Center Logo */
.logo-wrapper { position: absolute; left: 50%; transform: translateX(-50%); } 
.logo-wrapper img { height: 70px; width: inherit; }

@media (min-width: 992px) {
    .logo-wrapper img { height: 90px; width: inherit; }
}

@media (min-width: 1200px) {
    .logo-wrapper img { height: 92px; width: inherit; }
}

@media (min-width: 1800px) {
    .logo-wrapper img { height: 96px; width: inherit; }
}

/* Mobile Layout */
.mobile-header { display: none; width: 100%; align-items: center; justify-content: space-between; gap: 12px; }
.mobile-brand { display: flex; align-items: center; gap: 10px; flex: 1; }
.mobile-search { display: none; width: 180px; } 
.mobile-logo img { height: 70px; width: inherit; }

.offcanvas-body { background-color: #efefef; padding-left: 0; padding-right: 0; }
.offcanvas-body .navbar-nav { margin-top: 50px; }
.offcanvas-body .navbar-nav li { border-bottom:solid 1px rgba(0, 0, 0, 0.07); font-size: 1.4rem; font-weight: 700; }
.offcanvas-body .navbar-nav li a { padding: 25px 30px;
    display: block;
    text-decoration: none;
    color: rgb(33, 37, 41);
}
.navbar-toggler-icon {
    width: 40px;
    height: 35px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(13, 73, 156, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-toggler:focus { box-shadow: none; }
.offcanvas.offcanvas-end { border-left: 0; min-width: 100%; z-index: 1051; }

@media (max-width: 991.98px) {
    .desktop-header { display: none !important; }
    .mobile-header { display: flex; height: 70px; }
    .mobile-search .form-control { font-size: 14px; }
}

@media (min-width: 992px) {
    .mobile-header { display: none !important; }
    .desktop-header { display: flex; }
}

/*Hero Banner - Start*/
.hero-banner {
    position: relative;
}

.hero-banner .banner-img { background-size: cover; background-position: center; background-repeat: no-repeat; overflow: hidden; min-height: 525px; }

/* Optional overlay */
.hero-banner::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); }
.hero-banner .container-fluid, .hero-banner .row { position: relative; z-index: 2; background-color: rgba(0,0,0,.2) }

.hero-content {
    width: 100%;
    max-width: 28rem; /* Fixed content width */
    background: rgba(255, 255, 255, 0.85);
    padding: 3rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.content-box { padding: 0 5%; }
.hero-subtitle { display: inline-block; color: #0d6efd; font-weight: 600; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.hero-title { font-family: Ubuntu,serif; font-size: 3.75rem; font-weight: 700; line-height: 1.2; margin-bottom: 0; }
.hero-description { font-size: 1.1rem;  color: #6c757d; margin-bottom: 2rem; }

@media (max-width: 767px){
    .hero-banner .container-fluid, .hero-banner .row { min-height: 393px; }
}
@media (min-width: 768px) and (max-width: 991px){
    .hero-banner .container-fluid, .hero-banner .row { min-height: 400px; }
}
@media (min-width: 992px) and (max-width: 1199px){
    .hero-banner .container-fluid, .hero-banner .row { min-height: 573px; }
}
@media (min-width: 1200px){
    .hero-banner .container-fluid, .hero-banner .row { min-height: 504px; }
}

@media (max-width: 991.98px) {
    .hero-content { max-width: 28rem;  }
    .hero-title { font-size: 2.25rem; }
}

@media (max-width: 575.98px) {
    .hero-title { font-size: 1.8rem; }
    .hero-actions .btn { width: 100%; margin-bottom: 0.75rem; }
}
/*Hero Banner - End*/

/*Main Content - Start*/
h2 { color: var(--ls-eblue); font-size: 2.61rem; font-weight: 700; line-height: 3.5rem; margin: 2rem 0; position: relative; padding-bottom: 12px; }
h2:after { content: ""; position: absolute; bottom: 0; left: 0; height: 3px; background-color: var(--ls-dblue); width: 100px; 
    transform: scaleX(1);
    transform-origin: bottom left;
    transition: transform 0.3s ease-out;
}
h3 { color: var(--ls-eblue); font-size: 1.95rem; font-weight: 700; line-height: 3.5rem; margin: 2rem 0; position: relative; padding-bottom: 12px; }
h3:after { content: ""; position: absolute; bottom: 0; left: 0; height: 3px; background-color: var(--ls-dblue); width: 100px; 
-webkit-animation: headerLine .35s ease-out;
animation: headerLine .35s ease-out;
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
}
p { font-size: 1rem; line-height: 1.8rem; padding-bottom: 1.89rem; }
ul { font-size: 1rem; line-height: 1.8rem; }
/*Main Content - End*/

/*Footer - Start*/
.site-footer { background-color: var(--ls-lgrey); padding: 2rem 0; }
.site-footer dl { width: 100%; overflow: hidden; }
.site-footer dl dt { width: 20%; float: left; padding: 8px 15px; }
.site-footer dl dd { width: 80%; float: left; padding: 8px 15px; }

.site-footer .px-sm-5 { padding: 0 3rem !important; }
.site-footer .px-sm-5 dl dt { padding-left: 0; padding-right: 0; width: 25%; }
.site-footer .px-sm-5 dl dd { width: 75%; }

.copyright { background-color: var(--ls-black); color: var(--ls-white); font-size: .9rem; padding: 13px 0; }
.copyright .copy { font-size: .9rem; line-height: 1.6rem; padding: 0; display: inline-block; padding-right: 6px; }
.copyright .footer-nav { font-size: .9rem; line-height: 1.6rem; padding: 0; display: inline-block; position: relative; }
.copyright ul { font-size: .9rem; line-height: 1.6rem; padding: 0; }
.copyright ul li { }
.copyright ul li:before { content: ''; display: inline-block; width: 1px; height: 10px; top: 7px; background-color: var(--ls-white); }
.copyright a { color: var(--ls-white); text-decoration: none; padding: 0 6px; }
.copyright a:hover { text-decoration: underline; }

@media (max-width: 578px) {
    .site-footer dt, .site-footer dd { font-size: .85rem; }
    .copyright p { font-size: .85rem; text-align: center; }
}
/*Footer - End*/