/* Base Styles */
:root {
    --primary-color: #301934;
    --secondary-color: #4a6baf;
    --accent-color: #bfa2ff;
    --text-color: #333;
    --light-text: #666;
    --background-light: #f9f9f9;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-light);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 10px;
}

h2 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 100vh; /* Use 100vh for full viewport height */
    max-height: 1200px; /* Prevent it from getting too tall on large screens */
    min-height: 400px; /* Lower minimum height for mobile */
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 100%;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.8);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: yellow;
}

/* Studio Carousel */
.studio-register {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 10px;
    background-color: #ffe615;
    text-decoration: none;
    color: black;
    border-radius: 5px;
    font-weight: 600;
}

.studio-carousel {
    width: 100%;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: none;
    background-color: var(--primary-color);
    margin: 30px 0;
}

.studio-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    display: flex;
    gap: 25px;
    padding: 0 20px;
}

.studio-card {
    display: flex;
    flex-direction: column;
    min-width: 280px;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.studio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.studio-image {
    width: 100%;
    height: 270px;
    object-fit: contain;
    border-bottom: 1px solid #f0f0f0;
}

.studio-info {
    padding: 20px;
}

.studio-info h3 {
    margin: 0 0 10px;
    color: var(--text-color);
    font-size: 1.3rem;
}

.studio-email {
    color: var(--light-text);
    font-size: 0.9rem;
    margin: 0 0 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.studio-location {
    color: #888;
    font-size: 0.9rem;
    margin: 0 0 15px;
    display: flex;
    align-items: center;
}

.studio-location::before {
    content: "📍";
    margin-right: 5px;
}

.view-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.studio-card:hover .view-button {
    background-color: #3a56d4;
}

/* Latest Videos Section */
.latest-videos {
    padding: 40px 0;
    background: var(--accent-color);
    margin-top: 30px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.video-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 15px;
}

.video-info h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    color: var(--text-color);
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--light-text);
    margin: 0;
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* View More Button */
.view-more {
    text-align: center;
    margin: 15px 0;
    display: inline-block;
    width: 30%;
}

.view-more .btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-more .btn:hover {
    background-color: #3a56d4;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}



/* News Section - Fully Visible Text Solution */
.news-section {
    padding: 0px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-cards-container {
    overflow-x: auto;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch; /* For smooth scrolling on iOS */
}

.news-cards-container::-webkit-scrollbar {
    height: 8px;
}

.news-cards-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.news-cards {
    display: flex;
    gap: 10px;
    padding-bottom: 10px; /* Space for scrollbar */
}

.news-card {
    min-width: 280px;
    max-width: 280px;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.news-card-image {
    /* Removed fixed height to allow natural image height */
    overflow: hidden;
    flex-shrink: 0; /* Prevent image container from shrinking */
}

.news-card-image img {
    width: 100%;
    height: auto; /* Changed from cover to auto to show full image */
    display: block;
}

.news-card-content {
    padding: 15px;
    flex-grow: 1; /* Allows content to take remaining space */
    display: flex;
    flex-direction: column;
}

.news-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: #333;
}

.news-excerpt {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    flex-grow: 1; /* Pushes read more button to bottom */
}

.read-more {
    display: inline-block;
    padding: 5px 10px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: background 0.3s ease;
    align-self: flex-start; /* Align button to left */
    margin-top: auto; /* Push button to bottom */
}

.read-more:hover {
    background: #0056b3;
}

/* Advertisements Section */
.ad-section {
    margin: 50px 0;
}

.ad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.ad-item {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.ad-item:hover {
    transform: translateY(-5px);
}

.ad-item img {
    width: 100%;
    height: auto; /* Let height adjust automatically */
    max-height: 327px; /* Keeps them consistent in grid */
    object-fit: contain; /* Show entire image without cropping */
    background-color: #000; /* Letterbox effect for non-square fits */
    display: block;
}

/* Ad content */
.ad-content {
    padding: 20px;
    text-align: center;
}

.ad-item h4 {
    margin-top: 10px;
    margin-left: 10px;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.ad-item p {
    margin-left: 10px;
    margin-bottom: 20px;
    color: var(--light-text);
}

/* Ad Type Indicators */
.ad-type-event {
    border-top: 4px solid #4CAF50;
}

.ad-type-promo {
    border-top: 4px solid #FFC107;
}

.ad-type-general {
    border-top: 4px solid #9C27B0;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: #3a56d4;
    transform: translateY(-3px);
}
#installBtn {
  background: var(--primary-color);
  color: white;
  display: inline-block;
  margin: auto;
  border: none;
  padding: 12px 20px;
  border-radius: 23px;
  margin-top: 0px;
  margin-bottom: 0px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s;
}
#installBtn:hover {
  background: purple;
}


/* Responsive Breakpoints */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
    }
    
    
    .slide-content {
        padding: 20px;
    }
    
}

@media (max-width: 768px) {
     .hero {
        height: 80vh; /* Slightly smaller height on mobile */
        min-height: 300px; /* Even smaller minimum height */
    }
    
    .hero-content {
        padding-top: 15px;
        width: 100%; /* Take up more width on mobile */
    }
    
    /* Adjust font sizes inside hero-content if needed */
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    .studio-card {
        min-width: 240px;
    }
    
    .studio-image {
        height: 200px;
    }
    
    .studio-info {
        padding: 15px;
    }
    
    .studio-info h3 {
        font-size: 1.1rem;
    }
     /* View More Button */
.view-more {
    text-align: center;
    margin: 30px 0;
    display: block;
    width: 25%;
}
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        margin: 20px 0;
    }
     .news-card {
        min-width: 240px;
    }
    
    
    .ad-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
     .ad-item img {
        max-height: 350px; /* Keeps layout balanced on mobile */
    }
    .prev-slide, .next-slide {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .image-section {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-content {
        width: 90%;
        padding: 10px;
    }
}

@media (max-width: 576px) {
     .hero {
        height: 70vh; /* Even smaller for very small devices */
        min-height: 250px;
    }
    
    .hero-content {
        padding: 10px;
    }
    
    .slider-dots {
        bottom: 10px; /* Move dots up slightly */
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    .ad-section {
        margin: 20px 0;
    }
    
    h2 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .studio-card {
        min-width: 200px;
    }
    
    .studio-image {
        max-width: 100%;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    /* View More Button */
.view-more {
    text-align: center;
    margin: 30px 0;
    display: block;
    width: 100%;
}

    
     
    
    .ad-grid {
        grid-template-columns: 1fr;
    }
    
    .ad-item img {
        height: 300px;
    }
    
    .image-section {
        grid-template-columns: 1fr;
    }
    
    .image-box {
        aspect-ratio: 16/16;
    }
}

}

/* Animation for slider */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.news-slide {
    animation: fadeIn 0.5s ease;
}