/* Main color variables */
:root {
    --primary-color: #0C356A;      /* Deep blue - professional look */
    --secondary-color: #279EFF;    /* Lighter blue for accents */
    --accent-color: #E83A14;       /* Vibrant red for buttons and highlights */
    --text-color: #333333;         /* Dark gray for text */
    --light-bg: #ffecad;           /* Light background */
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  }
  
  .schools-head {
    color: var(--primary-color);
    font-family: "Gotu", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 28px;
    width: 100%;
    text-align: center;
    position: relative;
  }
  
  /* Add decorative element to heading */
  .schools-head:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--accent-color);
    margin: 0.7rem auto 0;
    border-radius: 2px;
  }
  
  .schools {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }
  
  /* Improved card styles */
  .schools .card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
    margin-bottom: 1.5rem;
    background: white;
  }
  
  .schools .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
  }
  
  /* NEW: Image container to hold both school image and principal photo */
  .image-container {
    position: relative;
    overflow: hidden;
  }
  
  .schools .card-img-top {
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
    width: 100%;
  }
  
  .schools .card:hover .card-img-top {
    transform: scale(1.05);
  }
  
  /* Principal photo circle styles */
  .circle-border {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 30%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    z-index: 2;
    transition: all 0.3s ease;
  }
  
  .circle-border:hover {
    backdrop-filter: blur(1px);
    border: 2px solid rgba(255, 255, 255, 0.6);
  }
  
  .avatar {
    border: solid rgb(168, 166, 166);
    border-radius: 5%;
    margin: 0;
    height: 9rem;
    width: 9rem;
    object-fit: cover;
    transition: all 0.3s ease;
  }
  
  /* Text styling improvements */
  .school-name {
    font-size: 18px;
    font-family: "Gotu", sans-serif;
    color: var(--primary-color) !important;
    margin-bottom: 12px;
    line-height: 1.4;
    font-weight: 600;
    text-align: left;
  }
  
  .school-address {
    font-size: 14px;
    color: #666 !important;
    margin-bottom: 16px;
    line-height: 1.4;
    text-align: left;
  }
  
  .schools .card-subtitle {
    font-family: "Martel", serif;
    color: var(--secondary-color);
    font-size: 16px;
    margin-bottom: 6px;
    text-align: left;
  }
  
  .schools .card-title {
    font-family: "Martel", serif;
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 6px;
    text-align: left;
    font-size: 18px; /* Increased font size for principal name */
  }
  
  .schools .card-qualify {
    font-family: "Martel", serif;
    color: #666;
    font-size: 14px;
    margin-top: 5px;
    margin-bottom: 10px;
    text-align: left;
  }
  
  .schools .card-text {
    font-family: "Martel", serif;
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 10px;
    text-align: justify;
  }
  
  /* Button improvements */
  .schools .btn {
    font-family: "Rubik", sans-serif;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
  }
  
  .schools .btn-danger {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
  }
  
  .schools .btn-danger:hover {
    background-color: #d62e0e;
    border-color: #d62e0e;
    transform: translateY(-2px);
  }
  
  .schools .btn-outline-danger {
    color: var(--accent-color);
    border-color: var(--accent-color);
  }
  
  .schools .btn-outline-danger:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
  }
  
  /* Card body improvements */
  .schools .card-body {
    padding: 1.5rem;
  }
  
  /* Progress bar styling */
  #progress-container {
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1.5rem;
  }
  
  #progress-bar {
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
  }

  
  
  /* Responsive improvements */
  @media screen and (max-width: 420px) {
    .school-name {
      font-size: 10px;
      margin-bottom: 10px;
    }
    
    .school-address {
      font-size: 10px; 
      margin-bottom: 10px;
    }
    
    .schools .card-img-top {
      height: 100px;
    }
  
    .schools .card-title {
      font-size: 12px;    /* Increased from 10px */
    }
  
    .schools .card-body {
      padding: 5px;
    }
  
    .schools .card-subtitle {
      font-size: 8px;
    }
  
    .schools .card-text {
      font-size: 6px;
    }
    
    .schools .card-qualify {
      font-size: 8px;
      margin-top: -5px;
    }
  
    .schools .btn {
      font-size: 6px;
      padding: 3px 6px;
    }
    
    .avatar {
      height: 3rem;
      width: 3rem;
    }
  
    .schools-head {
      font-size: 16px;
    }
  }
  
  @media screen and (min-width: 421px) and (max-width: 767px) {
    .school-name {
      font-size: 10px;
      margin-bottom: 10px;
    }
    
    .schools .card-img-top {
      height: 150px;
    }
  
    .schools .card-title {
      font-size: 12px;  /* Increased from 12px */
    }
  
    .schools .card-subtitle {
      font-size: 10px;
    }

    .schools .card-qualify {
      font-size: 10px;
    }
  
    .schools .card-text {
      font-size: 8px;
    }
  
    .schools .btn {
      font-size: 8px;
      padding: 3px 7px;
    }
  
    .avatar {
      height: 3.5rem;
      width: 3.5rem;
    }
    
    .schools-head {
      font-size: 16px;
    }
  }
  
  @media screen and (min-width: 768px) and (max-width: 991px) {
    .school-name {
      font-size: 12px;
      margin-bottom: 12px;
    }
    
    .schools .card-img-top {
      height: 170px;
    }
  
    .schools .card-title {
      font-size: 13px;  /* Increased from 10px */
    }
  
    .schools .card-subtitle {
      font-size: 8px;
    }
    
    .schools .card-text {
      font-size: 10px;
    }
  
    .schools .btn {
      font-size: 8px;
      padding: 4px 7px;
    }
  
    .avatar {
      height: 4rem;
      width: 4rem;
    }
    
    .schools-head {
      font-size: 16px;
    }
  }


    @media screen and (min-width: 992px) and (max-width: 1600px) {
    .school-name {
      font-size: 12px;
      margin-bottom: 12px;
    }
    
    .schools .card-img-top {
      height: 200px;
    }
  
    .avatar {
      height: 6rem;
      width: 6rem;
    }
    
  }