/* ===========================================
   BRRAASS International School - Base Styles
   =========================================== */

:root {
  --primary: #1a2744;
  --primary-light: #2a3f6e;
  --primary-dark: #0d1b2a;
  --accent: #f0a500;
  --accent-hover: #d49400;
  --success: #2e7d32;
  --success-light: #4caf50;
  --danger: #dc3545;
  --info: #0d6efd;
  --light: #f8f9fa;
  --light-alt: #f0f2f5;
  --dark: #212529;
  --text: #333;
  --text-muted: #6c757d;
  --border: #e9ecef;
  --border-light: #dee2e6;
  --white: #fff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 15px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --font: "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.7;
  background: var(--white);
  font-family: var(--font);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--accent);
  text-decoration: none;
}

img { max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.clearfix::after { content: ""; display: table; clear: both; }

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 15px;
  color: var(--primary);
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.3;
}
h1 { font-size: 40px; }
h2 { font-size: 32px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }

p {
  line-height: 1.7;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 15px;
}
p:last-child { margin-bottom: 0; }

/* ===== Section Heading ===== */
.section-heading { text-align: center; margin-bottom: 40px; }
.section-heading .section-badge { display: inline-block; background: rgba(240,165,0,0.1); color: var(--accent); padding: 4px 18px; border-radius: 50px; font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 12px; }
.section-heading .section-badge i { margin-right: 4px; }
.section-heading h2 {
  color: var(--primary);
  font-weight: 700;
  font-size: 30px;
  display: inline-block;
  margin-bottom: 4px;
}
.section-heading .text-accent { color: var(--accent); }
.section-heading .heading-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  border-radius: 2px;
  margin: 12px auto 14px;
}
.section-heading p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 0;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Topper Class Card ===== */
.topper-class-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.topper-class-card:hover { box-shadow: var(--shadow-lg); }
.topper-class-card .topper-class-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.topper-class-card .topper-class-header i { font-size: 20px; color: var(--accent); }
.topper-class-card .topper-class-header h4 { margin: 0; font-size: 16px; font-weight: 700; color: #fff; flex: 1; }
.topper-class-card .topper-class-header .year-badge {
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 12px;
  border-radius: 20px;
}
.topper-class-card .carousel-inner { padding: 20px; text-align: center; min-height: 220px; }
.topper-class-card .carousel-inner img {
  width: 120px; height: 120px; object-fit: cover; border-radius: 50%;
  border: 3px solid var(--accent); box-shadow: 0 4px 15px rgba(240,165,0,0.2);
  margin-bottom: 10px;
}
.topper-class-card .carousel-inner h4 { font-size: 16px; font-weight: 700; color: var(--primary); }
.topper-class-card .carousel-inner h4 .percentage {
  display: inline-block; background: rgba(240,165,0,0.1); color: var(--accent);
  padding: 2px 10px; border-radius: 20px; font-size: 13px; margin-left: 6px;
}

/* ===== Birthday Card Header ===== */
.birthday-card { background: var(--white); border-radius: var(--radius-lg); padding: 0; box-shadow: var(--shadow-sm); overflow: hidden; border: 1px solid var(--border); margin-bottom: 20px; transition: var(--transition); }
.birthday-card:hover { box-shadow: var(--shadow-lg); }
.birthday-card .bd-card-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; padding: 14px 20px; display: flex; align-items: center; gap: 10px;
}
.birthday-card .bd-card-header i { font-size: 20px; color: var(--accent); }
.birthday-card .bd-card-header h4 { margin: 0; font-size: 16px; font-weight: 700; color: #fff; }
.birthday-card .carousel-inner { padding: 25px 20px; min-height: 180px; }

@media (max-width: 767px) {
  .section-heading h2 { font-size: 24px; }
  .topper-class-card { margin-bottom: 20px; }
}

/* ===== Buttons ===== */
.btn-primary-custom {
  display: inline-block;
  padding: 10px 24px;
  background: var(--primary);
  color: var(--white) !important;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-primary-custom:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-accent {
  display: inline-block;
  padding: 10px 24px;
  background: var(--accent);
  color: var(--primary-dark) !important;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  display: inline-block;
  padding: 9px 23px;
  background: transparent;
  color: var(--primary) !important;
  border: 2px solid var(--primary);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: var(--transition);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white) !important;
}

/* ===== Forms ===== */
input[type=text],
input[type=email],
input[type=number],
input[type=search],
input[type=password],
input[type=tel],
input[type=date],
textarea,
select {
  font-size: 14px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  width: 100%;
  color: var(--text);
  margin-bottom: 10px;
  font-family: var(--font);
  transition: var(--transition);
}
input[type=text]:focus,
input[type=email]:focus,
input[type=number]:focus,
input[type=search]:focus,
input[type=password]:focus,
input[type=tel]:focus,
input[type=date]:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(240, 165, 0, 0.15);
  outline: none;
}
textarea { border-radius: var(--radius-sm); resize: vertical; min-height: 100px; }
label {
  display: inline-block;
  color: var(--text);
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
}

