.nav-content  {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.nav-content ul {
    display: flex;
    gap: 50px;
}

.nav-content .middle ul li a {
    color: var(--text-main);
    font-weight: bold;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.25s ease;
}

.nav-content ul li a:hover {
    background-size: 100% 2px;
}

.nav-content .right p {
    font-family: "Aref Ruqaa Ink", serif;
    font-size: 20px;
}

.nav-content .left ul li a {
    color: var(--text-main);
    font-weight: bold;
    background-color: var(--coffee-light);
    border-radius: 17px;
    padding: 7px 10px;
    transition: 0.3s all ease-out;
}

.nav-content .left ul li a:hover {
    color: var(--bg-main);
    background-color: var(--coffee-dark);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--coffee-dark);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 50px;
}

.nav-buttons {
    display: flex;
    gap: 12px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-content {
        position: relative;
        justify-content: space-between;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        height: 100vh;
        background-color: var(--bg-main);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-menu .middle,
    .nav-menu .left {
        width: 100%;
        text-align: center;
    }
    
    .nav-menu .middle ul,
    .nav-menu .left ul {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .nav-menu .middle ul li a {
        font-size: 1.5rem;
    }
    
    .nav-menu .left ul li a {
        font-size: 1.2rem;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .nav-content .right p {
        font-size: 18px;
    }
    
    .hamburger span {
        width: 22px;
        height: 2.5px;
    }
    
    .nav-menu {
        width: 80%;
    }
    
    .nav-menu .middle ul li a {
        font-size: 1.3rem;
    }
}

main {
    min-height: 90vh;
}

.blur-bottom {
     position: relative;

  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,1) 80%,
    rgba(0,0,0,0) 100%
  );

  mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,1) 80%,
    rgba(0,0,0,0) 100%
  );
}

.hero-content {
    background-image: url(../assets/images/rmbgsmall.png);
    background-repeat: no-repeat; 
    background-size: cover; 
    z-index: 100;
}

.hero-content .content {
    display: flex;
    justify-content: space-evenly;
    min-height: 95vh;
    /* border: 1px solid black; */
}

.hero-content .left-content h1 {
        font-size: clamp(48px, 12vw, 150px);
    color: var(--coffee-dark);
    position: relative;
    top: 130px;
    overflow: hidden;
    z-index: -1;
    padding-top: 20px;
}

.hero-content .right-content .desc {
    /* border: 1px solid black; */
    position: relative;
    top: 130px;
    max-width: 800px;
    height: fit-content;
    padding-top: 20px;
}

.hero-content .right-content .desc p {
    line-height: 1.7;
    font-size: 25px;
}

.hero-content .right-content .desc p:first-child{
    font-family: "Reem Kufi", sans-serif;
    background-image: url(../assets/images/background.jpg);
    font-size: 55px;
    border: 1px solid black;
    text-align: center;
    padding: 7px 0;
    margin-bottom: 10px
}

.hero-content .right-content .desc p:nth-child(2){
    padding-bottom: 40px;
}

.hero-content .right-content .desc p:nth-child(3) {
    display: flex;
    justify-content: space-between
}

.hero-content .right-content .desc p:nth-child(3) a {
    font-weight: bold;
    color: var(--coffee-dark);
    font-size: 19px;
    border: 2px solid var(--coffee-dark);
    padding: 2px 17px;
    transition: 0.3s all ease-out;
}

.hero-content .right-content .desc p:nth-child(3) a:hover {
    color: var(--bg-main);
    background-color: var(--coffee-dark)
}

.second-section {
    margin-top: 100px;
}

.second-section .sec-section-content .sec-content .noted {
    display: flex;
    justify-content: space-between;
    /* border: 1px solid black; */
}

.second-section .sec-section-content .sec-content .noted .right-parag {
    width: 50%;
    font-size: 25px;
    /* border: 1px solid black; */
    padding: 50px 70px;
}

.second-section .sec-section-content .sec-content .noted .right-parag .nested-a {
    display: block;
    position: relative;
    top: 30px;
    color: var(--coffee-dark);
    transition: 0.3s all ease-in-out
}

