/* Force equal height for icon-boxes in activities section */
.services .row {
  display: flex;
  flex-wrap: wrap;
}
.services .col-xl-4 {
  display: flex;
}
.services .icon-box {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Shared card styling for posts/documents */
.news-card {
  background: #ffffff;
  border: 1px solid #e4e9f1;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(31, 45, 61, 0.05);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.news-card:hover {
  box-shadow: 0 8px 24px rgba(31, 45, 61, 0.08);
  border-color: #d7dfeb;
}

.news-card-media {
  overflow: hidden;
  border-bottom: 1px solid #edf2f7;
}

.news-card-image {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #eef3f8;
}

.news-card-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #37517e;
  font-size: 44px;
  background: #eef3f8;
}

.news-card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 18px 18px 20px;
  text-align: left;
}

.news-card-meta {
  margin-bottom: 10px;
  color: #7a8699;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-card-title {
  margin: 0 0 9px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
}

.news-card-title a {
  color: #243b63;
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-card-title a:hover {
  color: #37517e;
}

.news-card-excerpt {
  color: #66758c;
  line-height: 1.6;
  margin-bottom: 16px;
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-link {
  padding: 0;
  font-weight: 600;
  align-self: flex-start;
  color: #37517e;
  background: transparent;
  border: 0;
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-card-link:hover,
.news-card-link:focus {
  color: #243b63;
}

@media (max-width: 767px) {
  .news-card-image {
    height: 180px;
  }

  .news-card-body {
    padding: 18px;
  }
}
#footer .footer-top .social-links a {
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}
#footer .footer-top .social-links a:hover {
  background: #209dd8 !important;
  color: #fff !important;
  transform: scale(1.18) rotate(-6deg);
  box-shadow: 0 6px 18px rgba(33, 150, 243, 0.18);
}
/* Fix footer social icons color */
#footer .footer-top .social-links a {
  /* color: #47e4 !important; */
  color: black !important;
  border-radius: 50% !important;
  width: 36px !important;
  height: 36px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 20px !important;
  margin-right: 6px;
  transition: background 0.3s;
}
#footer .footer-top .social-links a:hover {
  color: #209dd8 !important;
}
#footer .footer-top .social-links a i {
  color: inherit !important;
  font-size: 20px !important;
}

#footer .footer-bottom {
  color: black !important;
}
/* Section background for all pages */
.section-bg {
  background-color: #f3f5fa !important;
}
#footer, #footer * {
  background: #fff !important;
  box-shadow: none !important;
}
#header {
    background-color: #37517e;
}

/* Header logo and title styling */
#header .container {
  display: flex;
  align-items: center;
  gap: 15px;
}

#header .school-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.8);
  object-fit: cover;
  flex-shrink: 0;
}

#header .logo {
  margin: 0;
  padding: 0;
}

#header .logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* ======================================
   HERO SECTION ANIMATIONS
   ====================================== */

/* Solid dark blue background for hero - matching navbar */
#hero1 {
  background: #37517e !important;
  position: relative;
  overflow: hidden;
}

/* Gradient animation */
@keyframes gradientShift {
  0% { 
    background-position: 0% 50%; 
  }
  50% { 
    background-position: 100% 50%; 
  }
  100% { 
    background-position: 0% 50%; 
  }
}

/* Floating particles overlay */
#hero1::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
              radial-gradient(circle at 40% 40%, rgba(255,255,255,0.05) 0%, transparent 50%);
  z-index: 1;
  animation: particleFloat 20s ease-in-out infinite;
}

@keyframes particleFloat {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg); 
  }
  33% { 
    transform: translateY(-20px) rotate(120deg); 
  }
  66% { 
    transform: translateY(-40px) rotate(240deg); 
  }
}

/* Ensure content is above overlay */
#hero1 .container {
  position: relative;
  z-index: 2;
}

/* Enhanced hero text with glow effect */
#hero1 h1 {
  text-shadow: 0 0 20px rgba(255,255,255,0.5) !important;
  animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
  from {
    text-shadow: 0 0 20px rgba(255,255,255,0.5),
                 0 0 30px rgba(255,255,255,0.3),
                 0 0 40px rgba(255,255,255,0.1);
  }
  to {
    text-shadow: 0 0 30px rgba(255,255,255,0.8),
                 0 0 40px rgba(255,255,255,0.5),
                 0 0 50px rgba(255,255,255,0.3);
  }
}

/* Hero subtitle with fade-in effect - no cursor */
#hero1 .hero-subtitle {
  color: #fff;
  font-weight: 600;
  font-size: 24px;
  margin: 0;
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 2s ease-out 0.5s forwards;
  display: flex;
  align-items: center;
  gap: 15px;
}

/* School logo styling */
.school-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.8);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  object-fit: cover;
  animation: logoSpin 3s ease-in-out infinite;
}

@keyframes logoSpin {
  0%, 100% { 
    transform: rotate(0deg) scale(1); 
  }
  50% { 
    transform: rotate(10deg) scale(1.1); 
  }
}

/* Fade in and slide up animation */
@keyframes fadeInUp {
  from { 
    opacity: 0;
    transform: translateY(20px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blink-caret {
  from, to { 
    border-color: transparent; 
  }
  50% { 
    border-color: rgba(255,255,255,0.8); 
  }
}

/* Hero button enhancement */
#hero1 .btn-get-started {
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4) !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 12px 30px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2) !important;
  transition: all 0.3s ease !important;
  animation: buttonPulse 2s ease-in-out infinite;
}

#hero1 .btn-get-started:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 15px 35px rgba(0,0,0,0.3) !important;
  background: linear-gradient(45deg, #4ecdc4, #ff6b6b) !important;
}

