

/* --- THE GRID LAYOUT --- */
.main-container {
    display: grid;
    width: 100%;
    max-width: 1200px;
    height: 90vh; /* Increased slightly to fit footer */
    gap: var(--gap-size);
    
    /* Updated Grid Rows:
       Row 1: Header (80px)
       Row 2: Hero (2fr)
       Row 3: Info/Gallery (1.2fr)
       Row 4: Footer (50px) <--- NEW ROW
    */
    grid-template-columns: 1.5fr 1fr 1.2fr;
    grid-template-rows: 80px 1.8fr 1.2fr 80px; 
    
    grid-template-areas: 
        "header header header"
        "hero   hero   sidebar"
        "info   gallery sidebar"
        "footer footer footer";
        
    position: relative;
}
a{
    text-decoration: none;
    color: var(--text-color);
}

/* --- GENERIC CARD STYLING --- */
.hero-card, .sidebar-card, .info-card, .gallery-card {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    display: flex;
}

/* 1. HEADER */
/* --- UNIVERSAL DESKTOP HEADER (Paste this in all CSS files) --- */


/* --- SPECIFIC AREA STYLING --- */


/* 2. MAIN HERO */
/* .hero-card {
    grid-area: hero;
    flex-direction: row;
    justify-content: space-between;
} */

.hero-card {
    grid-area: hero;
    background-image: url('../assets/images/hero-Iran.png');
    background-size: cover;      /* Fills the entire area */
    background-position: center; /* Keeps the focus in the middle */
    background-repeat: no-repeat;
    color: var(--bg-color); 
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); 
}

.hero-text h1 {
    font-size: 3rem;
    line-height: 1.1;
    color: var(--text-color);
    margin-bottom: 10px;
    font-family: 'Hidayatullah', sans-serif;
    text-shadow: none;
    margin-top: 60px;
    margin-left: 30px;

}
.hero-text p {
    font-size: 0.6rem;
    line-height: 1.4;
    max-width: 300px;
    margin-left: 30px;
    margin-bottom: 60px;
}

.hero-image-placeholder {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-text span {
    color: var(--card-bg);
}

.icon {
    font-size: 4rem;
    opacity: 0.5;
}

/* The decorative corner from your sketch (bottom left of hero) */
.decorative-corner {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 80px;
    border-top: 10px solid var(--bg-color);
    border-right: 10px solid var(--bg-color);
    border-top-right-radius: 100%;
}

/* 3. SIDEBAR */
.sidebar-card {
    grid-area: sidebar;
    justify-content: center;
    align-items: center;
    background-image: url('../assets/images/Shairan cafe - bun muska.jpg');
    background-size: cover;      /* Fills the entire area */
    background-position: center; /* Keeps the focus in the middle */
    background-repeat: no-repeat;
}

/* 4. INFO BOX (Bottom Left) */
.info-card {
    grid-area: info;
    flex-direction: column;
    justify-content: space-between;
    background-image: url('../assets/images/bg-3.png');

}

    .info-content span {
        color: var(--card-bg);
    }

.mini-action {
    position: absolute;
    bottom: -10px;
    right: -10px;    
    height: 30%;
    width: 50%;
    border-bottom-left-radius: 0px;
    border-radius: 30px;
    border: 10px solid var(--bg-color);
    transition: 0.3s;
    background-image: url('../assets/images/bg-3.png');

}
.mini-action:hover {
        transform: scale(1.05);

}
.mini-action span{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-weight: bold;

}
/* 5. GALLERY BOX (Bottom Middle) */
.gallery-card {
    grid-area: gallery;
    position: relative;
    overflow: hidden;
    
    /* ADD THESE LINES */
    width: 100%;       /* Fills the grid column width */
    height: 100%;      /* Fills the grid row height */
    padding: 0;        /* Ensures image touches the very edge */
    background: transparent; /* Removes any default background color */
}

/* Ensure the slideshow container also fills the parent */
/* --- GALLERY SLIDESHOW --- */
.slideshow-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden; /* Important so the zoom doesn't spill out */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    
    /* GSAP will handle opacity, so we start hidden */
    opacity: 0; 
    /* Remove the old 'transition' property here! */
}
/* 6. FLOATING CIRCLE BADGE */
.floating-badge {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 12px solid var(--bg-color);
    border-radius: 50%;
    background-image: url('../assets/images/Bg.jpg');

    /* ----- THE KEY CHANGE ----- */
    background-origin: border-box; /* Tells the image to start from the outer edge of the border */
    /* -------------------------- */

    background-size: cover;      /* Now covers the entire area including border */
    background-position: center;
    /* ... rest of your styling ... */
    top: calc(5px + (81vh - 80px) * (2/3));
    left: calc((100% / 3.92) * 2.5);
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color);
    font-size: 0.8rem;
    z-index: 10;
    cursor: pointer;
}

