/* General Body Styling */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
    background: #f7f8f3;
    background-size: cover;
}

/* Body Styles */
body {
    font-family: Arial, sans-serif;
    text-align: center;
    width: 100%; /* Ensure width is 100% */
    
}

html {
    overflow-y: scroll;  /* Always reserve scrollbar space */
    overflow-x: hidden; 
}



@font-face {
    font-family: 'shrikhand';
    src: url('../fonts/shrikhand.regular.eot');
    src: url('../fonts/shrikhand.regular.eot?#iefix') format('embedded-opentype'),
         url('../fonts/shrikhand.regular.ttf') format('opentype');
}


@font-face {
    font-family: 'marcellus';
    src: url('../fonts/marcellus.regular.eot');
    src: url('../fonts/marcellus.regular.eot?#iefix') format('embedded-opentype'),
         url('../fonts/marcellus.regular.ttf') format('opentype');
}


/* Header Styles */
header {
    font-family: 'shrikhand', sans-serif;
    background: #f7f8f3;
    padding: 20px;
    font-size: 24px;
    
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);/* gentle shadow */
    margin-bottom: 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
}

h1 {
    font-weight: normal;
}


/* Category Menu - Desktop */
/* Dropdown content - Adjust Z-Index */
#category-menu .dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 10px);  /* Add space below the menu item */
    left: 0;
    min-width: 180px;
    background-color: transparent;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 200;  /* Ensure it is above the header */
}

/* Modify Header's Z-Index if necessary */
header {
    z-index: 100; /* Ensure the header is below the dropdown */
}

/* Hide scrollbar in WebKit browsers */
#category-menu::-webkit-scrollbar {
    display: none;
}

/* Category Links */
#category-menu a {
    font-family: Arial, sans-serif;
    text-decoration: none;
    padding: 10px 20px;
    margin: 5px;
    font-weight: bold;
    font-size: 16px;
    color: #333; /* Default text color */
    border-radius: 5px;
    transition: background 0.3s ease, color 0.3s ease;
    display: inline-block;
}

/* Hover and Active states */
#category-menu a:hover {
    background: #dcdcdc; /* A darker grey */
    color: #000;  /* Black text on hover */
}
#category-menu a.active {
    background: #dcdcdc; /* A darker grey */
    color: #000;  /* Black text on selected item */
}

/* Container for each category with dropdown */
#category-menu .category-item {
    position: relative; /* Ensure parent is relative */
    display: inline-block;
}

/* Dropdown content */
#category-menu .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: #f7f8f3; /* Match body background */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Subcategory link styling */
#category-menu .dropdown-content a {
    display: block;
    padding: 10px 16px;
    color: #333;
    background: transparent; /* Inherits the dropdown background */
    text-align: left;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover effect for links */
#category-menu .dropdown-content a:hover,
#category-menu .dropdown-content a.active {
    background: #dcdcdc;
    color: #000;
    border-left: 3px solid #333;
}

/* Show dropdown on hover */
#category-menu .dropdown:hover .dropdown-content {
    display: block;
}

/* Optional: maintain background color when hovering over full dropdown */
#category-menu .dropdown-content:hover {
    background: #f7f8f3;
}

.logo {
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    height: 100px;  /* Adjust size as needed */
    width: auto;
    margin-right: 40px;
}



/* Menu Icon (for Mobile & Tablet) */
.menu-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    cursor: pointer;
    display: block;
    margin-right: 0;
     font-weight: bold;
}

/* Drawer (Mobile & Tablet) */
.drawer {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100vh; /* not 100% */
    background: linear-gradient(to bottom right, rgba(250, 235, 215, 0.6), rgba(250, 235, 215, 0.8));
    backdrop-filter: blur(5px); /* Matches body */
    -webkit-backdrop-filter: blur(5px); /* For Safari */
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    padding-top: 60px;
    transition: 0.3s;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.drawer.open {
    left: 0;
}

/* Overlay to Close Drawer When Clicking Outside */
#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

#overlay.active {
    display: block;
}

/* Drawer Links */
.drawer a {
    text-decoration: none;
    padding: 15px 20px;
    color: #000;
    font-size: 18px;
    transition: background 0.3s ease, color 0.3s ease;
    background: transparent;
}

.drawer a.heading-link {
    border-bottom: 1px solid #ddd;
    margin-bottom: 5px;
    font-weight: bold;
}

.drawer a.contact-btn {
    font-weight: bold;
}

.drawer a:hover,
.drawer a.active {
    background: #fff;
    color: #000;  /* Black text on selected item */
}


.accordion-header,
.accordion-header:focus,
.accordion-header:active,
.accordion-header:visited {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}


.accordion-item {
    border-bottom: 1px solid #ddd;
    padding: 0;
    margin-bottom: 5px;
}

.accordion-header {
    font-weight: bold;
    cursor: pointer;
    padding: 10px 15px;
    background-color: transparent;
    color: #000;
    transition: background 0.3s ease, color 0.3s ease;
    text-align: center;
    justify-content: center;
}

.accordion-header:hover,
.accordion-header.active {
    border: none;          /* Removes any border */
    box-shadow: none;      /* Removes any glow or outline */
    background-color: #fff;
    color: #000;
}


.accordion-content {
    text-align: center;
    display: none;
    flex-direction: column;
    padding: 5px 15px 10px;
    background-color: transparent;
    animation: fadeIn 0.3s ease;
}

.accordion-content.show {
    display: flex;
}

.accordion-content a {
    padding: 8px 0;
    color: #333;
    font-size: 16px;
    border-left: 3px solid transparent;
    transition: border-color 0.3s, color 0.3s;
}

