/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header and navigation */
header {
    background-color: #2c3e50;
    color: #fff;
    padding: 1rem 0;
}

nav ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

/* Hero section */
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-height: 100vh;
    background:url(../pics/1.jpg) no-repeat;
    background-size: cover;
    background-position: center;
    
}

.hero-content {
    background-color: rgba(0, 0, 0, 0.096);
    padding: 2rem;
    border-radius: 10px;
}

.hero h1 {
    color: #2980b9;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #7aa4c0;
}
.home{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-height: 100vh;
    background:url(../pics/1.jpg) no-repeat;
    background-size: cover;
    background-position: center;

}

.home .content{
    background-color: rgba(15, 15, 15, 0.301);
    border-radius: 20px;
    max-width: 50rem;
    padding: 2rem;
   
}

.home .content h3{
    font-size: 3rem;
    
    color: #90e0ef;
}

.home .content span{
    font-size: 1.5rem;
    color:#caf0f8;
    padding:1rem 0;
    line-height: 1.5;
}

.home .content p{
    font-size: 1.2rem;
    color:white;
    padding:1rem 0;
    line-height: 1.5;
}
.cta-button {
    display: inline-block;
    background-color: #0077b6;
    color: #fff;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border-radius: 20px;
}

.cta-button:hover {
    background-color: #1f1d1d;
}

/* Features section */
.features {
    display: flex;
    justify-content: space-around;
    padding: 4rem 2rem;
    background-color: #f4f4f4;
}

.feature {
    text-align: center;
    max-width: 300px;
}

.feature i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.feature h2 {
    margin-bottom: 1rem;
}

/*trainer part header*/
.about .row{
    display: flex;
    align-items: center;
    gap:2rem;
    flex-wrap: wrap;
    padding:2rem 0;
    padding-bottom: 3rem;
    max-width: 700px;
    margin: auto;
    text-align: center;
    justify-content: center;
    padding-top: 100px;
}


.about .row .content{
    flex:1 1 70rem;
    max-width: 100%;
}

.about .row .content h3{
    font-size: 3rem;
    color:#333;
    text-align: center;
}

.about .row .content p{
    font-size: 1.2rem;
    color: #999;
    padding: .5rem 0;
    padding-top: 1rem;
    line-height: 1.5;
    text-align: center;
}
.heading{
    text-align: center;
    font-size: 3rem;
    color:white;
    padding:1rem;
    background: #0077b6;

}
/*--END trainers--*/


/* Footer */
footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.footer-section {
    margin-bottom: 1rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style-type: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
}

.social-icons a {
    color: #fff;
    font-size: 1.5rem;
    margin-right: 1rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #34495e;
}

