/* Global Variables */

:root {
    --bg-color: black;
    --bg-color-secondary: #1a1a1a;
    --bg-color-tertiary: #333;
    
    --text-color: white;
    --text-color-secondary: #ccc;
    --text-color-tertiary: #aaa;
    
    --border-color: #444;
    --border-color-secondary: #fff;
    
    --hover-color: #555;
    
    --transition-speed: 0.3s;
    --box-shadow: 0px 4px 20px rgba(255, 255, 255, 0.1);
}

/* Global Resets */
body {
    margin: 0;
    font-family: 'Georgia', serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}

@media(min-width:768px){
    body{max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;}}

h1 {
    font-size: 3rem;
    margin-bottom: unset;
}

h2 {
    font-size: 2rem;
    margin-bottom: 50px;
}

h3 {
    text-align: center;
    font-size: 1.2em;
    margin-top: 15px;
    color: var(--text-color);
}

.section-divider {
    width: 90%;
    height: 1px;
    background-color: gray;
    margin: 30px auto;
    opacity: 0.5;
}

/* ---------------------------------------------Intro Section------------------------------------------- */
.intro-split {
    display: flex;
    justify-content: space-between;
    padding: 60px 40px;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards ease-out;
    
}

.intro-split .intro-text {
    flex: 1;
    text-align: center;
}



.intro-split p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #ccc;
}

.intro-split .intro-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0px 4px 20px rgba(255, 255, 255, 0.1);
    object-fit: cover;
    max-height: 400px;
}


/* Animation */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .intro-split {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }

    .intro-split .intro-text, .intro-split .intro-image {
        margin-bottom: 20px;
    }


    .intro-split p {
        font-size: 1rem;
    }

    .intro-split .intro-image img {
        max-height: 300px;
    }
}

.scroll-arrow {
    position: absolute;
    bottom: 20px; /* Adjust as needed to place it correctly */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px; /* Space between arrow lines */
}

.scroll-arrow span {
    display: block;
    width: 20px;
    height: 20px;
    border-right: 2px solid #fff; /* White color for the arrow */
    border-bottom: 2px solid #fff;
    transform: rotate(45deg); /* Creates the arrowhead */
    animation: scroll-arrow-animation 1.5s infinite ease-in-out;
}

.scroll-arrow span:nth-child(2) {
    animation-delay: 0.3s;
}

.scroll-arrow span:nth-child(3) {
    animation-delay: 0.6s;
}

/* Animation for the arrowhead */
@keyframes scroll-arrow-animation {
    0% {
        opacity: 0;
        transform: translateY(-10px) rotate(45deg);
    }
    50% {
        opacity: 1;
        transform: translateY(0) rotate(45deg);
    }
    100% {
        opacity: 0;
        transform: translateY(10px) rotate(45deg);
    }
}
/* ---------------------------------------------Latest Article ------------------------------------------- */



/* Recent Articles Section */
#latest-blog {
    padding: 60px 20px;
    text-align: center;
}

#latest-blog p {
    text-align: justify;
    font-size: 1.1rem;
    color: #ccc;
}

#latest-articles-grid {
    /* Use CSS Grid for a clean, responsive layout */
    display: grid;
    /* This will create three columns of equal width for screens that can fit them. */
    /* On smaller screens, the cards will wrap automatically. */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px; /* Increase the gap for better spacing */
    padding: 20px;
    max-width: 1200px; /* Set a reasonable max-width for the entire grid */
    margin: 0 auto; /* Center the grid container on the page */
}

/* Individual Article Card */
.article-card {
    display: flex;
    flex-direction: column;
    text-align: left;
    background-color: #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.article-card .article-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Ensures the image covers the card area */
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.article-card h3 {
    padding: 15px 15px 0;
    color: #fff;
}

.article-card p {
    padding: 0 15px;
    color: #ccc;
    font-size: 1rem;
    flex-grow: 1; /* Pushes the 'Read More' button to the bottom */
}

/* Read More Button */
.read-more {
    display: inline-block;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 20px;
    background-color: #333;
    margin: 15px;
    transition: background-color 0.3s ease;
    text-align: center;
}

.read-more:hover {
    background-color: #555;
}



/*---------------------------------------------------- Explore by Category --------------------------------------*/

/* Categories Section */
#categories {
    padding: 20px 20px;
    text-align: center;
    
   
}



#categories p {
    font-size: 1.1rem;
    color: #ccc;
    text-align: justify;
    
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-content: center;
}

.category-item-container {
    position: relative;
    max-width: 250px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.category-item-container:hover {
    transform: scale(1.05);
}

.category-item-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.category-link {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: #333;
    color: #fff;
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 5px;
    text-decoration: none;
  
}

.category-link:hover {
    background-color: #555;
}

/* Responsive Design */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}



#category-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    padding: 20px;
}

.category-item-container.selected {
    border: 2px solid #ffffff; 
    box-shadow: 0px 4px 20px rgba(255, 255, 255, 0.5); /* Glow effect */
    transform: scale(1.1); /* Slightly enlarge the selected category */
}
.article-card {
    background-color: transparent;
    border: 1px solid #444;
    padding: 20px;
    border-radius: 10px;
    transition: border-color 0.3s ease, transform 0.3s ease;
    
}

.article-card:hover {
    border-color: white;
    transform: translateY(-5px);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}



p {
    font-size: 1em;
    margin: 10px 0;
    color: #aaa;
}

