/* ==========================
   AIFOF OFFICIAL WEBSITE
   GLOBAL CSS
========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}


/* ================= HEADER ================= */

.header {
    background: #0b5d1e;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.logo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
}


/* ================= NAVIGATION ================= */

nav {
    background: #0a4d1c;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 15px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 10px 18px;
    font-weight: bold;
    transition: 0.3s;
}

nav a:hover {
    background: #ffffff;
    color: #0a4d1c;
    border-radius: 5px;
}

.header nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
    align-items: center;
}

.nav ul li a {
    color: #0b5d1e;
}

.header nav ul li a {
    color: white;
}

.header nav ul li a:hover {
    color: #ffd54f;
}


.notice-board marquee a.notice-link {
    color: #0b5d1e;
    text-decoration: underline;
    font-weight: bold;
    margin: 0 5px;
}

.notice-board marquee a.notice-link:hover {
    color: #d40000;
}


/* ================= HOME BANNER ================= */

.banner {
    width: 100%;
}

.banner img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}


/* ================= ABOUT SECTION ================= */

.about {
    padding: 70px 8%;
    background: #ffffff;
    text-align: center;
}

.about h2 {
    color: #0b5d1e;
    font-size: 38px;
    margin-bottom: 25px;
}

.about p {
    max-width: 1000px;
    margin: auto;
    font-size: 18px;
}


/* ================= ABOUT BOXES ================= */

.about-boxes {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .15);
    transition: .3s;
}

.box:hover {
    transform: translateY(-8px);
}

.box h3 {
    color: #0b5d1e;
    margin-bottom: 15px;
}

.box p {
    font-size: 16px;
}


/* ================= OFFICE BEARERS ================= */

.office {
    padding: 70px 8%;
    background: #ffffff;
    text-align: center;
}

.office h2 {
    color: #0b5d1e;
    font-size: 36px;
    margin-bottom: 15px;
}

.office-subtitle {
    color: #666;
    margin-bottom: 35px;
}

.office-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.card {
    background: white;
    border-top: 5px solid #0b5d1e;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .15);
    transition: .3s;
}

.card:hover {
    transform: translateY(-8px);
}

.card h3 {
    color: #0b5d1e;
    margin-bottom: 10px;
}

.card h4 {
    margin-bottom: 8px;
}

.view-all-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 25px;
    background: #0b5d1e;
    color: white;
    text-decoration: none;
    border-radius: 6px;
}

.view-all-btn:hover {
    background: #17752f;
}


/* ================= PRESIDENT MESSAGE ================= */

.message-section {
    padding: 70px 8%;
    background: #eef7ef;
}

.message-section h2 {
    text-align: center;
    color: #0b5d1e;
    font-size: 36px;
    margin-bottom: 40px;
}

.message-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.president-photo {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.president-photo img {
    width: 250px;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    border: 5px solid #0b5d1e;
    padding: 5px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .2);
}

.message-text {
    flex: 2;
    min-width: 300px;
}

.message-text h3 {
    color: #0b5d1e;
    font-size: 28px;
    margin-bottom: 5px;
}

.message-text h4 {
    color: #666;
    margin-bottom: 20px;
}

.message-text p {
    font-size: 17px;
    line-height: 1.8;
    text-align: justify;
}


/* ================= GLANCE SECTION ================= */

.glance {
    padding: 70px 8%;
    background: #ffffff;
    text-align: center;
}

.glance h2 {
    color: #0b5d1e;
    font-size: 36px;
    margin-bottom: 40px;
}

.glance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.glance-card {
    background: white;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .15);
    border-top: 5px solid #0b5d1e;
}

.glance-card h3 {
    font-size: 35px;
    color: #0b5d1e;
    margin-bottom: 10px;
}

.glance-card p {
    font-size: 18px;
}



/* ================= GALLERY ================= */

.gallery{
    padding:70px 8%;
    background:#fff;
}

.gallery h2{
    text-align:center;
    color:#0b5d1e;
    font-size:40px;
    margin-bottom:40px;
}

.gallery-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:30px;
}

.gallery-item{
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 5px 15px rgba(0,0,0,.15);
    transition:.3s;
}

.gallery-item:hover{
    transform:translateY(-8px);
}

.gallery-item img{
    width:100%;
    height:250px;
    object-fit:cover;
    display:block;
}

.gallery-item p{
    text-align:center;
    padding:15px;
    font-weight:bold;
    color:#0b5d1e;
}


/* ================= FOOTER ================= */

.footer {
    background: #083b14;
    color: white;
    padding: 60px 8% 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.footer-box h3 {
    color: #ffd54f;
    margin-bottom: 20px;
}

.footer-box p {
    margin-bottom: 10px;
    line-height: 1.8;
}

.footer-box ul {
    list-style: none;
}

.footer-box ul li {
    margin-bottom: 10px;
}

.footer-box a {
    color: white;
    text-decoration: none;
}

.footer-box a:hover {
    color: #ffd54f;
    padding-left: 5px;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, .2);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 15px;
}


/* ================= BUTTON EFFECTS ================= */

