/* uk.css – styling for “Study in the UK” page */

/* Reset spacing */
body, html {
  margin: 0;
  padding: 0px;
}
html, body {
  overflow-x: hidden;
}

/* Hero Banner */

.uk-hero {
  position: relative;
  width: 100vw;
  height: 600px;
  /*height: 40vh;*/
  /*background-size: cover;
  background-position: center center;*/
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
}

.uk-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  display:block;
  /*opacity: 0.25;*/
}

.uk-hero-text {
  position: absolute;	/*relative*/
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;		/*#002147; #FFD700*/	
  max-width: 1200px;
  width: 100%;
}

.uk-hero-text h1 {
  font-size: 2.5rem;
  font-weight: 1000;
  margin-bottom: 5rem;
  color:#002B5C;		/*#0000FF;*#002B5C*/
  }
.uk-hero-text p {
  font-size: 1.5rem;
  /*line-height: 1.5;*/
  color:#800000;	/*Light Salmon=#FFA07A*/
  margin-top: 350px;
  font-weight:800;
  text-align: center;
  max-width: 2500px;
  }

/* General block styling */
.uk-block {
  padding: 60px 0;
}
.uk-block .container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Why Study Section */
.uk-why-study .features {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
}
.uk-why-study .feature {
  flex: 1 1 calc(33% - 30px);
  text-align: center;
}
.uk-why-study .feature img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}
.uk-why-study .feature h3 {
  font-size: 1.4rem;
  color: #004080;
  margin-bottom: 10px;
}
.uk-why-study .feature p {
  font-size: 1rem;
  color: #333;
}

/* Cost of Study Table */
.cost-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
}
.cost-table th, .cost-table td {
  border: 1px solid #ddd;
  padding: 12px 15px;
  text-align: left;
}
.cost-table th {
  background-color: #004080;
  color: #fff;
}
.cost-table td {
  color: #333;
}

/* Cost of Living */
.uk-cost-living .living-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}
.uk-cost-living .living-wrapper img {
  flex: 1 1 45%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
}
.uk-cost-living .living-wrapper .living-details {
  flex: 1 1 45%;
}
.uk-cost-living ul {
  margin-top: 20px;
  list-style: disc inside;
  color: #333;
}
.uk-cost-living ul li {
  margin-bottom: 10px;
}

/* Admission Requirements */
.uk-admission ul {
  list-style: disc inside;
  color: #333;
}
.uk-admission h2 {
  margin-bottom: 20px;
}

/* Language Requirements */
.scores-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 30px;
}
.score-card {
  flex: 1 1 calc(33% - 30px);
  text-align: center;
  padding: 30px 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
}
.score-card h3 {
  font-size: 1.6rem;
  color: #004080;
  margin-bottom: 10px;
}
.score-card p {
  font-size: 1rem;
  color: #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .uk-hero-text h1 {
    font-size: 1.8rem;
  }
  .uk-hero-text p {
    font-size: 1rem;
  }
  .uk-why-study .feature {
    flex: 1 1 100%;
  }
  .scores-grid .score-card {
    flex: 1 1 100%;
  }
  .uk-cost-living .living-wrapper {
    flex-direction: column;
  }
}


/* UK Page Styles */

.uk-university-selection .card {
  border: 1px solid #ddd;
  padding: 20px;
  margin-top: 20px;
}

.uk-block {
  padding: 40px 0;
}

.uk-university-selection {
  padding: 40px 0;
}

.uk-university-selection select {
  width: 100%;
  padding: 10px;
  font-size: 16px;
}

#universityDetails {
  display: none;
/*  margin-top: 20px;*/
}

#logoPreview img {
  max-width: 200px;
}

.form-select {
  margin-bottom: 20px;
}

.card {
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.card-body {
  padding: 20px;
}

.card-body h4 {
  font-size: 24px;
  font-weight: bold;
}

.card-body p {
  font-size: 16px;
  line-height
}

/* University Details Section */
#universityDetails {
  display: none;
  margin-top: 20px;
}

#logoPreview img {
  max-width: 200px;
  margin-top: 10px;
}

/* Adjust select box */
.form-select {
  margin-bottom: 20px;
  padding: 10px;
  font-size: 16px;
}

#universityLink.btn-primary {
    color: yellow !important;
}

#universityDetails {
  animation: fadeIn .4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/*------------------------- added on 23-Dec-2025-----------------------------*/
.uk-university-selection h2{
  color:#002147;
  font-weight:700;
}

.uk-university-selection p{
  color:#333;
}

#universityDetails{
  display:none;
  animation:fadeIn .4s ease;
}

#universityDetails h3{
  color:#004080;
  margin-bottom:15px;
  font-weight:700;
}

#universityDetails h4{
  margin-top:20px;
  color:#800000;
}

#universityDetails ul{
  margin-top:10px;
  padding-left:18px;
}

.note{
  margin-top:15px;
  font-size:0.95rem;
  color:#555;
  font-style:italic;
}
/*--------------------23-Dec-2025--------------------------*/
/* Flexbox Layout for Row */
.uk-university-selection .row {
  display: flex;         /* Use flexbox for horizontal alignment */
  gap: 30px;             /* Add space between columns */
  flex-wrap: wrap;       /* Allow columns to wrap on small screens */
}