@keyframes buttonPulse {
  0%, 100% {
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  }
  50% {
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
  }
}

/* ======================================
   CSS GRAPHICS FOR HERO
   ====================================== */

/* Hero image container with CSS graphics */
#hero1 .hero-img {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

/* Main book icon */
.css-book {
  width: 120px;
  height: 160px;
  background: linear-gradient(45deg, #ff6b6b, #feca57);
  border-radius: 8px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  animation: bookFloat 6s ease-in-out infinite;
  transform-style: preserve-3d;
}

.css-book::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  height: 4px;
  background: rgba(255,255,255,0.6);
  border-radius: 2px;
}

.css-book::after {
  content: '';
  position: absolute;
  top: 25px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  border-radius: 4px;
}

@keyframes bookFloat {
  0%, 100% { transform: translateY(0px) rotateY(0deg); }
  25% { transform: translateY(-20px) rotateY(5deg); }
  50% { transform: translateY(-10px) rotateY(-3deg); }
  75% { transform: translateY(-25px) rotateY(8deg); }
}

/* Floating pencils */
.css-pencil {
  position: absolute;
  width: 8px;
  height: 100px;
  background: linear-gradient(180deg, #ffbe0b 0%, #ffbe0b 70%, #fb8500 70%, #fb8500 85%, #ffcab0 85%);
  border-radius: 4px 4px 0 0;
}

.css-pencil::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -2px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 15px solid #8d5524;
}

.css-pencil::after {
  content: '';
  position: absolute;
  top: -12px;
  left: 1px;
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-bottom: 8px solid #2f2f2f;
}

.pencil-1 {
  top: 20%;
  right: 20%;
  animation: pencilRotate1 8s ease-in-out infinite;
}

.pencil-2 {
  top: 60%;
  right: 10%;
  animation: pencilRotate2 10s ease-in-out infinite reverse;
}

.pencil-3 {
  top: 30%;
  left: 15%;
  animation: pencilRotate3 7s ease-in-out infinite;
}

@keyframes pencilRotate1 {
  0%, 100% { transform: rotate(15deg) translateY(0px); }
  50% { transform: rotate(25deg) translateY(-30px); }
}

@keyframes pencilRotate2 {
  0%, 100% { transform: rotate(-20deg) translateY(0px); }
  50% { transform: rotate(-10deg) translateY(-20px); }
}

@keyframes pencilRotate3 {
  0%, 100% { transform: rotate(45deg) translateY(0px); }
  50% { transform: rotate(35deg) translateY(-25px); }
}

/* Floating mathematical symbols */
.css-math-symbol {
  position: absolute;
  font-size: 40px;
  font-weight: bold;
  color: rgba(255,255,255,0.8);
  text-shadow: 0 0 20px rgba(255,255,255,0.5);
  animation: symbolFloat 4s ease-in-out infinite;
}

.math-plus {
  top: 15%;
  left: 25%;
  animation-delay: 0s;
}

.math-multiply {
  top: 70%;
  left: 30%;
  animation-delay: 1s;
}

.math-equals {
  top: 45%;
  right: 35%;
  animation-delay: 2s;
}

@keyframes symbolFloat {
  0%, 100% { 
    transform: translateY(0px) scale(1);
    opacity: 0.8;
  }
  50% { 
    transform: translateY(-15px) scale(1.1);
    opacity: 1;
  }
}

/* Orbiting circles (atoms/molecules) */
.css-atom {
  position: absolute;
  top: 50%;
  right: 25%;
  width: 80px;
  height: 80px;
  transform: translate(50%, -50%);
}

.atom-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  background: #ff6b6b;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px #ff6b6b;
}

.atom-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-1 {
  width: 60px;
  height: 60px;
  animation: orbitRotate1 3s linear infinite;
}

.orbit-2 {
  width: 80px;
  height: 80px;
  animation: orbitRotate2 4s linear infinite reverse;
}

.atom-electron {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #4ecdc4;
  border-radius: 50%;
  box-shadow: 0 0 10px #4ecdc4;
}

.electron-1 {
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
}

.electron-2 {
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
}

@keyframes orbitRotate1 {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes orbitRotate2 {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}


.info-bar {
  position: fixed;
  top: 70px; 
  left: 0;
  width: 100%;
  background: #fff; 
  color: #664d03;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  display: flex;
  align-items: center;    
  justify-content: center; 
  overflow: hidden;
  z-index: 9998;
}

/* Container for scrolling text */
.ticker-rotator {
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;    
}

/* Track that moves */
.ticker-track {
  display: flex;           
  align-items: center;
  white-space: nowrap;
  animation: marquee 25s linear infinite;
}

/* Each message */
.ticker-message {
  flex: 0 0 auto;
  margin-right: 4rem;
}

@keyframes marquee {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Blog section styles */
.blog-section.section-bg {
  background: #f3f5fa;
  padding: 60px 0;
}
.blog-section .content h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}
.blog-section .content p {
  margin-bottom: 0;
}
 
.blog-section .card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.blog-section .col {
  display: inline-block;
  width: 100%;
  margin-bottom: 1.5rem;
}

.blog .icon-box:hover {
transform: translateY(-10px);
}
.blog .icon-box {
min-height: 420px;
box-shadow: 0px 0 25px 0 rgba(0, 0, 0, 0.1);
padding: 50px 30px;
transition: all ease-in-out 0.4s;
background: #fff;
}

#cta {
  background: linear-gradient(rgba(40, 58, 90, 0.9), rgba(40, 58, 90, 0.9)), url("../images/murat.png") center center no-repeat !important;
  background-size: cover !important;
  background-attachment: fixed !important;
  padding: 120px 0;
}