button,
.btn,
.view-all-btn {
    transition: .3s;
}

button:hover,
.btn:hover,
.view-all-btn:hover {
    transform: translateY(-3px);
}


/* ================= SCROLL BAR ================= */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #0b5d1e;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: #17752f;
}


/* ================= MOBILE RESPONSIVE ================= */

@media (max-width: 992px) {
    .header {
        flex-direction: column;
        text-align: center;
    }

    .header nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .banner img {
        height: 280px;
    }

    .about,
    .quick-links,
    .office,
    .message-section,
    .gallery,
    .glance {
        padding: 50px 5%;
    }

    .about h2,
    .quick-links h2,
    .office h2,
    .message-section h2,
    .gallery h2,
    .glance h2 {
        font-size: 30px;
    }

    .glance-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 24px;
    }

    .header nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .message-container {
        flex-direction: column;
    }

    .president-photo {
        width: 100%;
    }

    .notice-board {
        flex-direction: column;
    }

    .notice-title {
        width: 100%;
        text-align: center;
    }

    .banner img {
        height: 220px;
    }

    .logo {
        width: 75px;
        height: 75px;
    }

    .footer {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .glance-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 20px;
    }

    .card,
    .box,
    .quick-card {
        padding: 20px;
    }

    .about h2,
    .quick-links h2,
    .office h2,
    .message-section h2,
    .gallery h2,
    .glance h2 {
        font-size: 26px;
    }
}/* ================= SINGLE PDF VIEWER STYLING ================= */

.pdf-viewer-section {
    margin-top: 50px;
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,.15);
    border-top: 5px solid #0b5d1e;
    text-align: center;
}

.pdf-viewer-section h3 {
    color: #0b5d1e;
    margin-bottom: 8px;
    font-size: 24px;
}

.pdf-viewer-section p {
    color: #666;
    margin-bottom: 20px;
}

.pdf-frame {
    width: 100%;
    height: 850px;
    border: 2px solid #0b5d1e;
    border-radius: 8px;

}

@media(max-width: 768px) {
    .pdf-frame {
        height: 450px;
    }
}
/* ================= ORDERS TABLE ================= */

.doc-table{
    width:100%;
    border-collapse:collapse;
    background:#fff;
    margin-top:30px;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
}

.doc-table th{
    background:#0b5d1e;
    color:#fff;
    padding:15px;
    text-align:center;
}

.doc-table td{
    padding:14px;
    border:1px solid #ddd;
    text-align:center;
}

.doc-table tr:nth-child(even){
    background:#f8f8f8;
}

.view-btn,
.download-btn{

display:inline-block;
padding:8px 16px;

border-radius:5px;

text-decoration:none;

color:#fff;

font-weight:bold;

}

.view-btn{
background:#0b5d1e;
}

.download-btn{
background:#1565c0;
}

.view-btn:hover{
background:#0d7a29;
}

.download-btn:hover{
background:#0d47a1;
}

.back-home{
text-align:center;
margin-top:40px;
}/* ===========================================
   GALLERY PAGE
=========================================== */

.gallery-page{
    width:90%;
    max-width:1200px;
    margin:60px auto;
    text-align:center;
}

.gallery-page h2{
    font-size:42px;
    color:#0b6623;
    margin-bottom:15px;
}

.gallery-subtitle{
    font-size:18px;
    color:#666;
    margin-bottom:45px;
}