.accordion-content a:hover,
.accordion-content a.active {
    color: #000;
    font-weight: 600;
    border-left: 3px solid #333;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
.accordion-header:focus {
    outline: none;
}

/* Close Button in Drawer */
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 25px;
    cursor: pointer;
    color: #333;
}

.template-detail {
    display: inline-block;
    max-width: 600px;
    width: auto;
    margin: 20px auto;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    background: linear-gradient(180deg, 
    rgba(0, 0, 0, 1) 0%,         /* Black with 80% opacity */
    rgba(75, 59, 0, 0.7) 40%,      /* Dark gold/olive with 70% opacity */
    rgba(200, 145, 22, 0.5) 100%   /* Gold with 60% opacity */
   );
    /*background-image: url('/Invitation/static/images/background.jpg');  /* Replace with the correct image path */ /* Add the background image */
    /* background-size: cover;  /* Ensure it covers the full container */
    /* background-position: center;  /* Center the image */
    /* background-repeat: no-repeat;  /* Ensure the image doesn't repeat */

    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}


/* Image Styling */
.image-container {
    display: inline-block; /* Wraps tightly around the image */
    padding: 5px; /* Small padding */
    border-radius: 8px;
}

.image-container img {
    display: block; /* Avoids inline spacing issues */
    max-width: 100%; /* Ensures responsiveness */
    height: auto; /* Maintains aspect ratio */
}

.template-info h2 {
    font-size: 22px;
    color: #222;
    margin: 10px 0 10px 0;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.template-info p {
    font-size: 18px;
    color: #222;
    font-weight: bold;
    margin: 10px 0 0 0;  /* Increased top margin for space before price */
    text-align: center;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5); 
}


/* Order Button */
.order-btn {
    display: block;
    background-color: #df9db0; 
    color: #000;  /* Black text */
    font-size: 16px;
    border: none;
    font-weight: normal;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    width: fit-content;
    margin: 10px auto 10px auto;
    white-space: nowrap;
    text-decoration: none;
}

/* Hover effect */
.order-btn:hover {
    background-color: #df9db0; /* Same hover color */
    transform: scale(1.03);
}

h1 {
    flex-grow: 1; /* Allow the heading to take up available space */
}



/* The entire box (button, arrow, icons) */
.social-box {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: transparent;
    border: none;
    box-shadow:none;
    align-items: center;
    gap: 10px;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column-reverse; 
}

/* When shown */
.social-box.show {
    display: flex;
    opacity: 1;
}


/* Icon images inside */
.icon-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: background 0.3s;
}

/* Enquire button (now inside box) */
.enquire-btn {
    position: static; /* Remove fixed positioning */
}

/* Arrow icon (now inside box) */
.arrow-icon {
    margin-top: -15px;
    width: 30px;
    height: 30px;
    object-fit: contain;
    user-select: none;
    cursor: default;
    display: none;
}

/* Social icons layout */
.header-contact-social-inline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}


#contactDetails {
    transition: all 0.3s ease-in-out;
}

/* Responsive Design for Laptops */
@media (min-width: 840px) {
    /* Show Category Menu on Laptops */
    #category-menu {
        display: block;
    }


    body {
        padding-top: 250px;
    }

    /* Hide Menu Icon and Drawer */
    .menu-icon,
    .drawer {
        display: none;
    }
    .logo {
        height: 250px;
        top: 45%; /* Adjust this value as needed */
    }
}

@media (max-width: 840px) {
    .drawer {
        padding-top: 80px;
    }

     body {
        padding-top: 130px;
    }


    header {
        font-size: 13px;
        text-align: center;
        padding: 20px; /* Adjust padding as needed */
        position: fixed;
        font-weight: normal;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        display: flex;
        justify-content: center; 
        justify-content: flex-start; /* Space between items */
        align-items: center; /* Center items vertically */
        min-height: 60px;
        white-space: nowrap;
        overflow: hidden; /* Prevent overflow */
    }

    .logo {
        height: 120px; /* Adjust height for smaller screens */
        width: auto; /* Maintain aspect ratio */
        z-index: 2000; /* Ensure it appears above other elements */
        flex-shrink: 0; /* Prevent the logo from shrinking */
        margin-left: 20px; /* Add margin to the left of the logo */
        margin-right: 20px;
    }
    
    .menu-icon {
        top: 6px;
        left: 15px;
        transform: none;
        z-index: 1001;
        margin-top: 30px; /* move menu icon down */
        margin-right: 20px; /* Add margin to the right of the menu icon */
    }

    h1 {
        flex-grow: 0.6; /* Allow the heading to take up available space */
        text-align: center; /* Center the heading text */
        margin: 0; /* Remove default margin */    
     
    }

    #category-menu {
        display: none; /* Ensure the category menu is not shown */
    }
    .drawer {
        display: flex; /* Ensure the drawer is displayed */
    }

    .template-detail {
        width: 90%;              /* Slim but responsive */
        max-width: 300px;        /* Maintain the slim look like desktop */
        padding: 10px;           /* Slightly more padding than 6px if needed */
        margin: 10px auto;
        box-sizing: border-box;  /* Important for consistent sizing */
    }

    .template-info h2 {
        font-size: 20px;
        margin-bottom: 4px;
    }

    .template-info p {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .order-btn {
        font-size: 18px;
        padding: 6px 12px;
        margin-bottom: 10px;
    }
}


@media (max-width: 768px) {
    /* Enquire Button */
   
    .arrow-icon {
        width: 20px;
        height: 20px;
    }


    /* Social box wrapper */
    .social-box {
        display: inline-block;
        bottom: 10px;
        right: 5px; 
    }

    .icon-img {
        width: 35px;
        height: 35px;
    }

}
