/* Basic Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(360deg, transparent 5%, #FFEFD5 80%), url('../IMAGES/background.png');
    background-size: 100% 100%;
    background-position: right center, left center; /* Moves the image to the left */
    background-repeat: no-repeat;
	overflow-x: hidden; /* Prevents horizontal scrolling */
}

.navbar {
  position: relative; /* Needed for positioning the pseudo-element */
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: transparent;
  padding: 1rem 2rem;
}

.navbar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 98%;            /* Adjust this value to set the length of the line */
  border-bottom: 2px solid rgb(131 112 112 / 40%);
}

.navbar .logo {
  color: #666;
  font-size: 1.5rem;
  font-weight: bold;
}

.navbar .nav-links {
  list-style: none;
  display: flex;
}

.navbar .nav-links li {
  margin-left: 1.5rem;
}

.navbar .nav-links a {
  color: #666;
  text-decoration: none;
  font-size: 1.0rem;
  transition: color 0.3s;
}
/* Hide menu items initially */
.dropdown {
  position: relative; /* so .pop-menu is positioned relative to this */
}

.pop-menu {
  position: absolute;
  top: 100%;   /* directly below the "PDFs" link */
  left: 0;     /* align left edge */
  margin-top: 6px; /* small gap under the link */
  z-index: 9999;
}

.pop-menu li {
  transform: scale(0);
  transition: all 0.3s ease;
  margin-top: 8px;
}

.pop-menu li a {
  display: block;
  padding: 10px 16px;
  background: linear-gradient(360deg, #FFDAB9, #FFE4B5);
  color: #333;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.pop-menu li a:hover {
  background: linear-gradient(360deg, #FFDAB9, #FFE4B5);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

/* Active state = items pop out one by one */
.dropdown.active .pop-menu {
  opacity: 1;
  pointer-events: auto;
}

.dropdown.active .pop-menu li {
  transform: scale(1);
}

.dropdown.active .pop-menu li:nth-child(1) { transition-delay: 0.1s; }
.dropdown.active .pop-menu li:nth-child(2) { transition-delay: 0.2s; }
.dropdown.active .pop-menu li:nth-child(3) { transition-delay: 0.3s; }

.breadcrumb-title {
  font-size: 16px;
  font-weight: 600;
  padding: 20px 20px;
  margin:0;
}

.breadcrumb-link {
  color: #ccc;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-link:hover {
  color: #333;
  text-decoration: none;
}

.breadcrumb-link.active {
  font-weight: bold;
  color: green;
  pointer-events: none;
  cursor: default;
}

.greater-sign {
  margin: 0 10px;
  color: #999;
}

.flag {
	height: 60px; /* Adjust height as needed */
	width: auto;
	align-items: center;
	padding:20px;
	margin-left:1.5rem
}
.flag img {
	height: 60px; /* Adjust height as needed */
	width: auto;
}
/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
    display: block;
}
.menu-button {
	font-size: 1.2rem;
    transition: 0.3s;
	color: #666;
}
.sidebar-logo {
    text-align: center;
    margin: 20px 0;
}

.sidebar-logo img {
    max-width: 120px; /* Adjust size as needed */
    height: auto;
    display: block;
    margin: 0 auto;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -250px; /* Initially hidden */
    width: 250px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease-in-out;
    padding-top: 20px;
    z-index: 1000;
}

.sidebar.active {
    right: 0; /* Slide in */
}

.sidebar .close-btn {
    background: none;
    border: none;
    font-size: 20px;
    position: absolute;
    top: 10px;
    right: 20px; /* Move it inward */
    cursor: pointer;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    padding: 15px;
    text-align: left;
}

.sidebar ul li a {
    text-decoration: none;
    color: #666;
    font-size: 16px;
    display: block;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 900;
}

.overlay.active {
    display: block;
}

.logo img {
  height: 60px; /* Adjust height as needed */
  width: auto;
}
/* Info Section */
.info-section {
    background: rgba(255, 255, 255, 0.0); /* White with 60% transparency */
    padding: 30px;
    border-radius: 12px;
    width: 90%;
	font-size: 1.0rem;
    margin: 40px auto;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.4);
}

.info-section h2 {
    font-size: 1.6rem;
    color: #666;
    margin-bottom: 15px;
}

.info-section p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
	font-style: italic;
}
.subject-section {
    display: flex;
    flex-direction: column; /* Stacks elements vertically */
    align-items: center;    /* Centers all items horizontally */
    justify-content: center; /* Centers items vertically (if there's extra space) */
    text-align: center;
}
.subject-section li {
    display: inline-block;
    padding: 12px 20px;
    background: #666; /* Default background color */
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 8px;
    transition: transform 0.2s, background 0.3s;
    cursor: pointer;
}

