/*
Theme Name: Nipuna Torpa Theme
Theme URI: https://www.nipunadk.com
Author: Nipuna Dananjaya Kumara
Author URI: https://www.nipunadk.com
Description: Clean custom theme
Version: 1.0
Text Domain: nipuna-torpa-theme
*/

body {
    margin: 0;
    font-family: Arial, sans-serif;
	background: #f8fafc;
}

/* CONTAINER */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

/* HEADER */
.site-header {
    position: relative;
    z-index: 1000;
    background: #fff;
	box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
	padding: 20px 24px;
}

/* LOGO */
.logo h2 {
    font-size: 22px;
    line-height: 1.4;
    margin: 0;
    font-weight: 700;
}

/* NAV */
.nav .menu {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav a {
    text-decoration: none;
    color: #000;
    font-weight: 600;
}

.nav .current-menu-item a {
    color: #f26522; /* orange active */
}

/* FOOTER */

.site-footer {
    background: #fff;
    padding: 60px 0;
}

.footer-inner {
	display: grid;
    justify-content: space-between;
    gap: 60px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* LEFT SIDE */
.footer-left {
    grid-column: span 2 / span 2;
}

.footer-left h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.footer-left p {
    color: #333;
    line-height: 1.6;
}

/* RIGHT SIDE */
.footer-right h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

/* CONTACT ITEMS */
.footer-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

/* ICON STYLE */
.footer-contact .icon {
    background: #f26522;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    width: 1.5rem;
    height: 1.5rem;
}
.footer-contact .icon img {
    width: 100%;
    max-width: 1rem;
}

/* LINKS */
.footer-contact a {
    color: #000;
    font-weight: 500;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.author {
    font-size: 14px;
	padding-bottom: 10px;
	background: #fff;
}

.author a {
    color: #000;
}

/* HOMEPAGE */

.home-content {
    padding: 60px 0;
}

.home-section {
    margin-bottom: 60px;
}

.home-section h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.home-section p {
    line-height: 1.6;
}

/* GLOBAL CONTENT AREA */

.site-content,
main {
	padding: 56px 24px;
    max-width: 1440px;
	margin: auto;
	background: #f8fafc;
}

/* TYPOGRAPHY */

.site-content p,
main p {
    font-size: 16px;
    line-height: 1em;
    color: #2b2b2b;
    margin-bottom: 28px;
}

/* remove last spacing */
.site-content p:last-child,
main p:last-child {
    margin-bottom: 0;
}

/* optional: headings inside content */
.site-content h1,
.site-content h2,
.site-content h3,
main h1,
main h2,
main h3 {
    margin-bottom: 20px;
    color: #111;
}

/* links */
.site-content a,
main a {
    color: #1e73be;
    text-decoration: none;
}

.site-content a:hover,
main a:hover {
    text-decoration: underline;
}

.pdf-icons {
  list-style: none;
  padding-left: 0;
}

.pdf-icons li {
  position: relative;
  padding-left: 25px;
  font-size: 20px;
  margin-bottom: 1rem;
}

.pdf-icons li::before {
  content: "\f56d"; /* fa-file-arrow-down */
  font-family: "Font Awesome 6 Pro";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: #f97316;
}

.pdf-icons li a {
    color: #000;
    font-weight: bold;
    line-height: 1.5em;
}

/* HEADER AREA */

.archive-header {
    margin-bottom: 50px;
}

.page-title {
    font-size: 32px;
    margin-bottom: 15px;
	border-bottom: 1px solid #dadada;
}

/* GRID */

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

/* CARD */

.news-card {
    background: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* IMAGE */

.news-image {
    height: 180px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CONTENT */

.news-content {
    padding: 20px;
}

.news-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.news-date {
    display: block;
    font-size: 13px;
    color: #777;
    margin-bottom: 10px;
}

.news-excerpt {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* BUTTON */

.news-content .news-button {
    background: #f97316;
    color: #fff;
    border: none;
    padding: 14px 28px;
    font-weight: 700;
    font-size: 16px;
    border-radius: 10px;
    cursor: pointer;
    width: auto;
    transition: 0.2s ease;
    line-height: normal;
	text-decoration: none;
}

.news-content .news-button:hover {
    background: #ea580c;
	text-decoration: none;
}

/* HERO IMAGE */

.toppbild-nyhet img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-top: 115px;
}

@media (min-width: 1024px) {
    .toppbild-nyhet img {
        height: 500px;
        margin-top: 0;
    }
}

/* CONTENT */

.single-news-container {
    margin: 30px auto;
}

@media (min-width: 1024px) {
    .single-news-container {
        margin-top: 80px;
    }
}

.single-news-container h1 {
    margin-bottom: 10px;
}

/* DATE */

.news-date {
    font-size: 14px;
    color: #5a5a5a;
    margin-bottom: 20px;
    display: block;
}

/* CONTENT TEXT */

.news-content {
    font-size: 18px;
    line-height: 1.8;
}

/* BUTTON */

.news-back {
    background: #f97316;
    color: #fff;
    border: none;
    padding: 14px 28px;
    font-weight: 700;
    font-size: 16px;
    border-radius: 10px;
    cursor: pointer;
    width: auto;
    transition: 0.2s ease;
    line-height: normal;
	text-decoration: none;
}

.news-back:hover {
    background: #ea580c;
	text-decoration: none;
}

#nf-form-2-cont  .nf-before-form-content {
    padding-bottom: 20px;
}

/* LABELS */
#nf-form-2-cont .nf-field-label label {
    font-weight: 700;
    color: #1e2a35;
    margin-bottom: 8px;
    display: block;
}

/* INPUT + TEXTAREA BASE */
#nf-form-2-cont input,
#nf-form-2-cont textarea {
    width: 100%;
    border: 1px solid #000;
    padding: 12px 14px;
    font-size: 16px;
    border-radius: 0;
    outline: none;
}

/* INPUT HEIGHT */
#nf-form-2-cont input[type="text"],
#nf-form-2-cont input[type="email"],
#nf-form-2-cont input[type="tel"] {
    height: 45px;
}

/* TEXTAREA */
#nf-form-2-cont textarea {
    min-height: 180px;
    resize: vertical;
}