.info-content h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-align: left;
    margin: 30px 30px 0px 30px;
    font-family: 'Hidayatullah', sans-serif;
}
.info-content p {
    font-size: 0.5rem;
    line-height: 1.4;
    color: var(--text-color);
    text-align: left;
    width: 50%;
    margin-left: 30px;
}




@media (max-width: 768px) {
    
    /* 1. GLOBAL RESET (Fixes the "Out of Viewport" width issue) */


    /* 2. MAIN GRID CONTAINER */
    .main-container {
        display: grid;
        height: auto;
        min-height: 100%;
        width: 100%;
        box-sizing: border-box;
        
        /* FIX: Added 'px' to gap, reduced padding slightly */
        padding-left: 20px; 
        gap: 10px;
        margin-top: 10px;
        
        /* UPDATED ROWS:
           Row 1: Hero (Changed to 35vh to fit screen better)
           Row 2: Gallery (220px)
           Row 3: Info Text (Auto - grows with text)
           Row 4: Info Button (60px)
           Row 5: Footer (Auto)
           Row 6: Spacer (90px)
        */
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 35vh 220px auto 60px auto;
        
        grid-template-areas: 
            "hero    hero"
            "gallery gallery"
            "info    sidebar" 
            "info    sidebar"
            "footer  footer"
            ".       .";
            
        position: relative;
    }

    /* --- HEADER (Hidden Wrapper) --- */
    .header-card {
        height: 0; padding: 0; margin: 0;
        pointer-events: none; overflow: visible;
        z-index: 9999; background: transparent; display: flex;
    }
    .logo-circle { display: none; }

    /* --- HERO CARD (First Block Fix) --- */
  /* --- HERO TEXT ADJUSTMENTS (Mobile) --- */
    .hero-text {
        width: 100%;
        
        /* ADJUST POSITION HERE */
        /* top | right | bottom | left */
        padding: 35px 20px 20px 25px; 
        
        /* Explanation:
           60px Top  -> Pushes it down
           40px Left -> Pushes it right 
        */
    }

    /* Reset margins so padding controls the position perfectly */
    .hero-text h1 { 
        font-size: 2rem; 
        line-height: 1.1;
        margin: 0 0 10px 0; 
    }

    .hero-text p {
        font-size: 0.4rem;
        line-height: 1.3;
        max-width: 90%; 
        margin: 0;
    }

    /* --- GALLERY --- */
    .gallery-card {
        grid-area: gallery;
        border-radius: var(--radius);
    }
    .slideshow-container img { border-radius: var(--radius); }

    /* --- INFO CARD (Text Layout Fix) --- */
    .info-card {
        grid-area: info;
        border-radius: var(--radius);
        padding: 0;
        display: flex; flex-direction: column; justify-content: space-between;
        position: relative; overflow: hidden; 
    }

    /* Reduced padding to fit small screens */
    .info-content {
        padding: 15px;
        padding-bottom: 0;
    }

    .info-content h1 {
        font-size: 1rem; /* Smaller Heading */
        margin: 0 0 5px 0; /* Reset margins */
    }
    
    .info-content p {
        font-size: 0.35rem; /* Tiny description text */
        width: 100%; /* Use full width */
        margin: 0;
    }
    .info-content span {
        color: var(--card-bg);
    }

    /* Info Button */
    .info-card a {
        display: block; width: 100%; height: 60px;
        z-index: 10; text-decoration: none; margin-top: auto;
    }
    .mini-action {
        position: relative !important; width: 50% !important; height: 100% !important;
        border-radius: var(--radius) !important; 
        border: 10px solid var(--bg-color) !important;
        display: flex; align-items: center; justify-content: center;
        left: 55% !important; bottom: -5% !important; margin: 0 !important;
    }
    .mini-action span { 
        color: var(--text-color); font-weight: 800; font-size: 0.9rem; text-align: center;
    }

    /* --- SIDEBAR --- */
    .sidebar-card {
        grid-area: sidebar;
        border-radius: var(--radius);
    }

    /* --- FLOATING BADGE (Position Fix) --- */
.floating-badge {
        display: flex;
        position: absolute;
        width: 70px;
        height: 70px;
        
        /* --- VERTICAL POSITION (Bottom of Slideshow) --- */
        /* Hero(35vh) + Gallery(220px) + Gap(10px) + TopPadding(10px) = 35vh + 240px */
        top: calc(30vh + 240px); 
        
        /* --- HORIZONTAL CENTER --- */
        /* Since padding-left is 20px and padding-right is roughly 10px */
        /* We add 5px to the center to compensate for the shift */
        left: calc(40% + 5px); 

        /* --- THE HALF-OVERFLOW MAGIC --- */
        /* This centers the badge on the line we calculated above */
        transform: translate(-50%, -50%);
        
        z-index: 50;
        border: 6px solid var(--bg-color);
        background-size: cover;
        box-shadow: none;
        
        /* Ensure it's not clickable if it covers buttons, 
           remove this line if the badge is a button */
        pointer-events: auto; 
    }
}