/* ===== Tables ===== */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 10px 12px; border: 1px solid var(--border); font-size: 14px; }
.table th { background: var(--primary); color: var(--white); font-weight: 600; }
.table tr:nth-child(even) { background: var(--light); }
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ===== Section ===== */
section { padding: 60px 0; position: relative; overflow: hidden; }
@media (max-width: 767px) { section { padding: 40px 0; } }

/* ===== Blockquote ===== */
blockquote {
  font-size: 14px;
  background: var(--light);
  border-left: 4px solid var(--accent);
  padding: 20px 24px 20px 50px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 20px;
  font-style: italic;
  position: relative;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
blockquote:before {
  content: '\f10d';
  font-family: FontAwesome;
  font-size: 28px;
  position: absolute;
  top: 18px;
  left: 16px;
  color: var(--accent);
  opacity: 0.3;
}

/* ===== Preloader ===== */
#preloader {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 99999;
}
#status {
  position: fixed;
  top: 35%;
  left: 0; right: 0;
  width: 150px; height: 150px;
  margin: 0 auto;
  background: url(../images/loader.gif) center no-repeat;
  z-index: 999999;
}

/* ===== Utility ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-white { color: var(--white) !important; }
.bg-light { background: var(--light) !important; }
.bg-primary { background: var(--primary) !important; }
.bg-accent { background: var(--accent) !important; }
.mt-0 { margin-top: 0; }
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.p-0 { padding: 0; }
.p-10 { padding: 10px; }
.p-15 { padding: 15px; }
.p-20 { padding: 20px; }
.p-30 { padding: 30px; }
.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

/* ===== Card ===== */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--primary); }

/* ===== Page Hero Banner ===== */
.page-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  padding: 50px 0 40px;
  text-align: center;
  position: relative;
}
.page-hero h1 {
  color: var(--white);
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 8px;
}
.page-hero p { color: rgba(255,255,255,0.8); font-size: 15px; margin: 0; }

/* ===== Breadcrumb ===== */
.breadcrumb-main {
  background: var(--light);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.breadcrumb-main .breadcrumb {
  margin: 0;
  background: transparent;
  padding: 0;
}
.breadcrumb-main .breadcrumb li {
  display: inline;
  font-size: 13px;
  color: var(--text-muted);
  padding: 0;
  margin: 0;
}
.breadcrumb-main .breadcrumb li + li:before {
  content: "\f105";
  font-family: FontAwesome;
  padding: 0 8px;
  color: #ccc;
}
.breadcrumb-main .breadcrumb li a { color: var(--primary); }
.breadcrumb-main .breadcrumb li.active { color: var(--accent); font-weight: 600; }

/* ===== Back to Top ===== */
#back-to-top {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 999;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
}
#back-to-top.show {
  opacity: 1;
  visibility: visible;
}
#back-to-top:hover {
  background: var(--accent);
  color: var(--primary);
  transform: translateY(-3px);
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
  h1 { font-size: 32px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
  .section-heading h2 { font-size: 26px; }
  .page-hero { padding: 40px 0 30px; }
  .page-hero h1 { font-size: 28px; }
}

@media (max-width: 767px) {
  h1 { font-size: 26px; }
  h2 { font-size: 24px; }
  h3 { font-size: 18px; }
  h4 { font-size: 16px; }
  p { font-size: 14px; }
  .section-heading { margin-bottom: 25px; }
  .section-heading h2 { font-size: 22px; }
  .page-hero { padding: 30px 0 20px; }
  .page-hero h1 { font-size: 22px; }
  .card { padding: 16px; }
  .table th, .table td { padding: 6px 8px; font-size: 13px; white-space: nowrap; }
}

@media (max-width: 480px) {
  h1 { font-size: 22px; }
  h2 { font-size: 20px; }
  .page-hero h1 { font-size: 20px; }
  .section-heading h2 { font-size: 20px; padding-bottom: 10px; }
}