/* Target only "Physical science" */
.subject-section li:nth-child(5) {
    background: green; /* Change to your preferred color */
}
.subject-list {
    display: flex;
    justify-content: center; /* Centers the list horizontally */
    align-items: center;     /* Centers the list vertically if there's enough height */
    margin: 20px 0;         /* Optional: Adds margin around the list */
	Width: 60%;
}

.subject-section h2 {
    font-size: 1.8rem;
    color: #666;
    text-transform: uppercase;
}

.subject-section hr {
    width: 80%;
    margin: 10px auto;
	color: #ccc;
}

.subject-section ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.subject-section li {
    display: inline-block;
    padding: 12px 20px;
    background: #666;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 8px;
    transition: transform 0.2s, background 0.3s;
    cursor: pointer;
}

.subject-section li:hover {
    background: #555;
    transform: scale(1.05);
}

.subject-section a {
    text-decoration: none;
    color: inherit; /* Ensures the link inherits the text color */
}
/* Page Title */
.page-title {
    font-size: 1.0em;
	font-style:italic;
    font-weight: normal;
    color: #666; /* White text */
    text-align: left;
}

/* Greater Than Icon Style */
.greater-sign {
    color: #666;
    margin: 0 5px;
	font-size: 0.7em;
}


.video-section {
  padding: 20px;
  margin: 20px 0;
}


.video-section hr {
  border: 1px solid 1px solid rgb(131 112 112 / 40%);
  margin-bottom: 20px;
}

/* Grid container for videos */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));

}

/* Each video item */
.video-item {
  background: rgba(255, 255, 255, 0.0)
  border-radius: 8px;
  overflow: hidden;
  padding: 10px;
  text-align: center; /* Ensures inline elements are centered */
  display: flex;
  flex-direction: column;
  align-items: center; /* Centers the iframe horizontally */
}
.video-info {
  margin-top: 10px;
}

.video-info h3 {
  font-size: 16px;
  margin-bottom: 5px;
  color: #444;
}

.video-info p {
  font-size: 14px;
  color: #666;
}

.fullscreen-btn {
  padding: 8px 12px;
  background: #666;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  margin-top: 5px;
}

.fullscreen-btn:hover {
  background: green;
}


/* Responsive iframe to maintain a 16:9 ratio */
.video-item iframe {
  width: 90%; /* Adjust width to ensure it's centered visually */
  max-width: 560px; /* Prevents it from being too large */
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
  transform: scale(0.9); /* Scale down */
  transform-origin: center;
}


/* Footer Styles */
.footer {
    position: relative; /* Required for absolute positioning of pseudo-element */
    background-color: rgba(255, 255, 255, 0.4);
    color: #666;
    text-align: center;
    padding: 20px;
    font-size: 1rem;
	margin-top: 100px;
    /* Remove the default border */
}

