/* 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: 
}


.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;
    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: 20px;
    border-radius: 12px;
    width: 90%;
    margin: 40px auto;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.4);
}

.info-section h2 {
    font-size: 1.8rem;
    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;
	padding: 10px;
    margin-bottom: 20px;
}

.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 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-section h2 {
    font-size: 1.8rem;
    color: #666;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.subject-section hr {
    width: 70%;
    margin: 10px auto;
    border:1px solid 1px solid rgb(131 112 112 / 40%);
}


.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: #666;
    transform: scale(1.05);
}

.subject-section a {
    text-decoration: none;
    color: inherit; /* Ensures the link inherits the text color */
}

/* Greater Than Icon Style */
.greater-sign {
    color: #666;
    margin: 0 5px;
	font-size: 0.8em;
}
hr {
    border: none; /* Removes default border */
    height: 1px; /* Adjust thickness */
    background-color: #CCC; /* Dark gray color */
    width: 95%; /* Controls width */
}

.pdf-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px; /* Prevents it from getting too wide */
    margin: 0 auto;
    padding: 0px 20px;
    box-sizing: border-box;
    overflow: hidden; /* Ensures nothing spills out */
	margin-bottom: 50px;
}
/* Product Grid - Flexibly arranged */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Responsive columns */
    gap: 10px; /* Reduced gap */
    max-width: 100%;
    width: 100%;
    margin: 0 auto; /* Centers grid within parent */
    padding: 10px;
    box-sizing: border-box;
    overflow: hidden;
    justify-items: center; /* Centers items horizontally */
}

/* Product Card - Flexible size */
.product {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
	padding: 10px; /* even spacing on all sides */
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: white;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    overflow: hidden; /* Ensures no overflow */
    width: 100%; /* Ensures product uses available space */
}

/* Images */
.product img {
    max-width: 100%;  
    height: auto;  
    object-fit: contain;
    border-radius: 8px;
    display: block;
    margin: 0 auto;   
}


/* Adds hover effect */
.product:hover {
    transform: scale(1.05);
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.2);
}
        .product h3 {
            font-size: 1.2em;
            margin: 0.5em 0;
        }
        .product p {
            font-size: 1em;
            margin: 0.5em 0;
        }
        .download-button {
            display: inline-block;
            padding: 10px 20px;
            font-size: 1em;
            color: white;
            background-color: #ff6b6b;
            border: none;
            border-radius: 5px;
            text-decoration: none;
            transition: background-color 0.2s;
			margin-bottom: 10px;
			margin-top: 10px;
        }
        .download-button:hover {
            background-color: #e64a4a;
        }

/* Feature Showcase Section */
.feature-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
	box-sizing: border-box; /* Ensures padding is included in width/height */
    width: 90%;
    max-width: 1200px; /* Optional: Set a max width */
    height: 400px;
    padding: 50px 5%;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    gap: 10px;
    margin: 0 auto;
    opacity: 0.9; /* Adjust this value (0.0 to 1.0) for more/less transparency */
}


/* Text Animation */
.feature-text {
    width: 100%; /* Make the text container take full width */
    opacity: 1;
    animation: bounceInfinite 3s infinite ease-in-out;
    text-align: center; /* Center the text */
}

.feature-text h2 {
    font-size: 2.rem;
    color: #333;
    margin-bottom: 20px; /* Space below the title */
}

.feature-text p {
    font-size: 1.2rem;
    color: #666;
}

/* Image Animation */
.feature-image {
    width: 100%; /* Make the image container take full width */
    display: flex;
    justify-content: center; /* Center the image */
    text-align: center;
    position: relative;
    overflow: hidden; /* Prevents overflow */
    height: 80%; /* Maintain container height */
}

.feature-image img {
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    height: auto;
    border-radius: 10px;
    opacity: 1;
    transition: transform 2.5s ease-in-out, opacity 1.5s ease-in-out;
}

/* Bounce Text Animation */
@keyframes bounceInfinite {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 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) {
  .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;
    }
	.download-button {
            font-size: 0.6em;
			padding: 5px 10px;
        }
  .logo img {
    height: 40px;
    width: auto;
  }
 .product-grid {
	grid-template-columns: repeat(3, minmax(80px, 1fr));
}
.info-section {
    padding: 20px;
}
.info-section p {
    font-size: 0.6rem;
}
.info-section h2 {
    font-size: 1.2rem;
	}
.subject-section h2 {
    font-size: 1.2rem;
}
.subject-section li {
    font-size: 0.7rem;
}
.pdf-card {
            width: 45px;
            height: 45px;           
        }
.pdf-card i {
            font-size: 30px;
            color: #d32f2f;
}
.pdf-card a {
	font-size: 10px;
}
.footer {
    font-size: 0.6rem;
}
.footer p {
    font-size: 10px;
}
.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;
}
.download-button {
            font-size: 0.7em;
        }
.product-grid {
	grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
}

.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;
}
.info-section h2 {
    font-size: 0.8rem;
	}
.footer .Edusite img {
    width: 100px; /* Adjust logo size */
}
.footer p {
    font-size: 7px;
	margin-bottom: 20px;
}
/* Copyright Text */
.footer p:last-child {
    font-size: 0.5rem;
}
}

