:root{
  --navy:#1a2c5b;
  --navy-dark:#152449;
  --yellow:#f5b90b;
  --yellow-dark:#e0a800;
  --text:#3a3a3a;
  --muted:#6b7280;
  --light:#f6f7fb;
  --border:#e5e7eb;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  font-family:'Rubik','Poppins',sans-serif;
  color:var(--text);
  background:#fff;
  overflow-x:hidden;
}
h1,h2,h3,h4,h5,h6{font-family:'Rubik',sans-serif;color:var(--navy);font-weight:700}
p{color:#555;line-height:1.7}

/* Top Bar */
.top-bar{background:#fff;font-size:.9rem;color:#333;border-bottom:1px solid #f0f0f0}
.top-bar .top-info span{color:#333;font-weight:500}
.top-bar .top-info i{color:var(--navy);margin-right:6px}
.top-bar .divider{color:#ccc}
.btn-instructions{
  background:var(--yellow);color:var(--navy);font-weight:700;
  padding:8px 22px;border-radius:4px;font-size:.85rem;letter-spacing:.5px;
  border:none;transition:background .25s ease;
}
.btn-instructions:hover{background:var(--yellow-dark);color:var(--navy)}

/* Navbar */
.main-nav{background:#fff;padding:15px 0;box-shadow:0 2px 12px rgba(0,0,0,.05)}
.brand-badge{
  background:var(--navy);color:#fff;font-weight:700;
  width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;
  border-radius:4px;font-size:.9rem;letter-spacing:1px;
}
.brand-title{display:block;color:var(--navy);font-size:1.4rem;font-weight:800;line-height:1}
.brand-sub{display:block;color:var(--navy);font-size:.7rem;font-weight:600;letter-spacing:1px;margin-top:2px}
.navbar-nav .nav-link{
  color:var(--navy)!important;font-weight:600;font-size:.85rem;
  letter-spacing:.5px;padding:10px 14px!important;position:relative;
  transition:color .2s ease;
}
.navbar-nav .nav-link:hover{color:var(--yellow)!important}
.navbar-nav .nav-link.active{color:var(--yellow)!important}
.navbar-nav .nav-link.active::after{
  content:"";position:absolute;left:14px;right:14px;bottom:2px;height:2px;background:var(--yellow);
}

/* Hero */
.hero{position:relative;padding-bottom:70px}
.carousel-item{height:600px;background-size:cover;background-position:center;position:relative}
.hero-overlay{position:absolute;inset:0;background:rgba(20,30,60,.45)}
.hero-content{position:relative;z-index:2;height:100%;display:flex;align-items:center;padding-top:100px}
.quote-card{
  background:rgba(255,255,255,.92);border-radius:8px;padding:40px 35px;
  max-width:460px;box-shadow:0 20px 60px rgba(0,0,0,.2);
}
.quote-text{color:var(--navy);font-size:1.5rem;font-weight:700;line-height:1.4;margin:10px 0;text-transform:uppercase;letter-spacing:.5px}
.quote-top,.quote-bottom{font-size:2.2rem;color:var(--yellow);line-height:1;display:block}
.quote-bottom{text-align:right;transform:rotate(180deg)}
.carousel-control-prev,.carousel-control-next{width:60px;opacity:1}
.custom-arrow{
  width:45px;height:45px;background:rgba(255,255,255,.25);border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;color:#fff;font-size:1.3rem;
  transition:background .25s ease;
}
.custom-arrow:hover{background:var(--yellow);color:var(--navy)}

/* Search Bar */
.search-bar{
  background:var(--navy);border-radius:6px;overflow:hidden;
  position:absolute;left:12px;right:12px;bottom:-40px;
  box-shadow:0 15px 40px rgba(0,0,0,.15);
  max-width:calc(100% - 24px);margin:0 auto;
}
.search-bar .container{max-width:100%}
.hero > .container{position:relative}
.search-label{color:#fff;padding:20px 25px;font-weight:600;font-size:1rem;display:flex;align-items:center}
.search-label i{color:var(--yellow);margin-right:8px;font-size:1.2rem}
.search-input{
  border:none;border-radius:0;height:60px;padding:0 25px;font-size:1rem;
  background:#fff;color:#333;
}
.search-input:focus{box-shadow:none;outline:none}
.btn-search{
  background:var(--yellow);color:var(--navy);font-weight:700;
  height:60px;border:none;border-radius:0;letter-spacing:1px;font-size:.95rem;
  transition:background .25s ease;
}
.btn-search:hover{background:var(--yellow-dark);color:var(--navy)}

/* Section Titles */
.section-title{
  font-size:2.2rem;color:var(--navy);position:relative;
  padding-bottom:15px;display:inline-block;
}
.section-title::after{
  content:"";position:absolute;bottom:0;height:3px;width:60px;background:var(--yellow);border-radius:2px;
}
.section-title.text-center{display:block}
.section-title.text-center::after{left:50%;transform:translateX(-50%)}
.section-title.text-start::after{left:0}

/* About */
.about{background:#fff;padding-top:100px!important}
.about-img img{box-shadow:0 20px 60px rgba(0,0,0,.15)}
.btn-primary-navy{
  background:var(--navy);color:#fff;padding:12px 28px;font-weight:600;
  border-radius:4px;letter-spacing:.5px;font-size:.9rem;border:none;
  transition:background .25s ease;
}
.btn-primary-navy:hover{background:var(--navy-dark);color:#fff}

/* Services */
.services{background:var(--light)}
.service-card{
  background:#fff;border-radius:8px;padding:35px 25px;text-align:center;
  height:100%;box-shadow:0 5px 20px rgba(0,0,0,.05);
  transition:transform .3s ease, box-shadow .3s ease;
  border:1px solid transparent;
}
.service-card:hover{transform:translateY(-6px);box-shadow:0 20px 40px rgba(26,44,91,.12);border-color:var(--yellow)}
.service-icon{
  width:70px;height:70px;background:#f0f0f5;border-radius:50%;
  display:flex;align-items:center;justify-content:center;margin:0 auto 20px;
  font-size:1.8rem;color:var(--navy);
  transition:background .3s ease, color .3s ease;
}
.service-card:hover .service-icon{background:var(--yellow);color:var(--navy)}
.service-card h5{color:var(--navy);font-weight:700;margin-bottom:10px}
.service-card p{color:#666;font-size:.92rem;margin:0}

/* Best Users */
.best-users{background:var(--yellow)}
.users-grid{
  display:grid;grid-template-columns:repeat(8,1fr);gap:6px;
  background:#fff;padding:10px;border-radius:6px;box-shadow:0 10px 30px rgba(0,0,0,.08);
}
.user-tile{
  aspect-ratio:1;display:flex;align-items:center;justify-content:center;
  color:#fff;font-weight:700;font-size:1rem;border-radius:3px;
  transition:transform .25s ease;
}
.user-tile:hover{transform:scale(1.05)}
.best-users-card{
  background:var(--navy);color:#fff;padding:40px 35px;border-radius:6px;
  box-shadow:0 15px 40px rgba(0,0,0,.15);
}
.best-users-card h2{color:#fff;font-size:2.4rem;line-height:1.2;margin:0}
.best-users-card .year{color:var(--yellow)}
.btn-yellow{background:var(--yellow);color:var(--navy);font-weight:700;padding:12px 30px;border-radius:4px;letter-spacing:1px;border:none;transition:background .25s ease}
.btn-yellow:hover{background:#fff;color:var(--navy)}

/* Media + Notice */
.media-notice{background:#fff}
.media-card{background:#fff;border-radius:8px;overflow:hidden;box-shadow:0 10px 30px rgba(0,0,0,.08);border:1px solid #eee}
.media-card img{width:100%;height:250px;object-fit:cover}
.media-body{padding:25px}
.media-body h4{color:var(--navy);font-weight:700;margin-bottom:10px}
.read-more{color:var(--navy);font-weight:600;text-decoration:none;transition:color .2s ease}
.read-more i{margin-left:6px;transition:transform .25s ease;display:inline-block}
.read-more:hover{color:var(--yellow-dark)}
.read-more:hover i{transform:translateX(4px)}
.notice-list{display:flex;flex-direction:column;gap:18px}
.notice-item{
  display:flex;gap:20px;background:#fff;padding:22px;border:1px solid #eee;border-radius:6px;
  box-shadow:0 5px 15px rgba(0,0,0,.04);transition:box-shadow .25s ease, transform .25s ease;
}
.notice-item:hover{transform:translateY(-3px);box-shadow:0 15px 30px rgba(0,0,0,.08)}
.notice-date{
  background:var(--navy);color:#fff;padding:12px 14px;border-radius:6px;
  text-align:center;min-width:70px;display:flex;flex-direction:column;justify-content:center;
}
.notice-date .d{font-size:1.5rem;font-weight:800;line-height:1}
.notice-date .m{font-size:.75rem;font-weight:600;text-transform:uppercase;color:var(--yellow);margin-top:4px}
.notice-date .y{font-size:.7rem;color:#c9d1e3;margin-top:2px}
.notice-content h5{color:var(--navy);font-weight:700;font-size:1rem;margin-bottom:6px}
.notice-content p{color:#666;font-size:.9rem;margin:0}

/* New Arrival */
.new-arrival{background:var(--light)}
.book-card{background:#fff;border-radius:8px;overflow:hidden;box-shadow:0 5px 20px rgba(0,0,0,.05);text-align:center;transition:transform .3s ease}
.book-card:hover{transform:translateY(-8px)}
.book-cover{
  aspect-ratio:3/4;color:#fff;display:flex;flex-direction:column;
  align-items:center;justify-content:space-between;padding:25px 15px;
}
.book-cover .book-title{font-family:'Rubik',serif;font-size:1.1rem;font-weight:700;text-align:center;line-height:1.3}
.book-cover .book-author{font-size:.85rem;font-weight:500;opacity:.9}
.book-body{padding:18px}
.book-body h5{color:var(--navy);font-size:1rem;font-weight:700;margin-bottom:8px;min-height:48px}

/* Footer */
.site-footer{background:var(--navy);color:#fff;margin-top:0}
.footer-title{color:#fff;font-weight:700;position:relative;padding-bottom:12px;margin-bottom:20px;font-size:1.1rem}
.footer-title::after{content:"";position:absolute;left:0;bottom:0;width:35px;height:2px;background:var(--yellow)}
.footer-links{list-style:none;padding:0;margin:0}
.footer-links li{margin-bottom:12px;color:#c9d1e3;font-size:.92rem}
.footer-links li a{color:#c9d1e3;text-decoration:none;transition:color .2s ease}
.footer-links li a:hover{color:var(--yellow)}
.footer-links i{color:var(--yellow);margin-right:8px}
.social-icons a{
  width:38px;height:38px;background:rgba(255,255,255,.1);color:#fff;
  display:inline-flex;align-items:center;justify-content:center;border-radius:50%;
  margin-right:8px;transition:background .25s ease, color .25s ease;text-decoration:none;
}
.social-icons a:hover{background:var(--yellow);color:var(--navy)}
.footer-hr{border-color:rgba(255,255,255,.1);margin:30px 0 20px}

/* Scroll top */
.scroll-top{
  position:fixed;right:25px;bottom:30px;width:45px;height:45px;
  background:var(--yellow);color:var(--navy);border-radius:50%;
  display:none;align-items:center;justify-content:center;
  z-index:100;text-decoration:none;font-size:1.2rem;box-shadow:0 5px 15px rgba(0,0,0,.15);
  transition:background .25s ease, transform .25s ease;
}
.scroll-top.visible{display:flex}
.scroll-top:hover{background:#fff;transform:translateY(-3px);color:var(--navy)}

/* Responsive */
@media (max-width:992px){
  .users-grid{grid-template-columns:repeat(6,1fr)}
  .carousel-item{height:500px}
  .hero-content{padding-top:80px}
  .quote-text{font-size:1.2rem}
  .search-label{padding:14px 20px}
  .search-input,.btn-search{height:50px}
}
@media (max-width:768px){
  .users-grid{grid-template-columns:repeat(5,1fr)}
  .section-title{font-size:1.6rem}
  .quote-card{padding:25px 20px;max-width:100%}
  .quote-text{font-size:1rem}
  .best-users-card h2{font-size:1.8rem}
  .carousel-item{height:420px}
  .search-bar{position:relative;bottom:auto;margin-top:20px}
  .hero{padding-bottom:20px}
}
@media (max-width:576px){
  .users-grid{grid-template-columns:repeat(4,1fr)}
  .navbar-nav .nav-link{padding:8px 0!important}
}