.second-section .sec-section-content .sec-content .noted .right-parag .nested-a:hover {
    color: var(--coffee-light)
}

.second-section .sec-section-content .sec-content .noted .left-title {
    color: var(--coffee-dark);
    font-size: 140px;
    font-weight: bold;
    /* border: 1px solid black; */
}

.third-section {
    margin-top: 100px;
}

.editorial-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}

.editorial-intro {
    position: sticky;
    top: 120px;
}

.section-label {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: var(--coffee-medium);
    font-weight: 600;
    text-transform: uppercase;
}

.editorial-intro h2 {
    font-family: "Aref Ruqaa Ink", serif;
    font-size: 2.2rem;
    margin: 1rem 0;
    color: var(--coffee-dark);
}

.featured-title {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.editorial-intro .read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--coffee-dark);
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s all ease-in-out;
}

.editorial-intro .read-more:hover {
    color: var(--coffee-light)
}

.editorial-carousel {
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 10px 0;
    
    /* Hide scrollbar */
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.third-section .article-card {
    flex: 0 0 260px;
}

.third-section .card-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 12px;
}

.third-section .card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.third-section .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.third-section .article-card:hover .card-image img {
    transform: scale(1.05);
}

.third-section .card-image h3 {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 20px;
    
    /* font-family: "Aref Ruqaa Ink", serif; */
    font-size: 1.3rem;
    font-style: italic;
    color: white;
    font-weight: 700;
    line-height: 1.4;
    
    background: linear-gradient(
        rgba(0,0,0,0.3),
        rgba(0,0,0,0.3)
    );
    
    transition: background 0.3s ease;
}

.third-section .article-card:hover .card-image h3 {
    background: linear-gradient(
        rgba(0,0,0,0.5),
        rgba(0,0,0,0.5)
    );
}

.third-section .card-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main);
}

.carousel-nav {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 20px;
}

.third-section .nav-btn {
    width: 38px;
    height: 38px;
    border: 2px solid var(--coffee-dark);
    color: var(--coffee-dark);
    background: transparent;
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
    transition: all 0.3s ease;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.third-section .nav-btn:hover {
    background: var(--coffee-dark);
    color: var(--bg-main);
    transform: scale(1.05);
}

.third-section .nav-btn:active {
    transform: scale(0.95);
}

.horizontal-section {
    margin-top: 100px;
    padding: 60px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-family: "Aref Ruqaa Ink", serif;
    font-size: 2.5rem;
    color: var(--coffee-dark);
    margin: 0;
}

.gallery-section {
    margin-top: 100px;
    padding: 60px 0;
    
}

.gallery-container {
    display: flex;
    gap: 40px;
    align-items: start;
}

/* Gallery Grid Box (Right Side - takes more space) */
.gallery-grid-box {
    flex: 0 0 60%;
}

.gallery-title {
    font-family: "Aref Ruqaa Ink", serif;
    font-size: 1.3rem;
    color: var(--coffee-dark);
    margin-bottom: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Content Slider (Left Side - smaller) */
.gallery-content {
    flex: 1;
}

.section-title {
    font-family: "Aref Ruqaa Ink", serif;
    font-size: 1.3rem;
    color: var(--coffee-dark);
    margin-bottom: 20px;
}

.content-carousel {
    position: relative;
}

.content-track {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 600px;
    overflow-y: auto;
    padding-left: 5px;
    
    scrollbar-width: thin;
    scrollbar-color: var(--coffee-light) transparent;
}

.content-track::-webkit-scrollbar {
    width: 6px;
}

.content-track::-webkit-scrollbar-track {
    background: transparent;
}

.content-track::-webkit-scrollbar-thumb {
    background: var(--coffee-light);
    border-radius: 3px;
}

.content-card {
    display: flex;
    flex-direction: column;
}

.content-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: 10px;
}

.content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.content-card:hover .content-image img {
    transform: scale(1.05);
}

.content-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--coffee-dark);
    margin-bottom: 4px;
    line-height: 1.4;
}