/* REMOVE DEFAULT NF STYLES */
#nf-form-2-cont .nf-field-container {
    margin-bottom: 25px;
}

/* BUTTON */
#nf-form-2-cont input[type="submit"] {
    background: #f97316;
    color: #fff;
    border: none;
    padding: 14px 28px;
    font-weight: 700;
    font-size: 16px;
    border-radius: 10px;
    cursor: pointer;
    width: auto;
    transition: 0.2s ease;
}

/* BUTTON HOVER */
#nf-form-2-cont input[type="submit"]:hover {
    background: #ea580c;
}

/* REQUIRED STAR */
#nf-form-2-cont .ninja-forms-req-symbol {
    color: red;
}

/* GRID SPACING FIX */
#nf-form-2-cont .nf-row {
    margin-bottom: 10px;
}

/* REMOVE EXTRA WRAPS PADDING */
#nf-form-2-cont .nf-field {
    margin: 0;
}

/* Make inputs slightly darker like screenshot */
#nf-form-2-cont input,
#nf-form-2-cont textarea {
    background: #fff;
}

/* Stronger label spacing */
#nf-form-2-cont .nf-field-label {
    margin-bottom: 6px;
}

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

.team-card {
    background: #fff;
    text-align: left;
}

.team-image {
    width: 100%;
    height: 330px;
    background-size: cover;
    background-position: center;
    background-color: #cfd5e1;
}

.team-content p {
    margin: 0;
}

.team-content {
    padding: 20px 20px 50px 20px;
}

.team-content h3 {
    color: #f26522;
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 700;
}

.team-content .position {
    font-weight: 700;
    margin-bottom: 15px;
}

.team-content a {
    color: #000;
    text-decoration: underline;
    display: block;
    margin-bottom: 5px;
}

.team-content a:hover {
    color: #f26522;
}

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
	max-height: 55vh;
}

/* VIDEO */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

/* SLIDER */
.hero-slider {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    animation: heroFade 12s infinite;
    opacity: 0;
}

/* stagger slides */
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 4s; }
.hero-slide:nth-child(3) { animation-delay: 8s; }

@keyframes heroFade {
    0% { opacity: 0; }
    10% { opacity: 1; }
    30% { opacity: 1; }
    40% { opacity: 0; }
    100% { opacity: 0; }
}

/* OVERLAY */
.hero-overlay {
	position: absolute;
    z-index: 2;
    color: #fff;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
	flex-direction: column;
}

/* TEXT */
.hero-sub {
    font-size: 18px;
    margin-bottom: 10px;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
}

/* optional dark overlay */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1;
}

/* HAMBURGER */
.menu-toggle {
    width: 30px;
    cursor: pointer;
    display: none;
}

.menu-toggle span {
    display: block;
    height: 2px;
    background: #000;
    margin: 6px 0;
}

/* MOBILE MENU */
.mobile-menu {
    position: absolute;        
    left: 0;
    width: 100%;
    height: calc(100vh - 70px); 
    background: #fff;

    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* HEADER INSIDE MENU */
.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
}

.menu-close {
    font-size: 28px;
    cursor: pointer;
}

/* MENU ITEMS */
.mobile-menu-list {
    list-style: none;
    padding: 60px 0;
    text-align: center;
}

.mobile-menu-list li {
    margin: 25px 0;
}

.mobile-menu-list a {
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    color: #111;
}

.menu-toggle {
    width: 30px;
    cursor: pointer;
    position: relative;
}

.menu-toggle span {
    display: block;
    height: 2px;
    background: #000;
    margin: 6px 0;
    transition: 0.3s;
}

/* ACTIVE STATE */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* RESPONSIVE */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
	.footer-inner {
	    display: block;
	}
}