
/***************************************************** LANGUAGE TOGGLE STYLES *************************************************/

.language-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    margin-left: auto;
}

.language-btn {
    background-color: transparent;
    border: 1px solid white;
    color: white;
    padding: 5px 15px;
    font-size: 14px;
    font-family: 'poppins', sans-serif;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.language-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.language-btn.active {
    background-color: white;
    color: black;
}

.flag-icon {
    width: 20px;
    height: 15px;
}

/* Update contacttop to accommodate language toggle */
.contacttop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px;
    background-color: black;
    font-size: 15px;
    color: white;
    padding-left: 260px;
    padding-right: 250px;
    font-family: 'open sans', sans-serif;
    z-index: 2;
    position: relative;
}

/* Mobile responsive adjustments for language toggle */
@media screen and (max-width: 768px) {
    .contacttop {
        padding: 10px 20px;
        font-size: 12px;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
        text-align: center;
    }
    
    .language-toggle {
        margin: 0;
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .language-btn {
        font-size: 12px;
        padding: 4px 12px;
    }
}

@media screen and (max-width: 480px) {
    .language-btn {
        font-size: 11px;
        padding: 3px 10px;
    }
    
    .flag-icon {
        width: 16px;
        height: 12px;
    }
}




























/* GENERAL STYLES ****************************************************/

html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body{
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

/* NAVBAR STYLES ****************************************************/

.navbar{
  display: flex;
  justify-content:center;
  background-color: transparent;
  align-items: center;
  padding: 0 20px;
  position: sticky;
  top: 0;
  margin: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 15px rgba(194, 168, 120, 0.1);
  border-bottom: 1px solid rgba(194, 168, 120, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 5px 20px;
  transition: all 0.3s ease;
  height: 60px;
}

.navbar:hover {
    box-shadow: 0 4px 20px rgba(194, 168, 120, 0.15);
}

.navbar ul{ 
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  list-style: none;
  align-items: center;
}

.navbar ul li{
  display: inline;
  padding: 15px;
  color: black;
}

.navbar ul li a{
  text-decoration: none;
  color: black;
  transition: color 0.3s ease;
  font-family: 'poppins', sans-serif;
  font-weight: 500;
  padding-left: 20px;
  font-size: 18px;
}

.navbar ul li a:hover{
  color: #C2A878;
}

.donate-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    background-color: #C2A878;
    padding: 10px 18px;
    font-size: 18px;
    font-family: 'poppins', sans-serif;
    font-weight: 600;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.donate-btn:hover {
    background-color: rgba(194, 168, 120, 0.8);
    color: white;
}

.donate-btn:active {
    background-color: rgba(194, 168, 120, 0.6);
    color: white;
}

.donate-form {
    display: inline-flex;
    margin: 0;
    padding: 0;
    margin-left: 50px; 
    align-items: center; 
}


.heart-icon {
    width: 20px;
    height: 20px;
}

.contacttop{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px;
  background-color:black;
  font-size: 15px;
  color: white;
  padding-left: 260px;
  padding-right: 250px;
  font-family: 'open sans', sans-serif;
  z-index: 2;
  position: relative;
}

.logo img{
  width: 150px;
  height: auto;
  margin-right: 30px;
  object-fit: contain;
  padding-top: 0px;
  justify-content: flex-start;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
    display: block;
}

/* MAINPAGE *****************************************************/

.mainpage{
  height: 88vh;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.slideshow-container {
  position: relative;
  max-width: 100%;
  margin: auto;
  height: 100%;
}

.mySlides {
  display: none;
  animation: crossfade 1.5s ease-in-out;
  height: 100%;
}

@keyframes crossfade {
    0% {
        opacity: 0.7;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.slideimg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
}

.mainpage::after{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.mainpage h1{
  font-family: 'poppins', sans-serif;
  font-size: 60px;
  color: white;
  margin: 0;
  font-weight: bold;
  z-index: 2;
  position: relative;
}

.mainpage h2{
  font-family: 'poppins', sans-serif;
  font-size: 30px;
  color: white;
  margin: 0;
  font-weight: bold;
  z-index: 2;
  position: relative;
}

.text-overlay {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  z-index: 2;
  padding-top: 20px;
  width: 80%;
  line-height: 1.2;
  font-family: 'poppins', sans-serif;
}

.banner-text {
  font-size: 36px;
  font-weight: bold;
  margin: 0;
}

/* PROGRAMS SECTION *****************************************************/

.programs-section {
    padding: 60px 20px;
    width: 1300px;
    margin: 0 auto;
}

.programs-section h1{
    font-family: 'poppins', sans-serif;
    font-size: 40px;
    text-align: center;
    color: #533805;
    margin-bottom: 40px;
    font-weight: 600;
}

.description {
    margin-bottom: 50px;
}

.description-content {
    background: linear-gradient(135deg,
        rgba(194, 168, 120, 0.9) 0%,    
        rgba(194, 168, 120, 0.3) 100%  
    );
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(194, 168, 120, 0.2);
}

.program-img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.description-text {
    flex: 1;
}

.description-text p {
    font-family: 'poppins', sans-serif;
    font-size: 18px;
    color: #444;
    line-height: 1.7;
    margin: 0;
}

/* PROGRAM CARDS *****************************************************/

.program-card {
    margin-bottom: 40px;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(194, 168, 120, 0.15);
    transition: all 0.3s ease;
    width: 1300px;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(194, 168, 120, 0.25);
}

.quran-class, .albanian-class {
    background: linear-gradient(90deg,
        rgba(194, 168, 120, 0.9) 0%,    
        rgba(194, 168, 120, 0.3) 100%  
    );
}

.fiqh-class, .culture-class {
    background: linear-gradient(270deg,
        rgba(194, 168, 120, 0.9) 0%,    
        rgba(194, 168, 120, 0.3) 100%  
    );
}

.right-align {
    margin-left: auto;
    width: 100%;
    text-align: right;
}

.program-content h2 {
    font-family: 'poppins', sans-serif;
    font-size: 28px;
    color: #533805;
    margin-bottom: 20px;
    font-weight: 600;
    z-index: 2;
    position: relative;
}

.program-details {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    z-index: 2;
    position: relative;
}

.right-align .program-details {
    flex-direction: row-reverse;
}

.program-text {
    flex: 1;
}

.program-text p {
    font-family: 'poppins', sans-serif;
    font-size: 16px;
    color: #444;
    line-height: 1.7;
    margin: 0;
}

.teacher-img, .aqeedah-img, .alb-img, .culture-img {
    width: 250px;
    height: 180px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.circle-accent {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 120px;
    height: 120px;
    background-color: rgba(194, 168, 120, 0.6);
    border-radius: 50%;
    z-index: 0;
    transition: all 0.4s ease;
}

.circle-accent2 {
    position: absolute;
    top: -60px;
    left: -60px;
    width: 120px;
    height: 120px;
    background-color: rgba(194, 168, 120, 0.6);
    border-radius: 50%;
    z-index: 0;
    transition: all 0.4s ease;
}

.program-card:hover .circle-accent,
.program-card:hover .circle-accent2 {
    width: 150px;
    height: 150px;
    opacity: 0.8;
}

/* GYM SECTION *****************************************************/

.gym-section {
    padding: 60px 20px;
    background: rgba(194, 168, 120, 0.05);
}

.gym-section h1 {
    font-family: 'poppins', sans-serif;
    font-size: 40px;
    text-align: center;
    color: #533805;
    margin-bottom: 40px;
    font-weight: 600;
}

.gym-description {
    max-width: 1200px;
    margin: 0 auto;
}

.gym-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: flex-start;
    gap: 40px;
    box-shadow: 0 10px 30px rgba(194, 168, 120, 0.1);
}

.gym-text {
    flex: 1;
}

.gym-text h2 {
    font-family: 'poppins', sans-serif;
    font-size: 28px;
    color: #533805;
    margin-bottom: 20px;
    font-weight: 600;
}

.gym-text p {
    font-family: 'poppins', sans-serif;
    font-size: 16px;
    color: #444;
    line-height: 1.7;
    margin-bottom: 25px;
}

.facility-details h3 {
    font-family: 'poppins', sans-serif;
    font-size: 20px;
    color: #533805;
    margin-bottom: 15px;
    font-weight: 600;
}

.facility-details ul {
    list-style-type: none;
    padding: 0;
    margin-bottom: 20px;
}

.facility-details li {
    font-family: 'poppins', sans-serif;
    font-size: 15px;
    color: #666;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.facility-details li::before {
    content: "•";
    color: #C2A878;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.gym-img {
    width: 400px;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

/* REGISTRATION SECTION *****************************************************/

.registration-section {
    padding: 60px 20px;
    background: white;
}

.registration-content {
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg,
        rgba(194, 168, 120, 0.1) 0%,    
        rgba(194, 168, 120, 0.05) 100%  
    );
    border-radius: 20px;
    padding: 40px;
}

.registration-content h2 {
    font-family: 'poppins', sans-serif;
    font-size: 36px;
    text-align: center;
    color: #533805;
    margin-bottom: 40px;
    font-weight: 600;
}

.registration-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.registration-info h3,
.registration-requirements h3 {
    font-family: 'poppins', sans-serif;
    font-size: 24px;
    color: #533805;
    margin-bottom: 20px;
    font-weight: 600;
}

.registration-info p,
.registration-requirements p {
    font-family: 'poppins', sans-serif;
    font-size: 16px;
    color: #444;
    line-height: 1.7;
    margin-bottom: 20px;
}

.registration-info ul,
.registration-requirements ul {
    list-style-type: none;
    padding: 0;
    margin-bottom: 25px;
}

.registration-info li,
.registration-requirements li {
    font-family: 'poppins', sans-serif;
    font-size: 15px;
    color: #666;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.registration-info li::before,
.registration-requirements li::before {
    content: "✓";
    color: #C2A878;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.contact-btn-container {
    text-align: center;
    margin-top: 30px;
}

.contact-btn {
    background-color: #C2A878;
    color: white;
    font-weight: bold;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 18px;
    font-family: 'poppins', sans-serif;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(194, 168, 120, 0.3);
}

.contact-btn:hover {
    background-color: rgba(194, 168, 120, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(194, 168, 120, 0.4);
}

.contact-btn:active {
    background-color: rgba(194, 168, 120, 0.6);
    transform: translateY(0);
}

/* ROW LAYOUT *****************************************************/

.row{
  margin-left: 60px;
  display:flex;
  justify-content: space-between;
  margin-right: 60px;
  margin-top: 20px;
}

/* FOOTER *****************************************************/

.support-section {
  margin-top: 60px;
  padding: 40px 20px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  background: linear-gradient(90deg,
    rgba(194, 168, 120, 0.9) 0%,    
    rgba(194, 168, 120, 0.3) 100%  
  );
  width: 100%;
}

.support-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 20%;
}

.logo-img {
  width: 300px;
  height: 300px;
  margin-bottom: -90px;
  margin-top: -100px;
  margin-left: -35px;
}

.support-text p {
  font-size: 18px;
  padding-right: 40px;
  color: black;
  font-family: 'poppins', sans-serif;
  margin-top: 0;
}

.facebook-img {
  width: 40px;
  height: 40px;
  margin-top: 0;
  margin-bottom: 50px;
}

.social-media:hover {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.social-media:active {
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.contact-info h2 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 20%;
  font-family: 'poppins', sans-serif;
  color: black;
  font-size: 27px;
}

.contact-info h3 {
  font-family: 'poppins', sans-serif;
  color: black;
  font-size: 16px;
  color: #533805;
  font-weight: 600;
}

.contact-info p {
  font-family: 'poppins', sans-serif;
  color: black;
  font-weight: 500;
}

.socials {
  color: black;
  font-family: 'poppins', sans-serif;
  width: 20%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 18px;
}

.email-icon, .phone-icon, .pin-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

.newsletter {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 20%;
  font-family: 'poppins', sans-serif;
  color: black;
  font-size: 18px;
}

.newsletter input[type="email"] {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
}

.newsletter button {
  background-color: #C2A878;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 20px;
  transition: all 0.3s ease;
}

.newsletter button:hover {
  background-color: rgba(194, 168, 120, 0.8);
} 

.newsletter button:active {
  background-color: rgba(194, 168, 120, 0.6);
}

footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 20px;
  font-family: 'poppins', sans-serif;
  font-size: 14px;
}

/* MOBILE RESPONSIVE STYLES *****************************************************/

@media screen and (max-width: 1024px) {
    .contacttop {
        padding-left: 50px;
        padding-right: 50px;
        font-size: 14px;
    }
    
    .navbar ul li a {
        font-size: 16px;
        padding-left: 15px;
    }
    

    
      .donate-form {
        margin-left: 30px;
    }

    .programs-section {
        width: 100%;
        padding: 60px 40px;
    }
    
    .program-card {
        width: 100%;
        padding: 30px;
    }
    
    .gym-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .gym-img {
        width: 100%;
        height: 250px;
    }
    
    .registration-details {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media screen and (max-width: 768px) {
    .contacttop {
        padding: 10px 20px;
        font-size: 12px;
        flex-direction: column;
        gap: 5px;
    }
    
    .navbar {
        flex-direction: column;
        height: auto;
        padding: 10px 20px;
        align-items: flex-start;
    }
    
    .navbar ul {
          position: absolute; /* Add this */
        top: 100%; /* Position below navbar */
        left: 0;
        right: 0;
        z-index: 1000; /* Ensure it appears above other content */
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 0; /* Remove margin since it's positioned absolutely */
        background-color: rgba(255, 255, 255, 0.98);
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .navbar ul.show {
        display: flex;
    }
    
    .navbar ul li {
        width: 100%;
        text-align: center;
        padding: 15px;
        border-bottom: 1px solid rgba(194, 168, 120, 0.2);
    }
    
    .navbar ul li:last-child {
        border-bottom: none;
    }
    
    .navbar ul li a {
        
        display: block;
        width: 100%;
    }
    
    .menu-toggle {
        display: flex;
        position: absolute;
        right: 20px;
        top: 15px;
    }
    
    .donate-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .donate-form {
        margin-left: 0;
        margin-top: 15px;
        width: 100%;
        justify-content: center;
    }

    .logo img {
        width: 100px;
    }
    
    .mainpage {
        height: 60vh;
    }
    
    .slideshow-container {
        height: 60vh;
    }
    
    .mainpage h1 {
        font-size: 36px;
        padding: 0 15px;
    }
    
    .mainpage h2 {
        font-size: 20px;
        padding: 0 15px;
    }
    
    .text-overlay {
        width: 90%;
        top: 50%;
    }
    
    .programs-section {
        padding: 40px 20px;
    }
    
    .programs-section h1 {
        font-size: 28px;
        margin-bottom: 25px;
    }
    
    .description-content {
        flex-direction: column;
        gap: 20px;
        padding: 25px;
    }
    
    .program-img {
        width: 100%;
        height: 200px;
    }
    
    .description-text p {
        font-size: 16px;
        line-height: 1.5;
    }
    
    .program-card {
        padding: 25px;
        margin-bottom: 25px;
    }
    
    .program-content h2 {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .program-details {
        flex-direction: column;
        gap: 20px;
    }
    
    .right-align .program-details {
        flex-direction: column;
    }
    
    .teacher-img, .aqeedah-img, .alb-img, .culture-img {
        width: 100%;
        height: 200px;
    }
    
    .program-text p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .gym-section {
        padding: 40px 20px;
    }
    
    .gym-section h1 {
        font-size: 28px;
    }
    
    .gym-content {
        flex-direction: column;
        gap: 20px;
        padding: 25px;
    }
    
    .gym-text h2 {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .gym-text p {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 15px;
    }
    
    .facility-details h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .facility-details li {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .gym-img {
        width: 100%;
        height: 250px;
    }
    
    .registration-section {
        padding: 40px 20px;
    }
    
    .registration-content {
        padding: 25px;
    }
    
    .registration-content h2 {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .registration-details {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .registration-info h3,
    .registration-requirements h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .registration-info p,
    .registration-requirements p {
        font-size: 14px;
        margin-bottom: 15px;
        line-height: 1.5;
    }
    
    .registration-info li,
    .registration-requirements li {
        font-size: 13px;
        margin-bottom: 8px;
        line-height: 1.4;
    }
    
    .contact-btn {
        padding: 12px 25px;
        font-size: 16px;
        min-height: 44px;
    }
    
    .row {
        flex-direction: column;
        margin-left: 20px;
        margin-right: 20px;
        gap: 20px;
    }
    
    .support-section {
        flex-direction: column;
        gap: 30px;
        padding: 30px 20px;
    }
    
    .support-text, .contact-info, .socials, .newsletter {
        width: 100%;
        text-align: center;
        align-items: center;
    }
    
    .logo-img {
        width: 200px;
        height: 200px;
        margin: 0 auto 20px auto;
    }
    
    .support-text p {
        padding-right: 0;
        text-align: center;
    }
    
    .contact-info h2 {
        width: 100%;
        text-align: center;
        align-items: center;
    }
}

@media screen and (max-width: 480px) {
    .contacttop {
        font-size: 11px;
        padding: 8px 15px;
    }
    
    .navbar {
        padding: 8px 15px;
    }
    
    .logo img {
        width: 80px;
    }
    
    .mainpage {
        height: 50vh;
    }
    
    .slideshow-container {
        height: 50vh;
    }
    
    .mainpage h1 {
        font-size: 28px;
        padding: 0 10px;
    }
    
    .mainpage h2 {
        font-size: 16px;
        padding: 0 10px;
    }
    
    .programs-section {
        padding: 30px 15px;
    }
    
    .programs-section h1 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .description-content {
        padding: 20px;
        gap: 15px;
    }
    
    .program-img {
        height: 150px;
    }
    
    .description-text p {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .program-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .program-content h2 {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .program-details {
        gap: 15px;
    }
    
    .teacher-img, .aqeedah-img, .alb-img, .culture-img {
        height: 150px;
    }
    
    .program-text p {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .gym-section {
        padding: 30px 15px;
    }
    
    .gym-section h1 {
        font-size: 24px;
    }
    
    .gym-content {
        padding: 20px;
        gap: 15px;
    }
    
    .gym-text h2 {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .gym-text p {
        font-size: 13px;
        line-height: 1.4;
        margin-bottom: 12px;
    }
    
    .facility-details h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .facility-details li {
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    .gym-img {
        height: 200px;
    }
    
    .registration-section {
        padding: 30px 15px;
    }
    
    .registration-content {
        padding: 20px;
    }
    
    .registration-content h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .registration-details {
        gap: 20px;
    }
    
    .registration-info h3,
    .registration-requirements h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .registration-info p,
    .registration-requirements p {
        font-size: 13px;
        margin-bottom: 12px;
        line-height: 1.4;
    }
    
    .registration-info li,
    .registration-requirements li {
        font-size: 12px;
        margin-bottom: 6px;
        line-height: 1.3;
    }
    
    .contact-btn {
        padding: 10px 20px;
        font-size: 14px;
        min-height: 44px;
    }
    
    .row {
        margin-left: 15px;
        margin-right: 15px;
        gap: 15px;
    }
    
    .support-section {
        padding: 25px 15px;
        gap: 25px;
    }
    
    .logo-img {
        width: 150px;
        height: 150px;
        margin: 0 auto 15px auto;
    }
    
    .support-text p {
        font-size: 16px;
    }
    
    .contact-info h2, .socials h2, .newsletter h2 {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .contact-info h3 {
        font-size: 15px;
        margin: 8px 0 4px 0;
    }
    
    .contact-info p, .socials p, .newsletter p {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .email-icon, .phone-icon, .pin-icon {
        width: 16px;
        height: 16px;
        margin-right: 6px;
    }
    
    .facebook-img {
        width: 32px;
        height: 32px;
        margin-top: 8px;
        margin-bottom: 0;
    }
    
    .newsletter input[type="email"] {
        padding: 8px;
        font-size: 14px;
        margin-top: 8px;
    }
    
    .newsletter button {
        padding: 8px 16px;
        font-size: 14px;
        margin-top: 12px;
    }
}

@media screen and (max-width: 320px) {
    .contacttop {
        font-size: 10px;
        padding: 6px 10px;
    }
    
    .logo img {
        width: 70px;
    }
    
    .mainpage {
        height: 45vh;
    }
    
    .slideshow-container {
        height: 45vh;
    }
    
    .mainpage h1 {
        font-size: 24px;
    }
    
    .mainpage h2 {
        font-size: 14px;
    }
    
    .programs-section {
        padding: 25px 10px;
    }
    
    .programs-section h1 {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .description-content {
        padding: 15px;
        gap: 12px;
    }
    
    .program-img {
        height: 120px;
    }
    
    .description-text p {
        font-size: 13px;
        line-height: 1.3;
    }
    
    .program-card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .program-content h2 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .program-details {
        gap: 12px;
    }
    
    .teacher-img, .aqeedah-img, .alb-img, .culture-img {
        height: 120px;
    }
    
    .program-text p {
        font-size: 12px;
        line-height: 1.3;
    }
    
    .gym-section {
        padding: 25px 10px;
    }
    
    .gym-section h1 {
        font-size: 22px;
    }
    
    .gym-content {
        padding: 15px;
        gap: 12px;
    }
    
    .gym-text h2 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .gym-text p {
        font-size: 12px;
        line-height: 1.3;
        margin-bottom: 10px;
    }
    
    .facility-details h3 {
        font-size: 15px;
        margin-bottom: 6px;
    }
    
    .facility-details li {
        font-size: 11px;
        margin-bottom: 4px;
    }
    
    .gym-img {
        height: 150px;
    }
    
    .registration-section {
        padding: 25px 10px;
    }
    
    .registration-content {
        padding: 15px;
    }
    
    .registration-content h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .registration-details {
        gap: 15px;
    }
    
    .registration-info h3,
    .registration-requirements h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .registration-info p,
    .registration-requirements p {
        font-size: 12px;
        margin-bottom: 10px;
        line-height: 1.3;
    }
    
    .registration-info li,
    .registration-requirements li {
        font-size: 11px;
        margin-bottom: 5px;
        line-height: 1.2;
    }
    
    .contact-btn {
        padding: 8px 16px;
        font-size: 13px;
        min-height: 44px;
    }
    
    .row {
        margin-left: 10px;
        margin-right: 10px;
        gap: 12px;
    }
    
    .support-section {
        padding: 20px 10px;
        gap: 20px;
    }
    
    .logo-img {
        width: 120px;
        height: 120px;
    }
    
    .support-text p {
        font-size: 14px;
    }
    
    .contact-info h2, .socials h2, .newsletter h2 {
        font-size: 18px;
    }
    
    .contact-info h3 {
        font-size: 14px;
    }
    
    .contact-info p, .socials p, .newsletter p {
        font-size: 13px;
    }
    
    .email-icon, .phone-icon, .pin-icon {
        width: 14px;
        height: 14px;
        margin-right: 5px;
    }
    
    .facebook-img {
        width: 28px;
        height: 28px;
    }
    
    .newsletter input[type="email"] {
        padding: 6px;
        font-size: 13px;
    }
    
    .newsletter button {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* Additional Mobile-Specific Improvements */

@media screen and (max-width: 768px) {
    /* Touch-friendly button sizes */
    .contact-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Improved touch targets for navigation */

    
    /* Better spacing for mobile cards */
    .program-card {
        margin-bottom: 15px;
    }
    
    /* Simplified animations for mobile */
    .program-card:hover {
        transform: translateY(-2px);
    }
    
    /* Improved mobile typography */
    body {
        font-size: 16px;
        line-height: 1.5;
    }
    
    /* Mobile menu animation */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* Mobile-friendly card hover effects */
    .program-card:hover .circle-accent,
    .program-card:hover .circle-accent2 {
        width: 130px;
        height: 130px;
        opacity: 0.6;
    }
    
    /* Improved mobile content readability */
    .description-text p,
    .program-text p,
    .gym-text p,
    .registration-info p,
    .registration-requirements p {
        text-align: left;
        word-wrap: break-word;
    }
    
    /* Mobile-optimized images */
    .program-img,
    .teacher-img, 
    .aqeedah-img, 
    .alb-img, 
    .culture-img,
    .gym-img {
        border-radius: 10px;
        box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    }
    
    /* Mobile-friendly spacing */
    .circle-accent,
    .circle-accent2 {
        display: none;
    }
}

/* Landscape orientation adjustments for mobile */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .mainpage {
        height: 70vh;
    }
    
    .slideshow-container {
        height: 70vh;
    }
    
    .mainpage h1 {
        font-size: 32px;
    }
    
    .mainpage h2 {
        font-size: 18px;
    }
    
    .text-overlay {
        top: 45%;
    }
}

/* High DPI / Retina display optimizations */
@media screen and (max-width: 768px) and (-webkit-min-device-pixel-ratio: 2),
       screen and (max-width: 768px) and (min-resolution: 192dpi) {
    .program-img,
    .teacher-img, 
    .aqeedah-img, 
    .alb-img, 
    .culture-img,
    .gym-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: optimize-contrast;
    }
}

/* Accessibility improvements for mobile */
@media screen and (max-width: 768px) {
    /* Ensure sufficient contrast and readability */
    .program-text p,
    .gym-text p,
    .description-text p {
        color: #333;
        font-weight: 400;
    }
    
    /* Improve focus states for mobile */
    .contact-btn:focus,
    .navbar ul li a:focus {
        outline: 2px solid #C2A878;
        outline-offset: 2px;
    }
    
    /* Better mobile form styling */
    .newsletter input[type="email"]:focus {
        outline: 2px solid #C2A878;
        outline-offset: 1px;
    }
    
    /* Improved mobile button states */
    .contact-btn:active,
    .newsletter button:active {
        transform: translateY(1px);
    }
}