.footer::before {
    content: "";
    position: absolute;
    top: 0; /* Position at the top */
    left: 50%;
    transform: translateX(-50%);
    width: 95%; /* Adjust this value to change the length */
    border-top: 1px solid rgb(131 112 112 / 40%);
}
/* Social Links */
.footer a {
    color: #666;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

.footer a:hover {
    color: #ffcc00; /* Yellow highlight on hover */
}

/* Edusite Section */
.footer .Edusite {
    max-width: 600px;
    margin: 20px auto;
    text-align: center;
}

.footer .Edusite img {
    width: 200px; /* Adjust logo size */
    margin-bottom: 10px;
}

.footer p {
    font-size: 18px;
    color: #666;
    margin: 0;
	margin-bottom: 60px;
}

/* Copyright Text */
.footer p:last-child {
    font-size: 0.8rem;
    margin-top: 15px;
    opacity: 0.8;
}
/* Hide Mobile Navbar by Default */
.navbar-mobile {
    display: none;
}

@media (max-width: 990px) {
	  body {
    background-image: none;
    /* Optionally, keep the gradient */
    background: linear-gradient(360deg, transparent 20%, #FFEFD5 80%);
	}
	.breadcrumb-title {
	  font-size: 8px;
	  font-weight: 600;
	  padding: 10px 10px;
	}
	.footer {
    background-color: rgba(255, 255, 255, 1)
	}
}
@media (max-width: 660px) {
	body {
		background-position: center !important;
		}
  .navbar .nav-links a {
    font-size: 0.6rem;
  }
  .navbar-desktop {
        display: none;
    }
    .navbar-mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background-color: transparent;
        padding: 1rem 2rem;
    }
  .logo img {
    height: 40px;
    width: auto;
  }
 .info-section {
    padding: 10px;
}

.info-section p {
    font-size: 0.6rem;
}
.info-section h2 {
    font-size: 1.0rem;
	}
.subject-section h2 {
    font-size: 1.2rem;
}
.subject-section li {
    font-size: 0.7rem;
}
.pdf-grid {
            gap: 10px;
            padding: 20px 0;
        }

.pdf-card {
            width: 45px;
            height: 45px;           
        }
.pdf-card i {
            font-size: 20px;
            color: #d32f2f;
}
.pdf-card a {
	font-size: 10px;
}
.footer {
    font-size: 0.6rem;
}
.footer .Edusite p {
    font-size: 0.5rem;
}
.page-title {
    font-size: 0.8em;
}
/* Feature Showcase Section */
.feature-showcase {

    width: 90%;
    height: 300px;
}
.feature-text h2 {
    font-size: 1rem;
}

.feature-text p {
    font-size: 0.8rem;
}
}
@media (max-width: 460px) {
  .logo img {
    height: 30px;
    width: auto;
}
.navbar-mobile {
        padding: 1rem 1rem;
    }

.flag {
	height: 40px; /* Adjust height as needed */
	width: auto;
	align-items: center;
	padding:10px;
	margin-left:0.5rem;
}
.flag img {
	height: 30px; /* Adjust height as needed */
}
.breadcrumb-title {
  font-size: 7px;
  font-weight: 600;
  padding: 10px 10px;
}
.menu-button {
	font-size: 1rem;
}
.video-section {
  padding: 0px 20px;
  margin: 0px;
}
.pdf-grid {
            gap: 5px;
            padding: 10px 0;
        }

.pdf-category {
            font-size: 0.8em;
        }

.info-section {
    margin: 10px auto;
}
.info-section h2 {
    font-size: 0.8rem;
	}
.page-title {
    padding: 10px;
	margin:0;
}
.footer .Edusite img {
    width: 100px; /* Adjust logo size */
    margin-bottom: 10px;
}
.subject-section ul {
    gap: 5px;
}
.subject-section {
    margin-bottom: 0;
}
.subject-section h2 {
    font-size: 1rem;
}

.subject-section li {
    padding: 8px 14px;
    font-size: 0.5rem;
}
.subject-list {
    margin: 0;
}
.footer p {
    font-size: 7px;
	margin-bottom: 20px;
}
/* Copyright Text */
.footer p:last-child {
    font-size: 0.5rem;
}

}