.gallery-container{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.gallery-item{
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 5px 15px rgba(0,0,0,.15);
    text-align:center;
}

.slider{
    position:relative;
    width:100%;
    height:250px;
    overflow:hidden;
}

.slider img{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:250px;
    object-fit:cover;
    opacity:0;
    transition:.5s;
}

.slider img.active{
    opacity:1;
}

.gallery-item p{
    padding:18px;
    font-size:20px;
    font-weight:bold;
    color:#0b5d1e;
}


.back-home{
    margin-top:50px;
}

.back-home .btn{
    background:#0b6623;
    color:white;
    padding:14px 30px;
    text-decoration:none;
    border-radius:6px;
    font-size:18px;
    transition:.3s;
}

.back-home .btn:hover{
    background:#084d1b;
}/*==========================================
LATEST NEWS TICKER
==========================================*/

.news-ticker{
display:flex;
align-items:center;
background:#f4f4f4;
border-top:3px solid #0b6623;
border-bottom:3px solid #0b6623;
margin-bottom:25px;
}

.news-title{
background:#0b6623;
color:#fff;
padding:14px 20px;
font-weight:bold;
font-size:18px;
white-space:nowrap;
}

.news-content{
flex:1;
padding:10px;
font-size:17px;
font-weight:600;
color:#222;
}/* ================= GALLERY SLIDER ================= */

.slider{
    position:relative;
    width:100%;
    height:250px;
    overflow:hidden;
}

.slider img{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:250px;
    object-fit:cover;
    opacity:0;
    transition:0.5s;
}

.slider img.active{
    opacity:1;
}@media(max-width:992px){
    .gallery-container{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:768px){
    .gallery-container{
        grid-template-columns:1fr;
    }
}/* ================= HOME NOTICE BOARD ================= */

.home-notice{
    padding:70px 8%;
    background:#f7f7f7;
}

.home-notice h2{
    text-align:center;
    color:#0b5d1e;
    font-size:36px;
    margin-bottom:35px;
}

.notice-list{
    max-width:1000px;
    margin:auto;
}

.notice-item{
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:#fff;
    margin-bottom:15px;
    padding:18px 20px;
    border-left:5px solid #0b5d1e;
    border-radius:8px;
    box-shadow:0 3px 10px rgba(0,0,0,0.1);
}

.notice-item span{
    font-size:17px;
    font-weight:600;
}

@media(max-width:768px){

.notice-item{
    flex-direction:column;
    gap:15px;
    text-align:center;
}

}/* ==========================
   NOTICE BOARD PAGE
========================== */

.documents{
    width:90%;
    max-width:1200px;
    margin:40px auto;
    background:#ffffff;
    padding:30px;
    border-radius:10px;
    box-shadow:0 4px 15px rgba(0,0,0,0.1);
}


.documents h2{
    text-align:center;
    color:#1b5e20;
    font-size:32px;
    margin-bottom:10px;
}


.doc-subtitle{
    text-align:center;
    color:#555;
    margin-bottom:30px;
    font-size:16px;
}


/* ==========================
   NOTICE TABLE
========================== */


.doc-table{

    width:100%;
    border-collapse:collapse;
    margin-top:20px;

}


.doc-table th{

    background:#1b5e20;
    color:white;
    padding:12px;
    text-align:center;
    font-size:16px;

}


.doc-table td{

    border:1px solid #ddd;
    padding:12px;
    text-align:center;
    font-size:15px;

}


.doc-table tr:nth-child(even){

    background:#f7f7f7;

}


.doc-table tr:hover{

    background:#e8f5e9;

}


/* ==========================
   VIEW BUTTON
========================== */


.view-btn{

    display:inline-block;
    background:#2e7d32;
    color:white;
    padding:8px 15px;
    text-decoration:none;
    border-radius:5px;
    font-size:14px;

}


.view-btn:hover{

    background:#1b5e20;

}


/* ==========================
   DOWNLOAD BUTTON
========================== */


.download-btn{

    display:inline-block;
    background:#1565c0;
    color:white;
    padding:8px 15px;
    text-decoration:none;
    border-radius:5px;
    font-size:14px;

}


.download-btn:hover{

    background:#0d47a1;

}


/* ==========================
   BACK HOME BUTTON
========================== */


.back-home{

    text-align:center;
    margin-top:30px;

}


.btn{

    display:inline-block;
    background:#1b5e20;
    color:white;
    padding:12px 25px;
    border-radius:6px;
    text-decoration:none;
    font-weight:bold;

}


.btn:hover{

    background:#0d3b13;

}


/* ==========================
   MOBILE RESPONSIVE
========================== */


@media(max-width:768px){

.documents{

    width:95%;
    padding:15px;

}


.doc-table{

    font-size:13px;

}


.doc-table th,
.doc-table td{

    padding:8px;

}


.view-btn,
.download-btn{

    padding:6px 8px;
    font-size:12px;

}


.documents h2{

    font-size:26px;

}


}/* ================= MEMBERSHIP SECTION ================= */

.membership-highlight{
    padding:60px 8%;
    background:#eef7ef;
}

.membership-content{
    max-width:1100px;
    margin:auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:40px;
    background:#fff;
    padding:35px;
    border-radius:12px;
    box-shadow:0 5px 15px rgba(0,0,0,.15);
}

.membership-text{
    flex:2;
}

.membership-text h2{
    color:#0b5d1e;
    font-size:36px;
    margin-bottom:15px;
}

.membership-text h3{
    color:#d89b00;
    margin:20px 0 15px;
}

.membership-text p{
    font-size:18px;
    line-height:1.8;
}

.membership-text ul{
    margin:20px 0;
    padding-left:25px;
}

.membership-text ul li{
    margin-bottom:12px;
    font-size:18px;
}

.membership-note{
    margin:20px 0;
    padding:12px;
    background:#eef7ef;
    border-left:5px solid #0b5d1e;
    border-radius:5px;
    color:#333;
}

.membership-qr{
    flex:1;
    text-align:center;
}

.membership-qr img{
    width:250px;
    height:250px;
    object-fit:contain;
    background:#fff;
    padding:10px;
    border-radius:10px;
    border:1px solid #ddd;
}

.membership-qr p{
    margin-top:10px;
    font-weight:bold;
}

.join-btn{
    display:inline-block;
    margin-top:20px;
    background:#0b5d1e;
    color:#fff;
    text-decoration:none;
    padding:12px 25px;
    border-radius:6px;
    font-weight:bold;
}

.join-btn:hover{
    background:#17752f;
}

@media(max-width:768px){

.membership-content{
    flex-direction:column;
    text-align:center;
}

.membership-text ul{
    text-align:left;
}

.membership-qr img{
    width:210px;
    height:210px;
}

}