:root {
    --primary-color: #d2b676;
    --secondary-color: #faf9f6; 
    --primary-text-color: #333333;
    --text-color: #333333; 
    --button-bg: #b89e5f;
    --button-hover: #91742a;
    --main-color: #5a3e2b;
    --bg-color: #fdf6ec;
    --primary-text-color: #4e342e;
    --accent-color-dark: #856113;
    --footer-bgColor: #e7c6b6;
    --snd-bg-color:  #fdf0d5;
    --bg-t-color:#faebdd;
}
  
.dark-mode {
     --nav-bgcolor:#a58b52; 
     --bg-shade:  #2a2723;
     --img-bg-shade:rgba(80, 78, 78, 0.5); 
     --primary-text-color: #fdf0d5; 
     --footer-bgColor:#a58672;
}

body {
    background: var(--secondary-color);
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--text-color);
    padding-top: 80px;
}

header {
    background: var(--button-bg);
    text-align: center;
    padding: 2rem 1rem 1rem 1rem;
}

h1 {
    margin: 0 0 0.5rem 0;
    margin-top: 30px;
    font-size: 8rem;
}

p{
    font-size: 2rem;
    margin: 0;
}
#pdf-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    padding: 2rem;
}

.pdf-item {
    background: #f0e2c6;
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(80,80,80,0.07);
    padding: 1.2rem 1.5rem;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease-in-out;
}
.pdf-item:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    transform: translateY(-5px);
    border-color: var(--button-hover);
}
.pdf-title {
    font-weight: 600;
    margin-bottom: 0.8rem;
    text-align: center;
}

.open-btn {
    background: var(--button-bg);
    color: white;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.open-btn:hover {
    background: var(--button-hover);
}

@media (max-width: 800px) {
    #pdf-list {
        flex-direction: column;
        gap: 1.2rem;
        padding: 1rem;
    }
    .pdf-item {
        min-width: 80vw;
    }
}


/* ===== Navigation Section ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 5px solid var(--primary-text-color);
}
/* Back button */
nav .back-button {
    background: var(--primary-color);
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--primary-text-color);
    margin-right: 15px;
    transition: color 0.3s;
}
nav .back-button:hover {
    color: var(--accent-color-dark);
}

nav .logo a {
    color: var(--primary-text-color);
    font-size: 35px;
    font-weight: 600;
    text-decoration: none;
}

nav #mitra {
    color: var(--accent-color-dark);
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 5px;
}

nav ul li a {
    color: var(--primary-text-color);
    font-size: 18px;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

nav ul li a:hover,
nav ul li a#active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--primary-text-color);
}

nav #mode {
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

nav #mode:hover {
    transform: scale(1.1);
}

nav .menu-btn {
    display: none;
}

nav #click {
    display: none;
}



 @media (max-width: 1000px) {
     .contact-section {
         flex-direction: column;
         align-items: center;
         padding: 10px;
     }

     .contact-section .contact-item {
         flex: 0 0 50%;
         max-width: 50%;
         margin-bottom: 20px;
     }

     .social-media {
         justify-content: center;
         gap: 10px;
     }

     .footer-links {
         text-align: center;
         font-size: 14px;
         margin-top: 20px;
     }
     
 }

 @media only screen and (max-width: 772px) {
     .contact-section .contact-item {
         flex: 0 0 100%;
         max-width: 100%;
         margin-bottom: 20px;
     }

     .social-media a {
         width: 3rem;
         height: 3rem;
         font-size: 1.5rem;
         margin: 1.5rem 0.5rem 0 0;
     }

     .footer-links {
         padding: 15px;
         font-size: 13px;
     }

 }

 @media only screen and (max-width: 450px) {
     .contact-section {
         flex-direction: column;
         align-items: center;
     }

     .contact-section .contact-item {
         flex: 1 1 100%;
         max-width: 100%;
         padding: 10px;
     }

     .contact-section .contact-item-inner {
         width: 90%;
         justify-items: center;
     }

     .social-media {
         flex-wrap: wrap;
         justify-content: center;
     }

     .footer-links{
      font-size: medium;
     }

     .social-media a {
         width: 2.8rem;
         height: 2.8rem;
         font-size: 1.3rem;
         margin: 1rem 0.5rem 0 0;
     }

     .footer-links {
         text-align: center;
         padding: 10px;
         font-size: 12px;
         line-height: 1.4;
     }
 }

 @media only screen and (max-width: 275px) {
     .Contact-heading {
         font-size: 1.2rem;
         margin-bottom: 3%;
     }

     .contact-section .contact-item-inner {
         padding: 20px 10px;
         width: 95%;
     }

     .contact-section .contact-item-inner i {
         font-size: 20px;
     }

     .contact-section .contact-item-inner a span,
     .contact-section .contact-item-inner span {
         font-size: 14px;
         margin: 10px 0 5px;
     }

     .contact-section .contact-item-inner a p,
     .contact-section .contact-item-inner p {
         font-size: 14px;
         line-height: 22px;
     }

     .social-media a {
         width: 2.5rem;
         height: 2.5rem;
         font-size: 1.2rem;
         margin: 1rem 0.5rem 0 0;
     }

     .footer-links {
         font-size: 11px;
         padding: 8px;
     }
 }