.content-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.content-nav {
    display: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .gallery-container {
        flex-direction: column;
        gap: 50px;
    }
    
    .gallery-grid-box {
        flex: 1;
        width: 100%;
    }
    
    .gallery-content {
        width: 100%;
    }
    
    .content-track {
        flex-direction: row;
        max-height: none;
        overflow-y: hidden;
        overflow-x: auto;
        scrollbar-width: none;
    }
    
    .content-track::-webkit-scrollbar {
        display: none;
    }
    
    .content-card {
        flex: 0 0 280px;
    }
    
    .content-nav {
        display: flex;
        justify-content: flex-end;
        gap: 12px;
        margin-top: 20px;
    }
    
    .content-nav .nav-btn {
        width: 38px;
        height: 38px;
        border: 2px solid var(--coffee-dark);
        color: var(--coffee-dark);
        background: transparent;
        cursor: pointer;
        font-size: 1.4rem;
        line-height: 1;
        transition: all 0.3s ease;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .content-nav .nav-btn:hover {
        background: var(--coffee-dark);
        color: var(--bg-main);
    }
}

@media (max-width: 768px) {
    .gallery-section {
        margin-top: 60px;
        padding: 40px 0;
    }
    
    .gallery-title,
    .section-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .content-card {
        flex: 0 0 240px;
    }
}

@media (max-width: 480px) {
    .gallery-title,
    .section-title {
        font-size: 1.1rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .content-card {
        flex: 0 0 200px;
    }
    
    .content-title {
        font-size: 0.95rem;
    }
}

.horizontal-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 10px 0;
    
    /* Hide scrollbar */
    scrollbar-width: none;
}

.horizontal-track::-webkit-scrollbar {
    display: none;
}

.horizontal-section .article-card {
    flex: 0 0 280px;
    cursor: pointer;
}

.horizontal-section .card-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 16px;
}

.horizontal-section .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.horizontal-section .article-card:hover .card-image img {
    transform: scale(1.05);
}

.horizontal-section .card-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    text-align: center;
    font-family: "IBM Plex Sans Arabic", sans-serif;
    font-style: italic;
    font-weight: 600;
    letter-spacing: 0.05em;
    font-size: 1.1rem;
    color: white;
    background: linear-gradient(
        rgba(0,0,0,0.4),
        rgba(0,0,0,0.4)
    );
    line-height: 1.6;
}

.horizontal-section .card-title {
    font-family: "Aref Ruqaa Ink", serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--coffee-dark);
    margin: 0 0 12px 0;
}

.horizontal-section .card-desc {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-main);
    margin: 0 0 12px 0;
}

.horizontal-section .read-more {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--coffee-dark);
    text-decoration: none;
    transition: 0.3s all ease-in-out;
}

.horizontal-section .read-more:hover {
    color: var(--coffee-light)
}

.nav-btn {
    width: 42px;
    height: 42px;
    border: 2px solid var(--coffee-dark);
    color: var(--coffee-dark);
    background: transparent;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    transition: all 0.3s ease;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: var(--coffee-dark);
    color: var(--bg-main);
    transform: scale(1.05);
}

.nav-btn:active {
    transform: scale(0.95);
}

footer {
    margin-top: 120px;
    padding: 80px 0 40px;
    background-color: var(--coffee-cream);
    border-top: 2px solid var(--coffee-light);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.footer-main {
    text-align: center;
}

.footer-main h3 {
    font-family: "Aref Ruqaa Ink", serif;
    font-size: 2.5rem;
    color: var(--coffee-dark);
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 30px;
    line-height: 1.6;
}

.email-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    background-color: var(--coffee-light);
    color: var(--coffee-dark);
    /* border: 2px solid var(--coffee-dark); */
    border-radius: 17px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.email-link:hover {
    background-color: var(--coffee-dark);
    color: var(--bg-main);
}

.email-link i {
    font-size: 1.2rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--coffee-light);
}

.copyright {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* border: 2px solid var(--coffee-dark); */
    background-color: var(--coffee-light);
    border-radius: 50%;
    color: var(--coffee-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link:hover {
    background-color: var(--coffee-dark);
    color: var(--bg-main);
}

/* Responsive */
@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-main h3 {
        font-size: 2rem;
    }
}