.read-more {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}

/* Styling for smaller screens */
@media (max-width: 768px) {
    #category-articles-grid {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .article-card {
        padding: 15px;
    }



    p {
        font-size: 0.95em;
    }
}


/* Additional Mobile-Friendly Enhancements */
@media (max-width: 480px) {
    .article-card {
        padding: 15px;
        border-radius: 8px; /* Slightly smaller rounded corners */
    }



    p {
        font-size: 0.9em;
    }

  

    .read-more {
        font-size: 0.85em;
        padding: 5px 10px; /* Adjust padding for the read more link */
    }
}
@media (max-width: 768px) {
    .article-card p {
        display: -webkit-box;
        -webkit-line-clamp: 4; /* Show only 2 lines */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
    }
}




/*--------------------------------------------------------Instagram Section--------------------------------------------*/
/* Social Feed Section */
.social-feed {
    padding: 20px 20px;
    background-color: #000; /* Black background */
    text-align: center;
}

.social-feed .icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}



.feed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns for all screen sizes */
    gap: 10px; /* Space between feed items */
    justify-content: center;
    align-items: center;
}

.feed-item {
    position: relative;
    width: 100%; /* Grid will control sizing */
    aspect-ratio: 1 / 1; /* Ensures the item is a square */
    overflow: hidden;
    border-radius: 4px; /* Subtle rounding for a clean look */
    background-color: #222; /* Placeholder background */
}

.feed-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the square */
    transition: transform 0.3s ease;
}

.feed-item:hover img {
    transform: scale(1.05); /* Subtle zoom-in effect on hover */
}

.social-follow-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    background-color: transparent; /* Transparent button */
    color: #fff; /* White text for minimal style */
    font-size: 1rem;
    font-weight: bold;
    border: 2px solid #fff; /* Simple border for the button */
    border-radius: 50px; /* Rounded button */
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.social-follow-button:hover {
    background-color: #fff; /* Invert on hover */
    color: #000; /* Black text on hover */
}

 

/*-------------------------------------------------------About Us Section----------------------------------------*/
.about-us {
    padding: 20px 20px;
   
    color: #fff;
    text-align: justify;
}

.about-us h2 {
    text-align: center;
}

.about-us p {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}


/*------------------------------------------------------Additional Styling--------------------------*/


.category-filter-container {
    overflow: hidden;
    padding: 1rem;
    background-color: #000;
}

.scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    padding-bottom: 1rem;
}

.category-list {
    display: flex;
    gap: 1rem;
    padding: 0;
    margin: 0;
    list-style-type: none;
}

.category-item {
    flex-shrink: 0;
    color: #fff;
    background-color: #333;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    white-space: nowrap;
    opacity: 0.5;
    font-size: 0.9rem;
    transition: opacity 0.3s, background-color 0.3s;
}

.category-item.active,
.category-item:hover {
    opacity: 1;
    cursor: pointer;
    background-color: #444;
}


.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Content Container with Flexbox Layout */
.content-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    justify-content: center;
}

.content-item {
    position: relative;
    background-color: #333;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    flex: 1 1 40%; /* Full width on small screens */
    max-width: 100%;
    
}

.content-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the container, cropping if necessary */
}

.content-item h3 {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* Semi-transparent overlay for readability */
    margin: 0;
    color: #fff;
   
    text-align: center;
    padding: 0.5rem; /* Add padding for the text */
}

/* Responsive layout adjustments */
@media (min-width: 768px) {
    .content-item {
        flex: 1 1 45%; /* Show 2 items per row on medium screens */
    }
}

@media (min-width: 1024px) {
    .content-item {
        flex: 1 1 20%; /* Show 3 items per row on larger screens */
    }
}

@media (min-width: 1440px) {
    .content-item {
        flex: 1 1 20%; /* Show 4 items per row on extra-large screens */
    }
}





#discover-section{
    padding:20px 20px;
}
  
  .discover-section-title {
    text-align: center;
    
   
  }
  
  .discover-slider {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
  }
  
  .discover-slider::-webkit-scrollbar {
    height: 8px;
  }
  
  .discover-slider::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
  }
  
  .discover-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 250px;
    border-radius: 1.5rem;
    overflow: hidden;
    text-decoration: none;
    background-color: #111;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    position: relative;
  }
  
  .discover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  }
  
  .discover-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
  }
  
  .discover-card:hover img {
    transform: scale(1.05);
  }
  
  .discover-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
  }
  
  .discover-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  .discover-card:hover .discover-card-title {
    opacity: 1;
    transform: translateY(0);
  }
  
  
  @media (max-width: 600px) {
    .discover-card {
      width: 140px;
      height:200px /* smaller cards on phones */
    }
  }
  @media (max-width: 768px) {
    .discover-card-title {
      opacity: 1 !important;
      transform: translateY(0) !important;
    }
  }

  .filmstrip {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 20px 20px;
  }
  
  .filmstrip-track {
    display: flex;
    gap: 1.5rem;
    animation: scroll-left 60s linear infinite;
  }
  
  @keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
  
  .filmstrip-item {
    position: relative;
    border: 3px solid rgba(255,255,255,1);
    box-shadow: 0px 4px 20px rgba(255, 255, 255, 0.6);
    flex: 0 0 auto;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
  }
  
  .filmstrip-item img {
    
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
  }
  

.film-strip-p  {
 
    margin-bottom: 30px;
    font-size: 1em;
    
}