/* Adjust the dropdown section */
.uk-university-selection .col-md-4 {
  flex: 1 1 30%;         /* Ensure dropdown takes up 30% of the width */
  min-width: 250px;      /* Ensure dropdown doesn't get too small */
  padding-right: 15px;   /* Add padding to right */
}

/* Adjust the university details section */
.uk-university-selection .col-md-8 {
  flex: 1 1 70%;         /* Make the university details card take up 70% */
  min-width: 350px;      /* Ensure the card doesn't get too small */
  padding-left: 15px;    /* Add padding to left */
}

/* Card body styling */
.uk-university-selection #universityDetails .card-body {
  padding: 30px;
  background-color: #f8f9fa;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

/* Adjust select dropdown styling */
.uk-university-selection select {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  margin-bottom: 20px;
}

/* Media Queries for Smaller Screens (Below 768px) */
@media (max-width: 768px) {
  .uk-university-selection .col-md-4,
  .uk-university-selection .col-md-8 {
    flex: 1 1 100%;       /* Stack columns vertically on small screens */
    padding-left: 0;
    padding-right: 0;
  }

  /* Add some spacing in the university details card for small screens */
  .uk-university-selection #universityDetails .card-body {
    padding: 20px;
  }
}

/*added on 02-Jan-2026*/
/* =========================================================
   University Header (Logo + University Name)
   ---------------------------------------------------------
   Purpose:
   - Displays university logo on the LEFT
   - Displays university name text beside the logo
   - Logo size is fully controllable from here
========================================================= */
.university-header {
  display: flex;              /* Horizontal alignment */
  align-items: center;        /* Vertically center logo & text */
  gap: 18px;                  /* Space between logo and name */
  margin-bottom: 22px;        /* Space below header */
}

/* University Logo (LEFT of university name)
   -----------------------------------------
   can increase/decrease:
   - width
   - height
   independently without affecting layout
*/
#universityLogo {
  width: 140px;                /* ⬅️ INCREASE logo width here,90px/auto */
  height: auto;               /* ⬅️ INCREASE logo height here */
  object-fit: contain;        /* Keep logo proportions, if: object-fit: contain/cover then browser will hold only  */
  border-radius: 6px;         /* Slight rounding */
  background-color: #f4f4f4;  /* Neutral logo background */
  padding: 6px;               /* Inner spacing, less padding bigger logo */
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  flex-shrink: 0;             /* Prevent logo from shrinking */
  transform: scale(1.2);
  transform-origin: center;
}

/* =========================================================
   University Content Layout
   ---------------------------------------------------------
   Purpose:
   - LEFT side: Programs, Courses, Intakes (text)
   - RIGHT side: Campus image
========================================================= */
.university-content {
  display: flex;              /* Side-by-side layout */
  gap: 30px;                  /* Space between text and image */
  align-items: flex-start;    /* Align content at the top */
}

/* LEFT: Text column (Programs, Courses, Intakes)
   ------------------------------------------------ */
.university-text {
  flex: 1 1 70%;              /* ⬅️ Control text width here */
}

/* RIGHT: Image column (Campus image)
   ------------------------------------------------ */
.university-media {
  flex: 1 1 70%;              /* ⬅️ Control image column width here */
}

/* Campus Image Styling
   ------------------------------------------------
   Controls:
   - Image width (relative to column)
   - Image height
   - Cropping behavior
*/
#universityImage {
  width: 100%;                /* Fill image column */
  max-width:100%;
  height: 350px;              /* ⬅️ CONTROL CAMPUS IMAGE HEIGHT */
  object-fit: cover;          /* Crop image nicely */
  border-radius: 12px;
  /*box-shadow: 0 6px 16px rgba(0,0,0,0.18);*/
}

/* =========================================================
   Mobile & Tablet Adjustments
========================================================= */
@media (max-width: 768px) {

  /* Stack content vertically on small screens */
  .university-content {
    flex-direction: column;
  }

  /* Reduce campus image height on mobile */
  #universityImage {
    height: 180px;            /* ⬅️ Mobile-specific image height */
  }

  /* Slightly reduce logo size on mobile */
  #universityLogo {
    width: 70px;
    height: 70px;
  }
}


/* =========================================================
   Extended Left Logo Rail (Dynamic Height)
========================================================= */

.uk-content-rail {
  position: relative;
}

.uk-university-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: start;
}

.uk-logo-rail {
  position: sticky;
  top: 120px;
  padding-left: 10px;
}

.uk-university-main {
  overflow-x: hidden;
}

@media (max-width: 992px) {
  .uk-university-grid {
    grid-template-columns: 1fr;
  }

  .uk-logo-rail {
    display: none;
  }
}
.uk-university-selection {
  margin-bottom: 0 !important;
  padding-bottom: 40px; /* controlled spacing */
}

/* Rail wrapper */

/* Track */
#ukLogoTrack {
  display: flex;
  flex-direction: column;
  gap: 34px;
  animation: scroll-logos-vertical 40s linear infinite;
  padding-top: 40px;
  pointer-events: auto;
}

/* Logos – BIGGER & clearer */
#ukLogoTrack img {
  height: 64px;              /* 🔥 increased */
  max-width: 100px;
  object-fit: contain;
  opacity: 2.95;
  filter: grayscale(10%);
  transition: transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
}

#ukLogoTrack img:hover {
  transform: scale(1.15);
  opacity: 1;
  filter: none;
  cursor: pointer;
}

/* Animation */
@keyframes scroll-logos-vertical {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}