/* Back to home button */
.back-to-home {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #3498db;
    color: #fff;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

/* Responsive design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    .features {
        flex-direction: column;
        align-items: center;
    }

    .feature {
        margin-bottom: 2rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        text-align: center;
        margin-bottom: 2rem;
    }
}

/* Location page styles */
.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.location {
    background-color: #f4f4f4;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.location h2 {
    padding: 1rem;
    background-color: #3498db;
    color: #fff;
}

.location iframe {
    width: 100%;
    height: 300px;
    border: none;
}


/* Auth form styles */
.auth-form {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #f4f4f4;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.auth-form h2 {
    margin-bottom: 1rem;
    text-align: center;
}

.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form input[type="email"] {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.auth-form input[type="submit"] {
    width: 100%;
    padding: 0.5rem;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.auth-form input[type="submit"]:hover {
    background-color: #2980b9;
}

.auth-form .error {
    color: #e74c3c;
    margin-bottom: 1rem;
}

/* Trainers page */
.trainers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.trainer-card {
    background-color: #f4f4f4;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.trainer-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.trainer-card h2 {
    margin: 1rem 0;
}

.trainer-card p {
    margin: 0.5rem 0;
}

.book-now {
    display: inline-block;
    background-color: #3498db;
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    margin: 1rem 0;
    transition: background-color 0.3s ease;
}

.book-now:hover {
    background-color: #2980b9;
}

/* Booking page */
.booking-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #f4f4f4;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.booking-form label {
    display: block;
    margin-bottom: 0.5rem;
}

.booking-form input[type="date"],
.booking-form input[type="time"] {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.success-message {
    background-color: #2ecc71;
    color: #fff;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

/* About page */
.about-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.about-content {
    background-color: #f4f4f4;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.about-content h2 {
    margin-top: 2rem;
}

.about-content ul {
    list-style-type: disc;
    margin-left: 2rem;
}

/* Videos page */
.videos-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.video {
    background-color: #f4f4f4;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.video h2 {
    padding: 1rem;
    background-color: #3498db;
    color: #fff;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Admin dashboard */


.admin-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.admin-dashboard table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background-color: #f4f4f4;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.admin-dashboard th,
.admin-dashboard td {
    padding: 1rem;
    border: 1px solid #ddd;
    text-align: left;
}

.admin-dashboard th {
    background-color:#0077b6;
    color: #fff;
}

.admin-dashboard tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Newsletter Section */
.newsletter {
    background-color: #f4f4f4;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.newsletter h2 {
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.newsletter-form input[type="email"] {
    padding: 0.5rem;
    width: 300px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
}

.newsletter-form .cta-button {
    border-radius: 0 5px 5px 0;
}

/* Admin Dashboard */
.admin-dashboard .add-form {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-dashboard .add-form input[type="text"],
.admin-dashboard .add-form input[type="submit"] {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.admin-dashboard .add-form input[type="submit"] {
    background-color: #3498db;
    color: #fff;
    cursor: pointer;
}

.admin-dashboard .btn-danger {
    background-color: #e74c3c;
    color: #fff;
    padding: 0.3rem 0.8rem;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.admin-dashboard .btn-danger:hover {
    background-color: #c0392b;
}

/* Responsive design */
@media (max-width: 768px) {
    .trainers-grid,
    .video-grid {
        grid-template-columns: 1fr;
    }

    .admin-dashboard table {
        font-size: 14px;
    }

    .admin-dashboard th,
    .admin-dashboard td {
        padding: 0.5rem;
    }
}

/* Admin Dashboard Button Styles */

/* Action buttons container */
.action-buttons {
    display: flex;
    gap: 5px;
}

/* Form styling */
.add-form {
    max-width: 600px;
    margin: 1.5rem 0;
    background-color: #f4f4f4;
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Input field styling - reducing size */
.add-form input[type="text"],
.add-form input[type="file"] {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    height: 36px; /* Control the height */
}

/* Current image container */
.add-form div {
    margin-bottom: 1rem;
}

/* Small text styling */
.add-form small {
    color: #666;
    font-size: 12px;
}

/* Button container in form */
.add-form div:last-child {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}

/* Update Trainer button - match size with Cancel */
input[name="update_trainer"] {
    background-color: #3498db;
    color: white;
    padding: 0.3rem 0.8rem;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    height: auto;
    line-height: normal;
}

input[name="update_trainer"]:hover {
    background-color: #2980b9;
}

/* Add Trainer button */
input[name="add_trainer"] {
    background-color: #3498db;
    color: white;
    padding: 0.3rem 0.8rem;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

input[name="add_trainer"]:hover {
    background-color: #2980b9;
}

/* Section headers */
.admin-dashboard h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.5rem;
}

/* Success and error messages */
.success-message,
.error-message {
    padding: 0.8rem;
    margin-bottom: 1rem;
    border-radius: 3px;
}

.success-message {
    background-color: #2ecc71;
    color: white;
}

.error-message {
    background-color: #e74c3c;
    color: white;
}

/* trainer_waiting.php */

.message-box {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 4px solid #17a2b8;
  }
  
  .auth-form {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }
  
  .auth-form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
  }
  
  .auth-form input[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
  }
  
  .auth-form input[type="submit"]:hover {
    background-color: #0069d9;
  }
  
  .back-to-home {
    display: block;
    text-align: center;
    margin: 20px auto;
    color: #ffffff;
    text-decoration: none;
  }
  
  .back-to-home:hover {
    text-decoration: underline;
  }
  
  .error {
    color: #dc3545;
    text-align: center;
    margin-bottom: 15px;
  }
  
  .success {
    color: #28a745;
    text-align: center;
    margin-bottom: 15px;
  }
  
  